Change state export variable names.

This commit is contained in:
Dustin 2025-03-22 21:18:14 -07:00
parent ab0d2ac5b7
commit e8aa0bbbb9
14 changed files with 53 additions and 49 deletions

View File

@ -1,4 +1,4 @@
class_name ModifierProperties
class_name DEPR_ModifierProperties
extends Reference
var modifier_type: int = 0

View File

@ -134,10 +134,10 @@ func _on_state_change(old_state_name:String, new_state :State):
func move_actor_as_desired( x_move_direction_override: float = 0):
var delta:float = physics_delta
var _move_speed = current_state.move_speed
var _move_speed_modifier = current_state.move_speed_modifier
var _move_modifier_move_acceleration = current_state.move_modifier_move_acceleration
var _move_acceleration = current_state.move_acceleration
var _move_speed = current_state.horizontal_speed
var _move_acceleration = current_state.horizontal_acceleration
var _move_speed_modifier = current_state.horizontal_speed_offset
var _move_modifier_move_acceleration = current_state.horizontal_speed_offset_acceleration
var _jerk_factor = current_state.jerk_factor
var _gravity = current_state.gravity

View File

@ -10,10 +10,13 @@ extends State
## @WIP
# Movement Speed in Pixels Per Second
export var move_speed: float = 60
export var move_acceleration: float = 0
export var move_speed_modifier: float = 0
export var move_modifier_move_acceleration: float = 0
# The b
export var horizontal_speed: float = 60
export var horizontal_acceleration: float = 0
## Movement Speed Offsets (Positive or Negative)
export var horizontal_speed_offset: float = 0
## Applies only if offset applies
export var horizontal_speed_offset_acceleration: float = 0
export var jerk_factor: float = 0
var gravity: int = ProjectSettings.get_setting("physics/2d/default_gravity")

View File

@ -11,7 +11,8 @@ signal state_changed(old_state_name, new_state)
var current_state: State
#var state_modifiers: Array
var state_modifiers: Array
export var starting_state_name = 'default'
export(Array,Resource) var states
var states_index :Dictionary

View File

@ -20,9 +20,14 @@ _global_script_classes=[ {
"path": "res://lib/classes/animated_sprite_state_receiver.gd"
}, {
"base": "Reference",
"class": "DEPR_ModifierProperties",
"language": "GDScript",
"path": "res://lib/classes/DEPR_state_modifier_properties.gd"
}, {
"base": "Reference",
"class": "DumbOldStateModifier",
"language": "GDScript",
"path": "res://lib/classes/state_modifier.gd"
"path": "res://lib/classes/DEPR_state_modifier.gd"
}, {
"base": "",
"class": "GitAPI",
@ -54,11 +59,6 @@ _global_script_classes=[ {
"language": "GDScript",
"path": "res://src/classes/Level.gd"
}, {
"base": "Reference",
"class": "ModifierProperties",
"language": "GDScript",
"path": "res://lib/classes/state_modifier_properties.gd"
}, {
"base": "Node2D",
"class": "Modifier_Receiver",
"language": "GDScript",
@ -97,6 +97,7 @@ _global_script_classes=[ {
_global_script_class_icons={
"Actor": "",
"AnimatedSprite_StateReceiver": "",
"DEPR_ModifierProperties": "",
"DumbOldStateModifier": "",
"GitAPI": "",
"HealthComponent": "",
@ -104,7 +105,6 @@ _global_script_class_icons={
"Interactable": "",
"Interactable_Receiver": "",
"Level": "",
"ModifierProperties": "",
"Modifier_Receiver": "",
"MovementComponent": "",
"Movement_StateReceiver": "",

View File

@ -20,10 +20,10 @@ script = ExtResource( 7 )
debug_state = false
timeout_seconds = 0.0
name = "move"
move_speed = 90.0
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 90.0
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "run" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "attack_shoot"
move_speed = 1.36422e-12
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 1.36422e-12
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "attack-shoot" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "attack_sword"
move_speed = 1.36422e-12
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 1.36422e-12
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "attack-sword" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "fall"
move_speed = 90.0
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 90.0
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "jump" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "idle"
move_speed = 1.36422e-12
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 1.36422e-12
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "idle" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "jump"
move_speed = 90.0
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 90.0
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "jump" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "land"
move_speed = 30.0
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 20.0
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "land" ]

View File

@ -9,9 +9,9 @@ script = ExtResource( 1 )
debug_state = false
timeout_seconds = 0.0
name = "roll"
move_speed = 150.0
move_acceleration = 0.0
move_speed_modifier = 0.0
move_modifier_move_acceleration = 0.0
horizontal_speed = 60.0
horizontal_acceleration = 0.0
horizontal_speed_offset = 0.0
horizontal_speed_offset_acceleration = 0.0
jerk_factor = 0.0
animation_sequence = [ "roll" ]