/
OrchestraNotPlay
/
EnergyDron
Обзор
Документация
Войти
/
OrchestraNotPlay
/
EnergyDron
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/core/core.gd
25 строк
580 B
OrchestraNotPlay
feat: mobile controls
27 апр 2026, 12:43
27 апр 2026, 12:43
868b3a8
Код
Авторство
О чём код?
extends StaticBody3D @onready var timer = $Timer @onready var counter = $Label3D @onready var model = $core var is_ready: bool = false var phase_count = 3 # Called when the node enters the scene tree for the first time. func _ready() -> void: model.scale = Vector3(0.1, 0.1, 0.1) # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: counter.text = str(phase_count) func _on_timer_timeout() -> void: model.scale += Vector3(0.3, 0.3, 0.3) phase_count -= 1 if phase_count == 0: timer.stop() is_ready = true