Init commit
This commit is contained in:
commit
a4452b69c4
59 changed files with 1259 additions and 0 deletions
12
Scripts/game_over.gd
Normal file
12
Scripts/game_over.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends Control
|
||||
|
||||
signal new_game
|
||||
|
||||
func set_score(amount: int):
|
||||
$Container/Score.text = "Score: " + str(amount)
|
||||
|
||||
func _ready():
|
||||
$"Container/New Game".pressed.connect(_emit_new)
|
||||
|
||||
func _emit_new():
|
||||
emit_signal("new_game")
|
||||
Loading…
Add table
Add a link
Reference in a new issue