Skip to content

Commit

Permalink
Merge pull request #140 from ahumeniy/unleashed_flappy_pilars_visibility
Browse files Browse the repository at this point in the history
Increase pilars line width to improve visibility
  • Loading branch information
xMasterX authored Oct 28, 2022
2 parents 73b8d49 + 9e8c841 commit 00b430a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions applications/plugins/flappy_bird/flappy_bird.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,36 @@ static void flappy_game_render_callback(Canvas* const canvas, void* ctx) {
canvas_draw_frame(
canvas, pilar->point.x, pilar->point.y, FLAPPY_GAB_WIDTH, pilar->height);

canvas_draw_frame(
canvas, pilar->point.x + 1, pilar->point.y, FLAPPY_GAB_WIDTH, pilar->height);

canvas_draw_frame(
canvas,
pilar->point.x + 2,
pilar->point.y,
FLAPPY_GAB_WIDTH - 1,
pilar->height);

canvas_draw_frame(
canvas,
pilar->point.x,
pilar->point.y + pilar->height + FLAPPY_GAB_HEIGHT,
FLAPPY_GAB_WIDTH,
FLIPPER_LCD_HEIGHT - pilar->height - FLAPPY_GAB_HEIGHT);

canvas_draw_frame(
canvas,
pilar->point.x + 1,
pilar->point.y + pilar->height + FLAPPY_GAB_HEIGHT,
FLAPPY_GAB_WIDTH - 1,
FLIPPER_LCD_HEIGHT - pilar->height - FLAPPY_GAB_HEIGHT);

canvas_draw_frame(
canvas,
pilar->point.x + 2,
pilar->point.y + pilar->height + FLAPPY_GAB_HEIGHT,
FLAPPY_GAB_WIDTH - 1,
FLIPPER_LCD_HEIGHT - pilar->height - FLAPPY_GAB_HEIGHT);
}
}
// Flappy
Expand Down

0 comments on commit 00b430a

Please sign in to comment.