Initial commit

Un bout de jeu, qui fait pas grand chose mais on progresse.
This commit is contained in:
Thomas
2025-02-21 17:59:47 +01:00
commit fe463ad396
74 changed files with 59217 additions and 0 deletions

13
scenes/pathFollow.gd Normal file
View File

@@ -0,0 +1,13 @@
extends PathFollow2D
@export var speed = 0.1
var voiture
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
voiture = (self.get_child(0) as Voiture)
voiture.updatePosition(position.x, position.y)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
progress_ratio += delta * speed;
voiture.updatePosition(position.x, position.y)