First Prototype
This commit is contained in:
parent
e18beb6c4c
commit
9e3349eec3
40 changed files with 1100 additions and 48 deletions
|
|
@ -4,14 +4,26 @@ extends Node2D
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
randomize()
|
||||
$Map.spawnObjects()
|
||||
$Map.spawnEnemies()
|
||||
stormTimer.start(randi_range(G.GAMETIME.MIN, G.GAMETIME.MAX))
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
G.StormTimeLeft = stormTimer.time_left
|
||||
|
||||
|
||||
func _on_storm_timer_timeout() -> void:
|
||||
print("Storm")
|
||||
|
||||
|
||||
func _on_player_death() -> void:
|
||||
get_parent().loadEndScren()
|
||||
|
||||
|
||||
func pause():
|
||||
get_tree().paused = true
|
||||
|
||||
func resume():
|
||||
get_tree().paused = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue