This commit is contained in:
2024-02-27 23:21:44 +01:00
parent ba37eca0c9
commit bfec08ff02
38 changed files with 89 additions and 92 deletions

View File

@ -23,4 +23,4 @@ signal name_changed(new_name: String)
func set_player_name(new_name: String):
name = new_name
name_changed.emit(new_name)
name_changed.emit(new_name)

View File

@ -13,7 +13,7 @@ func _ready():
state.transitioned.connect(on_transition)
animations = %AnimationPlayer
func _process(delta):
func _process(delta: float):
accumulated_delta += delta
if skipped_frames >= skip_frames:

View File

@ -4,7 +4,7 @@ extends Controller
var turn: float
var turn_speed: float = 2.0
func _process(delta):
func _process(delta: float):
if (Time.get_ticks_msec() / 1000) % 2 == 0:
direction_changed.emit(Vector3.ZERO)
else:

View File

@ -30,6 +30,7 @@ func _ready():
foot.attachment.bone_name = foot_name
foot.attachment.bone_idx = foot.bone_id
foot.audio.reparent(foot.attachment)
foot.audio.position = Vector3.ZERO
skeleton.add_child(foot.attachment)
feet.append(foot)
@ -62,7 +63,7 @@ func _process(delta: float):
play(foot.audio)
func _physics_process(_delta):
func _physics_process(_delta: float):
var space_state = get_world_3d().direct_space_state
for foot in feet:

View File

@ -12,7 +12,7 @@ func _ready():
assert(rotation_speed > 0, "rotation speed must be greater than zero")
character.controlled.connect(on_controlled)
func _process(delta):
func _process(delta: float):
if absf(angle_difference(root.rotation.y, angle)) < 0.001:
return

View File

@ -19,7 +19,7 @@ func _ready():
current = State.Idle
movement = character.get_node("Movement")
func _process(_delta):
func _process(_delta: float):
if current == State.Skill:
return