Skip to content

Commit c3d7ae3

Browse files
committed
update old examples
1 parent e213505 commit c3d7ae3

31 files changed

+47892
-33973
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/war-battles/build/
2+
/alien-world/build/
3+
/examples/build/
4+
/magic-link/build/
5+
/ocean-commotion/build/

alien-world/enemies/frog.collection

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@ name: "default"
22
scale_along_z: 0
33
embedded_instances {
44
id: "frog"
5-
data: "embedded_components {\n id: \"sprite\"\n type: \"sprite\"\n data: \"tile_set: \\\"/def-alien-world/sprites/frog.tilesource\\\"\\ndefault_animation: \\\"idle\\\"\\n\"\n position {\n x: 0.0\n y: 17.5\n z: 0.0\n }\n rotation {\n x: 0.0\n y: 0.0\n z: 0.0\n w: 1.0\n }\n}\n"
5+
data: "embedded_components {\n"
6+
" id: \"sprite\"\n"
7+
" type: \"sprite\"\n"
8+
" data: \"tile_set: \\\"/def-alien-world/sprites/frog.tilesource\\\"\\n"
9+
"default_animation: \\\"idle\\\"\\n"
10+
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
11+
"blend_mode: BLEND_MODE_ALPHA\\n"
12+
"\"\n"
13+
" position {\n"
14+
" x: 0.0\n"
15+
" y: 17.5\n"
16+
" z: 0.0\n"
17+
" }\n"
18+
" rotation {\n"
19+
" x: 0.0\n"
20+
" y: 0.0\n"
21+
" z: 0.0\n"
22+
" w: 1.0\n"
23+
" }\n"
24+
"}\n"
25+
""
626
position {
727
x: 0.0
828
y: 0.0

alien-world/enemies/skull.collection

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@ name: "default"
22
scale_along_z: 0
33
embedded_instances {
44
id: "skull"
5-
data: "embedded_components {\n id: \"sprite\"\n type: \"sprite\"\n data: \"tile_set: \\\"/def-alien-world/sprites/skull.tilesource\\\"\\ndefault_animation: \\\"fly\\\"\\n\"\n position {\n x: 0.0\n y: 17.5\n z: 0.0\n }\n rotation {\n x: 0.0\n y: 0.0\n z: 0.0\n w: 1.0\n }\n}\n"
5+
data: "embedded_components {\n"
6+
" id: \"sprite\"\n"
7+
" type: \"sprite\"\n"
8+
" data: \"tile_set: \\\"/def-alien-world/sprites/skull.tilesource\\\"\\n"
9+
"default_animation: \\\"fly\\\"\\n"
10+
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
11+
"blend_mode: BLEND_MODE_ALPHA\\n"
12+
"\"\n"
13+
" position {\n"
14+
" x: 0.0\n"
15+
" y: 17.5\n"
16+
" z: 0.0\n"
17+
" }\n"
18+
" rotation {\n"
19+
" x: 0.0\n"
20+
" y: 0.0\n"
21+
" z: 0.0\n"
22+
" w: 1.0\n"
23+
" }\n"
24+
"}\n"
25+
""
626
position {
727
x: 0.0
828
y: 0.0

alien-world/level/background.tilemap

Lines changed: 73 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,223 +9,255 @@ layers {
99
tile: 4
1010
h_flip: 0
1111
v_flip: 0
12+
rotate90: 0
1213
}
1314
cell {
1415
x: 1
1516
y: 0
1617
tile: 5
1718
h_flip: 0
1819
v_flip: 0
20+
rotate90: 0
1921
}
2022
cell {
2123
x: 2
2224
y: 0
2325
tile: 6
2426
h_flip: 0
2527
v_flip: 0
28+
rotate90: 0
2629
}
2730
cell {
2831
x: 3
2932
y: 0
3033
tile: 7
3134
h_flip: 0
3235
v_flip: 0
36+
rotate90: 0
3337
}
3438
cell {
35-
x: -4
39+
x: 4
3640
y: 0
37-
tile: 11
41+
tile: 8
3842
h_flip: 0
3943
v_flip: 0
44+
rotate90: 0
4045
}
4146
cell {
42-
x: 4
47+
x: 5
4348
y: 0
44-
tile: 8
49+
tile: 9
4550
h_flip: 0
4651
v_flip: 0
52+
rotate90: 0
4753
}
4854
cell {
49-
x: -5
55+
x: 6
5056
y: 0
5157
tile: 10
5258
h_flip: 0
5359
v_flip: 0
60+
rotate90: 0
5461
}
5562
cell {
56-
x: 5
63+
x: 7
5764
y: 0
58-
tile: 9
65+
tile: 11
5966
h_flip: 0
6067
v_flip: 0
68+
rotate90: 0
6169
}
6270
cell {
63-
x: -6
71+
x: 9
6472
y: 0
65-
tile: 9
73+
tile: 4
6674
h_flip: 0
6775
v_flip: 0
76+
rotate90: 0
6877
}
6978
cell {
70-
x: 6
79+
x: 10
7180
y: 0
72-
tile: 10
81+
tile: 5
7382
h_flip: 0
7483
v_flip: 0
84+
rotate90: 0
7585
}
7686
cell {
77-
x: -7
87+
x: 11
7888
y: 0
79-
tile: 8
89+
tile: 6
8090
h_flip: 0
8191
v_flip: 0
92+
rotate90: 0
8293
}
8394
cell {
84-
x: 7
95+
x: 12
8596
y: 0
86-
tile: 11
97+
tile: 7
8798
h_flip: 0
8899
v_flip: 0
100+
rotate90: 0
89101
}
90102
cell {
91-
x: -8
103+
x: 13
92104
y: 0
93-
tile: 7
105+
tile: 8
94106
h_flip: 0
95107
v_flip: 0
108+
rotate90: 0
96109
}
97110
cell {
98-
x: -9
111+
x: 14
99112
y: 0
100-
tile: 6
113+
tile: 9
101114
h_flip: 0
102115
v_flip: 0
116+
rotate90: 0
103117
}
104118
cell {
105-
x: 9
119+
x: 15
106120
y: 0
107-
tile: 4
121+
tile: 10
108122
h_flip: 0
109123
v_flip: 0
124+
rotate90: 0
110125
}
111126
cell {
112-
x: -10
127+
x: 16
113128
y: 0
114-
tile: 5
129+
tile: 11
115130
h_flip: 0
116131
v_flip: 0
132+
rotate90: 0
117133
}
118134
cell {
119-
x: 10
135+
x: 21
120136
y: 0
121-
tile: 5
137+
tile: 4
122138
h_flip: 0
123139
v_flip: 0
140+
rotate90: 0
124141
}
125142
cell {
126-
x: -11
143+
x: 22
127144
y: 0
128-
tile: 4
145+
tile: 5
129146
h_flip: 0
130147
v_flip: 0
148+
rotate90: 0
131149
}
132150
cell {
133-
x: 11
151+
x: 23
134152
y: 0
135153
tile: 6
136154
h_flip: 0
137155
v_flip: 0
156+
rotate90: 0
138157
}
139158
cell {
140-
x: 12
159+
x: 24
141160
y: 0
142161
tile: 7
143162
h_flip: 0
144163
v_flip: 0
164+
rotate90: 0
145165
}
146166
cell {
147-
x: 13
167+
x: 25
148168
y: 0
149169
tile: 8
150170
h_flip: 0
151171
v_flip: 0
172+
rotate90: 0
152173
}
153174
cell {
154-
x: 14
175+
x: 26
155176
y: 0
156177
tile: 9
157178
h_flip: 0
158179
v_flip: 0
180+
rotate90: 0
159181
}
160182
cell {
161-
x: 15
183+
x: 27
162184
y: 0
163185
tile: 10
164186
h_flip: 0
165187
v_flip: 0
188+
rotate90: 0
166189
}
167190
cell {
168-
x: 16
191+
x: 28
169192
y: 0
170193
tile: 11
171194
h_flip: 0
172195
v_flip: 0
196+
rotate90: 0
173197
}
174198
cell {
175-
x: 21
199+
x: -11
176200
y: 0
177201
tile: 4
178202
h_flip: 0
179203
v_flip: 0
204+
rotate90: 0
180205
}
181206
cell {
182-
x: 22
207+
x: -10
183208
y: 0
184209
tile: 5
185210
h_flip: 0
186211
v_flip: 0
212+
rotate90: 0
187213
}
188214
cell {
189-
x: 23
215+
x: -9
190216
y: 0
191217
tile: 6
192218
h_flip: 0
193219
v_flip: 0
220+
rotate90: 0
194221
}
195222
cell {
196-
x: 24
223+
x: -8
197224
y: 0
198225
tile: 7
199226
h_flip: 0
200227
v_flip: 0
228+
rotate90: 0
201229
}
202230
cell {
203-
x: 25
231+
x: -7
204232
y: 0
205233
tile: 8
206234
h_flip: 0
207235
v_flip: 0
236+
rotate90: 0
208237
}
209238
cell {
210-
x: 26
239+
x: -6
211240
y: 0
212241
tile: 9
213242
h_flip: 0
214243
v_flip: 0
244+
rotate90: 0
215245
}
216246
cell {
217-
x: 27
247+
x: -5
218248
y: 0
219249
tile: 10
220250
h_flip: 0
221251
v_flip: 0
252+
rotate90: 0
222253
}
223254
cell {
224-
x: 28
255+
x: -4
225256
y: 0
226257
tile: 11
227258
h_flip: 0
228259
v_flip: 0
260+
rotate90: 0
229261
}
230262
}
231263
material: "/builtins/materials/tile_map.material"

0 commit comments

Comments
 (0)