wave spawner, game phases, making game window larger
This commit is contained in:
@@ -2,6 +2,7 @@ package game
|
||||
|
||||
Event_Kind :: enum {
|
||||
Enemy_Killed,
|
||||
Wave_Survived,
|
||||
}
|
||||
|
||||
Event :: struct {
|
||||
@@ -18,6 +19,8 @@ process_events :: proc(world: ^World) {
|
||||
switch ev.kind {
|
||||
case .Enemy_Killed:
|
||||
world.gold += ev.gold_reward
|
||||
case .Wave_Survived:
|
||||
world.gold += ev.gold_reward
|
||||
}
|
||||
}
|
||||
clear(&world.events)
|
||||
|
||||
Reference in New Issue
Block a user