dynamic.collection 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: "dynamic"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "ship"
  5. data: "components {\n"
  6. " id: \"dynamic\"\n"
  7. " component: \"/example/dynamic.script\"\n"
  8. "}\n"
  9. "embedded_components {\n"
  10. " id: \"bulletfactory\"\n"
  11. " type: \"factory\"\n"
  12. " data: \"prototype: \\\"/example/flame.go\\\"\\n"
  13. "dynamic_prototype: true\\n"
  14. "\"\n"
  15. "}\n"
  16. "embedded_components {\n"
  17. " id: \"bullets\"\n"
  18. " type: \"collectionproxy\"\n"
  19. " data: \"collection: \\\"/example/bullets.collection\\\"\\n"
  20. "\"\n"
  21. "}\n"
  22. "embedded_components {\n"
  23. " id: \"sprite\"\n"
  24. " type: \"sprite\"\n"
  25. " data: \"default_animation: \\\"playerShip1_red\\\"\\n"
  26. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  27. "textures {\\n"
  28. " sampler: \\\"texture_sampler\\\"\\n"
  29. " texture: \\\"/assets/sprites.atlas\\\"\\n"
  30. "}\\n"
  31. "\"\n"
  32. " position {\n"
  33. " z: 1.0\n"
  34. " }\n"
  35. "}\n"
  36. ""
  37. position {
  38. x: 360.0
  39. y: 116.0
  40. }
  41. }
  42. embedded_instances {
  43. id: "go"
  44. data: "embedded_components {\n"
  45. " id: \"instructions\"\n"
  46. " type: \"label\"\n"
  47. " data: \"size {\\n"
  48. " x: 128.0\\n"
  49. " y: 32.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: \\\"Click/spacebar to change bullet\\\"\\n"
  62. "font: \\\"/assets/text48.font\\\"\\n"
  63. "material: \\\"/builtins/fonts/label.material\\\"\\n"
  64. "\"\n"
  65. " position {\n"
  66. " x: 360.0\n"
  67. " y: 20.0\n"
  68. " }\n"
  69. " scale {\n"
  70. " x: 0.5\n"
  71. " y: 0.5\n"
  72. " }\n"
  73. "}\n"
  74. ""
  75. }