-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame1.tscn
153 lines (122 loc) · 4.91 KB
/
game1.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
[gd_scene load_steps=15 format=3 uid="uid://d1pa7x6jhiaup"]
[ext_resource type="Script" path="res://TileMap1.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://c85yy2ih3rh4a" path="res://images/unknown.png" id="2"]
[ext_resource type="Texture2D" uid="uid://c4wmbimc0l2o" path="res://images/flag.png" id="2_u444n"]
[ext_resource type="Texture2D" uid="uid://cge5a02rsvkuh" path="res://images/no_bombs.png" id="3"]
[ext_resource type="Texture2D" uid="uid://fukgceyhlsai" path="res://images/bomb.png" id="3_kinw1"]
[ext_resource type="Texture2D" uid="uid://du0vx8ibfedhl" path="res://images/numbers2.png" id="4"]
[ext_resource type="Script" path="res://Label.gd" id="8"]
[sub_resource type="GDScript" id="6"]
resource_local_to_scene = true
script/source = "extends Label
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_TileMap_bomb_count_change(bombs):
self.text = str(bombs)
pass # Replace with function body.
"
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_h6kn6"]
texture = ExtResource("2_u444n")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3f0cn"]
texture = ExtResource("2")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_1r7v1"]
texture = ExtResource("3")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_kfxcf"]
texture = ExtResource("3_kinw1")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_qbuik"]
texture = ExtResource("4")
texture_region_size = Vector2i(64, 64)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
3:0/0 = 0
4:0/0 = 0
5:0/0 = 0
6:0/0 = 0
7:0/0 = 0
8:0/0 = 0
9:0/0 = 0
[sub_resource type="TileSet" id="TileSet_ybbpn"]
tile_size = Vector2i(64, 64)
sources/1 = SubResource("TileSetAtlasSource_3f0cn")
sources/2 = SubResource("TileSetAtlasSource_1r7v1")
sources/3 = SubResource("TileSetAtlasSource_kfxcf")
sources/4 = SubResource("TileSetAtlasSource_qbuik")
sources/0 = SubResource("TileSetAtlasSource_h6kn6")
[node name="Node2D" type="Node2D"]
[node name="CenterContainer" type="CenterContainer" parent="."]
offset_right = 141.0
offset_bottom = 26.0
size_flags_horizontal = 3
size_flags_vertical = 0
[node name="PanelContainer" type="PanelContainer" parent="CenterContainer"]
custom_minimum_size = Vector2(129, 64)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/PanelContainer"]
layout_mode = 2
size_flags_vertical = 0
[node name="HBoxContainer2" type="HBoxContainer" parent="CenterContainer/PanelContainer/HBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer2"]
show_behind_parent = true
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Bombs: "
[node name="Label2" type="Label" parent="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer2"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "0"
script = SubResource("6")
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/PanelContainer/HBoxContainer"]
layout_mode = 2
[node name="Label3" type="Label" parent="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer"]
show_behind_parent = true
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Time: "
[node name="Label" type="Label" parent="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "0"
script = ExtResource("8")
[node name="TileMap" type="TileMap" parent="."]
position = Vector2(0, 64)
tile_set = SubResource("TileSet_ybbpn")
format = 2
layer_0/name = "Visib"
layer_0/tile_data = PackedInt32Array(-786385, 1, 0)
layer_1/name = "Numbers"
layer_1/enabled = true
layer_1/modulate = Color(1, 1, 1, 1)
layer_1/y_sort_enabled = false
layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array()
layer_2/name = "Flags / Bombs"
layer_2/enabled = true
layer_2/modulate = Color(1, 1, 1, 1)
layer_2/y_sort_enabled = false
layer_2/y_sort_origin = 0
layer_2/z_index = -1
layer_2/tile_data = PackedInt32Array()
script = ExtResource("1")
[connection signal="bomb_count_change" from="TileMap" to="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer2/Label2" method="_on_TileMap_bomb_count_change"]
[connection signal="level_started" from="TileMap" to="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer/Label" method="_on_TileMap_level_started"]
[connection signal="level_stopped" from="TileMap" to="CenterContainer/PanelContainer/HBoxContainer/HBoxContainer/Label" method="_on_TileMap_level_stopped"]