add train control game

This commit is contained in:
Overside srl
2026-01-27 19:11:56 +01:00
parent 2af450ffc5
commit 8222c7613d
238 changed files with 1778 additions and 476 deletions

9
scripts/engine.gd Normal file
View File

@@ -0,0 +1,9 @@
extends PathFollow3D
class_name TrainEngine
@onready var train: MeshInstance3D = $Train
func _physics_process(delta: float) -> void:
if train:
progress += train.current_speed * delta