Skip to content

Commit

Permalink
chore: upgrade file formats (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinknathan authored Aug 12, 2024
1 parent e49669a commit a5d8ca6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 73 deletions.
79 changes: 10 additions & 69 deletions app/main/main.collection
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@ embedded_instances {
data: "components {\n"
" id: \"main\"\n"
" component: \"/scripts/main.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\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"
" properties {\n"
" id: \"excitement\"\n"
" value: \"200.0\"\n"
Expand All @@ -25,57 +14,29 @@ embedded_instances {
"embedded_components {\n"
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"tile_set: \\\"/main/sprites.atlas\\\"\\n"
"default_animation: \\\"ts-defold\\\"\\n"
" data: \"default_animation: \\\"ts-defold\\\"\\n"
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"textures {\\n"
" sampler: \\\"texture_sampler\\\"\\n"
" texture: \\\"/main/sprites.atlas\\\"\\n"
"}\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\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"
""
position {
x: 400.0
y: 400.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 0.45
y: 0.45
z: 1.0
}
}
embedded_instances {
id: "lua-ring"
data: "components {\n"
" id: \"orbit\"\n"
" component: \"/scripts/orbit.script\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\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"
" properties {\n"
" id: \"speed\"\n"
" value: \"0.1\"\n"
Expand All @@ -85,38 +46,18 @@ embedded_instances {
"embedded_components {\n"
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"tile_set: \\\"/main/sprites.atlas\\\"\\n"
"default_animation: \\\"lua-ring\\\"\\n"
" data: \"default_animation: \\\"lua-ring\\\"\\n"
"material: \\\"/builtins/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"textures {\\n"
" sampler: \\\"texture_sampler\\\"\\n"
" texture: \\\"/main/sprites.atlas\\\"\\n"
"}\\n"
"\"\n"
" position {\n"
" x: 0.0\n"
" y: 0.0\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"
""
position {
x: 400.0
y: 400.0
z: 1.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
4 changes: 0 additions & 4 deletions app/main/sprites.atlas
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
images {
image: "/assets/ts-defold.jpg"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
images {
image: "/assets/lua-ring.png"
sprite_trim_mode: SPRITE_TRIM_MODE_OFF
}
margin: 0
extrude_borders: 2
inner_padding: 0

0 comments on commit a5d8ca6

Please sign in to comment.