Most of prototype! yay

This commit is contained in:
2025-05-01 08:27:30 -05:00
parent 11605c9f17
commit 30bf202118
51 changed files with 1906 additions and 52 deletions

View File

@@ -0,0 +1,14 @@
extends Resource
class_name Player_State
func restrict_movement() -> bool:
return false
func on_movement_input(input: Vector2, player: Player):
pass
func restrict_rotation() -> bool:
return false
func on_rotation_input(input: float, player: Player):
pass

View File

@@ -0,0 +1 @@
uid://tweaybdvlwev

View File

@@ -0,0 +1,16 @@
extends Player_State
class_name Player_State_Rotation_Interaction
var rotation_target: Node2D
func _init(target: Node2D) -> void:
rotation_target = target
func restrict_rotation() -> bool:
return true
func on_movement_input(input: Vector2, player: Player):
player.interacting_state = Player_State_Standard.new()
func on_rotation_input(input: float, player: Player):
rotation_target.rotation = input

View File

@@ -0,0 +1 @@
uid://wo8hrn7t4s3p

View File

@@ -0,0 +1,2 @@
extends Player_State
class_name Player_State_Standard

View File

@@ -0,0 +1 @@
uid://bkv1iehq3miwi