enemy.go 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. components {
  2. id: "boom"
  3. component: "/example/boom.particlefx"
  4. }
  5. embedded_components {
  6. id: "sprite"
  7. type: "sprite"
  8. data: "default_animation: \"ufoGreen\"\n"
  9. "material: \"/builtins/materials/sprite.material\"\n"
  10. "textures {\n"
  11. " sampler: \"texture_sampler\"\n"
  12. " texture: \"/assets/sprites.atlas\"\n"
  13. "}\n"
  14. ""
  15. scale {
  16. x: 0.5
  17. y: 0.5
  18. }
  19. }
  20. embedded_components {
  21. id: "collisionobject"
  22. type: "collisionobject"
  23. data: "type: COLLISION_OBJECT_TYPE_TRIGGER\n"
  24. "mass: 0.0\n"
  25. "friction: 0.1\n"
  26. "restitution: 0.5\n"
  27. "group: \"enemy\"\n"
  28. "mask: \"bullet\"\n"
  29. "embedded_collision_shape {\n"
  30. " shapes {\n"
  31. " shape_type: TYPE_SPHERE\n"
  32. " position {\n"
  33. " }\n"
  34. " rotation {\n"
  35. " }\n"
  36. " index: 0\n"
  37. " count: 1\n"
  38. " id: \"ship\"\n"
  39. " }\n"
  40. " data: 22.5\n"
  41. "}\n"
  42. "event_collision: false\n"
  43. "event_contact: false\n"
  44. ""
  45. }