Implement platform and ship movement types; refactor player movement logic and add switching mechanism

This commit is contained in:
2025-05-25 04:30:39 +02:00
parent 60779f5b51
commit 33cab8574c
12 changed files with 215 additions and 99 deletions

View File

@@ -0,0 +1,17 @@
class_name PlayerMovement
extends Node
@export var type: String = ""
var enabled: bool = true
var previous_velocity: Vector2 = Vector2.ZERO
func _process(_delta: float) -> void:
if not enabled:
return
func _physics_process(_delta: float) -> void:
if not enabled:
return