Small clean up and win score set.

This commit is contained in:
2026-09-15 07:58:28 +02:00
parent c82c51aabf
commit 676a24e883
+4 -4
View File
@@ -6,6 +6,9 @@ import rl "vendor:raylib"
// ------------------------------------------------------------------------------
// LEVEL specifics
// ------------------------------------------------------------------------------
FIELD_BORDER :: 3
SERVE_WAIT_TIME :: 1.0
Level :: struct {
field_bounds: rl.Rectangle,
player: Entity,
@@ -18,9 +21,6 @@ Level :: struct {
score_win: int,
}
FIELD_BORDER :: 3
SERVE_WAIT_TIME :: 1.0
init_level :: proc() -> Level {
// positions work off viewport resolution, independent of target display size
// 10% padding around the field
@@ -49,9 +49,9 @@ init_level :: proc() -> Level {
ball = init_ball(),
serve_timer = SERVE_WAIT_TIME,
wait_time = SERVE_WAIT_TIME,
score_win = 1,
score_player = 0,
score_enemy = 0,
score_win = 2,
}
}