scene.gbsres 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. {
  2. "_resourceType": "scene",
  3. "id": "72c1e8e4-0697-4feb-b262-0ece9c3af457",
  4. "_index": 0,
  5. "name": "House",
  6. "backgroundId": "776a09f5-58db-40de-b722-ea559cbb354e",
  7. "tilesetId": "",
  8. "width": 96,
  9. "height": 64,
  10. "type": "PLATFORM",
  11. "paletteIds": [],
  12. "spritePaletteIds": [],
  13. "collisions": "00c0+012+0054e+0f46+001a+0f46+001a+0f2+0014+0f2+002c+0f2+001a+0f2+0014+0f2+002c+0f2+001a+0f2+00a+012+0fa+002c+0f2+001a+0f2+00c+0fa+002c+0f2+001a+0f2+0014+0f2+002c+0f2+001a+0f2+0014+0f2+002c+0f2+001a+0f2+006+012+0012+012+004+012+0012+016+008+0f2+001a+0f2+0042+0f2+001a+0f2+001c+012+00c+014+0014+0f2+001a+0f2+0042+0f2+001a+0f28+001c+0f2+001a+0f28+001c+0f2+001a+0f2+001c+0f2+0020+012+002+0f2+001a+0f2+001c+0f2+0024+0f2+001a+0f2+001c+0f2+0024+0f2+001a+0f2+001c+0f2+0024+0f2+001a+0f2+002+012+0032+014+008+0f2+001a+0f2+0042+0f2+001a+0f2+0042+0f2+001a+0f2+0042+0f2+001a+0fc+006+0f16+009+20!0f14+001a+0fc+006+0f16+008+20!00!0f14+001a+0f2+002d+20!0f2+004+0f2+00c+0f2+001a+0f2+002c+20!00!0f2+004+0f2+00c+0f2+001a+0f2+00c+012+001d+20!0f2+0014+0f2+001a+0f2+002a+22!02!0f2+0014+0f2+001a+0f2+0042+0f2+001a+0f2+0042+0f2+001a+0f2+0033+20!0f6+006+0f4+001a+0f2+0032+20!00!0f6+006+0f4+001a+0f6+006+0f14+008+0f10+00c+0f2+001a+0f6+006+0f14+008+0f10+00c+0f2+001a+0f2+00e+0f2+0024+0f2+008+012+002+0f2+001a+0f2+00e+0f2+0024+0f2+00c+0f2+001a+0f2+012+002+014+0018+012+0012+0f2+00c+0f2+001a+0f2+0034+0f2+00c+0f2+001a+0f2+0034+0f2+00c+0f2+001a+0f2+0034+0f2+00c+0f2+001a+0f12+007+20!0f14+014+0f6+002+012+008+0f2+001a+0f12+006+20!00!0f14+004+0f6+00c+0f2+0031+20!0f2+005c+20!00!0f2+005b+20!0f2+005c+20!00!0f2+0038+0fc0+",
  14. "autoFadeSpeed": 1,
  15. "symbol": "scene_0",
  16. "x": 520,
  17. "y": 320,
  18. "script": [
  19. {
  20. "command": "EVENT_GROUP",
  21. "args": {},
  22. "children": {
  23. "true": [
  24. {
  25. "command": "EVENT_SET_INPUT_SCRIPT",
  26. "args": {
  27. "input": [
  28. "a"
  29. ],
  30. "override": true,
  31. "__scriptTabs": "press",
  32. "__collapse": false
  33. },
  34. "children": {
  35. "true": [
  36. {
  37. "command": "EVENT_SOUND_PLAY_EFFECT",
  38. "args": {
  39. "type": "1eec9e8f-6c62-4716-82a0-2b35046e4d6d",
  40. "priority": "high",
  41. "pitch": 4,
  42. "frequency": 200,
  43. "duration": 0.5,
  44. "wait": true,
  45. "effect": 36
  46. },
  47. "id": "6e2de7f8-9d8a-4bcf-bf78-e3d50343212e"
  48. },
  49. {
  50. "command": "EVENT_SET_VALUE",
  51. "args": {
  52. "variable": "0",
  53. "value": {
  54. "type": "true"
  55. },
  56. "__collapse": false
  57. },
  58. "id": "37a3f833-60ae-41ce-aa9c-84acecb5b824"
  59. },
  60. {
  61. "command": "EVENT_PLAYER_SET_SPRITE",
  62. "args": {
  63. "spriteSheetId": "835fee3e-5a1d-47ed-be2d-5f060686178a",
  64. "__collapse": false
  65. },
  66. "id": "c4409e6e-1086-4511-9dff-558a3261cbff"
  67. },
  68. {
  69. "command": "EVENT_ACTOR_EFFECTS",
  70. "args": {
  71. "effect": "flicker",
  72. "actorId": "$self$",
  73. "distance": 20,
  74. "speed": 2,
  75. "time": 1.5,
  76. "frames": 30,
  77. "__collapse": false
  78. },
  79. "id": "63fdf906-8dc4-4748-9be2-88355aa01d4e"
  80. },
  81. {
  82. "command": "EVENT_SET_VALUE",
  83. "args": {
  84. "variable": "0",
  85. "value": {
  86. "type": "false"
  87. },
  88. "__collapse": false
  89. },
  90. "id": "479e53db-fd93-48ee-8ab6-2127bbe61cec"
  91. },
  92. {
  93. "command": "EVENT_PLAYER_SET_SPRITE",
  94. "args": {
  95. "spriteSheetId": "6ae2f141-7f1a-4ec8-af30-445db4e3ebac",
  96. "__collapse": false
  97. },
  98. "id": "0e4e1c99-fd90-484a-b733-5ad9df60b3c8"
  99. }
  100. ]
  101. },
  102. "id": "1d70c2b6-4595-434e-b444-856b9077d164"
  103. },
  104. {
  105. "command": "EVENT_SET_VALUE",
  106. "args": {
  107. "variable": "1",
  108. "value": {
  109. "type": "number",
  110. "value": 4
  111. },
  112. "__collapse": true,
  113. "__comment": true
  114. },
  115. "id": "39eca761-e4c5-4bc0-8633-1bc6baadbe3f"
  116. },
  117. {
  118. "command": "EVENT_IF",
  119. "args": {
  120. "condition": {
  121. "type": "eq",
  122. "valueA": {
  123. "type": "variable",
  124. "value": "1"
  125. },
  126. "valueB": {
  127. "type": "number",
  128. "value": 0
  129. }
  130. },
  131. "__collapseElse": true,
  132. "__comment": true
  133. },
  134. "children": {
  135. "true": [
  136. {
  137. "command": "EVENT_SET_VALUE",
  138. "args": {
  139. "variable": "1",
  140. "value": {
  141. "type": "number",
  142. "value": 4
  143. }
  144. },
  145. "id": "644316b1-6987-4d68-8dd3-27dd8fac1bfb"
  146. }
  147. ],
  148. "false": []
  149. },
  150. "id": "abc9e863-a269-4134-a048-1ded356e10cd"
  151. },
  152. {
  153. "command": "EVENT_CALL_CUSTOM_EVENT",
  154. "args": {
  155. "customEventId": "7a4a0afd-9a83-4ae5-aadd-c77ade95ae42",
  156. "$actor[1]$": "54ee1eeb-48b4-4c17-8133-23abb014cff7",
  157. "__collapse": false
  158. },
  159. "id": "061a6a1b-602e-4dfe-b091-13057e7a11fd"
  160. },
  161. {
  162. "command": "EVENT_ACTOR_COLLISIONS_ENABLE",
  163. "args": {
  164. "actorId": "$self$",
  165. "__collapse": true
  166. },
  167. "id": "b0501c34-3807-42b3-a16c-e2de0a532826"
  168. },
  169. {
  170. "command": "EVENT_SET_INPUT_SCRIPT",
  171. "args": {
  172. "input": [
  173. "select"
  174. ],
  175. "override": true,
  176. "__scriptTabs": "press",
  177. "__collapse": true
  178. },
  179. "children": {
  180. "true": [
  181. {
  182. "command": "EVENT_GROUP",
  183. "args": {},
  184. "children": {
  185. "true": [
  186. {
  187. "command": "EVENT_SCENE_PUSH_STATE",
  188. "args": {},
  189. "id": "31d8bf06-046a-4447-aa98-a0e1a1cd6ad9"
  190. },
  191. {
  192. "command": "EVENT_SWITCH_SCENE",
  193. "args": {
  194. "sceneId": "92abe915-473b-4eca-9b66-87874bd76db6",
  195. "x": {
  196. "type": "number",
  197. "value": 18
  198. },
  199. "y": {
  200. "type": "number",
  201. "value": 17
  202. },
  203. "direction": "right",
  204. "fadeSpeed": "2"
  205. },
  206. "id": "8e0696c9-e048-4aff-a0d7-837c86797f54"
  207. }
  208. ]
  209. },
  210. "id": "75da32df-d7f4-4a16-a781-402d35979ec3"
  211. }
  212. ]
  213. },
  214. "id": "9f9fc2d6-58f8-4023-b45c-306c8bd68f87"
  215. },
  216. {
  217. "command": "EVENT_SET_INPUT_SCRIPT",
  218. "args": {
  219. "input": [
  220. "start"
  221. ],
  222. "override": true,
  223. "__scriptTabs": "press",
  224. "__collapse": true
  225. },
  226. "children": {
  227. "true": [
  228. {
  229. "command": "EVENT_MENU",
  230. "args": {
  231. "variable": "L0",
  232. "items": 3,
  233. "option1": "Collectibles",
  234. "option2": "Back to game",
  235. "option3": "Quit game",
  236. "option4": "",
  237. "option5": "",
  238. "option6": "",
  239. "option7": "",
  240. "option8": "",
  241. "cancelOnB": false,
  242. "layout": "dialogue",
  243. "cancelOnLastOption": false
  244. },
  245. "id": "c54294a5-1d24-4121-88eb-c628563bbbcf"
  246. },
  247. {
  248. "command": "EVENT_SWITCH",
  249. "args": {
  250. "variable": "L0",
  251. "choices": 3,
  252. "__collapseCase0": false,
  253. "value0": 1,
  254. "__collapseCase1": true,
  255. "value1": 2,
  256. "__collapseCase2": true,
  257. "value2": 3,
  258. "__collapseCase3": false,
  259. "value3": 4,
  260. "__collapseCase4": false,
  261. "value4": 5,
  262. "__collapseCase5": false,
  263. "value5": 6,
  264. "__collapseCase6": false,
  265. "value6": 7,
  266. "__collapseCase7": false,
  267. "value7": 8,
  268. "__collapseCase8": false,
  269. "value8": 9,
  270. "__collapseCase9": false,
  271. "value9": 10,
  272. "__collapseCase10": false,
  273. "value10": 11,
  274. "__collapseCase11": false,
  275. "value11": 12,
  276. "__collapseCase12": false,
  277. "value12": 13,
  278. "__collapseCase13": false,
  279. "value13": 14,
  280. "__collapseCase14": false,
  281. "value14": 15,
  282. "__collapseCase15": false,
  283. "value15": 16,
  284. "__collapseElse": false
  285. },
  286. "children": {
  287. "true0": [
  288. {
  289. "command": "EVENT_GROUP",
  290. "args": {},
  291. "children": {
  292. "true": [
  293. {
  294. "command": "EVENT_SCENE_PUSH_STATE",
  295. "args": {},
  296. "id": "df0cd3f2-a9e0-4c71-9992-39d4c0492c25"
  297. },
  298. {
  299. "command": "EVENT_SWITCH_SCENE",
  300. "args": {
  301. "sceneId": "92abe915-473b-4eca-9b66-87874bd76db6",
  302. "x": {
  303. "type": "number",
  304. "value": 18
  305. },
  306. "y": {
  307. "type": "number",
  308. "value": 16
  309. },
  310. "direction": "right",
  311. "fadeSpeed": "2"
  312. },
  313. "id": "e8c46338-2570-4390-b266-8646515fa0e4"
  314. }
  315. ]
  316. },
  317. "id": "b4babe14-06b5-4e7f-a763-eac680cc767a"
  318. }
  319. ],
  320. "true1": [
  321. {
  322. "command": "EVENT_STOP",
  323. "args": {},
  324. "id": "8cf162f2-f5bb-483d-a40c-5ab6f6bb2881"
  325. }
  326. ],
  327. "true2": [
  328. {
  329. "command": "EVENT_SWITCH_SCENE",
  330. "args": {
  331. "sceneId": "e5f48ef9-e079-4884-adb8-e9fd93eac453",
  332. "x": {
  333. "type": "number",
  334. "value": 0
  335. },
  336. "y": {
  337. "type": "number",
  338. "value": 0
  339. },
  340. "direction": "right",
  341. "fadeSpeed": "2"
  342. },
  343. "id": "d36629de-f18e-4089-8673-7194bead2905"
  344. }
  345. ],
  346. "true3": [],
  347. "true4": [],
  348. "true5": [],
  349. "true6": [],
  350. "true7": [],
  351. "true8": [],
  352. "true9": [],
  353. "true10": [],
  354. "true11": [],
  355. "true12": [],
  356. "true13": [],
  357. "true14": [],
  358. "true15": [],
  359. "false": []
  360. },
  361. "id": "0cbd8787-5c77-4c8c-b92f-04026568ee1b"
  362. }
  363. ]
  364. },
  365. "id": "d1cef18c-1642-482a-9faa-9dbac542ef30"
  366. },
  367. {
  368. "command": "EVENT_SET_VALUE",
  369. "args": {
  370. "variable": "12",
  371. "value": {
  372. "type": "number",
  373. "value": 0
  374. },
  375. "__collapse": true
  376. },
  377. "id": "114382fa-6895-4255-938a-cb716c75b3bf"
  378. },
  379. {
  380. "command": "EVENT_IF",
  381. "args": {
  382. "condition": {
  383. "type": "variable",
  384. "value": "4"
  385. },
  386. "__collapseElse": true,
  387. "__collapse": true
  388. },
  389. "children": {
  390. "true": [
  391. {
  392. "command": "EVENT_ACTOR_DEACTIVATE",
  393. "args": {
  394. "actorId": "b44f35da-8159-49c8-864e-c413944324e3"
  395. },
  396. "id": "c86d77c1-26b4-4f49-913d-af986ae4add5"
  397. }
  398. ],
  399. "false": []
  400. },
  401. "id": "d61a39e8-e6e6-4385-9999-89fa1491f9fd"
  402. },
  403. {
  404. "command": "EVENT_IF",
  405. "args": {
  406. "condition": {
  407. "type": "variable",
  408. "value": "7"
  409. },
  410. "__collapseElse": true,
  411. "__collapse": true
  412. },
  413. "children": {
  414. "true": [
  415. {
  416. "command": "EVENT_ACTOR_DEACTIVATE",
  417. "args": {
  418. "actorId": "0527607e-7e4b-4bd0-b063-87f363a1e492"
  419. },
  420. "id": "ff4f732c-b569-442b-b3e8-afebf4050f5f"
  421. }
  422. ],
  423. "false": []
  424. },
  425. "id": "461d170a-8422-437e-859b-6628c6587f74"
  426. }
  427. ]
  428. },
  429. "id": "f8421e60-4bf2-49a8-b955-306bfff0ee60"
  430. }
  431. ],
  432. "playerHit1Script": [],
  433. "playerHit2Script": [],
  434. "playerHit3Script": [],
  435. "playerSpriteSheetId": "6ae2f141-7f1a-4ec8-af30-445db4e3ebac",
  436. "autoFadeEventCollapse": false
  437. }