midori-school/levels/Testrooms/bullethell.gd

20 lines
610 B
GDScript3
Raw Normal View History

2024-01-27 23:38:20 +01:00
extends Node2D
var talk = load("res://levels/ui/talk.tscn").instantiate()
2024-01-29 01:52:01 +01:00
var boss
2024-01-27 23:38:20 +01:00
# Called when the node enters the scene tree for the first time.
func _ready():
2024-01-29 01:52:01 +01:00
boss = $Natasha
2024-01-29 01:57:21 +01:00
boss.add_to_group("boss")
2024-03-06 18:49:01 +01:00
Global.cdialog = [["What are you doing here?", true, 0, 0], ["Your father need help to debug this game", false, 9], ["Ok, i'll help too", true, 0, 0]]
2024-01-27 23:38:20 +01:00
Global.live = 0
get_tree().root.add_child.call(talk)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _input(event):
if Global.cdialog.size() == 0:
get_tree().root.remove_child(talk)