diff --git a/src/CutScenes/ChallengeCutscene.gd b/src/CutScenes/ChallengeCutscene.gd index 31f1b20..b16a1d5 100644 --- a/src/CutScenes/ChallengeCutscene.gd +++ b/src/CutScenes/ChallengeCutscene.gd @@ -10,21 +10,31 @@ var _old_man_dialog = [ "callback": null }, { - "text": "You see that tree over there?", - "callback": null - }, - ] -var _old_man_dialog2 = [ - { - "text": "Oh, yeah - not there...", + "text": "Basically, you are already dead", "callback": null }, { - "text": "Forgive me, never thought you would really take a look", + "text": "Sorry, you hear that from me\n But fear not!", "callback": null }, { - "text": "Never mind Bro. See the path ahead? There is a tree in that cave.", + "text": "To redeam your self i crafted 10 challanges for ya", + "callback": null + }, + { + "text": "You have ten minutes to complete them all and collect as meny Coins and Orbs as you can", + "callback": null + }, + { + "text": "You will fail, learn from your mistakes. Just try to fail as little as possible", + "callback": null + }, + { + "text": "Questions?", + "callback": null + }, + { + "text": "*COUGH* Anyway, Good luck, and mind you step!", "callback": null }, ] @@ -57,31 +67,8 @@ func start_scene(camera:CameraGame = null): $AnimationPlayer.play("old_dude_slide_out") yield($AnimationPlayer, "animation_finished") - # pan Camera - $Tween.interpolate_property(_camera, "position", _camera.position, Vector2( _camera.position.x - 400, _camera.position.y), 2) - $Tween.start() - yield($Tween, "tween_completed") + camera.get_parent().boost(Vector2(0,-200)) - # wait a bit to get a "haha" timing - yield(get_tree().create_timer(2), "timeout") - - #pan back - $Tween.interpolate_property(_camera, "position", _camera.position, _camera.get_parent().position, 2, Tween.TRANS_BOUNCE, Tween.EASE_OUT) - $Tween.start() - yield($Tween, "tween_completed") - camera.get_parent().boost(Vector2(0,-100)) - # Dialog 2 - $AnimationPlayer.play("old_dude_slide_in") - yield($AnimationPlayer, "animation_finished") - - dialog_bubble = _dialog_bubble.instance() - dialog_bubble.dialog = _old_man_dialog2 - $Overlay.add_child(dialog_bubble) - dialog_bubble.start_dialog() - yield(dialog_bubble, "dialog_finished") - - $AnimationPlayer.play("old_dude_slide_out") - yield($AnimationPlayer, "animation_finished") # diff --git a/src/Intro/Intro.tscn b/src/Intro/Intro.tscn index deb7d05..5702c3d 100644 --- a/src/Intro/Intro.tscn +++ b/src/Intro/Intro.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=11 format=2] [ext_resource path="res://src/Intro/Intro.gd" type="Script" id=1] [ext_resource path="res://src/Menu/MainMenu.tscn" type="PackedScene" id=2] @@ -138,6 +138,10 @@ tracks/9/keys = { "values": [ Vector2( 3.50556, 3.50556 ), Vector2( 3.50556, 3.50556 ), Vector2( 512.534, 512.534 ) ] } +[sub_resource type="Environment" id=2] +background_mode = 4 +glow_enabled = true + [node name="Intro" type="Node2D"] pause_mode = 2 script = ExtResource( 1 ) @@ -184,3 +188,6 @@ position = Vector2( 42, 68.4516 ) scale = Vector2( 3.50556, 3.50556 ) enabled = false texture = ExtResource( 8 ) + +[node name="WorldEnvironment" type="WorldEnvironment" parent="."] +environment = SubResource( 2 )