small boss progess
This commit is contained in:
parent
986c83ec8f
commit
3f9103b1c8
42 changed files with 769 additions and 54 deletions
|
|
@ -2,10 +2,14 @@ extends Sprite2D
|
|||
|
||||
@export var start_mask : MaskData
|
||||
@export var spawn : RoomSpawn
|
||||
var triggered = false
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _input(event: InputEvent) -> void:
|
||||
if triggered: return
|
||||
var player : Player = get_tree().get_first_node_in_group("player")
|
||||
if player.global_position.distance_to(global_position) < 50:
|
||||
if Input.is_action_pressed("interact"):
|
||||
player.equip_mask(start_mask)
|
||||
spawn.start_next_wave()
|
||||
|
||||
if (event.is_action_pressed("interact") and
|
||||
player.global_position.distance_to(global_position) < 50):
|
||||
player.equip_mask(start_mask)
|
||||
spawn.start_next_wave()
|
||||
triggered = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue