|
@@ -1,9 +1,10 @@
|
|
-[gd_scene load_steps=5 format=2]
|
|
|
|
|
|
+[gd_scene load_steps=6 format=2]
|
|
|
|
|
|
[ext_resource path="res://Scripts/MainCamera.gd" type="Script" id=1]
|
|
[ext_resource path="res://Scripts/MainCamera.gd" type="Script" id=1]
|
|
[ext_resource path="res://Scripts/LevelSwap.gd" type="Script" id=2]
|
|
[ext_resource path="res://Scripts/LevelSwap.gd" type="Script" id=2]
|
|
[ext_resource path="res://Scripts/Game.gd" type="Script" id=3]
|
|
[ext_resource path="res://Scripts/Game.gd" type="Script" id=3]
|
|
[ext_resource path="res://Scenes/Hub.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://Scenes/Hub.tscn" type="PackedScene" id=4]
|
|
|
|
+[ext_resource path="res://Scripts/UI.gd" type="Script" id=5]
|
|
|
|
|
|
[node name="Game" type="Node2D"]
|
|
[node name="Game" type="Node2D"]
|
|
script = ExtResource( 3 )
|
|
script = ExtResource( 3 )
|
|
@@ -21,6 +22,7 @@ one_shot = true
|
|
[node name="Ui" type="Control" parent="."]
|
|
[node name="Ui" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
+script = ExtResource( 5 )
|
|
__meta__ = {
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
"_edit_use_anchors_": false
|
|
}
|
|
}
|
|
@@ -36,9 +38,32 @@ __meta__ = {
|
|
"_edit_use_anchors_": false
|
|
"_edit_use_anchors_": false
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+[node name="PressButton" type="Label" parent="Ui"]
|
|
|
|
+margin_left = -502.476
|
|
|
|
+margin_top = -260.0
|
|
|
|
+margin_right = 497.524
|
|
|
|
+margin_bottom = -246.0
|
|
|
|
+text = "Click on left button to spawn player"
|
|
|
|
+align = 1
|
|
|
|
+__meta__ = {
|
|
|
|
+"_edit_use_anchors_": false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+[node name="InputList" type="Label" parent="Ui"]
|
|
|
|
+margin_left = -502.476
|
|
|
|
+margin_top = -238.0
|
|
|
|
+margin_right = 497.524
|
|
|
|
+margin_bottom = -224.0
|
|
|
|
+text = "List of player controls"
|
|
|
|
+align = 1
|
|
|
|
+__meta__ = {
|
|
|
|
+"_edit_use_anchors_": false
|
|
|
|
+}
|
|
|
|
+
|
|
[node name="Hub" parent="." instance=ExtResource( 4 )]
|
|
[node name="Hub" parent="." instance=ExtResource( 4 )]
|
|
|
|
|
|
[node name="LevelSwap" type="Tween" parent="."]
|
|
[node name="LevelSwap" type="Tween" parent="."]
|
|
script = ExtResource( 2 )
|
|
script = ExtResource( 2 )
|
|
-[connection signal="timeout" from="StartTimer" to="." method="_on_start_game"]
|
|
|
|
[connection signal="timeout" from="StartTimer" to="Ui" method="hide"]
|
|
[connection signal="timeout" from="StartTimer" to="Ui" method="hide"]
|
|
|
|
+[connection signal="timeout" from="StartTimer" to="." method="_on_start_game"]
|
|
|
|
+[connection signal="input_list_updated" from="Hub" to="Ui" method="_on_Hub_input_list_updated"]
|