spawn_manager.collection 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. name: "default"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "ship"
  5. data: "components {\n"
  6. " id: \"ship\"\n"
  7. " component: \"/example/ship.script\"\n"
  8. "}\n"
  9. "embedded_components {\n"
  10. " id: \"sprite\"\n"
  11. " type: \"sprite\"\n"
  12. " data: \"default_animation: \\\"playerShip1_red\\\"\\n"
  13. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  14. "textures {\\n"
  15. " sampler: \\\"texture_sampler\\\"\\n"
  16. " texture: \\\"/assets/sprites.atlas\\\"\\n"
  17. "}\\n"
  18. "\"\n"
  19. "}\n"
  20. "embedded_components {\n"
  21. " id: \"bulletfactory\"\n"
  22. " type: \"factory\"\n"
  23. " data: \"prototype: \\\"/example/bullet.go\\\"\\n"
  24. "\"\n"
  25. "}\n"
  26. ""
  27. position {
  28. x: 100.0
  29. y: 50.0
  30. }
  31. }
  32. embedded_instances {
  33. id: "spawner"
  34. data: "components {\n"
  35. " id: \"spawner\"\n"
  36. " component: \"/example/spawner.script\"\n"
  37. "}\n"
  38. "components {\n"
  39. " id: \"boom\"\n"
  40. " component: \"/example/boom.particlefx\"\n"
  41. "}\n"
  42. "embedded_components {\n"
  43. " id: \"enemyfactory\"\n"
  44. " type: \"factory\"\n"
  45. " data: \"prototype: \\\"/example/enemy.go\\\"\\n"
  46. "\"\n"
  47. "}\n"
  48. "embedded_components {\n"
  49. " id: \"example_description\"\n"
  50. " type: \"label\"\n"
  51. " data: \"size {\\n"
  52. " x: 1024.0\\n"
  53. " y: 256.0\\n"
  54. "}\\n"
  55. "color {\\n"
  56. " x: 0.0\\n"
  57. " y: 0.5647059\\n"
  58. " z: 0.99215686\\n"
  59. "}\\n"
  60. "outline {\\n"
  61. " x: 1.0\\n"
  62. " y: 1.0\\n"
  63. " z: 1.0\\n"
  64. "}\\n"
  65. "text: \\\"Spawn enemies with numeric keys:\\\\n"
  66. "\\\"\\n"
  67. " \\\"[1] Random [2] Diagonal [3] Straight\\\"\\n"
  68. "font: \\\"/assets/text48.font\\\"\\n"
  69. "material: \\\"/builtins/fonts/label.material\\\"\\n"
  70. "\"\n"
  71. " position {\n"
  72. " y: 50.0\n"
  73. " }\n"
  74. " scale {\n"
  75. " x: 0.5\n"
  76. " y: 0.5\n"
  77. " }\n"
  78. "}\n"
  79. ""
  80. position {
  81. x: 360.0
  82. y: 600.0
  83. }
  84. }