Skip to content

Commit

Permalink
Merge pull request #148 from msvsergey/flappy-animation-fix
Browse files Browse the repository at this point in the history
Flappy: Fix animation.
  • Loading branch information
xMasterX authored Nov 2, 2022
2 parents af1647c + 9a0eacc commit 4b408b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/plugins/flappy_bird/flappy_bird.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b408b6

Please sign in to comment.