From 052fe9c0786d13252a53cb984f125273dac5a598 Mon Sep 17 00:00:00 2001 From: freddie-a <57713959+freddie-a@users.noreply.github.com> Date: Sun, 30 Oct 2022 10:59:34 +0000 Subject: Further code cleanup --- Main.gd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Main.gd') 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") -- cgit v1.2.3-70-g09d2