it just werks
This commit is contained in:
parent
1311e18f1f
commit
7e26433676
50 changed files with 1181 additions and 11 deletions
18
objects/spikes/spikes.gd
Normal file
18
objects/spikes/spikes.gd
Normal file
|
@ -0,0 +1,18 @@
|
|||
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_area_2d_body_shape_entered(body_rid: RID, body: Node2D, body_shape_index: int, local_shape_index: int) -> void:
|
||||
if body is Player:
|
||||
body.position = body.start_position
|
||||
body.voice.stream = load("res://assets/audio/vox/capri_die.ogg")
|
||||
body.voice.play()
|
Loading…
Add table
Add a link
Reference in a new issue