forked from team-sg/hero-mark-2
done with the scrump
This commit is contained in:
parent
298308d805
commit
f4a6c97ca1
39 changed files with 1147 additions and 8 deletions
|
@ -14,6 +14,7 @@ onready var shootpoint = $Position2D
|
|||
onready var blood_position = $BloodPosition
|
||||
onready var map = get_owner()
|
||||
const Projectile = preload("res://objects/enemy/boss/boss1_projectile.tscn")
|
||||
const Gore = preload("res://objects/enemy/boss/boss1_gore.tscn")
|
||||
|
||||
|
||||
func _ready():
|
||||
|
@ -28,6 +29,7 @@ func _on_ShootTimer_timeout():
|
|||
|
||||
func die():
|
||||
hp -= 1
|
||||
Game.play_sound(Game.a_die,Game.ac_boss)
|
||||
match hp:
|
||||
2:
|
||||
emit_signal("entered_phase", 2)
|
||||
|
@ -38,9 +40,15 @@ func die():
|
|||
speed = phase3_speed
|
||||
shoot_time = Vector2(0.3,0.5)
|
||||
0:
|
||||
.die()
|
||||
Game.instance_node(Gore,position.x,position.y,map)
|
||||
Game.play_sound(Game.a_gover,Game.ac_boss)
|
||||
emit_signal("entered_phase",4)
|
||||
queue_free()
|
||||
|
||||
#Bleed particles
|
||||
var death_particles = DeathParticles.instance()
|
||||
death_particles.global_position = blood_position.global_position
|
||||
death_particles.emitting = true
|
||||
death_particles.amount = 64
|
||||
death_particles.lifetime = 0.45
|
||||
get_parent().add_child(death_particles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue