Compare commits

..

No commits in common. "b566cf20b57e0b427ce04bd7640b38d78eb5cf6d" and "9c01264fd059648dc27053664694cac51b511cb5" have entirely different histories.

27 changed files with 2 additions and 2 deletions

View File

@ -81,10 +81,10 @@ void game_tick(void)
state->bunnies[i].position.x += state->bunnies[i].speed.x; state->bunnies[i].position.x += state->bunnies[i].speed.x;
state->bunnies[i].position.y += state->bunnies[i].speed.y; state->bunnies[i].position.y += state->bunnies[i].speed.y;
if (((state->bunnies[i].position.x + BUNNY_W / 2) > ctx.base_draw_w) || if (((state->bunnies[i].position.x + BUNNY_W / 2) > ctx.window_w) ||
((state->bunnies[i].position.x + BUNNY_W / 2) < 0)) ((state->bunnies[i].position.x + BUNNY_W / 2) < 0))
state->bunnies[i].speed.x *= -1; state->bunnies[i].speed.x *= -1;
if (((state->bunnies[i].position.y + BUNNY_H / 2) > ctx.base_draw_h) || if (((state->bunnies[i].position.y + BUNNY_H / 2) > ctx.window_h) ||
((state->bunnies[i].position.y + BUNNY_H / 2 - 60) < 0)) ((state->bunnies[i].position.y + BUNNY_H / 2 - 60) < 0))
state->bunnies[i].speed.y *= -1; state->bunnies[i].speed.y *= -1;
} }