Subindo repositorio

This commit is contained in:
2026-05-02 19:54:53 -03:00
parent 9db1e98761
commit d01e2e8578
493 changed files with 63532 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
extends Area3D
const ROTATION_SPEED := 50.0
var start_pos := position.y
var end_pos := position.y + 0.5
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
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)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
rotate_y(deg_to_rad(ROTATION_SPEED * delta))
func _on_body_entered(body: Node3D) -> void:
if body.name == "Player":
queue_free()