Selaa lähdekoodia

Updated data formats

Björn Ritzl 1 vuosi sitten
vanhempi
commit
9514c72548

+ 35 - 14
examples/debug/physics/physics.collection

@@ -28,6 +28,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -44,6 +45,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -60,6 +62,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -76,6 +79,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 50.0\\n"
   "  data: 360.0\\n"
@@ -153,6 +157,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"
@@ -178,10 +183,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -241,6 +249,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"
@@ -266,10 +275,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -306,10 +318,13 @@ embedded_instances {
   data: "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -349,6 +364,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"
@@ -417,6 +433,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"
@@ -442,10 +459,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -493,6 +513,8 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"label\"\n"
@@ -503,12 +525,6 @@ embedded_instances {
   "  z: 0.0\\n"
   "  w: 0.0\\n"
   "}\\n"
-  "scale {\\n"
-  "  x: 0.5\\n"
-  "  y: 0.5\\n"
-  "  z: 1.0\\n"
-  "  w: 0.0\\n"
-  "}\\n"
   "color {\\n"
   "  x: 0.0\\n"
   "  y: 0.5647059\\n"
@@ -547,6 +563,11 @@ embedded_instances {
   "    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 {

+ 16 - 4
examples/physics/dynamic/dynamic.collection

@@ -28,6 +28,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -44,6 +45,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -60,6 +62,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -76,6 +79,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 50.0\\n"
   "  data: 360.0\\n"
@@ -153,6 +157,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 109.4645\\n"
   "  data: 68.3975\\n"
@@ -178,10 +183,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone019\\\"\\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"
@@ -218,10 +226,13 @@ embedded_instances {
   data: "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -261,6 +272,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"

+ 29 - 12
examples/physics/hinge_joint/hinge_joint.collection

@@ -28,6 +28,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 35.0\\n"
   "}\\n"
@@ -51,10 +52,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementMetal001\\\"\\n"
+  "  data: \"default_animation: \\\"elementMetal001\\\"\\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"
@@ -114,6 +118,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -130,6 +135,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -146,6 +152,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -162,6 +169,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 460.0\\n"
   "  data: 50.0\\n"
@@ -202,12 +210,6 @@ embedded_instances {
   "  z: 0.0\\n"
   "  w: 0.0\\n"
   "}\\n"
-  "scale {\\n"
-  "  x: 0.5\\n"
-  "  y: 0.5\\n"
-  "  z: 1.0\\n"
-  "  w: 0.0\\n"
-  "}\\n"
   "color {\\n"
   "  x: 0.0\\n"
   "  y: 0.5647059\\n"
@@ -246,6 +248,11 @@ embedded_instances {
   "    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 {
@@ -281,14 +288,19 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone019\\\"\\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"
@@ -328,6 +340,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 109.4645\\n"
   "  data: 68.3975\\n"
@@ -396,6 +409,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 35.0\\n"
   "}\\n"
@@ -419,10 +433,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementMetal001\\\"\\n"
+  "  data: \"default_animation: \\\"elementMetal001\\\"\\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"

+ 23 - 10
examples/physics/kinematic/kinematic.collection

@@ -16,6 +16,8 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"collisionobject\"\n"
@@ -43,6 +45,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 68.0\\n"
   "  data: 68.3975\\n"
@@ -68,10 +71,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -94,12 +100,6 @@ embedded_instances {
   "  z: 0.0\\n"
   "  w: 0.0\\n"
   "}\\n"
-  "scale {\\n"
-  "  x: 0.5\\n"
-  "  y: 0.5\\n"
-  "  z: 1.0\\n"
-  "  w: 0.0\\n"
-  "}\\n"
   "color {\\n"
   "  x: 0.0\\n"
   "  y: 0.5647059\\n"
@@ -138,6 +138,11 @@ embedded_instances {
   "    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 {
@@ -185,6 +190,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -201,6 +207,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -217,6 +224,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -233,6 +241,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 460.0\\n"
   "  data: 50.0\\n"
@@ -287,10 +296,13 @@ embedded_instances {
   data: "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone019\\\"\\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"
@@ -330,6 +342,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 109.4645\\n"
   "  data: 68.3975\\n"

+ 6 - 2
examples/physics/knockback/bullet.go

@@ -1,10 +1,13 @@
 embedded_components {
   id: "sprite"
   type: "sprite"
-  data: "tile_set: \"/assets/sprites.atlas\"\n"
-  "default_animation: \"flame\"\n"
+  data: "default_animation: \"flame\"\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"
   ""
   position {
     x: 0.0
@@ -44,6 +47,7 @@ embedded_components {
   "    }\n"
   "    index: 0\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  data: 20.0\n"
   "}\n"

+ 6 - 2
examples/physics/knockback/enemy.go

@@ -16,10 +16,13 @@ components {
 embedded_components {
   id: "sprite"
   type: "sprite"
-  data: "tile_set: \"/assets/sprites.atlas\"\n"
-  "default_animation: \"enemyBlack1\"\n"
+  data: "default_animation: \"enemyBlack1\"\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"
   ""
   position {
     x: 0.0
@@ -59,6 +62,7 @@ embedded_components {
   "    }\n"
   "    index: 0\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  data: 40.0\n"
   "}\n"

+ 29 - 12
examples/physics/pendulum/pendulum.collection

@@ -28,6 +28,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -44,6 +45,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -60,6 +62,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -76,6 +79,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 460.0\\n"
   "  data: 50.0\\n"
@@ -116,12 +120,6 @@ embedded_instances {
   "  z: 0.0\\n"
   "  w: 0.0\\n"
   "}\\n"
-  "scale {\\n"
-  "  x: 0.5\\n"
-  "  y: 0.5\\n"
-  "  z: 1.0\\n"
-  "  w: 0.0\\n"
-  "}\\n"
   "color {\\n"
   "  x: 0.0\\n"
   "  y: 0.5647059\\n"
@@ -160,6 +158,11 @@ embedded_instances {
   "    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 {
@@ -195,14 +198,19 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -242,6 +250,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 67.5\\n"
   "  data: 67.5\\n"
@@ -310,6 +319,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 35.0\\n"
   "}\\n"
@@ -333,10 +343,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementMetal001\\\"\\n"
+  "  data: \"default_animation: \\\"elementMetal001\\\"\\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"
@@ -396,6 +409,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 35.0\\n"
   "}\\n"
@@ -419,10 +433,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementMetal001\\\"\\n"
+  "  data: \"default_animation: \\\"elementMetal001\\\"\\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"

+ 25 - 8
examples/physics/raycast/raycast.collection

@@ -16,14 +16,19 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"bee\\\"\\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"
@@ -60,10 +65,13 @@ embedded_instances {
   data: "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -103,6 +111,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 70.0\\n"
   "  data: 70.0\\n"
@@ -171,6 +180,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 70.0\\n"
   "  data: 70.0\\n"
@@ -196,10 +206,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"
@@ -259,6 +272,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 70.0\\n"
   "  data: 70.0\\n"
@@ -284,10 +298,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"elementStone023\\\"\\n"
+  "  data: \"default_animation: \\\"elementStone023\\\"\\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"

+ 9 - 2
examples/physics/trigger/trigger.collection

@@ -16,14 +16,19 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"bunny2_ready\\\"\\n"
+  "  data: \"default_animation: \\\"bunny2_ready\\\"\\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"
@@ -63,6 +68,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 58.9585\\n"
   "}\\n"
@@ -129,6 +135,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 100.0\\n"
   "  data: 360.0\\n"

+ 12 - 2
examples/sound/panning/panning.collection

@@ -28,6 +28,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -44,6 +45,7 @@ embedded_instances {
   "    }\\n"
   "    index: 3\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -60,6 +62,7 @@ embedded_instances {
   "    }\\n"
   "    index: 6\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  shapes {\\n"
   "    shape_type: TYPE_BOX\\n"
@@ -76,6 +79,7 @@ embedded_instances {
   "    }\\n"
   "    index: 9\\n"
   "    count: 3\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 50.0\\n"
   "  data: 360.0\\n"
@@ -141,6 +145,8 @@ embedded_instances {
   "    z: 0.0\n"
   "    w: 1.0\n"
   "  }\n"
+  "  property_decls {\n"
+  "  }\n"
   "}\n"
   "embedded_components {\n"
   "  id: \"collision\"\n"
@@ -168,6 +174,7 @@ embedded_instances {
   "    }\\n"
   "    index: 0\\n"
   "    count: 1\\n"
+  "    id: \\\"\\\"\\n"
   "  }\\n"
   "  data: 35.0\\n"
   "}\\n"
@@ -191,10 +198,13 @@ embedded_instances {
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"coin\\\"\\n"
+  "  data: \"default_animation: \\\"coin\\\"\\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"

+ 10 - 2
examples/tilemap/collisions/enemy.go

@@ -1,10 +1,13 @@
 embedded_components {
   id: "sprite"
   type: "sprite"
-  data: "tile_set: \"/assets/sprites.atlas\"\n"
-  "default_animation: \"enemyFloating_1\"\n"
+  data: "default_animation: \"enemyFloating_1\"\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"
   ""
   position {
     x: 0.0
@@ -46,6 +49,7 @@ embedded_components {
   "    }\n"
   "    index: 0\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  shapes {\n"
   "    shape_type: TYPE_SPHERE\n"
@@ -62,6 +66,7 @@ embedded_components {
   "    }\n"
   "    index: 1\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  shapes {\n"
   "    shape_type: TYPE_SPHERE\n"
@@ -78,6 +83,7 @@ embedded_components {
   "    }\n"
   "    index: 2\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  shapes {\n"
   "    shape_type: TYPE_SPHERE\n"
@@ -94,6 +100,7 @@ embedded_components {
   "    }\n"
   "    index: 3\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  shapes {\n"
   "    shape_type: TYPE_SPHERE\n"
@@ -110,6 +117,7 @@ embedded_components {
   "    }\n"
   "    index: 4\n"
   "    count: 1\n"
+  "    id: \"\"\n"
   "  }\n"
   "  data: 20.0\n"
   "  data: 6.0\n"