|
@@ -4,9 +4,14 @@ export (PackedScene) var Mob
|
|
|
|
|
|
var score = 0
|
|
var score = 0
|
|
|
|
|
|
|
|
+func new_game():
|
|
|
|
+ score = 0
|
|
|
|
+ $Player.spawn($StartPositon.position)
|
|
|
|
+ $StartTimer.start()
|
|
|
|
+
|
|
func _ready():
|
|
func _ready():
|
|
randomize() # Plant seed for random number generation
|
|
randomize() # Plant seed for random number generation
|
|
- $StartTimer.start()
|
|
|
|
|
|
+ new_game() # Remove when HUD implemented
|
|
|
|
|
|
func _on_StartTimer_timeout():
|
|
func _on_StartTimer_timeout():
|
|
$MobTimer.start()
|
|
$MobTimer.start()
|