enemy.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. components {
  2. id: "enemy"
  3. component: "/example/enemy.script"
  4. position {
  5. x: 0.0
  6. y: 0.0
  7. z: 0.0
  8. }
  9. rotation {
  10. x: 0.0
  11. y: 0.0
  12. z: 0.0
  13. w: 1.0
  14. }
  15. }
  16. embedded_components {
  17. id: "sprite"
  18. type: "sprite"
  19. data: "default_animation: \"enemyBlack1\"\n"
  20. "material: \"/builtins/materials/sprite.material\"\n"
  21. "blend_mode: BLEND_MODE_ALPHA\n"
  22. "textures {\n"
  23. " sampler: \"texture_sampler\"\n"
  24. " texture: \"/assets/sprites.atlas\"\n"
  25. "}\n"
  26. ""
  27. position {
  28. x: 0.0
  29. y: 0.0
  30. z: 0.0
  31. }
  32. rotation {
  33. x: 0.0
  34. y: 0.0
  35. z: 0.0
  36. w: 1.0
  37. }
  38. }
  39. embedded_components {
  40. id: "collisionobject"
  41. type: "collisionobject"
  42. data: "collision_shape: \"\"\n"
  43. "type: COLLISION_OBJECT_TYPE_KINEMATIC\n"
  44. "mass: 0.0\n"
  45. "friction: 0.1\n"
  46. "restitution: 0.5\n"
  47. "group: \"enemy\"\n"
  48. "mask: \"bullet\"\n"
  49. "embedded_collision_shape {\n"
  50. " shapes {\n"
  51. " shape_type: TYPE_SPHERE\n"
  52. " position {\n"
  53. " x: 0.0\n"
  54. " y: 0.0\n"
  55. " z: 0.0\n"
  56. " }\n"
  57. " rotation {\n"
  58. " x: 0.0\n"
  59. " y: 0.0\n"
  60. " z: 0.0\n"
  61. " w: 1.0\n"
  62. " }\n"
  63. " index: 0\n"
  64. " count: 1\n"
  65. " id: \"\"\n"
  66. " }\n"
  67. " data: 40.0\n"
  68. "}\n"
  69. "linear_damping: 0.0\n"
  70. "angular_damping: 0.0\n"
  71. "locked_rotation: false\n"
  72. "bullet: false\n"
  73. ""
  74. position {
  75. x: 0.0
  76. y: 0.0
  77. z: 0.0
  78. }
  79. rotation {
  80. x: 0.0
  81. y: 0.0
  82. z: 0.0
  83. w: 1.0
  84. }
  85. }