#14 ajout de la notion de terrain, de planète et de zone contaminée

This commit is contained in:
2025-08-08 15:27:17 +02:00
parent a0f17df7c6
commit 25d81d57a5
27 changed files with 447 additions and 17 deletions

View File

@@ -5,7 +5,10 @@ const LERP_WEIGHT = 0.9
@export var following : Node2D
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
func _ready():
if following:
global_position = following.global_position
func _process(_delta):
if following:
global_position = following.global_position.lerp(global_position, LERP_WEIGHT)