Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
pzrnqt1vrss committed Apr 30, 2023
1 parent fba1521 commit d17b78c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bomberduck.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static void draw_callback(Canvas* canvas, void* ctx) {
canvas_draw_str(canvas, 90, 35, str);

} else {
canvas_draw_str(canvas, 30, 35, "Game over!");
canvas_draw_str(canvas, 30, 35, "You died :(");
}
}

Expand Down Expand Up @@ -414,8 +414,7 @@ int32_t bomberduck_app(void* p) {
for(int j = max(0, world.bombs[i].y-BombRange); j < min(WorldSizeY, world.bombs[i].y+BombRange+1); j++){
if(world.matrix[j][world.bombs[i].x]!=2){
world.matrix[j][world.bombs[i].x] = 6;
if (j==world.player-
>y && world.bombs[i].x == world.player->x){
if (j==world.player->y && world.bombs[i].x == world.player->x){
notification_message(notification, &end);
world.running=0;
}
Expand Down

0 comments on commit d17b78c

Please sign in to comment.