aboutsummaryrefslogtreecommitdiffstats
path: root/Main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd8
1 files changed, 1 insertions, 7 deletions
diff --git a/Main.gd b/Main.gd
index 813d22b..2a38832 100644
--- a/Main.gd
+++ b/Main.gd
@@ -3,20 +3,14 @@ extends Node2D
export(PackedScene) var enemy_scene
onready var globals = get_node("/root/Global")
-# Called when the node enters the scene tree for the first time.
func _ready():
randomize()
get_node("Player").connect("hit", get_node("HUD/HBoxContainer/HealthBar"), "_on_player_hit")
get_node("Player").connect("coin", get_node("HUD/HBoxContainer/CoinCount"), "_on_coin_hit")
get_node("Player").connect("coin", get_node("HUD/GameOver/GameOverCoinMessage/GameOverCoinCount"), "_on_coin_hit")
+ yield(get_tree().create_timer(15.0), "timeout")
$EnemySpawnTimer.start()
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-#func _process(delta):
-# pass
-
-
func _on_EnemySpawnTimer_timeout():
var enemy = enemy_scene.instance()
var spawn_loc = get_node("EnemySpawn/EnemySpawnLocation")