Added first setup of level-based system

This commit is contained in:
2026-02-05 05:03:53 +11:00
parent 2bacff5b7d
commit 067d8c29af
57 changed files with 906 additions and 82 deletions

18
floating_element.gd Normal file
View File

@@ -0,0 +1,18 @@
class_name FloatingElement extends MarginContainer
var dest: Vector2 = Vector2.ZERO
var velocity: Vector2 = Vector2.ZERO
var acceleration: float = 3.0
var max_speed: float = 30.0
func _process(delta: float) -> void:
#var direction: Vector2 = (dest - position).normalized()
#velocity += direction * acceleration
#velocity = velocity.limit_length(max_speed)
#position += velocity * delta
position = position.lerp(dest, 15.0 * delta)
func set_text(text: String) -> void:
$Label.text = text