diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-02-05 21:54:16 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-02-05 21:54:16 +0200 |
| commit | f53d1d99707c5063a35c0c68890e0947077108ad (patch) | |
| tree | 4fc47e986b520c9c0c746a20edc5015de24e207b /dialogues | |
| parent | 7241211bf3d960c0921c273cca5d10ad92734a61 (diff) | |
Work on intro cinematic
Diffstat (limited to 'dialogues')
| -rw-r--r-- | dialogues/cine_intro_ship1.gd | 27 | ||||
| -rw-r--r-- | dialogues/cine_intro_ship1.gd.uid | 1 | ||||
| -rw-r--r-- | dialogues/relic_get.gd | 2 |
3 files changed, 29 insertions, 1 deletions
diff --git a/dialogues/cine_intro_ship1.gd b/dialogues/cine_intro_ship1.gd new file mode 100644 index 0000000..fb9a5e4 --- /dev/null +++ b/dialogues/cine_intro_ship1.gd @@ -0,0 +1,27 @@ +class_name DialogueCineIntroShip1 +extends Dialogue + +@onready var top: Top = get_tree().root.get_node("Top") +@onready var player: Player = parent.get_node("Player") +@onready var captain: Node2D = parent.get_node("Captain") +@onready var crew1: Node2D = parent.get_node("Crew1") +@onready var crew2: Node2D = parent.get_node("Crew2") + +func _ready(): + player.remove_from_group("camera_target") + + await say(captain, "Crew!") + + player.velocity.x = -1 # flip + crew1.flip_h = true + crew2.flip_h = true + + await get_tree().create_timer(1.0).timeout + + await say(captain, "The Frogcorp Scientific Excursion commences today!") + await say(captain, "TODO") + + await top.clear_cine_bars() + + player.request_state_normal() + player.add_to_group("camera_target") diff --git a/dialogues/cine_intro_ship1.gd.uid b/dialogues/cine_intro_ship1.gd.uid new file mode 100644 index 0000000..50d36eb --- /dev/null +++ b/dialogues/cine_intro_ship1.gd.uid @@ -0,0 +1 @@ +uid://bgtapiu3u8vre diff --git a/dialogues/relic_get.gd b/dialogues/relic_get.gd index 1b770dd..a086c36 100644 --- a/dialogues/relic_get.gd +++ b/dialogues/relic_get.gd @@ -17,7 +17,7 @@ func _ready(): await top.play_cine_bars() await say(r, "You found a mysterious relic!") - top.clear_cine_bars() + await top.clear_cine_bars() r.queue_free() get_tree().paused = false |
