added money and money counter

This commit is contained in:
derek
2024-07-17 12:22:05 -05:00
parent 119d12b3da
commit a917dd2c88
17 changed files with 217 additions and 31 deletions

View File

@@ -12,10 +12,11 @@ func _ready():
func _process(delta):
pass
func breaking():
func breaking(current_velocity):
var spawn_broken = broken_object.instantiate()
spawn_broken.position = global_position
spawn_broken.transform.basis = global_transform.basis
spawn_broken.rotation = rotation
get_tree().get_root().add_child(spawn_broken)
queue_free()