diff --git a/src/level_manager.odin b/src/level_manager.odin index 8866f26..8f94d2f 100644 --- a/src/level_manager.odin +++ b/src/level_manager.odin @@ -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, } }