working game loop, lacking alien shooting
This commit is contained in:
parent
0aa534c4d1
commit
19bff3176d
4 changed files with 194 additions and 76 deletions
10
screens.odin
10
screens.odin
|
|
@ -92,9 +92,15 @@ draw_screen :: proc(state: ^GameState) {
|
|||
}
|
||||
|
||||
draw_ending_screen :: proc(state: ^GameState) {
|
||||
using state
|
||||
using state
|
||||
// TODO: Draw ENDING screen here!
|
||||
rl.DrawRectangle(0, 0, state.screen_width, state.screen_height, rl.BLACK)
|
||||
rl.DrawText("Game End", 20, 20, 40, rl.WHITE)
|
||||
rl.DrawText(rl.TextFormat("Player score: %d\nHighscore: %d", player_score, player_high_score), 120, 220, 20, rl.WHITE)
|
||||
rl.DrawText(
|
||||
rl.TextFormat("Player score: %d\nHighscore: %d", player_score, player_high_score),
|
||||
120,
|
||||
220,
|
||||
20,
|
||||
rl.WHITE,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue