-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data textures for trail preview in Defold IDE.
- Loading branch information
1 parent
126ca17
commit b63996d
Showing
18 changed files
with
310 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
path_settings { | ||
path: "/hyper_trails/textures/data/**" | ||
profile: "No Prem. Alpha" | ||
} | ||
path_settings { | ||
path: "**" | ||
profile: "Default" | ||
} | ||
profiles { | ||
name: "Default" | ||
platforms { | ||
os: OS_ID_GENERIC | ||
formats { | ||
format: TEXTURE_FORMAT_RGBA | ||
compression_level: BEST | ||
compression_type: COMPRESSION_TYPE_DEFAULT | ||
} | ||
mipmaps: true | ||
max_texture_size: 0 | ||
premultiply_alpha: true | ||
} | ||
} | ||
profiles { | ||
name: "No Prem. Alpha" | ||
platforms { | ||
os: OS_ID_GENERIC | ||
formats { | ||
format: TEXTURE_FORMAT_RGBA | ||
compression_level: BEST | ||
compression_type: COMPRESSION_TYPE_DEFAULT | ||
} | ||
mipmaps: false | ||
premultiply_alpha: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,209 @@ | ||
name: "default" | ||
scale_along_z: 0 | ||
embedded_instances { | ||
id: "main" | ||
data: "components {\n" | ||
" id: \"main\"\n" | ||
" component: \"/demo/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" | ||
"embedded_components {\n" | ||
" id: \"bg\"\n" | ||
" type: \"sprite\"\n" | ||
" data: \"tile_set: \\\"/demo/assets/atlases/main.atlas\\\"\\n" | ||
"default_animation: \\\"background\\\"\\n" | ||
"material: \\\"/builtins/materials/sprite.material\\\"\\n" | ||
"blend_mode: BLEND_MODE_ALPHA\\n" | ||
"\"\n" | ||
" position {\n" | ||
" x: 480.0\n" | ||
" y: 270.0\n" | ||
" z: -0.5\n" | ||
" }\n" | ||
" rotation {\n" | ||
" x: 0.0\n" | ||
" y: 0.0\n" | ||
" z: 0.0\n" | ||
" w: 1.0\n" | ||
" }\n" | ||
"}\n" | ||
"embedded_components {\n" | ||
" id: \"text\"\n" | ||
" type: \"label\"\n" | ||
" data: \"size {\\n" | ||
" x: 128.0\\n" | ||
" y: 32.0\\n" | ||
" z: 0.0\\n" | ||
" w: 0.0\\n" | ||
"}\\n" | ||
"scale {\\n" | ||
" x: 1.0\\n" | ||
" y: 1.0\\n" | ||
" z: 1.0\\n" | ||
" w: 0.0\\n" | ||
"}\\n" | ||
"color {\\n" | ||
" x: 1.0\\n" | ||
" y: 1.0\\n" | ||
" z: 1.0\\n" | ||
" w: 1.0\\n" | ||
"}\\n" | ||
"outline {\\n" | ||
" x: 0.0\\n" | ||
" y: 0.4\\n" | ||
" z: 0.8\\n" | ||
" w: 1.0\\n" | ||
"}\\n" | ||
"shadow {\\n" | ||
" x: 0.0\\n" | ||
" y: 0.0\\n" | ||
" z: 0.0\\n" | ||
" w: 1.0\\n" | ||
"}\\n" | ||
"leading: 1.0\\n" | ||
"tracking: 0.0\\n" | ||
"pivot: PIVOT_CENTER\\n" | ||
"blend_mode: BLEND_MODE_ALPHA\\n" | ||
"line_break: false\\n" | ||
"text: \\\"Not for the demo.\\\\n" | ||
"\\\"\\n" | ||
" \\\"Used to save preview texture.\\\\n" | ||
"\\\"\\n" | ||
" \\\"\\\"\\n" | ||
"font: \\\"/demo/assets/fonts/vera_small.font\\\"\\n" | ||
"material: \\\"/builtins/fonts/label.material\\\"\\n" | ||
"\"\n" | ||
" position {\n" | ||
" x: 480.0\n" | ||
" y: 396.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 | ||
} | ||
} | ||
embedded_instances { | ||
id: "object" | ||
data: "components {\n" | ||
" id: \"trail_maker\"\n" | ||
" component: \"/hyper_trails/trail_maker.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: \"segment_length_max\"\n" | ||
" value: \"6.0\"\n" | ||
" type: PROPERTY_TYPE_NUMBER\n" | ||
" }\n" | ||
" properties {\n" | ||
" id: \"segment_length_min\"\n" | ||
" value: \"6.0\"\n" | ||
" type: PROPERTY_TYPE_NUMBER\n" | ||
" }\n" | ||
" properties {\n" | ||
" id: \"fade_tail_alpha\"\n" | ||
" value: \"12.0\"\n" | ||
" type: PROPERTY_TYPE_NUMBER\n" | ||
" }\n" | ||
" properties {\n" | ||
" id: \"shrink_tail_width\"\n" | ||
" value: \"true\"\n" | ||
" type: PROPERTY_TYPE_BOOLEAN\n" | ||
" }\n" | ||
"}\n" | ||
"components {\n" | ||
" id: \"data_texture_preview\"\n" | ||
" component: \"/demo/data_texture_preview.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" | ||
"embedded_components {\n" | ||
" id: \"trail_model\"\n" | ||
" type: \"model\"\n" | ||
" data: \"mesh: \\\"/hyper_trails/models/trail_16.dae\\\"\\n" | ||
"material: \\\"/hyper_trails/materials/trail.material\\\"\\n" | ||
"textures: \\\"/hyper_trails/textures/data/texture0_1.png\\\"\\n" | ||
"textures: \\\"/hyper_trails/textures/white.png\\\"\\n" | ||
"skeleton: \\\"\\\"\\n" | ||
"animations: \\\"\\\"\\n" | ||
"default_animation: \\\"\\\"\\n" | ||
"name: \\\"unnamed\\\"\\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: 379.0 | ||
y: 270.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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
go.property("_position", vmath.vector3()) | ||
|
||
local function update_pos(self) | ||
go.set_position(self._position) | ||
end | ||
|
||
function init(self) | ||
msg.post(".", "acquire_input_focus") | ||
|
||
self._position = go.get_position() | ||
|
||
local w2 = sys.get_config("display.width") / 2 | ||
go.animate("#data_texture_preview", "_position.x", go.PLAYBACK_ONCE_FORWARD, w2, go.EASING_LINEAR, 1) | ||
|
||
update_pos(self) | ||
end | ||
|
||
function final(self) | ||
end | ||
|
||
function update(self, dt) | ||
update_pos(self) | ||
end | ||
|
||
function on_input(self, action_id, action) | ||
if action_id == hash("write") and action.pressed then | ||
write_texture = true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters