Setup serve direction after scoring

This commit is contained in:
2026-10-08 07:43:00 +02:00
parent 25bd7a85a1
commit d6c52cecda
2 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ Level :: struct {
player: Entity,
opponent: Entity,
ball: Entity,
serve_dir: u8,
serve_timer: f32,
wait_time: f32,
score_player: int,
@@ -55,7 +56,7 @@ init_level :: proc() -> Level {
ball = init_ball(),
serve_timer = SERVE_WAIT_TIME,
wait_time = SERVE_WAIT_TIME,
score_win = 1,
score_win = 3,
score_player = 0,
score_enemy = 0,
particles = make([dynamic]Particle),