Added railgun textures
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user