Home
last modified time | relevance | path

Searched refs:paddle_x (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c98 static volatile int paddle_x = PADDLE_MIN; variable
195 paddle_x = PADDLE_MIN; in game_init()
366 if (ball_pos.x < REAL_TO_VIRT(paddle_x) || in game_refresh()
367 ball_pos.x >= REAL_TO_VIRT(paddle_x + 2)) { in game_refresh()
450 if (paddle_x > PADDLE_MIN) { in button_pressed()
451 paddle_x--; in button_pressed()
468 if (paddle_x < PADDLE_MAX) { in button_pressed()
469 paddle_x++; in button_pressed()
548 img.row[PADDLE_ROW] = (BIT(paddle_x) | BIT(paddle_x + 1)); in main()