scene.gbsres 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. {
  2. "_resourceType": "scene",
  3. "id": "d257c303-5f7e-40f7-92ce-5e1625cdbc9b",
  4. "_index": 8,
  5. "name": "Hospital",
  6. "backgroundId": "13547e55-97ba-4ed0-8d2c-a8eab4147191",
  7. "tilesetId": "",
  8. "width": 64,
  9. "height": 96,
  10. "type": "PLATFORM",
  11. "paletteIds": [],
  12. "spritePaletteIds": [],
  13. "collisions": "0020c+0f30+0010+0f30+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+003e+0f2+003e+0f2+003e+0f2+003e+0f24+012+0fa+0010+0f24+002+0fa+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0fa+014+008+014+0fa+012+008+0f2+0010+0fa+0010+0fa+00a+0f2+0010+0f2+0020+0f2+004+012+004+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0010+012+00e+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+002a+012+0f2+0010+0f2+002+01a+0020+0f2+0010+0f2+002+0f20+00a+0f2+0010+0f2+002+0f20+00a+0f2+0010+0f2+0020+0f2+01a+0f2+0010+0f2+0020+0fe+0010+0f2+012+001a+0f2+002+0fe+0010+0f2+001c+0f2+002+0fe+0010+0f2+001a+012+0f2+002+0fe+0010+0f2+001c+0f2+002+0fe+0010+0f2+006+012+00e+0fc+00a+0f2+0010+0f2+0016+0fc+00a+0f2+0010+0f2+00c+012+001e+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f20+012+0f2+00a+0f2+0010+0f20+002+0f2+00a+0f2+0010+0f2+0018+0f2+006+0f2+006+014+0f2+0010+0f2+0018+0f2+006+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+001e+0f4+00a+0f2+0010+0f2+001e+0f4+00a+0f2+0010+0fe+006+0f10+00a+0f2+0010+0fe+006+0f10+00a+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+0010+012+001a+0f2+0010+0f2+006+0f1c+00a+0f2+0010+0f2+006+0f1c+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+014+001c+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+00e+012+0010+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+002+012+00c+012+001a+0f2+0010+0f2+002c+0f2+0010+0f24+012+008+0f2+0010+0f24+00a+0f2+0010+0f2+0010+0f2+00e+0f2+008+012+0f2+0010+0f2+0010+0f2+00e+0f2+00a+0f2+0010+0f2+0010+0f2+00c+0f4+00a+0f2+0010+0f2+0010+0f2+00c+0f4+00a+0f2+0010+0f2+012+00e+0f2+00a+0f6+00a+0f2+0010+0f2+0010+0f2+00a+0f6+00a+0f2+0010+0f2+0010+0f2+014+0fc+008+012+0f2+0010+0f2+0010+0f2+004+0fc+00a+0f2+0010+0f2+004+012+0026+0f2+0010+0f2+002c+0f2+0010+0f2+002c+0f2+0010+0f2+014+002+014+00a+014+0014+0f2+0010+0f28+012+0f6+0010+0f24+00a+0f2+0010+0f2+0020+0f2+00a+0f2+0010+0f2+0020+0f2+00a+0f2+001c+012+0020+0f2+003e+0f2+001e+012+0014+0fc+0018+014+006+014+00e+0fc+004+0f80+",
  14. "autoFadeSpeed": 1,
  15. "symbol": "scene_9",
  16. "x": 1472,
  17. "y": 904,
  18. "script": [
  19. {
  20. "command": "EVENT_GROUP",
  21. "args": {
  22. "__collapse": false
  23. },
  24. "children": {
  25. "true": [
  26. {
  27. "command": "EVENT_SET_INPUT_SCRIPT",
  28. "args": {
  29. "input": [
  30. "a"
  31. ],
  32. "override": true,
  33. "__scriptTabs": "press",
  34. "__collapse": true
  35. },
  36. "children": {
  37. "true": [
  38. {
  39. "command": "EVENT_SOUND_PLAY_EFFECT",
  40. "args": {
  41. "type": "1eec9e8f-6c62-4716-82a0-2b35046e4d6d",
  42. "priority": "high",
  43. "pitch": 4,
  44. "frequency": 200,
  45. "duration": 0.5,
  46. "wait": true,
  47. "effect": 36
  48. },
  49. "id": "3474d8dc-cd66-4db1-bf37-9feedcf68270"
  50. },
  51. {
  52. "command": "EVENT_SET_VALUE",
  53. "args": {
  54. "variable": "0",
  55. "value": {
  56. "type": "true"
  57. },
  58. "__collapse": false
  59. },
  60. "id": "bbb3974d-9171-40dc-b4f9-9da442f886e9"
  61. },
  62. {
  63. "command": "EVENT_PLAYER_SET_SPRITE",
  64. "args": {
  65. "spriteSheetId": "835fee3e-5a1d-47ed-be2d-5f060686178a",
  66. "__collapse": false
  67. },
  68. "id": "bc1f9e38-bca5-4c55-933c-08e0e3c7ffe2"
  69. },
  70. {
  71. "command": "EVENT_ACTOR_EFFECTS",
  72. "args": {
  73. "effect": "flicker",
  74. "actorId": "$self$",
  75. "distance": 20,
  76. "speed": 2,
  77. "time": 1.5,
  78. "frames": 30,
  79. "__collapse": false
  80. },
  81. "id": "f360f632-d697-4229-879b-5abb7c57d5ff"
  82. },
  83. {
  84. "command": "EVENT_SET_VALUE",
  85. "args": {
  86. "variable": "0",
  87. "value": {
  88. "type": "false"
  89. },
  90. "__collapse": false
  91. },
  92. "id": "197662ff-f530-40ae-ba30-6fc608e168b3"
  93. },
  94. {
  95. "command": "EVENT_PLAYER_SET_SPRITE",
  96. "args": {
  97. "spriteSheetId": "6ae2f141-7f1a-4ec8-af30-445db4e3ebac",
  98. "__collapse": false
  99. },
  100. "id": "b7b26457-2046-49c6-a241-562cc7c95dcf"
  101. }
  102. ]
  103. },
  104. "id": "f51d236c-0d59-4c3f-aba5-278161a74a30"
  105. },
  106. {
  107. "command": "EVENT_SET_VALUE",
  108. "args": {
  109. "variable": "2",
  110. "value": {
  111. "type": "false"
  112. },
  113. "__collapse": true
  114. },
  115. "id": "35c74c86-e1eb-491c-8108-84b7d134d7a5"
  116. },
  117. {
  118. "command": "EVENT_SET_VALUE",
  119. "args": {
  120. "variable": "1",
  121. "value": {
  122. "type": "number",
  123. "value": 4
  124. },
  125. "__collapse": true,
  126. "__comment": true
  127. },
  128. "id": "2dc6523d-1e0d-4d01-8d38-bde337c4871b"
  129. },
  130. {
  131. "command": "EVENT_IF",
  132. "args": {
  133. "condition": {
  134. "type": "eq",
  135. "valueA": {
  136. "type": "variable",
  137. "value": "1"
  138. },
  139. "valueB": {
  140. "type": "number",
  141. "value": 0
  142. }
  143. },
  144. "__collapseElse": true,
  145. "__collapse": true,
  146. "__comment": true
  147. },
  148. "children": {
  149. "true": [
  150. {
  151. "command": "EVENT_SET_VALUE",
  152. "args": {
  153. "variable": "1",
  154. "value": {
  155. "type": "number",
  156. "value": 4
  157. }
  158. },
  159. "id": "9ad00f27-febb-4f12-bc6b-3f9b4d8e745b"
  160. }
  161. ],
  162. "false": []
  163. },
  164. "id": "f0196b47-d5ad-4ab5-9b55-1e1c8e858f0f"
  165. },
  166. {
  167. "command": "EVENT_CALL_CUSTOM_EVENT",
  168. "args": {
  169. "customEventId": "7a4a0afd-9a83-4ae5-aadd-c77ade95ae42",
  170. "$actor[1]$": "8ed7f381-585a-4285-b10e-85f3815c7248",
  171. "__collapse": true
  172. },
  173. "id": "6a3e913d-6ef2-4fde-9580-f13d95efee12"
  174. },
  175. {
  176. "command": "EVENT_ACTOR_COLLISIONS_ENABLE",
  177. "args": {
  178. "actorId": "$self$",
  179. "__collapse": true
  180. },
  181. "id": "9ceecafc-9a09-4037-90d9-aff89d0021b3"
  182. },
  183. {
  184. "command": "EVENT_SET_INPUT_SCRIPT",
  185. "args": {
  186. "input": [
  187. "select"
  188. ],
  189. "override": true,
  190. "__scriptTabs": "press",
  191. "__collapse": true
  192. },
  193. "children": {
  194. "true": [
  195. {
  196. "command": "EVENT_GROUP",
  197. "args": {},
  198. "children": {
  199. "true": [
  200. {
  201. "command": "EVENT_SCENE_PUSH_STATE",
  202. "args": {},
  203. "id": "08bd05af-aadb-43b9-a9f6-0508e1de7dcd"
  204. },
  205. {
  206. "command": "EVENT_SWITCH_SCENE",
  207. "args": {
  208. "sceneId": "92abe915-473b-4eca-9b66-87874bd76db6",
  209. "x": {
  210. "type": "number",
  211. "value": 18
  212. },
  213. "y": {
  214. "type": "number",
  215. "value": 17
  216. },
  217. "direction": "right",
  218. "fadeSpeed": "2"
  219. },
  220. "id": "4d10b653-b66b-43a8-8846-ab15f08d2c98"
  221. }
  222. ]
  223. },
  224. "id": "9d7381dc-a4ad-498b-8366-4b8746625581"
  225. }
  226. ]
  227. },
  228. "id": "bde7bce6-1685-4b2b-a14f-4d51295ce0ae"
  229. },
  230. {
  231. "command": "EVENT_SET_INPUT_SCRIPT",
  232. "args": {
  233. "input": [
  234. "start"
  235. ],
  236. "override": true,
  237. "__scriptTabs": "press",
  238. "__collapse": true
  239. },
  240. "children": {
  241. "true": [
  242. {
  243. "command": "EVENT_MENU",
  244. "args": {
  245. "variable": "L0",
  246. "items": 3,
  247. "option1": "Collectibles",
  248. "option2": "Back to game",
  249. "option3": "Quit game",
  250. "option4": "",
  251. "option5": "",
  252. "option6": "",
  253. "option7": "",
  254. "option8": "",
  255. "cancelOnB": false,
  256. "layout": "dialogue",
  257. "cancelOnLastOption": false
  258. },
  259. "id": "3f1d8ead-2831-4860-b2c2-534ec9f04e9c"
  260. },
  261. {
  262. "command": "EVENT_SWITCH",
  263. "args": {
  264. "variable": "L0",
  265. "choices": 3,
  266. "__collapseCase0": true,
  267. "value0": 1,
  268. "__collapseCase1": true,
  269. "value1": 2,
  270. "__collapseCase2": false,
  271. "value2": 3,
  272. "__collapseCase3": false,
  273. "value3": 4,
  274. "__collapseCase4": false,
  275. "value4": 5,
  276. "__collapseCase5": false,
  277. "value5": 6,
  278. "__collapseCase6": false,
  279. "value6": 7,
  280. "__collapseCase7": false,
  281. "value7": 8,
  282. "__collapseCase8": false,
  283. "value8": 9,
  284. "__collapseCase9": false,
  285. "value9": 10,
  286. "__collapseCase10": false,
  287. "value10": 11,
  288. "__collapseCase11": false,
  289. "value11": 12,
  290. "__collapseCase12": false,
  291. "value12": 13,
  292. "__collapseCase13": false,
  293. "value13": 14,
  294. "__collapseCase14": false,
  295. "value14": 15,
  296. "__collapseCase15": false,
  297. "value15": 16,
  298. "__collapseElse": false
  299. },
  300. "children": {
  301. "true0": [
  302. {
  303. "command": "EVENT_GROUP",
  304. "args": {},
  305. "children": {
  306. "true": [
  307. {
  308. "command": "EVENT_SCENE_PUSH_STATE",
  309. "args": {},
  310. "id": "dd5be689-8bc8-4ecf-80d5-c2bef8a93ed6"
  311. },
  312. {
  313. "command": "EVENT_SWITCH_SCENE",
  314. "args": {
  315. "sceneId": "92abe915-473b-4eca-9b66-87874bd76db6",
  316. "x": {
  317. "type": "number",
  318. "value": 18
  319. },
  320. "y": {
  321. "type": "number",
  322. "value": 16
  323. },
  324. "direction": "right",
  325. "fadeSpeed": "2"
  326. },
  327. "id": "79f58764-73e5-4868-8e8b-71636aecd1b7"
  328. }
  329. ]
  330. },
  331. "id": "038b288f-a237-4bd8-84b6-557e43fe4e54"
  332. }
  333. ],
  334. "true1": [
  335. {
  336. "command": "EVENT_STOP",
  337. "args": {},
  338. "id": "49ddb18a-5fa1-4a80-acf5-c85abe713b29"
  339. }
  340. ],
  341. "true2": [
  342. {
  343. "command": "EVENT_SWITCH_SCENE",
  344. "args": {
  345. "sceneId": "e5f48ef9-e079-4884-adb8-e9fd93eac453",
  346. "x": {
  347. "type": "number",
  348. "value": 0
  349. },
  350. "y": {
  351. "type": "number",
  352. "value": 0
  353. },
  354. "direction": "right",
  355. "fadeSpeed": "2"
  356. },
  357. "id": "cb231b42-567a-4ee7-8482-d38b57182f6d"
  358. }
  359. ],
  360. "true3": [],
  361. "true4": [],
  362. "true5": [],
  363. "true6": [],
  364. "true7": [],
  365. "true8": [],
  366. "true9": [],
  367. "true10": [],
  368. "true11": [],
  369. "true12": [],
  370. "true13": [],
  371. "true14": [],
  372. "true15": [],
  373. "false": []
  374. },
  375. "id": "aac43ece-45e4-4069-bdff-50c5cead7842"
  376. }
  377. ]
  378. },
  379. "id": "a61aada0-d119-4589-b0c8-e7736358ee10"
  380. },
  381. {
  382. "command": "EVENT_SET_VALUE",
  383. "args": {
  384. "variable": "12",
  385. "value": {
  386. "type": "number",
  387. "value": 3
  388. },
  389. "__collapse": true
  390. },
  391. "id": "8033ec87-c7ca-496f-b9b9-04c0b83b4b83"
  392. },
  393. {
  394. "command": "EVENT_IF",
  395. "args": {
  396. "condition": {
  397. "type": "variable",
  398. "value": "18"
  399. },
  400. "__collapseElse": true,
  401. "__collapse": true
  402. },
  403. "children": {
  404. "true": [
  405. {
  406. "command": "EVENT_ACTOR_DEACTIVATE",
  407. "args": {
  408. "actorId": "82409c00-ef44-46d8-91a3-9ce0a8dd88d9"
  409. },
  410. "id": "09f01f26-1b40-4441-8109-d94304852229"
  411. }
  412. ],
  413. "false": []
  414. },
  415. "id": "e85b0707-cc36-488a-86ac-c12497912167"
  416. },
  417. {
  418. "command": "EVENT_IF",
  419. "args": {
  420. "condition": {
  421. "type": "variable",
  422. "value": "19"
  423. },
  424. "__collapseElse": true,
  425. "__collapse": true
  426. },
  427. "children": {
  428. "true": [
  429. {
  430. "command": "EVENT_ACTOR_DEACTIVATE",
  431. "args": {
  432. "actorId": "bb0ac9c9-c743-43f6-8267-79d3029cf94d"
  433. },
  434. "id": "0c52a45e-a30a-409a-a36d-1f028177b16e"
  435. }
  436. ],
  437. "false": []
  438. },
  439. "id": "7e6f7e5f-c5ce-4182-863b-af854234c32a"
  440. },
  441. {
  442. "command": "EVENT_IF",
  443. "args": {
  444. "condition": {
  445. "type": "variable",
  446. "value": "17"
  447. },
  448. "__collapseElse": true,
  449. "__collapse": true
  450. },
  451. "children": {
  452. "true": [
  453. {
  454. "command": "EVENT_ACTOR_DEACTIVATE",
  455. "args": {
  456. "actorId": "8dd8db66-6b81-414f-a0fc-4fd76fbc8784"
  457. },
  458. "id": "19b87186-f033-4b14-a559-1dcb2127daad"
  459. }
  460. ],
  461. "false": []
  462. },
  463. "id": "21cffdb9-83e9-4d27-a5fc-5516f1f8ba6a"
  464. }
  465. ]
  466. },
  467. "id": "69efc82c-e9e8-444f-88b6-7588b656c22a"
  468. }
  469. ],
  470. "playerHit1Script": [],
  471. "playerHit2Script": [],
  472. "playerHit3Script": []
  473. }