First Commit

This commit is contained in:
2026-05-24 17:10:09 -03:00
commit 0b0113fbde
222 changed files with 67094 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
extends Area3D
const ROTATION_SPEED := 45.0
var start_pos := position.y
var end_pos := position.y + 0.5
func _ready():
var coin_tween := create_tween().set_loops().set_ease(Tween.EASE_IN_OUT).set_trans(Tween.TRANS_SINE)
coin_tween.tween_property(self, "position:y", end_pos, 1.0).from(start_pos)
coin_tween.tween_property(self, "position:y", start_pos, 1.0).from(end_pos)
func _process(delta):
rotate_y(deg_to_rad(ROTATION_SPEED * delta))
func _on_body_entered(body):
if body.name == "player":
body.collect_coin()
queue_free()