give the pigs' guns a little more BANG for their buck HAHAHAHAHAHAHAHAHAHA

This commit is contained in:
Haze Weathers 2023-03-24 21:22:39 -04:00
parent 64ff2d38df
commit 659e812189
4 changed files with 67 additions and 1 deletions

View file

@ -15,6 +15,7 @@ onready var shoot_cast = $"%ShootCast"
onready var graphics_cast = $"%GraphicsCast"
onready var shoot_line = $"%ShootLine"
onready var sparks = $SparkParticles
onready var muzzle_flash = $"%MuzzleFlashParticles"
var shooting = false
var turns = 0
@ -40,6 +41,10 @@ func _physics_process(delta):
if collider != null && collider.is_in_group("player"):
# kill player and enter shooting state temporarily
collider.get_parent().die()
# play sound
Audio.play_sound(Audio.a_die_robot, Audio.ac_boss)
# muzzle flash
muzzle_flash.emitting = true
shooting = true
get_tree().create_timer(0.05, false).connect("timeout", self, "_stop_shoot")
sprite.play("shoot")