diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-02-05 22:02:42 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-02-05 23:11:06 +0200 |
| commit | 8967f6bb6e8ecb3b5b4073424692ce0ddfec61cb (patch) | |
| tree | 5961c0b5226d077c6b1e97c02c1f5fcc1d6a729f /rooms/cine_intro.gd | |
| parent | f53d1d99707c5063a35c0c68890e0947077108ad (diff) | |
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) |
