Small cleanup, spacing, comments.
This commit is contained in:
@@ -31,9 +31,11 @@ update_ball :: proc(ball: ^Entity, level: ^Level, dt: f32) {
|
||||
// first check the level timer are we waiting to serve?
|
||||
if level.serve_timer > 0 {
|
||||
level.serve_timer -= dt
|
||||
|
||||
if level.serve_timer <= 0 {
|
||||
serve_ball(ball)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ game_update :: proc(game: ^Game) {
|
||||
input := poll_input()
|
||||
|
||||
// Pass direct pointers (^Scene) so modifications persist
|
||||
// only update the overlay, if it currently exists
|
||||
if overlay, ok := &game.overlay_scene.?; ok {
|
||||
scene_update(overlay, game, input, dt)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user