feat: add state machine movement classes, double barrel shotgun weapon, and test level builder utility

This commit is contained in:
DottsGit
2026-06-04 01:21:50 -04:00
parent a54b3d89b1
commit 45fb7f0f38
6 changed files with 177 additions and 42 deletions
+2 -1
View File
@@ -93,7 +93,8 @@ func update(delta: float) -> void:
var hvel := Vector3(player.velocity.x, 0.0, player.velocity.z)
if hvel.length_squared() > 0.01:
var dir := hvel.normalized()
var jump_speed := minf(hvel.length() + params.slide_jump_speed_boost, params.bunny_hop_speed_cap)
var current_speed := hvel.length()
var jump_speed := maxf(current_speed, minf(current_speed + params.slide_jump_speed_boost, params.bunny_hop_speed_cap))
player.velocity.x = dir.x * jump_speed
player.velocity.z = dir.z * jump_speed
machine.current_jump_count = 1