Skip to content

Commit 788f188

Browse files
committed
Cleanup of dynamic example
1 parent d5849d6 commit 788f188

Some content is hidden

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

82 files changed

+92
-181
lines changed

factory/dynamic/.editor_settings

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
:bundle {
3+
:android {
4+
:architecture {
5+
:arm64-android true
6+
:armv7-android false
7+
}
8+
:format "apk"
9+
:install false
10+
:keystore "/Users/bjornritzl/projects/certificates-defold/android/defold.keystore"
11+
:keystore-pass "/Users/bjornritzl/projects/certificates-defold/android/defold.keystore.pass.txt"
12+
:launch false
13+
}
14+
:build-report true
15+
:contentless false
16+
:debug-symbols true
17+
:html5 {
18+
:architecture {
19+
:js-web false
20+
:wasm-web true
21+
}
22+
}
23+
:ios {
24+
:architecture {
25+
:arm64-ios true
26+
:x86_64-ios false
27+
}
28+
:code-signing-identity "Apple Development: Bjoern Ritzl (5HXMA7P46L)"
29+
:install false
30+
:launch false
31+
:provisioning-profile "/Users/bjornritzl/projects/certificates-defold/apple/BR_Foobar.mobileprovision"
32+
:sign true
33+
}
34+
:liveupdate false
35+
:macos {
36+
:architecture {
37+
:arm64-macos true
38+
:x86_64-macos true
39+
}
40+
}
41+
:texture-compression "enabled"
42+
:variant "release"
43+
:windows {
44+
:platform "x86_64-win32"
45+
}
46+
}
47+
:code {
48+
:find {
49+
:case-sensitive true
50+
:term "self.jump_timer"
51+
}
52+
}
53+
:open-assets {
54+
:term "game.p"
55+
}
56+
:search-in-files {
57+
:exts "*.script, *.lua"
58+
:include-libraries false
59+
:term "ads_wrapper"
60+
}
61+
:workflow {
62+
:recent-files [
63+
[
64+
"/example/dynamic.collection"
65+
:scene
66+
]
67+
[
68+
"/example/bullets.collection"
69+
:scene
70+
]
71+
[
72+
"/assets/sprites.atlas"
73+
:scene
74+
]
75+
]
76+
}
77+
}
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.
-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.
-13.8 KB
Binary file not shown.
-3.1 KB
Binary file not shown.
-8.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.
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.

factory/dynamic/assets/sprites.atlas

-80
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,13 @@
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-
}
221
images {
232
image: "/assets/images/flame.png"
243
}
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-
}
37-
images {
38-
image: "/assets/images/shipGreen_manned.png"
39-
}
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-
}
524
images {
535
image: "/assets/images/playerShip1_red.png"
546
}
55-
images {
56-
image: "/assets/images/enemyBlack1.png"
57-
}
587
images {
598
image: "/assets/images/lighting_blue.png"
609
}
6110
images {
6211
image: "/assets/images/particle_brown.png"
6312
}
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-
}
9313
extrude_borders: 2
111 KB
29.7 KB

factory/dynamic/example.md

+8

factory/dynamic/example/dynamic.collection

