Added railgun textures

This commit is contained in:
2025-11-23 17:46:57 +03:00
parent 6c142dd695
commit a6185d7ce1
14 changed files with 241 additions and 74 deletions
-6
View File
@@ -81,12 +81,6 @@ func shoot(weapon_index: int) -> void:
_weapons[weapon_index].shoot(velocity)
func reload(weapon_index: int) -> void:
if weapon_index >= _weapons.size(): return
_weapons[weapon_index].reload()
func _get_new_speed(accel: float, decel: float, current_speed: float) -> float:
if is_zero_approx(accel):
if absf(current_speed) < decel:
@@ -38,5 +38,4 @@ offset_bottom = 22.0
[node name="PlayerController" parent="." index="4" instance=ExtResource("3_4mjo1")]
[connection signal="accelerate" from="PlayerController" to="." method="accelerate"]
[connection signal="reload" from="PlayerController" to="." method="reload"]
[connection signal="shoot" from="PlayerController" to="." method="shoot"]