Added PlasmaWeapon textures

This commit is contained in:
2025-11-23 19:04:34 +03:00
parent a6185d7ce1
commit 3e5e2dbe0f
15 changed files with 178 additions and 121 deletions
@@ -14,7 +14,6 @@ func shoot(ship_velocity: Vector2) -> bool:
var is_shot := super.shoot(ship_velocity)
if is_shot:
sprite.play(PREFIXES[_belonging] + SHOT_POSTFIX)
print(1, sprite.animation)
_can_shoot = false
return is_shot
@@ -23,9 +22,6 @@ func shoot(ship_velocity: Vector2) -> bool:
func _on_animated_sprite_2d_animation_finished() -> void:
if sprite.animation.ends_with(SHOT_POSTFIX):
sprite.play(PREFIXES[_belonging] + RELOAD_POSTFIX)
print(PREFIXES[_belonging] + RELOAD_POSTFIX)
print(2, sprite.animation)
else:
sprite.play(PREFIXES[_belonging] + IDLE_POSTFIX)
print(3, sprite.animation)
_can_shoot = true