Björn Ritzl 5 месяцев назад
Родитель
Сommit
538f24c877

BIN
animation/basic_tween/assets/images/bunny2_ready.png


BIN
animation/basic_tween/assets/images/shipBlue_manned.png


+ 1 - 1
animation/basic_tween/assets/sprites.atlas

@@ -1,4 +1,4 @@
 images {
 images {
-  image: "/assets/images/bunny2_ready.png"
+  image: "/assets/images/shipBlue_manned.png"
 }
 }
 extrude_borders: 2
 extrude_borders: 2

+ 1 - 1
animation/basic_tween/example.md

@@ -2,7 +2,7 @@
 tags: animation
 tags: animation
 title: Tween animation
 title: Tween animation
 brief: This example shows how to tween animate the position of a game object.
 brief: This example shows how to tween animate the position of a game object.
-scripts: bunny.script
+scripts: spaceship.script
 ---
 ---
 
 
 ![tween](basic_tween.png)
 ![tween](basic_tween.png)

+ 7 - 39
animation/basic_tween/example/basic_tween.collection

@@ -1,57 +1,25 @@
 name: "default"
 name: "default"
 scale_along_z: 0
 scale_along_z: 0
 embedded_instances {
 embedded_instances {
-  id: "bunny"
+  id: "spaceship"
   data: "components {\n"
   data: "components {\n"
   "  id: \"script\"\n"
   "  id: \"script\"\n"
-  "  component: \"/example/bunny.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"
+  "  component: \"/example/spaceship.script\"\n"
   "}\n"
   "}\n"
   "embedded_components {\n"
   "embedded_components {\n"
   "  id: \"sprite\"\n"
   "  id: \"sprite\"\n"
   "  type: \"sprite\"\n"
   "  type: \"sprite\"\n"
-  "  data: \"tile_set: \\\"/assets/sprites.atlas\\\"\\n"
-  "default_animation: \\\"bunny2_ready\\\"\\n"
+  "  data: \"default_animation: \\\"shipBlue_manned\\\"\\n"
   "material: \\\"/builtins/materials/sprite.material\\\"\\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"
   "\"\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"
   "}\n"
   ""
   ""
   position {
   position {
     x: 60.0
     x: 60.0
     y: 96.0
     y: 96.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
   }
   }
 }
 }

+ 0 - 0
animation/basic_tween/example/bunny.script → animation/basic_tween/example/spaceship.script