modify_atlas.collection 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. name: "atlas"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "green1"
  5. data: "embedded_components {\n"
  6. " id: \"sprite\"\n"
  7. " type: \"sprite\"\n"
  8. " data: \"default_animation: \\\"shipGreen_manned\\\"\\n"
  9. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  10. "blend_mode: BLEND_MODE_ALPHA\\n"
  11. "textures {\\n"
  12. " sampler: \\\"texture_sampler\\\"\\n"
  13. " texture: \\\"/example/modify_atlas.atlas\\\"\\n"
  14. "}\\n"
  15. "\"\n"
  16. " position {\n"
  17. " x: 0.0\n"
  18. " y: 0.0\n"
  19. " z: 0.0\n"
  20. " }\n"
  21. " rotation {\n"
  22. " x: 0.0\n"
  23. " y: 0.0\n"
  24. " z: 0.0\n"
  25. " w: 1.0\n"
  26. " }\n"
  27. "}\n"
  28. ""
  29. position {
  30. x: 220.0
  31. y: 500.0
  32. z: 0.0
  33. }
  34. rotation {
  35. x: 0.0
  36. y: 0.0
  37. z: 0.0
  38. w: 1.0
  39. }
  40. scale3 {
  41. x: 1.0
  42. y: 1.0
  43. z: 1.0
  44. }
  45. }
  46. embedded_instances {
  47. id: "pink1"
  48. data: "embedded_components {\n"
  49. " id: \"sprite\"\n"
  50. " type: \"sprite\"\n"
  51. " data: \"default_animation: \\\"shipPink_manned\\\"\\n"
  52. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  53. "blend_mode: BLEND_MODE_ALPHA\\n"
  54. "textures {\\n"
  55. " sampler: \\\"texture_sampler\\\"\\n"
  56. " texture: \\\"/example/modify_atlas.atlas\\\"\\n"
  57. "}\\n"
  58. "\"\n"
  59. " position {\n"
  60. " x: 0.0\n"
  61. " y: 0.0\n"
  62. " z: 0.0\n"
  63. " }\n"
  64. " rotation {\n"
  65. " x: 0.0\n"
  66. " y: 0.0\n"
  67. " z: 0.0\n"
  68. " w: 1.0\n"
  69. " }\n"
  70. "}\n"
  71. ""
  72. position {
  73. x: 500.0
  74. y: 500.0
  75. z: 0.0
  76. }
  77. rotation {
  78. x: 0.0
  79. y: 0.0
  80. z: 0.0
  81. w: 1.0
  82. }
  83. scale3 {
  84. x: 1.0
  85. y: 1.0
  86. z: 1.0
  87. }
  88. }
  89. embedded_instances {
  90. id: "example"
  91. data: "components {\n"
  92. " id: \"modify_atlas\"\n"
  93. " component: \"/example/modify_atlas.script\"\n"
  94. " position {\n"
  95. " x: 0.0\n"
  96. " y: 0.0\n"
  97. " z: 0.0\n"
  98. " }\n"
  99. " rotation {\n"
  100. " x: 0.0\n"
  101. " y: 0.0\n"
  102. " z: 0.0\n"
  103. " w: 1.0\n"
  104. " }\n"
  105. " property_decls {\n"
  106. " }\n"
  107. "}\n"
  108. "embedded_components {\n"
  109. " id: \"label\"\n"
  110. " type: \"label\"\n"
  111. " data: \"size {\\n"
  112. " x: 128.0\\n"
  113. " y: 32.0\\n"
  114. " z: 0.0\\n"
  115. " w: 0.0\\n"
  116. "}\\n"
  117. "color {\\n"
  118. " x: 0.0\\n"
  119. " y: 0.0\\n"
  120. " z: 0.0\\n"
  121. " w: 1.0\\n"
  122. "}\\n"
  123. "outline {\\n"
  124. " x: 0.0\\n"
  125. " y: 0.0\\n"
  126. " z: 0.0\\n"
  127. " w: 1.0\\n"
  128. "}\\n"
  129. "shadow {\\n"
  130. " x: 0.0\\n"
  131. " y: 0.0\\n"
  132. " z: 0.0\\n"
  133. " w: 1.0\\n"
  134. "}\\n"
  135. "leading: 1.0\\n"
  136. "tracking: 0.0\\n"
  137. "pivot: PIVOT_CENTER\\n"
  138. "blend_mode: BLEND_MODE_ALPHA\\n"
  139. "line_break: false\\n"
  140. "text: \\\"CLICK TO REPLACE PINK WITH YELLOW\\\"\\n"
  141. "font: \\\"/builtins/fonts/debug/always_on_top.font\\\"\\n"
  142. "material: \\\"/builtins/fonts/label.material\\\"\\n"
  143. "\"\n"
  144. " position {\n"
  145. " x: 360.0\n"
  146. " y: 40.0\n"
  147. " z: 0.0\n"
  148. " }\n"
  149. " rotation {\n"
  150. " x: 0.0\n"
  151. " y: 0.0\n"
  152. " z: 0.0\n"
  153. " w: 1.0\n"
  154. " }\n"
  155. "}\n"
  156. ""
  157. position {
  158. x: 0.0
  159. y: 0.0
  160. z: 0.0
  161. }
  162. rotation {
  163. x: 0.0
  164. y: 0.0
  165. z: 0.0
  166. w: 1.0
  167. }
  168. scale3 {
  169. x: 1.0
  170. y: 1.0
  171. z: 1.0
  172. }
  173. }
  174. embedded_instances {
  175. id: "green2"
  176. data: "embedded_components {\n"
  177. " id: \"sprite\"\n"
  178. " type: \"sprite\"\n"
  179. " data: \"default_animation: \\\"shipGreen_manned\\\"\\n"
  180. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  181. "blend_mode: BLEND_MODE_ALPHA\\n"
  182. "textures {\\n"
  183. " sampler: \\\"texture_sampler\\\"\\n"
  184. " texture: \\\"/example/modify_atlas.atlas\\\"\\n"
  185. "}\\n"
  186. "\"\n"
  187. " position {\n"
  188. " x: 0.0\n"
  189. " y: 0.0\n"
  190. " z: 0.0\n"
  191. " }\n"
  192. " rotation {\n"
  193. " x: 0.0\n"
  194. " y: 0.0\n"
  195. " z: 0.0\n"
  196. " w: 1.0\n"
  197. " }\n"
  198. "}\n"
  199. ""
  200. position {
  201. x: 220.0
  202. y: 220.0
  203. z: 0.0
  204. }
  205. rotation {
  206. x: 0.0
  207. y: 0.0
  208. z: 0.0
  209. w: 1.0
  210. }
  211. scale3 {
  212. x: 1.0
  213. y: 1.0
  214. z: 1.0
  215. }
  216. }
  217. embedded_instances {
  218. id: "pink2"
  219. data: "embedded_components {\n"
  220. " id: \"sprite\"\n"
  221. " type: \"sprite\"\n"
  222. " data: \"default_animation: \\\"shipPink_manned\\\"\\n"
  223. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  224. "blend_mode: BLEND_MODE_ALPHA\\n"
  225. "textures {\\n"
  226. " sampler: \\\"texture_sampler\\\"\\n"
  227. " texture: \\\"/example/modify_atlas.atlas\\\"\\n"
  228. "}\\n"
  229. "\"\n"
  230. " position {\n"
  231. " x: 0.0\n"
  232. " y: 0.0\n"
  233. " z: 0.0\n"
  234. " }\n"
  235. " rotation {\n"
  236. " x: 0.0\n"
  237. " y: 0.0\n"
  238. " z: 0.0\n"
  239. " w: 1.0\n"
  240. " }\n"
  241. "}\n"
  242. ""
  243. position {
  244. x: 500.0
  245. y: 220.0
  246. z: 0.0
  247. }
  248. rotation {
  249. x: 0.0
  250. y: 0.0
  251. z: 0.0
  252. w: 1.0
  253. }
  254. scale3 {
  255. x: 1.0
  256. y: 1.0
  257. z: 1.0
  258. }
  259. }