-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.tscn
131 lines (107 loc) · 3.36 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Fonts/MinimalFont5x7.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://Fonts/Gamer.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://Scripts/StartScreen.gd" type="Script" id=3]
[ext_resource path="res://Players/Player.tscn" type="PackedScene" id=4]
[sub_resource type="DynamicFont" id=3]
size = 32
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=1]
size = 48
font_data = ExtResource( 1 )
[sub_resource type="DynamicFont" id=2]
size = 32
font_data = ExtResource( 2 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 199.775, 5.2211 )
[node name="Main" type="Node2D"]
[node name="ScreenBackground" type="ColorRect" parent="."]
margin_right = 400.0
margin_bottom = 240.0
color = Color( 0.67451, 0.619608, 0.619608, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HUD" type="Control" parent="."]
margin_right = 400.0
margin_bottom = 240.0
__meta__ = {
"_edit_group_": true,
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="HUD"]
margin_right = 400.0
margin_bottom = 30.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Time" type="Label" parent="HUD/CenterContainer"]
margin_left = 200.0
margin_top = 2.0
margin_right = 200.0
margin_bottom = 28.0
custom_fonts/font = SubResource( 3 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
[node name="World" type="Node2D" parent="."]
[node name="Player" parent="." instance=ExtResource( 4 )]
position = Vector2( 91.337, 141.716 )
[node name="Player2" parent="." instance=ExtResource( 4 )]
position = Vector2( 311.23, 145.915 )
player_id = 2
[node name="StartScreen" type="Node2D" parent="."]
visible = false
script = ExtResource( 3 )
[node name="ColorRect" type="ColorRect" parent="StartScreen"]
margin_left = -0.66626
margin_right = 399.334
margin_bottom = 240.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GameTitle" type="Label" parent="StartScreen"]
margin_right = 399.0
margin_bottom = 55.0
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Magnificent Magnets"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MyName" type="Label" parent="StartScreen"]
margin_top = 51.6657
margin_right = 398.0
margin_bottom = 121.666
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "A GMTK 2021 Game
By Joshua Dyer"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="StartScreen"]
margin_top = 120.0
margin_right = 400.0
margin_bottom = 220.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VSplitContainer" type="VSplitContainer" parent="StartScreen/CenterContainer"]
margin_left = 200.0
margin_top = 50.0
margin_right = 200.0
margin_bottom = 50.0
[node name="TwoPlayer" type="Button" parent="StartScreen/CenterContainer/VSplitContainer"]
pause_mode = 2
margin_right = 122.0
margin_bottom = 20.0
text = "Two Player Battle"
[node name="Player2Position" type="Position2D" parent="StartScreen"]
[node name="Floor" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
position = Vector2( 199.072, 243.942 )
shape = SubResource( 4 )
[connection signal="pressed" from="StartScreen/CenterContainer/VSplitContainer/TwoPlayer" to="StartScreen" method="_on_TwoPlayer_pressed"]