Le support aux utilisateurs et les demandes de création de comptes externes doivent être faites depuis les issues du projet GitLab HEFR (https://gitlab.forge.hefr.ch/forge-hefr/gitlab-hefr)

Commit 66d4b5e4 authored by Nicolas Maier's avatar Nicolas Maier
Browse files

Limite y

parent bc256b26
Pipeline #7178 failed with stage
in 14 seconds
......@@ -34,7 +34,7 @@
#define GAME_TOPBOTTOM_MARGIN 4
#define GAME_BALL_DEFAULT_SPEED 0.05
#define REFRESH_MS 50
#define REFRESH_MS 20
#define READY_WAIT_MS 2000
#define BAR_SPEED 2
#define BALL_START_OFFSET 10
......@@ -174,13 +174,16 @@ static void game_thread(void* param)
} else {
next_state.ennemy_score += 1;
communication_sendEvent(COMMUNICATION_POINT);
//communication_sendScore(next_state.ally_score, next_state.ennemy_score);
prepare_set();
}
} else {
if (step_count == 0)
communication_sendBall(next_state.ball_pos.x, next_state.ball_pos.y, next_state.ball_dir.x, next_state.ball_dir.y);
}
} else {
if (next_state.ball_pos.y < GAME_TOPBOTTOM_MARGIN + DISPLAY_BAR_WIDTH) {
next_state.ball_pos.y = GAME_TOPBOTTOM_MARGIN + DISPLAY_BAR_WIDTH;
}
}
if (former_state.ally_score != next_state.ally_score) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment