Skip to content

Commit

Permalink
chore: upgrade file formats (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinknathan authored Aug 12, 2024
1 parent bec96c6 commit e38736e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 93 deletions.
99 changes: 10 additions & 89 deletions app/main/main.collection
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,25 @@ embedded_instances {
data: "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: 1.0
y: 1.0
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.05\"\n"
Expand All @@ -65,73 +33,26 @@ 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
}
}
embedded_instances {
id: "go"
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"
"}\n"
""
position {
x: 0.0
y: 0.0
z: 0.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.png"
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 e38736e

Please sign in to comment.