week 6 files scene and game manager
This commit is contained in:
1 parent
a7be9688f5
commit
9356bd1c7c
296 files changed
+4194
-11
No files matched your search
@@ -0,0 +1,16 @@
|
||||
extends Node
|
||||
|
||||
var player: Resource
|
||||
var coinsCollected:int = 0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
print("game manager ready")
|
||||
player = load("res://scripts/resources/player_stats.tres")
|
||||
|
||||
func resetPlayer():
|
||||
player.health = player.max_health
|
||||
func playerDamage():
|
||||
#replace this damage amount with value from data object
|
||||
player.health -=20
|
||||
|
||||
Reference in new issue
Block a user