Skip to content

Commit

Permalink
#13 intro wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Eptwalabha committed Mar 12, 2024
1 parent d46c7bd commit dc6f196
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
16 changes: 8 additions & 8 deletions i18n/local/en/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ msgstr ""

#: scene/level/frozen.tscn
msgid "INTRO_WHERE_AM_I"
msgstr "What?... where am I?"
msgstr "What?...\nWhere am I?"

#: scene/level/frozen.tscn
msgid "DID_I_JUST_CRASH_MY_CAR"
Expand All @@ -29,16 +29,16 @@ msgstr "Have I crashed the car?"
#: scene/level/frozen.tscn
msgid "I_NEED_HELP"
msgstr ""
"It's getting cold here.\n"
"I need to get some help"
"It's getting cold.\n"
"I need to get help"

#: scene/level/frozen.tscn
msgid "THE_CAR_BATTERY_DIED"
msgstr "Great! Now the car's battery's dead"
msgstr "Great... Now the battery's dead"

#: scene/level/frozen.tscn
msgid "FIRST_ENCOUNTER"
msgstr "What the hell was that!"
msgstr "WHAT THE HELL WAS THAT!"

#: scene/level/frozen.tscn
msgid "FORCE_TRUNK"
Expand All @@ -51,14 +51,14 @@ msgstr "Lower the bridge"
#: scene/level/frozen.tscn
msgid "TUTORIAL_VERY_DARK"
msgstr ""
"I can't go that way...\n"
"I don't see anything."
"No...\n"
"I can't see anything."

#: scene/level/frozen.tscn
msgid "TUTORIAL_TOO_DARK"
msgstr ""
"It's too dark, I need a light\n"
"I think I've got one in the trunk of the car"
"I have one back in the trunk"

#: scene/level/frozen.tscn
msgid "test one two"
Expand Down
17 changes: 7 additions & 10 deletions scene/cutscenes/cut_scene_intro.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ func start() -> void:

func _on_triggered_emited(trigger_id: StringName) -> void:
if trigger_id == &"car_battery_died":
level.player.enters_cutscene(true)
GameUI.request_dialog($Dialogs/CarBatteryIsDead)
await GameData.dialog_ended
level.player.looks_left(false)
battery_car_dies_out()
car_battery_died()


func player_wakesup() -> void:
level.player.get_up()


func battery_car_dies_out() -> void:
func car_battery_died() -> void:
level.player.enters_cutscene(true)
await get_tree().create_timer(0.5).timeout
GameUI.request_dialog($Dialogs/CarBatteryIsDead)
await GameData.dialog_ended
level.player.looks_left(false)
shade = level.spawn_enemy_at("tutorial_spawner")
shade.global_position = level.player.global_position + Vector2(60.0, 0.0)
shade.target = level.player
Expand Down
1 change: 1 addition & 0 deletions scene/level/map/frozen_map.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var player: Player
@onready var darkness: PointLight2D = %Darkness
@onready var tutorial_boundary: CollisionShape2D = %TutorialBoundary
@onready var markers = $Map/Markers
@onready var car: Car = %Car


func _ready() -> void:
Expand Down
1 change: 1 addition & 0 deletions scene/level/map/frozen_map.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ metadata/id = &"tutorial_spawner"
[node name="Props" type="Node2D" parent="."]

[node name="Car" parent="Props" instance=ExtResource("4_aeg14")]
unique_name_in_owner = true
position = Vector2(-44, -2)

[node name="Physics" type="Node2D" parent="."]
Expand Down

0 comments on commit dc6f196

Please sign in to comment.