Reworked other weapons
This commit is contained in:
@@ -7,7 +7,6 @@ extends AbstractWeapon
|
||||
@onready var right_particles : GPUParticles2D = $ShotParticles/Right
|
||||
@onready var shell_particles : GPUParticles2D = $ShellParticles
|
||||
@onready var cooldown_timer : Timer = $CooldownTimer
|
||||
@onready var muzzle : Node2D = $Muzzle
|
||||
|
||||
|
||||
func set_belonging(belonging: Belonging) -> void:
|
||||
@@ -27,10 +26,6 @@ func shoot(ship_velocity: Vector2) -> bool:
|
||||
return is_shot
|
||||
|
||||
|
||||
func _get_projectile_position() -> Vector2:
|
||||
return muzzle.position
|
||||
|
||||
|
||||
func _restart_particles() -> void:
|
||||
front_particles.restart()
|
||||
left_particles.restart()
|
||||
|
||||
@@ -211,7 +211,7 @@ process_material = SubResource("ParticleProcessMaterial_nrbut")
|
||||
wait_time = 1.2
|
||||
one_shot = true
|
||||
|
||||
[node name="Muzzle" type="Node2D" parent="." index="4"]
|
||||
[node name="Muzzle" parent="." index="4"]
|
||||
position = Vector2(20, 0)
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]
|
||||
|
||||
Reference in New Issue
Block a user