Coins
This commit is contained in:
1 parent
e440224fd8
commit
19bbb052ad
9 files changed
+108
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func on_contact(body: Node2D) -> void:
|
||||
print(body)
|
||||
%Player2D.coins += 1
|
||||
queue_free()
|
||||
Reference in new issue
Block a user