spawn_properties.collection 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. "embedded_components {\n"
  39. " id: \"enemyfactory\"\n"
  40. " type: \"factory\"\n"
  41. " data: \"prototype: \\\"/example/enemy.go\\\"\\n"
  42. "\"\n"
  43. "}\n"
  44. "embedded_components {\n"
  45. " id: \"example_description\"\n"
  46. " type: \"label\"\n"
  47. " data: \"size {\\n"
  48. " x: 1024.0\\n"
  49. " y: 256.0\\n"
  50. "}\\n"
  51. "color {\\n"
  52. " x: 0.0\\n"
  53. " y: 0.5647059\\n"
  54. " z: 0.99215686\\n"
  55. "}\\n"
  56. "outline {\\n"
  57. " x: 1.0\\n"
  58. " y: 1.0\\n"
  59. " z: 1.0\\n"
  60. "}\\n"
  61. "text: \\\"Spawn enemies with numeric keys:\\\\n"
  62. "\\\"\\n"
  63. " \\\"[1] Random [2] Diagonal [3] Straight\\\"\\n"
  64. "font: \\\"/assets/text48.font\\\"\\n"
  65. "material: \\\"/builtins/fonts/label.material\\\"\\n"
  66. "\"\n"
  67. " position {\n"
  68. " y: 50.0\n"
  69. " }\n"
  70. " scale {\n"
  71. " x: 0.5\n"
  72. " y: 0.5\n"
  73. " }\n"
  74. "}\n"
  75. ""
  76. position {
  77. x: 360.0
  78. y: 600.0
  79. }
  80. }