Proof of concept data disks, pharaoh character
This commit is contained in:
1 parent
f6d6e287f1
commit
5dd4c27430
14 files changed
+188
-6
No files matched your search
@@ -0,0 +1,20 @@
|
||||
class_name Pickup
|
||||
extends Node2D
|
||||
|
||||
signal picked_up
|
||||
|
||||
# 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)
|
||||
$AudioStreamPlayer2D.play(0)
|
||||
visible = false
|
||||
picked_up.emit()
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
queue_free()
|
||||
Reference in new issue
Block a user