forked from team-sg/hero-mark-2
add final boss to level select, make bullets hurt famira
This commit is contained in:
parent
c28e105e78
commit
f0a6cb49f3
8 changed files with 160 additions and 8 deletions
|
@ -7,7 +7,7 @@ signal health_changed(amount)
|
|||
|
||||
enum State {DEAD, STAND, FORWARD, BACK, DUCK, BEAM}
|
||||
|
||||
const Bullet = preload("res://objects/enemy/2600_bullet.tscn")
|
||||
const Bullet = preload("res://objects/enemy/2083_bullet.tscn")
|
||||
const SmallExplosion = preload("res://objects/enemy/boss/2600_small_explosion.tscn")
|
||||
|
||||
|
||||
|
@ -16,6 +16,7 @@ export var shot_speed: float = 50.0
|
|||
export var move_speed: float = 30.0
|
||||
export var safe_from_breath: bool = false
|
||||
export var make_explosions: bool = false
|
||||
export var bullet_damage: float = 1.0
|
||||
export var explosion_rect: Rect2
|
||||
export var famira_path: NodePath
|
||||
|
||||
|
@ -70,6 +71,7 @@ func shoot() -> void:
|
|||
bullet.global_position = pos.global_position
|
||||
bullet.direction = Vector2.LEFT.rotated(pos.rotation)
|
||||
bullet.speed = shot_speed
|
||||
bullet.damage = bullet_damage
|
||||
get_parent().add_child(bullet)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue