summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/menu.gd5
-rw-r--r--scenes/menu.tscn86
2 files changed, 69 insertions, 22 deletions
diff --git a/scenes/menu.gd b/scenes/menu.gd
index 536410d..7ce511c 100644
--- a/scenes/menu.gd
+++ b/scenes/menu.gd
@@ -10,4 +10,9 @@ func _on_Exit_on_click():
func _on_Strart_on_click():
+ if not $Outgoing.is_playing():
+ $Outgoing.play("tointro")
+
+
+func _on_Outgoing_animation_finished(anim_name):
get_tree().change_scene("res://scenes/introduction.tscn")
diff --git a/scenes/menu.tscn b/scenes/menu.tscn
index 75156ea..3c1a67d 100644
--- a/scenes/menu.tscn
+++ b/scenes/menu.tscn
@@ -1,9 +1,9 @@
-[gd_scene load_steps=11 format=2]
+[gd_scene load_steps=12 format=2]
[ext_resource path="res://components/Logo.tscn" type="PackedScene" id=1]
[ext_resource path="res://components/button.tscn" type="PackedScene" id=2]
[ext_resource path="res://textures/backgrounds/background_grey.png" type="Texture" id=3]
-[ext_resource path="res://textures/backgrounds/background__darkblue.png" type="Texture" id=4]
+[ext_resource path="res://textures/backgrounds/background_blue.png" type="Texture" id=4]
[ext_resource path="res://scenes/menu.gd" type="Script" id=5]
[ext_resource path="res://textures/texts/name.png" type="Texture" id=6]
[ext_resource path="res://textures/icons/light_bulb.png" type="Texture" id=7]
@@ -20,7 +20,7 @@ frame_1/delay_sec = 0.0
resource_name = "startgame"
length = 3.0
tracks/0/type = "bezier"
-tracks/0/path = NodePath("Sprite2:position:y")
+tracks/0/path = NodePath("Content/Badge:position:y")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
@@ -30,7 +30,7 @@ tracks/0/keys = {
"times": PoolRealArray( 0, 1 )
}
tracks/1/type = "bezier"
-tracks/1/path = NodePath("Strart:position:x")
+tracks/1/path = NodePath("Content/Strart:position:x")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
@@ -40,7 +40,7 @@ tracks/1/keys = {
"times": PoolRealArray( 0.8, 2 )
}
tracks/2/type = "bezier"
-tracks/2/path = NodePath("Exit:position:x")
+tracks/2/path = NodePath("Content/Exit:position:x")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
@@ -50,46 +50,88 @@ tracks/2/keys = {
"times": PoolRealArray( 0.8, 2 )
}
+[sub_resource type="Animation" id=3]
+resource_name = "tointro"
+length = 2.0
+tracks/0/type = "bezier"
+tracks/0/path = NodePath("Content:position:x")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 497.816, -0.14, -809.227, 0.25, 0 ),
+"times": PoolRealArray( 0, 1.7 )
+}
+tracks/1/type = "bezier"
+tracks/1/path = NodePath("Content:position:y")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/keys = {
+"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 1396.56, -0.78, -1437.99, 0.25, 0 ),
+"times": PoolRealArray( 0, 1.7 )
+}
+tracks/2/type = "bezier"
+tracks/2/path = NodePath("Content:rotation_degrees")
+tracks/2/interp = 1
+tracks/2/loop_wrap = true
+tracks/2/imported = false
+tracks/2/enabled = true
+tracks/2/keys = {
+"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, -18.2908, -1.37, 10, 0.25, 0 ),
+"times": PoolRealArray( 0, 1.7 )
+}
+
[node name="Node2D" type="Node2D"]
script = ExtResource( 5 )
-[node name="Sprite" type="Sprite" parent="."]
+[node name="Background" type="Sprite" parent="."]
position = Vector2( 640, 360 )
scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 3 )
-[node name="Sprite2" type="Sprite" parent="."]
+[node name="Content" type="Node2D" parent="."]
+
+[node name="Badge" type="Node2D" parent="Content"]
position = Vector2( 630.621, 247.313 )
-scale = Vector2( 0.744024, 0.314293 )
+
+[node name="bluestripe" type="Sprite" parent="Content/Badge"]
+position = Vector2( -1.27783, -0.902592 )
+scale = Vector2( 1, 0.313508 )
texture = ExtResource( 4 )
-[node name="logo" parent="Sprite2" instance=ExtResource( 1 )]
-position = Vector2( -504.09, 3.49988 )
+[node name="logo" parent="Content/Badge" instance=ExtResource( 1 )]
+position = Vector2( -391.384, -2.8497 )
rotation = -4.13912e-07
-scale = Vector2( 1.34404, 3.18174 )
-[node name="name" type="Sprite" parent="Sprite2"]
-position = Vector2( 47.6652, -4.09491 )
-scale = Vector2( 5.57696, 13.2023 )
+[node name="name" type="Sprite" parent="Content/Badge"]
+scale = Vector2( 2.91971, 2.91971 )
texture = ExtResource( 6 )
-[node name="lightbuldb" type="Sprite" parent="Sprite2"]
-position = Vector2( 606.525, -8.34259 )
-scale = Vector2( 5.85727, 13.8659 )
+[node name="lightbuldb" type="Sprite" parent="Content/Badge"]
+position = Vector2( 409.688, -8.34259 )
+scale = Vector2( 4, 4 )
texture = SubResource( 1 )
-[node name="Exit" parent="." instance=ExtResource( 2 )]
+[node name="Exit" parent="Content" instance=ExtResource( 2 )]
position = Vector2( 850, 500 )
text = "Exit"
fixed_width = 150
-[node name="Strart" parent="." instance=ExtResource( 2 )]
+[node name="Strart" parent="Content" instance=ExtResource( 2 )]
position = Vector2( 450, 500 )
text = "Start"
fixed_width = 150
-[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+[node name="Transitions" type="AnimationPlayer" parent="."]
autoplay = "startgame"
anims/startgame = SubResource( 2 )
-[connection signal="on_click" from="Exit" to="." method="_on_Exit_on_click"]
-[connection signal="on_click" from="Strart" to="." method="_on_Strart_on_click"]
+
+[node name="Outgoing" type="AnimationPlayer" parent="."]
+anims/tointro = SubResource( 3 )
+[connection signal="on_click" from="Content/Exit" to="." method="_on_Exit_on_click"]
+[connection signal="on_click" from="Content/Strart" to="." method="_on_Strart_on_click"]
+[connection signal="animation_finished" from="Transitions" to="." method="_on_Transitions_animation_finished"]
+[connection signal="animation_finished" from="Outgoing" to="." method="_on_Outgoing_animation_finished"]