+7-101
Original file line numberDiff line numberDiff line change
@@ -5,165 +5,71 @@ embedded_instances {
55
data: "components {\n"
66
" id: \"dynamic\"\n"
77
" component: \"/example/dynamic.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"
19-
" property_decls {\n"
20-
" }\n"
218
"}\n"
229
"embedded_components {\n"
2310
" id: \"bulletfactory\"\n"
2411
" type: \"factory\"\n"
2512
" data: \"prototype: \\\"/example/flame.go\\\"\\n"
26-
"load_dynamically: false\\n"
2713
"dynamic_prototype: true\\n"
2814
"\"\n"
29-
" position {\n"
30-
" x: 0.0\n"
31-
" y: 0.0\n"
32-
" z: 0.0\n"
33-
" }\n"
34-
" rotation {\n"
35-
" x: 0.0\n"
36-
" y: 0.0\n"
37-
" z: 0.0\n"
38-
" w: 1.0\n"
39-
" }\n"
4015
"}\n"
4116
"embedded_components {\n"
4217
" id: \"bullets\"\n"
4318
" type: \"collectionproxy\"\n"
4419
" data: \"collection: \\\"/example/bullets.collection\\\"\\n"
45-
"exclude: false\\n"
4620
"\"\n"
47-
" position {\n"
48-
" x: 0.0\n"
49-
" y: 0.0\n"
50-
" z: 0.0\n"
51-
" }\n"
52-
" rotation {\n"
53-
" x: 0.0\n"
54-
" y: 0.0\n"
55-
" z: 0.0\n"
56-
" w: 1.0\n"
57-
" }\n"
5821
"}\n"
5922
"embedded_components {\n"
6023
" id: \"sprite\"\n"
6124
" type: \"sprite\"\n"
62-
" data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
63-
"default_animation: \\\"playerShip1_red\\\"\\n"
25+
" data: \"default_animation: \\\"playerShip1_red\\\"\\n"
6426
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
65-
"blend_mode: BLEND_MODE_ALPHA\\n"
27+
"textures {\\n"
28+
" sampler: \\\"texture_sampler\\\"\\n"
29+
" texture: \\\"/assets/sprites.atlas\\\"\\n"
30+
"}\\n"
6631
"\"\n"
6732
" position {\n"
68-
" x: 0.0\n"
69-
" y: 0.0\n"
7033
" z: 1.0\n"
7134
" }\n"
72-
" rotation {\n"
73-
" x: 0.0\n"
74-
" y: 0.0\n"
75-
" z: 0.0\n"
76-
" w: 1.0\n"
77-
" }\n"
7835
"}\n"
7936
""
8037
position {
8138
x: 360.0
8239
y: 116.0
83-
z: 0.0
84-
}
85-
rotation {
86-
x: 0.0
87-
y: 0.0
88-
z: 0.0
89-
w: 1.0
90-
}
91-
scale3 {
92-
x: 1.0
93-
y: 1.0
94-
z: 1.0
9540
}
9641
}
9742
embedded_instances {
98-
id: "go1"
43+
id: "go"
9944
data: "embedded_components {\n"
100-
" id: \"label1\"\n"
45+
" id: \"instructions\"\n"
10146
" type: \"label\"\n"
10247
" data: \"size {\\n"
10348
" x: 128.0\\n"
10449
" y: 32.0\\n"
105-
" z: 0.0\\n"
106-
" w: 0.0\\n"
10750
"}\\n"
10851
"color {\\n"
10952
" x: 0.0\\n"
11053
" y: 0.5647059\\n"
11154
" z: 0.99215686\\n"
112-
" w: 1.0\\n"
11355
"}\\n"
11456
"outline {\\n"
11557
" x: 1.0\\n"
11658
" y: 1.0\\n"
11759
" z: 1.0\\n"
118-
" w: 1.0\\n"
11960
"}\\n"
120-
"shadow {\\n"
121-
" x: 0.0\\n"
122-
" y: 0.0\\n"
123-
" z: 0.0\\n"
124-
" w: 1.0\\n"
125-
"}\\n"
126-
"leading: 1.0\\n"
127-
"tracking: 0.0\\n"
128-
"pivot: PIVOT_CENTER\\n"
129-
"blend_mode: BLEND_MODE_ALPHA\\n"
130-
"line_break: false\\n"
13161
"text: \\\"Click/spacebar to change bullet\\\"\\n"
13262
"font: \\\"/assets/text48.font\\\"\\n"
13363
"material: \\\"/builtins/fonts/label.material\\\"\\n"
13464
"\"\n"
13565
" position {\n"
13666
" x: 360.0\n"
13767
" y: 20.0\n"
138-
" z: 0.0\n"
139-
" }\n"
140-
" rotation {\n"
141-
" x: 0.0\n"
142-
" y: 0.0\n"
143-
" z: 0.0\n"
144-
" w: 1.0\n"
14568
" }\n"
14669
" scale {\n"
14770
" x: 0.5\n"
14871
" y: 0.5\n"
149-
" z: 1.0\n"
15072
" }\n"
15173
"}\n"
15274
""
153-
position {
154-
x: 0.0
155-
y: 0.0
156-
z: 0.0
157-
}
158-
rotation {
159-
x: 0.0
160-
y: 0.0
161-
z: 0.0
162-
w: 1.0
163-
}
164-
scale3 {
165-
x: 1.0
166-
y: 1.0
167-
z: 1.0
168-
}
16975
}

0 commit comments

Comments
 (0)