Skip to content

Commit d654525

Browse files
committed
Updated follow example
1 parent 6d4f5ef commit d654525

Some content is hidden

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

83 files changed

+8
-164
lines changed
Binary file not shown.
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.
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.
-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.
-13.8 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.
Binary file not shown.
-3.65 KB
Binary file not shown.
-4.26 KB
Binary file not shown.
-402 Bytes
Binary file not shown.
-4.01 KB
Binary file not shown.
Binary file not shown.

movement/follow/assets/sprites.atlas

-89
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,4 @@
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-
}
34-
images {
35-
image: "/assets/images/logo-color.png"
36-
}
371
images {
382
image: "/assets/images/shipGreen_manned.png"
393
}
40-
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
92-
}
934
extrude_borders: 2

movement/follow/example/follow.collection

+8-75
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,22 @@ embedded_instances {
55
data: "components {\n"
66
" id: \"script\"\n"
77
" component: \"/example/follow.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: 335.192
4323
y: 316.802
44-
z: 0.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
5624
}
5725
}
5826
embedded_instances {
@@ -63,69 +31,34 @@ embedded_instances {
6331
" data: \"size {\\n"
6432
" x: 128.0\\n"
6533
" y: 32.0\\n"
66-
" z: 0.0\\n"
67-
" w: 0.0\\n"
68-
"}\\n"
69-
"scale {\\n"
70-
" x: 0.5\\n"
71-
" y: 0.5\\n"
72-
" z: 1.0\\n"
73-
" w: 0.0\\n"
7434
"}\\n"
7535
"color {\\n"
7636
" x: 0.0\\n"
7737
" y: 0.5647059\\n"
7838
" z: 0.99215686\\n"
79-
" w: 1.0\\n"
8039
"}\\n"
8140
"outline {\\n"
8241
" x: 1.0\\n"
8342
" y: 1.0\\n"
8443
" z: 1.0\\n"
85-
" w: 1.0\\n"
8644
"}\\n"
8745
"shadow {\\n"
8846
" x: 1.0\\n"
8947
" y: 1.0\\n"
9048
" z: 1.0\\n"
91-
" w: 1.0\\n"
9249
"}\\n"
93-
"leading: 1.0\\n"
94-
"tracking: 0.0\\n"
95-
"pivot: PIVOT_CENTER\\n"
96-
"blend_mode: BLEND_MODE_ALPHA\\n"
97-
"line_break: false\\n"
9850
"text: \\\"I will follow the mouse/touch position\\\"\\n"
9951
"font: \\\"/assets/text48.font\\\"\\n"
10052
"material: \\\"/builtins/fonts/label.material\\\"\\n"
10153
"\"\n"
102-
" position {\n"
103-
" x: 0.0\n"
104-
" y: 0.0\n"
105-
" z: 0.0\n"
106-
" }\n"
107-
" rotation {\n"
108-
" x: 0.0\n"
109-
" y: 0.0\n"
110-
" z: 0.0\n"
111-
" w: 1.0\n"
54+
" scale {\n"
55+
" x: 0.5\n"
56+
" y: 0.5\n"
11257
" }\n"
11358
"}\n"
11459
""
11560
position {
11661
x: 350.0
11762
y: 38.0
118-
z: 0.0
119-
}
120-
rotation {
121-
x: 0.0
122-
y: 0.0
123-
z: 0.0
124-
w: 1.0
125-
}
126-
scale3 {
127-
x: 1.0
128-
y: 1.0
129-
z: 1.0
13063
}
13164
}

movement/follow/example/follow.png

67.4 KB

0 commit comments

Comments
 (0)