mirror of
https://github.com/thepigeongenerator/breakout_clone.git
synced 2025-12-18 06:45:45 +01:00
add patentees 2
This commit is contained in:
@@ -51,7 +51,7 @@ void level_init(Level* level) {
|
|||||||
static void update_player(Bouncer* bouncer, Ball* ball, const Uint8* keys) {
|
static void update_player(Bouncer* bouncer, Ball* ball, const Uint8* keys) {
|
||||||
// if move bouncer LEFT
|
// if move bouncer LEFT
|
||||||
if (keys[SDL_SCANCODE_A] || keys[SDL_SCANCODE_LEFT]) {
|
if (keys[SDL_SCANCODE_A] || keys[SDL_SCANCODE_LEFT]) {
|
||||||
if ((bouncer->pos.x) < 0 == false) {
|
if (((bouncer->pos.x) < 0) == false) {
|
||||||
bouncer->pos.x -= BOUNCER_SPEED;
|
bouncer->pos.x -= BOUNCER_SPEED;
|
||||||
|
|
||||||
if (ball->moving == false)
|
if (ball->moving == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user