Counter.gd (178B)
1 extends Label 2 3 var coins = 0 4 5 func _ready(): 6 text = str(coins) 7 8 func _on_coin_collected(): 9 coins += 1 10 _ready() 11 if coins == 15: 12 get_tree().change_scene("res://YouWin.tscn")
basic-move-and-dodge-game[LEARNING] basic godot game based off the tutorial by borncg on youtube | |
git clone git://git.figbert.com/basic-move-and-dodge-game.git | |
Log | Files | Refs | README |