-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
186 lines (153 loc) · 4.38 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[gd_scene load_steps=8 format=1]
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://buttons/grass.png" type="Texture" id=2]
[ext_resource path="res://buttons/cliff.png" type="Texture" id=3]
[ext_resource path="res://players/player_1.png" type="Texture" id=4]
[ext_resource path="res://players/player_2.png" type="Texture" id=5]
[ext_resource path="res://misc/save.png" type="Texture" id=6]
[ext_resource path="res://misc/menu.png" type="Texture" id=7]
[node name="main" type="Node2D"]
script/script = ExtResource( 1 )
[node name="gui" type="Control" parent="."]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 40.0
margin/bottom = 40.0
[node name="buttons" type="ButtonGroup" parent="gui"]
focus/ignore_mouse = false
focus/stop_mouse = false
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 100.0
margin/bottom = 750.0
alignment = 0
[node name="tile_grass" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 100.0
margin/bottom = 38.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Grass"
icon = ExtResource( 2 )
flat = false
[node name="tile_cliff" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 38.0
margin/right = 100.0
margin/bottom = 76.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Cliff"
icon = ExtResource( 3 )
flat = false
[node name="tile_p1" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 76.0
margin/right = 100.0
margin/bottom = 114.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Player 1"
icon = ExtResource( 4 )
flat = false
[node name="tile_p2" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 114.0
margin/right = 100.0
margin/bottom = 152.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Player 2"
icon = ExtResource( 5 )
flat = false
[node name="tile_save" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 152.0
margin/right = 100.0
margin/bottom = 190.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Save"
icon = ExtResource( 6 )
flat = false
[node name="tile_menu" type="Button" parent="gui/buttons"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 190.0
margin/right = 100.0
margin/bottom = 228.0
toggle_mode = true
click_on_press = true
enabled_focus_mode = 2
shortcut = null
text = "Menu"
icon = ExtResource( 7 )
flat = false
[node name="AcceptDialog" type="AcceptDialog" parent="gui"]
visibility/visible = false
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 510.0
margin/top = 349.0
margin/right = 613.0
margin/bottom = 407.0
popup/exclusive = false
window/title = "Notice"
dialog/text = "Map is Saved."
dialog/hide_on_ok = true
[node name="player_1" type="Sprite" parent="."]
transform/pos = Vector2( -18.5608, 16.7646 )
z/z = 2
texture = ExtResource( 4 )
[node name="player_2" type="Sprite" parent="."]
transform/pos = Vector2( -18.5608, 16.7646 )
z/z = 2
texture = ExtResource( 5 )
[connection signal="pressed" from="gui/buttons/tile_grass" to="." method="_on_tile_grass_pressed"]
[connection signal="pressed" from="gui/buttons/tile_cliff" to="." method="_on_tile_cliff_pressed"]
[connection signal="pressed" from="gui/buttons/tile_p1" to="." method="_on_tile_p1_pressed"]
[connection signal="pressed" from="gui/buttons/tile_p2" to="." method="_on_tile_p2_pressed"]
[connection signal="pressed" from="gui/buttons/tile_save" to="." method="_on_tile_save_pressed"]
[connection signal="pressed" from="gui/buttons/tile_menu" to="." method="_on_tile_menu_pressed"]