diff options
Diffstat (limited to 'rooms/cine_intro.gd')
| -rw-r--r-- | rooms/cine_intro.gd | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/rooms/cine_intro.gd b/rooms/cine_intro.gd index fc6c881..5c08744 100644 --- a/rooms/cine_intro.gd +++ b/rooms/cine_intro.gd @@ -1,18 +1,9 @@ -class_name CineIntro -extends Node2D +class_name RoomCineIntro +extends Room +@onready var top: Top = get_tree().root.get_node("Top") +# Called when the node enters the scene tree for the first time. func _ready() -> void: - run() - -func run(): - var top: Top = get_tree().root.get_node("Top") - - $AnimationPlayer.play("cine_intro") - await get_tree().create_timer(0.5).timeout - top.play_cine_bars() - - await $AnimationPlayer.animation_finished - - top.get_transition_player().room_transition(null, "res://rooms/ship1.tscn", null, - func (_player): pass) + var cine = CineIntro.new() + top.add_child(cine) |
