mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-14 16:24:18 +03:00
Merge pull request #148 from msvsergey/flappy-animation-fix
Flappy: Fix animation.
This commit is contained in:
commit
4b408b6988
@ -217,10 +217,10 @@ static void flappy_game_render_callback(Canvas* const canvas, void* ctx) {
|
||||
for(int h = 0; h < FLAPPY_BIRD_HEIGHT; h++) {
|
||||
for(int w = 0; w < FLAPPY_BIRD_WIDTH; w++) {
|
||||
// Switch animation
|
||||
int bird = 0;
|
||||
int bird = 1;
|
||||
if(game_state->bird.gravity < -0.5)
|
||||
bird = 1;
|
||||
else
|
||||
bird = 0;
|
||||
else if(game_state->bird.gravity > 0.5)
|
||||
bird = 2;
|
||||
|
||||
// Draw bird pixels
|
||||
|
Loading…
Reference in New Issue
Block a user