|
@@ -0,0 +1,502 @@
|
|
|
+name: "screen_to_world"
|
|
|
+scale_along_z: 0
|
|
|
+embedded_instances {
|
|
|
+ id: "stone1"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 652.0
|
|
|
+ y: 297.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: "stone2"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 994.0
|
|
|
+ y: 205.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: "stone3"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 1278.0
|
|
|
+ y: 664.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: "stone4"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 1366.0
|
|
|
+ y: 292.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: "stone5"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 1684.0
|
|
|
+ y: 727.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: "stone6"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 1755.0
|
|
|
+ y: 146.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: "stone7"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 2110.0
|
|
|
+ y: 313.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: "stone8"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"elementStone019\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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: 263.0
|
|
|
+ y: 230.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: "bee"
|
|
|
+ data: "components {\n"
|
|
|
+ " id: \"bee\"\n"
|
|
|
+ " component: \"/examples/render/screen_to_world/bee.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"
|
|
|
+ " property_decls {\n"
|
|
|
+ " }\n"
|
|
|
+ "}\n"
|
|
|
+ "embedded_components {\n"
|
|
|
+ " id: \"sprite\"\n"
|
|
|
+ " type: \"sprite\"\n"
|
|
|
+ " data: \"default_animation: \\\"bee\\\"\\n"
|
|
|
+ "material: \\\"/builtins/materials/sprite.material\\\"\\n"
|
|
|
+ "blend_mode: BLEND_MODE_ALPHA\\n"
|
|
|
+ "textures {\\n"
|
|
|
+ " sampler: \\\"texture_sampler\\\"\\n"
|
|
|
+ " texture: \\\"/assets/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"
|
|
|
+ "embedded_components {\n"
|
|
|
+ " id: \"camera\"\n"
|
|
|
+ " type: \"camera\"\n"
|
|
|
+ " data: \"aspect_ratio: 1.0\\n"
|
|
|
+ "fov: 0.7854\\n"
|
|
|
+ "near_z: -1.0\\n"
|
|
|
+ "far_z: 1.0\\n"
|
|
|
+ "auto_aspect_ratio: 0\\n"
|
|
|
+ "orthographic_projection: 1\\n"
|
|
|
+ "orthographic_zoom: 1.0\\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: 160.0
|
|
|
+ y: 80.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: "instructions"
|
|
|
+ data: "embedded_components {\n"
|
|
|
+ " id: \"label\"\n"
|
|
|
+ " type: \"label\"\n"
|
|
|
+ " data: \"size {\\n"
|
|
|
+ " x: 128.0\\n"
|
|
|
+ " y: 32.0\\n"
|
|
|
+ " z: 0.0\\n"
|
|
|
+ " w: 0.0\\n"
|
|
|
+ "}\\n"
|
|
|
+ "color {\\n"
|
|
|
+ " x: 0.0\\n"
|
|
|
+ " y: 0.5647059\\n"
|
|
|
+ " z: 0.99215686\\n"
|
|
|
+ " w: 1.0\\n"
|
|
|
+ "}\\n"
|
|
|
+ "outline {\\n"
|
|
|
+ " x: 1.0\\n"
|
|
|
+ " y: 1.0\\n"
|
|
|
+ " z: 1.0\\n"
|
|
|
+ " w: 1.0\\n"
|
|
|
+ "}\\n"
|
|
|
+ "shadow {\\n"
|
|
|
+ " x: 1.0\\n"
|
|
|
+ " y: 1.0\\n"
|
|
|
+ " z: 1.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: \\\"Click to move\\\"\\n"
|
|
|
+ "font: \\\"/assets/text48.font\\\"\\n"
|
|
|
+ "material: \\\"/builtins/fonts/label.material\\\"\\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"
|
|
|
+ " scale {\n"
|
|
|
+ " x: 0.5\n"
|
|
|
+ " y: 0.5\n"
|
|
|
+ " z: 1.0\n"
|
|
|
+ " }\n"
|
|
|
+ "}\n"
|
|
|
+ ""
|
|
|
+ position {
|
|
|
+ x: 350.0
|
|
|
+ y: 38.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
|
|
|
+ }
|
|
|
+}
|