Skip to content

Commit 06812e6

Browse files
committed
Updated basic-z example
1 parent 5d60d46 commit 06812e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+47
-153
lines changed
Binary file not shown.
-888 Bytes
Binary file not shown.
-43.2 KB
Binary file not shown.
-42.9 KB
Binary file not shown.
-43.2 KB
Binary file not shown.
-42.8 KB
Binary file not shown.
-43 KB
Binary file not shown.
-42.6 KB
Binary file not shown.
-42.9 KB
Binary file not shown.
-42.7 KB
Binary file not shown.
-42.8 KB
Binary file not shown.
-42.6 KB
Binary file not shown.
-42.2 KB
Binary file not shown.
-42.2 KB
Binary file not shown.
-42.4 KB
Binary file not shown.
-42.4 KB
Binary file not shown.
-42.6 KB
Binary file not shown.
-42.4 KB
Binary file not shown.
-42.5 KB
Binary file not shown.
-42.2 KB
Binary file not shown.
-42.6 KB
Binary file not shown.
-42.1 KB
Binary file not shown.
-42.8 KB
Binary file not shown.
-42.4 KB
Binary file not shown.
-43 KB
Binary file not shown.
-42.8 KB
Binary file not shown.
-43.6 KB
Binary file not shown.
Binary file not shown.
-51.3 KB
Binary file not shown.
-54.2 KB
Binary file not shown.
-57.3 KB
Binary file not shown.
-61.2 KB
Binary file not shown.
-64.7 KB
Binary file not shown.
-62.9 KB
Binary file not shown.
-61.4 KB
Binary file not shown.
-43.1 KB
Binary file not shown.
-20.6 KB
Binary file not shown.
-20.9 KB
Binary file not shown.
-21.9 KB
Binary file not shown.
-22.1 KB
Binary file not shown.
-22.1 KB
Binary file not shown.
-22.5 KB
Binary file not shown.
-22.3 KB
Binary file not shown.
-21.6 KB
Binary file not shown.
-20.9 KB
Binary file not shown.
-3.42 KB
Binary file not shown.
-3.88 KB
Binary file not shown.
-1.35 KB
Binary file not shown.
-2.74 KB
Binary file not shown.
-4.88 KB
Binary file not shown.
-4.5 KB
Binary file not shown.
-3.63 KB
Binary file not shown.
-787 Bytes
Binary file not shown.
-3.59 KB
Binary file not shown.
-191 Bytes
Binary file not shown.
-1.5 KB
Binary file not shown.
-822 Bytes
Binary file not shown.
-1.01 KB
Binary file not shown.
-2.95 KB
Binary file not shown.
-776 Bytes
Binary file not shown.
-699 Bytes
Binary file not shown.
-444 Bytes
Binary file not shown.

basics/z_order/assets/images/grid.png

-57.2 KB
Binary file not shown.
-97.5 KB
Binary file not shown.
-1.37 KB
Binary file not shown.
Binary file not shown.
-1.43 KB
Binary file not shown.
-835 Bytes
Binary file not shown.
-3.1 KB
Binary file not shown.
-8.65 KB
Binary file not shown.
-2.65 KB
Binary file not shown.
-89.6 KB
Binary file not shown.
-311 Bytes
Binary file not shown.
-402 Bytes
Binary file not shown.
-4.01 KB
Binary file not shown.
Binary file not shown.

basics/z_order/assets/sprites.atlas

+1-84
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,10 @@
1-
images {
2-
image: "/assets/images/spinner.png"
3-
}
4-
images {
5-
image: "/assets/images/elementStone019.png"
6-
}
7-
images {
8-
image: "/assets/images/elementStone023.png"
9-
}
10-
images {
11-
image: "/assets/images/bunny1_ready.png"
12-
}
13-
images {
14-
image: "/assets/images/bunny2_ready.png"
15-
}
16-
images {
17-
image: "/assets/images/carrot.png"
18-
}
19-
images {
20-
image: "/assets/images/red_button12.png"
21-
}
22-
images {
23-
image: "/assets/images/flame.png"
24-
}
25-
images {
26-
image: "/assets/images/smoke.png"
27-
}
28-
images {
29-
image: "/assets/images/rainbow.png"
30-
}
31-
images {
32-
image: "/assets/images/enemyFloating_1.png"
33-
}
341
images {
352
image: "/assets/images/logo-color.png"
363
}
374
images {
385
image: "/assets/images/shipGreen_manned.png"
396
}
407
images {
41-
image: "/assets/images/elementMetal001.png"
42-
}
43-
images {
44-
image: "/assets/images/plank_slice.png"
45-
}
46-
images {
47-
image: "/assets/images/hitman1_machine.png"
48-
}
49-
images {
50-
image: "/assets/images/green_button03.png"
51-
}
52-
images {
53-
image: "/assets/images/playerShip1_red.png"
54-
}
55-
images {
56-
image: "/assets/images/enemyBlack1.png"
57-
}
58-
images {
59-
image: "/assets/images/lighting_blue.png"
60-
}
61-
images {
62-
image: "/assets/images/particle_brown.png"
63-
}
64-
images {
65-
image: "/assets/images/crosshair010.png"
66-
}
67-
images {
68-
image: "/assets/images/bar_round_large_grey.png"
69-
}
70-
images {
71-
image: "/assets/images/bar_round_large_red.png"
72-
}
73-
animations {
74-
id: "coin"
75-
images {
76-
image: "/assets/images/coin/dcoin_1.png"
77-
}
78-
images {
79-
image: "/assets/images/coin/dcoin_2.png"
80-
}
81-
images {
82-
image: "/assets/images/coin/dcoin_3.png"
83-
}
84-
images {
85-
image: "/assets/images/coin/dcoin_4.png"
86-
}
87-
images {
88-
image: "/assets/images/coin/dcoin_5.png"
89-
}
90-
playback: PLAYBACK_LOOP_FORWARD
91-
fps: 8
8+
image: "/assets/images/shipPink_manned.png"
929
}
9310
extrude_borders: 2

basics/z_order/example.md

+4-3
+42-66
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,73 @@
11
name: "default"
22
scale_along_z: 0
33
embedded_instances {
4-
id: "gameobject"
4+
id: "spaceship1"
55
data: "components {\n"
66
" id: \"script\"\n"
77
" component: \"/example/z_order.script\"\n"
8-
" position {\n"
9-
" x: 0.0\n"
10-
" y: 0.0\n"
11-
" z: 0.0\n"
12-
" }\n"
13-
" rotation {\n"
14-
" x: 0.0\n"
15-
" y: 0.0\n"
16-
" z: 0.0\n"
17-
" w: 1.0\n"
18-
" }\n"
198
"}\n"
209
"embedded_components {\n"
2110
" id: \"sprite\"\n"
2211
" type: \"sprite\"\n"
23-
" data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
24-
"default_animation: \\\"bunny2_ready\\\"\\n"
12+
" data: \"default_animation: \\\"shipGreen_manned\\\"\\n"
2513
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
26-
"blend_mode: BLEND_MODE_ALPHA\\n"
14+
"textures {\\n"
15+
" sampler: \\\"texture_sampler\\\"\\n"
16+
" texture: \\\"/assets/sprites.atlas\\\"\\n"
17+
"}\\n"
2718
"\"\n"
28-
" position {\n"
29-
" x: 0.0\n"
30-
" y: 0.0\n"
31-
" z: 0.0\n"
32-
" }\n"
33-
" rotation {\n"
34-
" x: 0.0\n"
35-
" y: 0.0\n"
36-
" z: 0.0\n"
37-
" w: 1.0\n"
38-
" }\n"
3919
"}\n"
4020
""
4121
position {
4222
x: 120.0
43-
y: 100.0
44-
z: 1.0
45-
}
46-
rotation {
47-
x: 0.0
48-
y: 0.0
49-
z: 0.0
50-
w: 1.0
51-
}
52-
scale3 {
53-
x: 1.0
54-
y: 1.0
55-
z: 1.0
23+
y: 300.0
24+
z: 0.5
5625
}
5726
}
5827
embedded_instances {
59-
id: "background"
28+
id: "logo"
6029
data: "embedded_components {\n"
6130
" id: \"sprite\"\n"
6231
" type: \"sprite\"\n"
63-
" data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
64-
"default_animation: \\\"rainbow\\\"\\n"
32+
" data: \"default_animation: \\\"logo-color\\\"\\n"
6533
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
66-
"blend_mode: BLEND_MODE_ALPHA\\n"
34+
"textures {\\n"
35+
" sampler: \\\"texture_sampler\\\"\\n"
36+
" texture: \\\"/assets/sprites.atlas\\\"\\n"
37+
"}\\n"
6738
"\"\n"
68-
" position {\n"
69-
" x: 0.0\n"
70-
" y: 0.0\n"
71-
" z: 0.0\n"
72-
" }\n"
73-
" rotation {\n"
74-
" x: 0.0\n"
75-
" y: 0.0\n"
76-
" z: 0.0\n"
77-
" w: 1.0\n"
78-
" }\n"
7939
"}\n"
8040
""
8141
position {
8242
x: 360.0
83-
y: 180.0
84-
z: 0.0
85-
}
86-
rotation {
87-
x: 0.0
88-
y: 0.0
89-
z: 0.0
90-
w: 1.0
43+
y: 360.0
9144
}
92-
scale3 {
93-
x: 1.0
94-
y: 1.0
95-
z: 1.0
45+
}
46+
embedded_instances {
47+
id: "spaceship2"
48+
data: "components {\n"
49+
" id: \"script\"\n"
50+
" component: \"/example/z_order.script\"\n"
51+
"}\n"
52+
"embedded_components {\n"
53+
" id: \"sprite\"\n"
54+
" type: \"sprite\"\n"
55+
" data: \"default_animation: \\\"shipPink_manned\\\"\\n"
56+
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
57+
"size {\\n"
58+
" x: 121.0\\n"
59+
" y: 191.0\\n"
60+
"}\\n"
61+
"textures {\\n"
62+
" sampler: \\\"texture_sampler\\\"\\n"
63+
" texture: \\\"/assets/sprites.atlas\\\"\\n"
64+
"}\\n"
65+
"\"\n"
66+
"}\n"
67+
""
68+
position {
69+
x: 213.0
70+
y: 400.0
71+
z: -0.5
9672
}
9773
}

basics/z_order/example/z_order.png

38.9 KB

0 commit comments

Comments
 (0)