Changed movement to scroll level instead of player, test level now loops. Player also now has weight based inertia

This commit is contained in:
2025-02-17 09:40:31 -05:00
parent 94795e4c77
commit 1abf5b7bce
5 changed files with 124 additions and 9 deletions

12
Levels/test_level.gd Normal file
View File

@ -0,0 +1,12 @@
extends Node2D
@onready var world: CanvasGroup = $CanvasGroup
@onready var player: CharacterBody2D = $Player
func _process(delta: float) -> void:
world.position.x -= player.ground_speed.x * delta
if world.position.x < -2000:
world.position.x = 0

File diff suppressed because one or more lines are too long