-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add falling block animation with
<FallingBlock/>
(#52)
- This issue adds a falling animation to board blocks that float above the ground, and to the player block when it the 'instant drop` action is performed. Note: Although slight non-deterministic behavior existed before this PR, it is more apparent now during the fall animations. This should be addressed in #51
- Loading branch information
Showing
21 changed files
with
701 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ jobs: | |
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
|
||
- name: Install react-scripts | ||
run: npm add react-scripts | ||
|
||
- name: Install packages with NPM | ||
run: npm install | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,25 @@ | ||
.App { | ||
.cell { | ||
display: flex; | ||
border-radius: 0.4vmin; | ||
justify-content: center; | ||
justify-items: center; | ||
align-content: center; | ||
align-items: center; | ||
text-align: center; | ||
line-height: normal; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
.cell.with-margin { | ||
margin: 0.4vmin; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
.with-text-style { | ||
font-family: "Arial", "Courier New", "Lucida Console", monospace; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
@font-face { | ||
font-family: 'Press Start 2P'; | ||
src: local('Press Start 2P'), url(./fonts/PressStart2P-Regular.ttf) format('truetype'); | ||
} |
Oops, something went wrong.