Home
last modified time | relevance | path

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

/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c101 static struct x_y ball_pos = BALL_START; variable
190 ball_pos = BALL_START; in game_init()
192 ball_pos.y = -1; in game_init()
232 return (ball_pos.y >= BALL_POS_Y_MIN); in ball_visible()
336 ball_pos.x += ball_vel.x; in game_refresh()
337 ball_pos.y += ball_vel.y; in game_refresh()
340 if (ball_vel.y < 0 && ball_pos.y < BALL_POS_Y_MIN) { in game_refresh()
342 ball_pos.y = -ball_pos.y; in game_refresh()
346 ble_send_ball(BALL_POS_X_MAX - ball_pos.x, ball_pos.y, in game_refresh()
354 if (ball_pos.x < BALL_POS_X_MIN) { in game_refresh()
[all …]