From 3c2c02e12d00c343bddc8776d3c9e141443e25a5 Mon Sep 17 00:00:00 2001 From: raimonizard <97727989+raimonizard@users.noreply.github.com> Date: Tue, 31 Jan 2023 19:44:22 +0100 Subject: [PATCH] 1.0.0 --- assets/js/binary.js | 83687 +++++++++++++++++++++--------------------- assets/version.txt | 2 +- pxt.json | 1 + 3 files changed, 42841 insertions(+), 40849 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index d594558..a02e0c3 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.18/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.0","target":"arcade","targetVersion":"1.12.18"} -// total=2383756 new=6.58% cached=88.48% other=4.94% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.18/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"1.0.0","target":"arcade","targetVersion":"1.12.18","repo":"raimonizard/salvem-el-bosc-makecode-arcade"} +// total=2452200 new=6.45% cached=88.61% other=4.94% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -150,6 +150,9 @@ pxtrt.mapKeyNames = [ "changeValue", "charHeight", "charWidth", + "chunkIndex", + "chunkText", + "chunks", "clear", "clearInterior", "clearObstacles", @@ -293,6 +296,8 @@ pxtrt.mapKeyNames = [ "hasBestScore", "hasHitZero", "hasLife", + "hasNext", + "hasPrev", "hasScore", "hasScores", "hash", @@ -392,6 +397,7 @@ pxtrt.mapKeyNames = [ "multiplierImage", "neighbors", "next", + "nextPage", "nodeInterval", "numPages", "number", @@ -439,6 +445,7 @@ pxtrt.mapKeyNames = [ "preferredDelay", "pressureLevel", "prevOffset", + "prevPage", "prevTimeMillis", "previousScene", "printableCharacters", @@ -476,6 +483,7 @@ pxtrt.mapKeyNames = [ "right", "row", "rowCount", + "rowHeight", "rows", "run", "runButtonEvents", @@ -669,7 +677,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P30534(s) { +function _main___P94689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -679,310 +687,310 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___7499 = undefined; - globals._intervals___4493 = (undefined); - globals._pollEventQueue___4502 = (undefined); - globals.minPriority___375 = (1); + s.index___71720 = undefined; + globals._intervals___68712 = (undefined); + globals._pollEventQueue___68721 = (undefined); + globals.minPriority___64594 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P4505); - globals.listeners___4506 = (s.tmp_0); - globals.freqs___4555 = (_hex4554); - globals.globalVolume___4559 = (null); - globals.playToneID___4566 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P68724); + globals.listeners___68725 = (s.tmp_0); + globals.freqs___68774 = (_hex68773); + globals.globalVolume___68778 = (null); + globals.playToneID___68785 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C65845_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1 = music_Melody_constructor__P65848_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "~15 e3:3 r:1 d#:3 r:1 d:4 r:1 c#:8"; s.callLocIdx = 0; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - globals.wawawawaa___1647 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + globals.wawawawaa___65866 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C65845_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1 = music_Melody_constructor__P65848_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "g4:1 c5 e g:2 e:1 g:3"; s.callLocIdx = 1; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - globals.powerUp___1650 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + globals.powerUp___65869 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C65845_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1 = music_Melody_constructor__P65848_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "~4 @0,0,255,150 !300,1 !211,1"; s.callLocIdx = 2; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.knock___1655 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + globals.knock___65874 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C65845_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1 = music_Melody_constructor__P65848_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "~4 @0,0,255,150 !100,1"; s.callLocIdx = 3; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - globals.thump___1657 = (s.tmp_0); - globals.brightness___1934 = (100); + globals.thump___65876 = (s.tmp_0); + globals.brightness___66153 = (100); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charWidth", 6); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charHeight", 8); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex11602); - globals.font8___1956 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex75823); + globals.font8___66175 = (s.tmp_0); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charWidth", 12); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charHeight", 12); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex11604); - globals.font12___1957 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex75825); + globals.font12___66176 = (s.tmp_0); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charWidth", 6); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charHeight", 5); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex21750); - globals.font5___1961 = (s.tmp_0); - globals.__updated___4652 = (false); - r0 = pxsim.control.runInParallel(control___screen_inline__P4655); - r0 = pxsim_pxtcore.setPalette(_hex4666); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex85971); + globals.font5___66180 = (s.tmp_0); + globals.__updated___68871 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P68874); + r0 = pxsim_pxtcore.setPalette(_hex68885); r0 = pxsim_pxtcore.getConfig(2102, 160); s.tmp_0 = r0; r0 = pxsim_pxtcore.getConfig(2103, 120); s.tmp_1 = r0; r0 = pxsim.image.create(s.tmp_0, s.tmp_1); - globals.screen___2013 = (r0); - s.tmp_0 = control___screen_setupUpdate__P1975_mk(s); - s.tmp_0.arg0 = _screen_internal_inline__P4675; + globals.screen___66232 = (r0); + s.tmp_0 = control___screen_setupUpdate__P66194_mk(s); + s.tmp_0.arg0 = _screen_internal_inline__P68894; s.callLocIdx = 8; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - globals.control_EventContext_onStats___398 = (_screen_internal_inline__P4680); - globals.RUN_KEY___4685 = ("#run"); - globals.SCOPE_KEY___4686 = ("#scope"); - s.tmp_0 = settings_initScopes__P4697_mk(s); + globals.control_EventContext_onStats___64617 = (_screen_internal_inline__P68899); + globals.RUN_KEY___68904 = ("#run"); + globals.SCOPE_KEY___68905 = ("#scope"); + s.tmp_0 = settings_initScopes__P68916_mk(s); s.callLocIdx = 9; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; s.callLocIdx = 10; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - globals.A___2094 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.A___66313 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; s.callLocIdx = 11; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - globals.B___2095 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.B___66314 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; s.callLocIdx = 12; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - globals.left___2096 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.left___66315 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; s.callLocIdx = 13; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - globals.up___2097 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.up___66316 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; s.callLocIdx = 14; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - globals.right___2098 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.right___66317 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; s.callLocIdx = 15; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - globals.down___2099 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); + globals.down___66318 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; s.callLocIdx = 16; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - globals.menu___2100 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2115_VT); + globals.menu___66319 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C66334_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2119_mk(s); + s.tmp_1 = controller_Controller_constructor__P66338_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = undefined; s.callLocIdx = 17; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - globals.player2___2101 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2115_VT); + globals.player2___66320 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C66334_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2119_mk(s); + s.tmp_1 = controller_Controller_constructor__P66338_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.callLocIdx = 18; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - globals.player3___2102 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2115_VT); + globals.player3___66321 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C66334_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2119_mk(s); + s.tmp_1 = controller_Controller_constructor__P66338_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = undefined; s.callLocIdx = 19; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - globals.player4___2103 = (s.tmp_0); - s.tmp_0 = controller__player1__P2109_mk(s); + globals.player4___66322 = (s.tmp_0); + s.tmp_0 = controller__player1__P66328_mk(s); s.callLocIdx = 20; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - globals.player1___2104 = (r0); - s.tmp_0 = game_addScenePopHandler__P3000_mk(s); - s.tmp_0.arg0 = controller_inline__P4725; + globals.player1___66323 = (r0); + s.tmp_0 = game_addScenePopHandler__P67219_mk(s); + s.tmp_0.arg0 = controller_inline__P68944; s.callLocIdx = 25; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - s.tmp_0 = game_addScenePushHandler__P2998_mk(s); - s.tmp_0.arg0 = controller_inline__P4765; + s.tmp_0 = game_addScenePushHandler__P67217_mk(s); + s.tmp_0.arg0 = controller_inline__P68984; s.callLocIdx = 27; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C4789_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C69008_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2176_mk(s); + s.tmp_1 = controller_Button_constructor__P66395_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; s.callLocIdx = 28; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - globals.anyButton___2151 = (s.tmp_0); - globals._userEventsEnabled___4803 = (true); - globals.defaultRepeatDelay___4805 = (500); - globals.defaultRepeatInterval___4807 = (30); - s.tmp_0 = SpriteKind_create__P2459_mk(s); + globals.anyButton___66370 = (s.tmp_0); + globals._userEventsEnabled___69022 = (true); + globals.defaultRepeatDelay___69024 = (500); + globals.defaultRepeatInterval___69026 = (30); + s.tmp_0 = SpriteKind_create__P66678_mk(s); s.callLocIdx = 29; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - globals.Player___2460 = (r0); - s.tmp_0 = SpriteKind_create__P2459_mk(s); + globals.Player___66679 = (r0); + s.tmp_0 = SpriteKind_create__P66678_mk(s); s.callLocIdx = 30; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - globals.Food___2462 = (r0); - s.tmp_0 = SpriteKind_create__P2459_mk(s); + globals.Food___66681 = (r0); + s.tmp_0 = SpriteKind_create__P66678_mk(s); s.callLocIdx = 31; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - globals.Enemy___2463 = (r0); + globals.Enemy___66682 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___2501 = (r0); - globals.infoState___4872 = (undefined); - s.tmp_0 = game_addScenePushHandler__P2998_mk(s); - s.tmp_0.arg0 = info_inline__P4876; + globals.MIN_MOVE_GAP___66720 = (r0); + globals.infoState___69091 = (undefined); + s.tmp_0 = game_addScenePushHandler__P67217_mk(s); + s.tmp_0.arg0 = info_inline__P69095; s.callLocIdx = 33; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P3000_mk(s); - s.tmp_0.arg0 = info_inline__P4891; + s.tmp_0 = game_addScenePopHandler__P67219_mk(s); + s.tmp_0.arg0 = info_inline__P69110; s.callLocIdx = 37; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfo__C2597_VT); + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfo__C66816_VT); s.tmp_0 = r0; - s.tmp_1 = info_PlayerInfo_constructor__P2599_mk(s); + s.tmp_1 = info_PlayerInfo_constructor__P66818_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.callLocIdx = 38; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.player1___2641 = (s.tmp_0); + globals.player1___66860 = (s.tmp_0); r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___2845 = (r0); - r0 = pxsim.image.ofBuffer(_hex4981); - globals.img_trophy_sm___4982 = (r0); - r0 = pxsim.image.ofBuffer(_hex4984); - globals.img_trophy_lg___4985 = (r0); - r0 = pxsim.image.ofBuffer(_hex4987); - globals.img_sleepy_sim___4988 = (r0); - globals.debug___2947 = (false); - globals.stats___2948 = (false); - globals.gameOverConfig___2978 = (gameOverConfig_inline__P5000); - globals.__isOver___5014 = (false); - s.tmp_0 = scene_systemMenu_initVolume__P5274_mk(s); + globals.scene_Scene_initializers___67064 = (r0); + r0 = pxsim.image.ofBuffer(_hex69200); + globals.img_trophy_sm___69201 = (r0); + r0 = pxsim.image.ofBuffer(_hex69203); + globals.img_trophy_lg___69204 = (r0); + r0 = pxsim.image.ofBuffer(_hex69206); + globals.img_sleepy_sim___69207 = (r0); + globals.debug___67166 = (false); + globals.stats___67167 = (false); + globals.gameOverConfig___67197 = (gameOverConfig_inline__P69219); + globals.__isOver___69233 = (false); + s.tmp_0 = scene_systemMenu_initVolume__P69493_mk(s); s.callLocIdx = 40; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P5275_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P69494_mk(s); s.callLocIdx = 41; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___2845, scene_systemMenu_register__P3086); - r0 = pxsim.image.ofBuffer(_hex5282); - globals.CARD_NORMAL___3091 = (r0); - r0 = pxsim.image.ofBuffer(_hex5284); - globals.CARD_SELECTED___3092 = (r0); - r0 = pxsim.image.ofBuffer(_hex5286); - globals.CARD_ACTIVE___3093 = (r0); - r0 = pxsim.image.ofBuffer(_hex5288); - globals.VOLUME_UP_ICON___3094 = (r0); - r0 = pxsim.image.ofBuffer(_hex5290); - globals.BRIGHTNESS_DOWN_ICON___3095 = (r0); - r0 = pxsim.image.ofBuffer(_hex5292); - globals.CLOSE_MENU_ICON___3096 = (r0); - r0 = pxsim.image.ofBuffer(_hex5294); - globals.VOLUME_DOWN_ICON___3097 = (r0); - r0 = pxsim.image.ofBuffer(_hex5296); - globals.SLEEP_ICON___3098 = (r0); - r0 = pxsim.image.ofBuffer(_hex5298); - globals.CONSOLE_ICON___3099 = (r0); - r0 = pxsim.image.ofBuffer(_hex5300); - globals.BRIGHTNESS_UP_ICON___3100 = (r0); - r0 = pxsim.image.ofBuffer(_hex5302); - globals.STATS_ICON___3101 = (r0); - globals.consoleColor___5305 = (1); - globals.tabSize___5308 = (8); - globals.consoleFont___5314 = (globals.font5___1961); - r0 = pxsim_ImageMethods.height(globals.screen___2013); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___67064, scene_systemMenu_register__P67305); + r0 = pxsim.image.ofBuffer(_hex69501); + globals.CARD_NORMAL___67310 = (r0); + r0 = pxsim.image.ofBuffer(_hex69503); + globals.CARD_SELECTED___67311 = (r0); + r0 = pxsim.image.ofBuffer(_hex69505); + globals.CARD_ACTIVE___67312 = (r0); + r0 = pxsim.image.ofBuffer(_hex69507); + globals.VOLUME_UP_ICON___67313 = (r0); + r0 = pxsim.image.ofBuffer(_hex69509); + globals.BRIGHTNESS_DOWN_ICON___67314 = (r0); + r0 = pxsim.image.ofBuffer(_hex69511); + globals.CLOSE_MENU_ICON___67315 = (r0); + r0 = pxsim.image.ofBuffer(_hex69513); + globals.VOLUME_DOWN_ICON___67316 = (r0); + r0 = pxsim.image.ofBuffer(_hex69515); + globals.SLEEP_ICON___67317 = (r0); + r0 = pxsim.image.ofBuffer(_hex69517); + globals.CONSOLE_ICON___67318 = (r0); + r0 = pxsim.image.ofBuffer(_hex69519); + globals.BRIGHTNESS_UP_ICON___67319 = (r0); + r0 = pxsim.image.ofBuffer(_hex69521); + globals.STATS_ICON___67320 = (r0); + globals.consoleColor___69524 = (1); + globals.tabSize___69527 = (8); + globals.consoleFont___69533 = (globals.font5___66180); + r0 = pxsim_ImageMethods.height(globals.screen___66232); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___5314; + s.tmp_5.arg0 = globals.consoleFont___69533; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -1001,13 +1009,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___5319 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___2013); + globals.consoleLines___69538 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_2 = r0; r0 = (s.tmp_2 - 8); s.tmp_1 = r0; s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___5314; + s.tmp_4.arg0 = globals.consoleFont___69533; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -1022,22 +1030,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___5329 = (r0); - s.tmp_0 = console_addListener__P383_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P5341; + globals.consoleColumns___69548 = (r0); + s.tmp_0 = console_addListener__P64602_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P69560; s.callLocIdx = 44; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = MAX_SOURCES_inline__P13922; + s.tmp_0.argL = MAX_SOURCES_inline__P78143; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 46; s.pc = 34; return s.tmp_0; case 34: r0 = s.retval; - globals.MAX_SOURCES___5343 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C3171_VT); + globals.MAX_SOURCES___69562 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C67390_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P3172_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P67391_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -1045,303 +1053,303 @@ switch (step) { s.callLocIdx = 47; s.pc = 35; return s.tmp_1; case 35: r0 = s.retval; - globals.defaultFactory___3151 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C3039_VT); + globals.defaultFactory___67370 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C67258_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P3041_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P67260_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 48; s.pc = 36; return s.tmp_1; case 36: r0 = s.retval; - globals.galois___5363 = (s.tmp_0); - globals.angleSlice___5371 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C3246_VT); + globals.galois___69582 = (s.tmp_0); + globals.angleSlice___69590 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C67465_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P3247_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P67466_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 10; s.tmp_1.arg2 = 40; s.tmp_1.arg3 = 4000; - s.tmp_1.arg4 = confetti_inline__P22906; + s.tmp_1.arg4 = confetti_inline__P87127; s.callLocIdx = 54; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; - globals.confetti___3254 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C3242_VT); + globals.confetti___67473 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C67461_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ParticleEffect_constructor__P3243_mk(s); + s.tmp_1 = effects_ParticleEffect_constructor__P67462_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 50; s.tmp_1.arg2 = 5000; - s.tmp_1.arg3 = fire_inline__P16594; + s.tmp_1.arg3 = fire_inline__P80815; s.callLocIdx = 58; s.pc = 38; return s.tmp_1; case 38: r0 = s.retval; - globals.fire___3258 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C3242_VT); + globals.fire___67477 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C67461_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ParticleEffect_constructor__P3243_mk(s); + s.tmp_1 = effects_ParticleEffect_constructor__P67462_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 60; s.tmp_1.arg2 = 2000; - s.tmp_1.arg3 = ashes_inline__P13663; + s.tmp_1.arg3 = ashes_inline__P77884; s.callLocIdx = 62; s.pc = 39; return s.tmp_1; case 39: r0 = s.retval; - globals.ashes___3262 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C3270_VT); + globals.ashes___67481 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C67489_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P3271_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P67490_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = dissolve_inline__P14501; + s.tmp_1.arg2 = dissolve_inline__P78722; s.callLocIdx = 68; s.pc = 40; return s.tmp_1; case 40: r0 = s.retval; - globals.dissolve___3275 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C3270_VT); + globals.dissolve___67494 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C67489_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P3271_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P67490_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = melt_inline__P22852; + s.tmp_1.arg2 = melt_inline__P87073; s.callLocIdx = 71; s.pc = 41; return s.tmp_1; case 41: r0 = s.retval; - globals.melt___3276 = (s.tmp_0); - globals.stateNamespace___5427 = ("__animation"); - s.tmp_0 = game_setWaitAnyButton__P2980_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P2186; + globals.melt___67495 = (s.tmp_0); + globals.stateNamespace___69646 = ("__animation"); + s.tmp_0 = game_setWaitAnyButton__P67199_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P66405; s.callLocIdx = 72; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - s.tmp_0 = game_eventContext__P2982_mk(s); + s.tmp_0 = game_eventContext__P67201_mk(s); s.callLocIdx = 73; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; - s.tmp_0 = SpriteKind_create__P2459_mk(s); + s.tmp_0 = SpriteKind_create__P66678_mk(s); s.callLocIdx = 74; s.pc = 44; return s.tmp_0; case 44: r0 = s.retval; - globals.StatusBar___4320 = (r0); - s.tmp_0 = StatusBarKind_create__P4323_mk(s); + globals.StatusBar___68539 = (r0); + s.tmp_0 = StatusBarKind_create__P68542_mk(s); s.callLocIdx = 75; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; - globals.Health___4324 = (r0); - s.tmp_0 = StatusBarKind_create__P4323_mk(s); + globals.Health___68543 = (r0); + s.tmp_0 = StatusBarKind_create__P68542_mk(s); s.callLocIdx = 76; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; - globals.Energy___4325 = (r0); - s.tmp_0 = StatusBarKind_create__P4323_mk(s); + globals.Energy___68544 = (r0); + s.tmp_0 = StatusBarKind_create__P68542_mk(s); s.callLocIdx = 77; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - globals.Magic___4326 = (r0); - s.tmp_0 = StatusBarKind_create__P4323_mk(s); + globals.Magic___68545 = (r0); + s.tmp_0 = StatusBarKind_create__P68542_mk(s); s.callLocIdx = 78; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - globals.EnemyHealth___4327 = (r0); - globals.STATUS_BAR_DATA_KEY___7058 = ("STATUS_BAR_DATA_KEY"); - if ((globals.STATUS_BAR_DATA_KEY___7058) && (globals.STATUS_BAR_DATA_KEY___7058).vtable) { + globals.EnemyHealth___68546 = (r0); + globals.STATUS_BAR_DATA_KEY___71277 = ("STATUS_BAR_DATA_KEY"); + if ((globals.STATUS_BAR_DATA_KEY___71277) && (globals.STATUS_BAR_DATA_KEY___71277).vtable) { setupResume(s, 49); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___7058); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___71277); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___7058) + ""; } + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___71277) + ""; } case 49: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_SPRITES"); - globals.MANAGED_SPRITES_KEY___7062 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___7058) && (globals.STATUS_BAR_DATA_KEY___7058).vtable) { + globals.MANAGED_SPRITES_KEY___71281 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___71277) && (globals.STATUS_BAR_DATA_KEY___71277).vtable) { setupResume(s, 50); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___7058); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___71277); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___7058) + ""; } + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___71277) + ""; } case 50: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_ZERO"); - globals.ZERO_HANDLERS_KEY___7068 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___7058) && (globals.STATUS_BAR_DATA_KEY___7058).vtable) { + globals.ZERO_HANDLERS_KEY___71287 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___71277) && (globals.STATUS_BAR_DATA_KEY___71277).vtable) { setupResume(s, 51); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___7058); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___71277); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___7058) + ""; } + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___71277) + ""; } case 51: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_STATUS_REACHED"); - globals.STATUS_HANDLERS_KEY___7074 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___7058) && (globals.STATUS_BAR_DATA_KEY___7058).vtable) { + globals.STATUS_HANDLERS_KEY___71293 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___71277) && (globals.STATUS_BAR_DATA_KEY___71277).vtable) { setupResume(s, 52); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___7058); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___71277); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___7058) + ""; } + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___71277) + ""; } case 52: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_DISPLAY_UPDATE"); - globals.POST_PROCESS_HANDLERS_KEY___7080 = (r0); - globals.burnedColor___7100 = (2); - globals.healthyColor___7102 = (3); - globals.drawForestHealth___7104 = (false); - globals.drawFireNumber___7106 = (false); - globals.drawFireDanger___7108 = (false); - globals.forestHealthText___7109 = ("Healthy Forest"); - globals.fireNumberText___7110 = ("Fires:"); - globals.fireNumber___7112 = (0); - globals.fireDangerText___7113 = ("Fire Danger:"); - globals.fireDangerColor___7115 = (7); - s.tmp_0 = statusbars_create__P4384_mk(s); + globals.POST_PROCESS_HANDLERS_KEY___71299 = (r0); + globals.burnedColor___71319 = (2); + globals.healthyColor___71321 = (3); + globals.drawForestHealth___71323 = (false); + globals.drawFireNumber___71325 = (false); + globals.drawFireDanger___71327 = (false); + globals.forestHealthText___71328 = ("Healthy Forest"); + globals.fireNumberText___71329 = ("Fires:"); + globals.fireNumber___71331 = (0); + globals.fireDangerText___71332 = ("Fire Danger:"); + globals.fireDangerColor___71334 = (7); + s.tmp_0 = statusbars_create__P68603_mk(s); s.tmp_0.arg0 = 82; s.tmp_0.arg1 = 4; - s.tmp_0.arg2 = globals.Health___4324; + s.tmp_0.arg2 = globals.Health___68543; s.callLocIdx = 79; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - globals.forestHealthBar___7117 = (r0); - s.tmp_0 = hud_createHUD__P7120_mk(s); + globals.forestHealthBar___71336 = (r0); + s.tmp_0 = hud_createHUD__P71339_mk(s); s.callLocIdx = 80; s.pc = 54; return s.tmp_0; case 54: r0 = s.retval; - s.tmp_0 = SpriteKind_create__P2459_mk(s); + s.tmp_0 = SpriteKind_create__P66678_mk(s); s.callLocIdx = 81; s.pc = 55; return s.tmp_0; case 55: r0 = s.retval; - globals.Water___4406 = (r0); - globals.facing___7126 = (0); - globals.hoseDirection___7128 = (0); - globals.changeRate___7130 = (10); - r0 = pxsim_pxtcore_mkClassInstance(forestFire_FireState__C7131_VT); + globals.Water___68625 = (r0); + globals.facing___71345 = (0); + globals.hoseDirection___71347 = (0); + globals.changeRate___71349 = (10); + r0 = pxsim_pxtcore_mkClassInstance(forestFire_FireState__C71350_VT); s.tmp_0 = r0; - s.tmp_1 = forestFire_FireState_constructor__P7144_mk(s); + s.tmp_1 = forestFire_FireState_constructor__P71363_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 82; s.pc = 56; return s.tmp_1; case 56: r0 = s.retval; - globals.state___7146 = (s.tmp_0); - r0 = pxsim.image.ofBuffer(_hex7149); - globals.transparency16___4434 = (r0); - r0 = pxsim.image.ofBuffer(_hex7153); - globals.tile3___4435 = (r0); - r0 = pxsim.image.ofBuffer(_hex7157); - globals.tile2___4436 = (r0); - r0 = pxsim.image.ofBuffer(_hex7161); - globals.tile8___4437 = (r0); - r0 = pxsim.image.ofBuffer(_hex7165); - globals.tile4___4438 = (r0); - r0 = pxsim.image.ofBuffer(_hex7169); - globals.tile1___4439 = (r0); - s.tmp_0 = helpers__registerFactory__P3312_mk(s); + globals.state___71365 = (s.tmp_0); + r0 = pxsim.image.ofBuffer(_hex71368); + globals.transparency16___68653 = (r0); + r0 = pxsim.image.ofBuffer(_hex71372); + globals.tile3___68654 = (r0); + r0 = pxsim.image.ofBuffer(_hex71376); + globals.tile2___68655 = (r0); + r0 = pxsim.image.ofBuffer(_hex71380); + globals.tile8___68656 = (r0); + r0 = pxsim.image.ofBuffer(_hex71384); + globals.tile4___68657 = (r0); + r0 = pxsim.image.ofBuffer(_hex71388); + globals.tile1___68658 = (r0); + s.tmp_0 = helpers__registerFactory__P67531_mk(s); s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = myTiles_inline__P7173; + s.tmp_0.arg1 = myTiles_inline__P71392; s.callLocIdx = 92; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; - s.tmp_0 = helpers__registerFactory__P3312_mk(s); + s.tmp_0 = helpers__registerFactory__P67531_mk(s); s.tmp_0.arg0 = "tile"; - s.tmp_0.arg1 = myTiles_inline__P7262; + s.tmp_0.arg1 = myTiles_inline__P71481; s.callLocIdx = 94; s.pc = 58; return s.tmp_0; case 58: r0 = s.retval; - s.tmp_0 = helpers__registerFactory__P3312_mk(s); + s.tmp_0 = helpers__registerFactory__P67531_mk(s); s.tmp_0.arg0 = "image"; - s.tmp_0.arg1 = myImages_inline__P7275; + s.tmp_0.arg1 = myImages_inline__P71494; s.callLocIdx = 96; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.tmp_0 = helpers__registerFactory__P3312_mk(s); + s.tmp_0 = helpers__registerFactory__P67531_mk(s); s.tmp_0.arg0 = "animation"; - s.tmp_0.arg1 = myImages_inline__P7298; + s.tmp_0.arg1 = myImages_inline__P71517; s.callLocIdx = 98; s.pc = 60; return s.tmp_0; case 60: r0 = s.retval; - s.tmp_0 = helpers__registerFactory__P3312_mk(s); + s.tmp_0 = helpers__registerFactory__P67531_mk(s); s.tmp_0.arg0 = "song"; - s.tmp_0.arg1 = myImages_inline__P7361; + s.tmp_0.arg1 = myImages_inline__P71580; s.callLocIdx = 100; s.pc = 61; return s.tmp_0; case 61: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.B___2095; + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.B___66314; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P7371; + s.tmp_0.arg2 = on_b_pressed__P71590; s.callLocIdx = 102; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; - s.tmp_0 = sprites_on_fire_created__P4418_mk(s); - s.tmp_0.arg0 = inline__P7376; + s.tmp_0 = sprites_on_fire_created__P68637_mk(s); + s.tmp_0.arg0 = on_fire_created__P71595; s.callLocIdx = 106; s.pc = 63; return s.tmp_0; case 63: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.left___2096; + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.left___66315; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P7389; + s.tmp_0.arg2 = on_left_pressed__P71608; s.callLocIdx = 109; s.pc = 64; return s.tmp_0; case 64: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.right___2098; + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.right___66317; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P7397; + s.tmp_0.arg2 = on_right_pressed__P71616; s.callLocIdx = 112; s.pc = 65; return s.tmp_0; case 65: r0 = s.retval; - s.tmp_0 = sprites_on_fire_destroyed__P4417_mk(s); - s.tmp_0.arg0 = inline__P7411; + s.tmp_0 = sprites_on_fire_destroyed__P68636_mk(s); + s.tmp_0.arg0 = on_fire_destroyed__P71630; s.callLocIdx = 125; s.pc = 66; return s.tmp_0; case 66: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.A___2094; + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.A___66313; s.tmp_0.arg1 = 2054; - s.tmp_0.arg2 = inline__P7425; + s.tmp_0.arg2 = on_a_repeated__P71644; s.callLocIdx = 130; s.pc = 67; return s.tmp_0; case 67: r0 = s.retval; - s.tmp_0 = scene_onOverlapTile__P2440_mk(s); - s.tmp_0.arg0 = globals.Water___4406; - s.tmp_1 = helpers_getTileByName__P3318_mk(s); - s.tmp_1.arg0 = "tree fire"; + s.tmp_0 = scene_onOverlapTile__P66659_mk(s); + s.tmp_0.arg0 = globals.Water___68625; + s.tmp_1 = helpers_getTileByName__P67537_mk(s); + s.tmp_1.arg0 = "\n tree fire\n "; s.callLocIdx = 131; s.pc = 69; return s.tmp_1; case 69: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = inline__P7440; + s.tmp_0.arg2 = on_overlap_tile__P71659; s.callLocIdx = 134; s.pc = 68; return s.tmp_0; case 68: r0 = s.retval; - globals.mySprite___4432 = (null); - s.tmp_0 = game_set_dryness_of_grass__P4410_mk(s); + globals.mySprite___68651 = (null); + s.tmp_0 = game_set_dryness_of_grass__P68629_mk(s); r0 = pxsim.Math_.randomRange(1, 4); s.tmp_0.arg0 = r0; s.callLocIdx = 135; s.pc = 70; return s.tmp_0; case 70: r0 = s.retval; - s.tmp_0 = game_set_strength_of_wind__P4408_mk(s); + s.tmp_0 = game_set_strength_of_wind__P68627_mk(s); r0 = pxsim.Math_.randomRange(1, 4); s.tmp_0.arg0 = r0; s.callLocIdx = 136; s.pc = 71; return s.tmp_0; case 71: r0 = s.retval; - s.tmp_0 = game_set_health_of_trees__P4409_mk(s); + s.tmp_0 = game_set_health_of_trees__P68628_mk(s); r0 = pxsim.Math_.randomRange(5, 8); s.tmp_0.arg0 = r0; s.callLocIdx = 137; s.pc = 72; return s.tmp_0; case 72: r0 = s.retval; - s.tmp_0 = tiles_setTilemap__P2743_mk(s); - s.tmp_1 = helpers_getTilemapByName__P3315_mk(s); - s.tmp_1.arg0 = "level1"; + s.tmp_0 = tiles_setTilemap__P66962_mk(s); + s.tmp_1 = helpers_getTilemapByName__P67534_mk(s); + s.tmp_1.arg0 = "\n level1\n"; s.callLocIdx = 138; s.pc = 74; return s.tmp_1; case 74: r0 = s.retval; @@ -1349,88 +1357,94 @@ switch (step) { s.callLocIdx = 139; s.pc = 73; return s.tmp_0; case 73: r0 = s.retval; - s.tmp_0 = sprites_create__P2256_mk(s); - s.tmp_1 = helpers_getImageByName__P3316_mk(s); - s.tmp_1.arg0 = "Fire Plane 2 Right"; + s.tmp_0 = sprites_create__P66475_mk(s); + s.tmp_1 = helpers_getImageByName__P67535_mk(s); + s.tmp_1.arg0 = "\n Fire Plane 2 Right\n "; s.callLocIdx = 140; s.pc = 76; return s.tmp_1; case 76: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.Player___2460; + s.tmp_0.arg1 = globals.Player___66679; s.callLocIdx = 141; s.pc = 75; return s.tmp_0; case 75: r0 = s.retval; - globals.mySprite___4432 = (r0); - s.tmp_0 = controller_moveSprite__P2148_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; + globals.mySprite___68651 = (r0); + s.tmp_0 = controller_moveSprite__P66367_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; s.tmp_0.arg1 = 100; s.tmp_0.arg2 = 100; s.callLocIdx = 142; s.pc = 77; return s.tmp_0; case 77: r0 = s.retval; - s.tmp_0 = scene_cameraFollowSprite__P2870_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; + s.tmp_0 = scene_cameraFollowSprite__P67089_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; s.callLocIdx = 143; s.pc = 78; return s.tmp_0; case 78: r0 = s.retval; - s.index___7499 = (0); + s.tmp_0 = game_showLongText__P67159_mk(s); + s.tmp_0.arg0 = "A per tirar aigua"; + s.tmp_0.arg1 = 3; + s.callLocIdx = 144; s.pc = 79; return s.tmp_0; + case 79: + r0 = s.retval; + s.index___71720 = (0); case 1: - r0 = (s.index___7499 < 4); + r0 = (s.index___71720 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = sprites_create_spreading_fire__P4416_mk(s); - s.tmp_2 = helpers_getTileByName__P3318_mk(s); - s.tmp_2.arg0 = "tree"; - s.callLocIdx = 144; s.pc = 80; return s.tmp_2; - case 80: + s.tmp_1 = sprites_create_spreading_fire__P68635_mk(s); + s.tmp_2 = helpers_getTileByName__P67537_mk(s); + s.tmp_2.arg0 = "\n tree\n "; + s.callLocIdx = 145; s.pc = 81; return s.tmp_2; + case 81: r0 = s.retval; s.tmp_1.arg0 = r0; - s.tmp_3 = helpers_getTileByName__P3318_mk(s); - s.tmp_3.arg0 = "tree fire"; - s.callLocIdx = 145; s.pc = 81; return s.tmp_3; - case 81: + s.tmp_3 = helpers_getTileByName__P67537_mk(s); + s.tmp_3.arg0 = "\n tree fire\n "; + s.callLocIdx = 146; s.pc = 82; return s.tmp_3; + case 82: r0 = s.retval; s.tmp_1.arg1 = r0; - s.callLocIdx = 146; s.pc = 79; return s.tmp_1; - case 79: + s.callLocIdx = 147; s.pc = 80; return s.tmp_1; + case 80: r0 = s.retval; - r0 = (s.index___7499 + 1); - s.index___7499 = (r0); + r0 = (s.index___71720 + 1); + s.index___71720 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = init__P4429_mk(s); - s.callLocIdx = 147; s.pc = 82; return s.tmp_0; - case 82: + s.tmp_0 = init__P68648_mk(s); + s.callLocIdx = 148; s.pc = 83; return s.tmp_0; + case 83: r0 = s.retval; - s.tmp_0 = music_play__P1907_mk(s); - s.tmp_1 = music_stringPlayable__P1909_mk(s); + s.tmp_0 = music_play__P66126_mk(s); + s.tmp_1 = music_stringPlayable__P66128_mk(s); s.tmp_1.arg0 = "B G B G B G B G "; s.tmp_1.arg1 = 120; - s.callLocIdx = 148; s.pc = 84; return s.tmp_1; - case 84: + s.callLocIdx = 149; s.pc = 85; return s.tmp_1; + case 85: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 2; - s.callLocIdx = 149; s.pc = 83; return s.tmp_0; - case 83: + s.callLocIdx = 150; s.pc = 84; return s.tmp_0; + case 84: r0 = s.retval; - s.tmp_0 = game_onUpdate__P3003_mk(s); - s.tmp_0.arg0 = inline__P7515; - s.callLocIdx = 151; s.pc = 85; return s.tmp_0; - case 85: + s.tmp_0 = game_onUpdate__P67222_mk(s); + s.tmp_0.arg0 = on_on_update__P71736; + s.callLocIdx = 152; s.pc = 86; return s.tmp_0; + case 86: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P30534.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/pxt-arcade-forest-fire/main.ts","functionName":"
","argumentNames":[]} -_main___P30534.continuations = [ 49,50,51,52 ] +_main___P94689.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/pxt-arcade-forest-fire/main.ts","functionName":"
","argumentNames":[]} +_main___P94689.continuations = [ 49,50,51,52 ] -function _main___P30534_mk(s) { +function _main___P94689_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P30534, depth: s.depth + 1, + parent: s, fn: _main___P94689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1438,39 +1452,39 @@ function _main___P30534_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___7499: undefined, + index___71720: undefined, } } -const _hex4554 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") -const _hex11602 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex11604 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex21750 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex4666 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex4981 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") -const _hex4984 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") -const _hex4987 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") -const _hex5282 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex5284 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex5286 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex5288 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5290 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5292 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5294 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5296 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5298 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5300 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex5302 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7149 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7153 = pxsim.BufferMethods.createBufferFromHex("87041000100000006666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666") -const _hex7157 = pxsim.BufferMethods.createBufferFromHex("8704100010000000666666bccc6c66666666c6cbbb6c66666666b6ebcccc6c666666c5ecc6bb6c666666cc44c2cb6c666666cbeec4cc66666665c64ecebccc6666664ce4e4bccb666666bc54e4cccc666666bc2ececb6c666666cb4ec2cb6c6666664be4c6cc6c666666c6e5bccc66666666c6cbbccc6666666666cccb666666666666bc6c666666") -const _hex7161 = pxsim.BufferMethods.createBufferFromHex("870410001000000066e666666666fe6e6666666666e6ee6e6666ff6666f6bbfef666bf6f66bebbfb6666f6fb66bdfbfb66ffffff6fbcbceff6bbeebefcfffffe66ffffebbeeceebef66666bfeeeeeeff666666f6effefffe66d666effeffbbef6666f6fe6fbecbfb6666f66f66febbfb666f66c666e6bbfe66ee6f6666e6eefe66e666666666e66e") -const _hex7165 = pxsim.BufferMethods.createBufferFromHex("8704100010000000666666666666666666666646886666666666865574686466664675464f4766f6666674e47e4465fb66e66e7ee74564fb6666ee764754b6ef465efe744455fffe6677e4754754e6be66744674e54466ff666676774f5764fe6665786e7e4465ef66668648745865fb66664654854666f666666646656666666666666666666666") -const _hex7169 = pxsim.BufferMethods.createBufferFromHex("870410001000000066666666666666666666668688666666666686787768666666667766766766666686767766676666667866776777666c667767766777c66c767767766777ee6c667767766777c66e667866776777666c668676776667666666667866766766666666867877686666666666868866666666666666666666666666666666666666") +const _hex68773 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") +const _hex75823 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex75825 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex85971 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex68885 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex69200 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") +const _hex69203 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") +const _hex69206 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") +const _hex69501 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex69503 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex69505 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex69507 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69509 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69511 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69513 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69515 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69517 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69519 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex69521 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71368 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71372 = pxsim.BufferMethods.createBufferFromHex("87041000100000006666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666") +const _hex71376 = pxsim.BufferMethods.createBufferFromHex("8704100010000000666666bccc6c66666666c6cbbb6c66666666b6ebcccc6c666666c5ecc6bb6c666666cc44c2cb6c666666cbeec4cc66666665c64ecebccc6666664ce4e4bccb666666bc54e4cccc666666bc2ececb6c666666cb4ec2cb6c6666664be4c6cc6c666666c6e5bccc66666666c6cbbccc6666666666cccb666666666666bc6c666666") +const _hex71380 = pxsim.BufferMethods.createBufferFromHex("870410001000000066e666666666fe6e6666666666e6ee6e6666ff6666f6bbfef666bf6f66bebbfb6666f6fb66bdfbfb66ffffff6fbcbceff6bbeebefcfffffe66ffffebbeeceebef66666bfeeeeeeff666666f6effefffe66d666effeffbbef6666f6fe6fbecbfb6666f66f66febbfb666f66c666e6bbfe66ee6f6666e6eefe66e666666666e66e") +const _hex71384 = pxsim.BufferMethods.createBufferFromHex("8704100010000000666666666666666666666646886666666666865574686466664675464f4766f6666674e47e4465fb66e66e7ee74564fb6666ee764754b6ef465efe744455fffe6677e4754754e6be66744674e54466ff666676774f5764fe6665786e7e4465ef66668648745865fb66664654854666f666666646656666666666666666666666") +const _hex71388 = pxsim.BufferMethods.createBufferFromHex("870410001000000066666666666666666666668688666666666686787768666666667766766766666686767766676666667866776777666c667767766777c66c767767766777ee6c667767766777c66e667866776777666c668676776667666666667866766766666666867877686666666666868866666666666666666666666666666666666666") -function control___screen_inline__P4655(s) { +function control___screen_inline__P68874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1483,23 +1497,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___4652 = (false); - s.tmp_0 = pause__P413_mk(s); + globals.__updated___68871 = (false); + s.tmp_0 = pause__P64632_mk(s); s.tmp_0.arg0 = 200; s.callLocIdx = 4; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__updated___4652); + r0 = pxsim_numops_toBoolDecr(globals.__updated___68871); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_2 = control___screen_update__P1974_mk(s); + s.tmp_2 = control___screen_update__P66193_mk(s); s.callLocIdx = 5; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___4652 = (true); + globals.__updated___68871 = (true); case 2: case 3: { step = 1; continue; } @@ -1508,12 +1522,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_inline__P4655.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +control___screen_inline__P68874.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function control___screen_inline__P4655_mk(s) { +function control___screen_inline__P68874_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_inline__P4655, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P68874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1524,7 +1538,7 @@ function control___screen_inline__P4655_mk(s) { -function _screen_internal_inline__P4675(s) { +function _screen_internal_inline__P68894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1534,17 +1548,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___2013); + r0 = pxsim_pxtcore.updateScreen(globals.screen___66232); r0 = undefined; return leave(s, r0) default: oops() } } } -_screen_internal_inline__P4675.info = {"start":1122,"length":26,"line":32,"column":33,"endLine":32,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +_screen_internal_inline__P68894.info = {"start":1122,"length":26,"line":32,"column":33,"endLine":32,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function _screen_internal_inline__P4675_mk(s) { +function _screen_internal_inline__P68894_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P4675, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P68894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1552,7 +1566,7 @@ function _screen_internal_inline__P4675_mk(s) { -function _screen_internal_inline__P4680(s) { +function _screen_internal_inline__P68899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1571,12 +1585,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_inline__P4680.info = {"start":1185,"length":56,"line":33,"column":35,"endLine":35,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +_screen_internal_inline__P68899.info = {"start":1185,"length":56,"line":33,"column":35,"endLine":35,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} -function _screen_internal_inline__P4680_mk(s) { +function _screen_internal_inline__P68899_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P4680, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P68899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1585,7 +1599,7 @@ function _screen_internal_inline__P4680_mk(s) { -function controller_inline__P4725(s) { +function controller_inline__P68944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1595,16 +1609,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.stateWhenPushed___4726 = undefined; - s.i___4732 = undefined; - s.p___4738 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); + s.stateWhenPushed___68945 = undefined; + s.i___68951 = undefined; + s.p___68957 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 21; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; r0 = r0.fields["controllerConnectionState"]; - s.stateWhenPushed___4726 = (r0); - r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___4726); + s.stateWhenPushed___68945 = (r0); + r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___68945); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -1613,24 +1627,24 @@ switch (step) { { step = 11; continue; } case 1: case 2: - s.i___4732 = (0); + s.i___68951 = (0); case 3: - s.tmp_1 = r0 = s.i___4732; - r0 = pxsim_Array__length(s.stateWhenPushed___4726); + s.tmp_1 = r0 = s.i___68951; + r0 = pxsim_Array__length(s.stateWhenPushed___68945); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(globals._players___4723, s.i___4732); - s.p___4738 = (r0); - s.tmp_0 = r0 = s.p___4738; + r0 = pxsim_Array__getAt(globals._players___68942, s.i___68951); + s.p___68957 = (r0); + s.tmp_0 = r0 = s.p___68957; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 4; continue; } r0 = s.tmp_0; { step = 5; continue; } case 4: - r0 = pxsim_Array__getAt(s.stateWhenPushed___4726, s.i___4732); + r0 = pxsim_Array__getAt(s.stateWhenPushed___68945, s.i___68951); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; @@ -1640,7 +1654,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.p___4738.fields["_connected"]; + r0 = s.p___68957.fields["_connected"]; s.tmp_10 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_10); s.tmp_9 = r0; @@ -1656,7 +1670,7 @@ switch (step) { s.tmp_11 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_11); if (!r0) { step = 8; continue; } - r0 = s.p___4738.fields["_connected"]; + r0 = s.p___68957.fields["_connected"]; s.tmp_12 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_12); if (!r0) { step = 6; continue; } @@ -1667,13 +1681,13 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_13 = r0; - r0 = s.p___4738.fields["_id"]; + r0 = s.p___68957.fields["_id"]; s.tmp_14 = r0; r0 = pxsim.control.raiseEvent(s.tmp_14, s.tmp_13); case 8: case 9: - r0 = (s.i___4732 + 1); - s.i___4732 = (r0); + r0 = (s.i___68951 + 1); + s.i___68951 = (r0); { step = 3; continue; } case 10: case 11: @@ -1681,12 +1695,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_inline__P4725.info = {"start":344,"length":582,"line":15,"column":28,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +controller_inline__P68944.info = {"start":344,"length":582,"line":15,"column":28,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function controller_inline__P4725_mk(s) { +function controller_inline__P68944_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P4725, depth: s.depth + 1, + parent: s, fn: controller_inline__P68944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1703,16 +1717,16 @@ function controller_inline__P4725_mk(s) { tmp_12: undefined, tmp_13: undefined, tmp_14: undefined, - stateWhenPushed___4726: undefined, - i___4732: undefined, - p___4738: undefined, + stateWhenPushed___68945: undefined, + i___68951: undefined, + p___68957: undefined, } } -function controller_inline__P4765(s) { +function controller_inline__P68984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1722,7 +1736,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___4770 = undefined; + s.i___68989 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -1731,43 +1745,43 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["controllerConnectionState"] = (s.tmp_1); - s.i___4770 = (0); + s.i___68989 = (0); case 1: - s.tmp_1 = r0 = s.i___4770; - r0 = pxsim_Array__length(globals._players___4723); + s.tmp_1 = r0 = s.i___68989; + r0 = pxsim_Array__length(globals._players___68942); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(globals._players___4723, s.i___4770); + r0 = pxsim_Array__getAt(globals._players___68942, s.i___68989); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } r0 = s.arg0.fields["controllerConnectionState"]; s.tmp_4 = r0; - s.tmp_5 = r0 = s.i___4770; - r0 = pxsim_Array__getAt(globals._players___4723, s.i___4770); + s.tmp_5 = r0 = s.i___68989; + r0 = pxsim_Array__getAt(globals._players___68942, s.i___68989); s.tmp_7 = r0; r0 = s.tmp_7.fields["_connected"]; s.tmp_6 = r0; r0 = pxsim_Array_.setAt(s.tmp_4, s.tmp_5, s.tmp_6); case 2: case 3: - r0 = (s.i___4770 + 1); - s.i___4770 = (r0); + r0 = (s.i___68989 + 1); + s.i___68989 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_inline__P4765.info = {"start":957,"length":254,"line":31,"column":29,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["oldScene"]} +controller_inline__P68984.info = {"start":957,"length":254,"line":31,"column":29,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["oldScene"]} -function controller_inline__P4765_mk(s) { +function controller_inline__P68984_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P4765, depth: s.depth + 1, + parent: s, fn: controller_inline__P68984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1777,7 +1791,7 @@ function controller_inline__P4765_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - i___4770: undefined, + i___68989: undefined, arg0: undefined, } } @@ -1785,7 +1799,7 @@ function controller_inline__P4765_mk(s) { -function info_inline__P4876(s) { +function info_inline__P69095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1799,36 +1813,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___4872); + r0 = pxsim_numops_toBoolDecr(globals.infoState___69091); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___4874); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___69093); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); - globals.infoStateStack___4874 = (r0); + globals.infoStateStack___69093 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___4872); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___69091); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___4874, s.tmp_0); - globals.infoState___4872 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___69093, s.tmp_0); + globals.infoState___69091 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_inline__P4876.info = {"start":2571,"length":259,"line":93,"column":29,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +info_inline__P69095.info = {"start":2571,"length":259,"line":93,"column":29,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function info_inline__P4876_mk(s) { +function info_inline__P69095_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P4876, depth: s.depth + 1, + parent: s, fn: info_inline__P69095, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1839,7 +1853,7 @@ function info_inline__P4876_mk(s) { -function info_inline__P4891(s) { +function info_inline__P69110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1849,30 +1863,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___4892 = undefined; - s.nextState___4901 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); + s.scene___69111 = undefined; + s.nextState___69120 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 34; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___4892 = (r0); - globals.infoState___4872 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___4874; + s.scene___69111 = (r0); + globals.infoState___69091 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___69093; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array__length(globals.infoStateStack___4874); + r0 = pxsim_Array__length(globals.infoStateStack___69093); case 2: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - r0 = pxsim_Array_.pop(globals.infoStateStack___4874); - s.nextState___4901 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___69093); + s.nextState___69120 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___4901; + s.tmp_2.arg0 = s.nextState___69120; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1884,12 +1898,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___4892); + r0 = (s.tmp_1 == s.scene___69111); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } s.tmp_3 = if_state_1_mk(s); - s.tmp_3.arg0 = s.nextState___4901; + s.tmp_3.arg0 = s.nextState___69120; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1900,10 +1914,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___4872 = (r0); + globals.infoState___69091 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___4874, s.nextState___4901); + r0 = pxsim_Array__push(globals.infoStateStack___69093, s.nextState___69120); case 4: case 5: case 6: @@ -1911,26 +1925,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_inline__P4891.info = {"start":2862,"length":376,"line":104,"column":28,"endLine":115,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +info_inline__P69110.info = {"start":2862,"length":376,"line":104,"column":28,"endLine":115,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function info_inline__P4891_mk(s) { +function info_inline__P69110_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P4891, depth: s.depth + 1, + parent: s, fn: info_inline__P69110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - scene___4892: undefined, - nextState___4901: undefined, + scene___69111: undefined, + nextState___69120: undefined, } } -function gameOverConfig_inline__P5000(s) { +function gameOverConfig_inline__P69219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1940,32 +1954,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___4999); + r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___69218); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverConfig__C2953_VT); + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverConfig__C67172_VT); s.tmp_2 = r0; - s.tmp_3 = game_GameOverConfig_constructor__P2968_mk(s); + s.tmp_3 = game_GameOverConfig_constructor__P67187_mk(s); s.tmp_3.arg0 = s.tmp_2; s.callLocIdx = 39; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - globals._gameOverConfig___4999 = (s.tmp_2); + globals._gameOverConfig___69218 = (s.tmp_2); case 1: case 2: - r0 = globals._gameOverConfig___4999; + r0 = globals._gameOverConfig___69218; return leave(s, r0) default: oops() } } } -gameOverConfig_inline__P5000.info = {"start":3714,"length":115,"line":107,"column":34,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +gameOverConfig_inline__P69219.info = {"start":3714,"length":115,"line":107,"column":34,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function gameOverConfig_inline__P5000_mk(s) { +function gameOverConfig_inline__P69219_mk(s) { checkStack(s.depth); return { - parent: s, fn: gameOverConfig_inline__P5000, depth: s.depth + 1, + parent: s, fn: gameOverConfig_inline__P69219, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1977,7 +1991,7 @@ function gameOverConfig_inline__P5000_mk(s) { -function myTiles_inline__P7173(s) { +function myTiles_inline__P71392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1991,7 +2005,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1 = helpers_stringTrim__P64342_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 83; s.pc = 19; return s.tmp_1; case 19: @@ -2035,13 +2049,13 @@ switch (step) { case 2: r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_2, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_2, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_2, globals.tile3___4435); - s.tmp_3 = tiles_createTilemap__P2742_mk(s); - s.tmp_3.arg0 = _hex7180; - r0 = pxsim.image.ofBuffer(_hex7182); + r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_2, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_2, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_2, globals.tile3___68654); + s.tmp_3 = tiles_createTilemap__P66961_mk(s); + s.tmp_3.arg0 = _hex71399; + r0 = pxsim.image.ofBuffer(_hex71401); s.tmp_3.arg1 = r0; s.tmp_3.arg2 = s.tmp_2; s.tmp_3.arg3 = 4; @@ -2051,9 +2065,9 @@ switch (step) { { step = 18; continue; } case 3: case 4: - s.tmp_4 = tiles_createTilemap__P2742_mk(s); - s.tmp_4.arg0 = _hex7191; - r0 = pxsim.image.ofBuffer(_hex7193); + s.tmp_4 = tiles_createTilemap__P66961_mk(s); + s.tmp_4.arg0 = _hex71410; + r0 = pxsim.image.ofBuffer(_hex71412); s.tmp_4.arg1 = r0; r0 = pxsim_Array__mk(); s.tmp_4.arg2 = r0; @@ -2066,10 +2080,10 @@ switch (step) { case 6: r0 = pxsim_Array__mk(); s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, globals.transparency16___4434); - s.tmp_6 = tiles_createTilemap__P2742_mk(s); - s.tmp_6.arg0 = _hex7199; - r0 = pxsim.image.ofBuffer(_hex7201); + r0 = pxsim_Array__push(s.tmp_5, globals.transparency16___68653); + s.tmp_6 = tiles_createTilemap__P66961_mk(s); + s.tmp_6.arg0 = _hex71418; + r0 = pxsim.image.ofBuffer(_hex71420); s.tmp_6.arg1 = r0; s.tmp_6.arg2 = s.tmp_5; s.tmp_6.arg3 = 4; @@ -2081,13 +2095,13 @@ switch (step) { case 8: r0 = pxsim_Array__mk(); s.tmp_7 = r0; - r0 = pxsim_Array__push(s.tmp_7, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_7, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_7, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_7, globals.tile3___4435); - s.tmp_8 = tiles_createTilemap__P2742_mk(s); - s.tmp_8.arg0 = _hex7207; - r0 = pxsim.image.ofBuffer(_hex7209); + r0 = pxsim_Array__push(s.tmp_7, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_7, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_7, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_7, globals.tile3___68654); + s.tmp_8 = tiles_createTilemap__P66961_mk(s); + s.tmp_8.arg0 = _hex71426; + r0 = pxsim.image.ofBuffer(_hex71428); s.tmp_8.arg1 = r0; s.tmp_8.arg2 = s.tmp_7; s.tmp_8.arg3 = 4; @@ -2099,13 +2113,13 @@ switch (step) { case 10: r0 = pxsim_Array__mk(); s.tmp_9 = r0; - r0 = pxsim_Array__push(s.tmp_9, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_9, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_9, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_9, globals.tile3___4435); - s.tmp_10 = tiles_createTilemap__P2742_mk(s); - s.tmp_10.arg0 = _hex7218; - r0 = pxsim.image.ofBuffer(_hex7220); + r0 = pxsim_Array__push(s.tmp_9, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_9, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_9, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_9, globals.tile3___68654); + s.tmp_10 = tiles_createTilemap__P66961_mk(s); + s.tmp_10.arg0 = _hex71437; + r0 = pxsim.image.ofBuffer(_hex71439); s.tmp_10.arg1 = r0; s.tmp_10.arg2 = s.tmp_9; s.tmp_10.arg3 = 4; @@ -2117,13 +2131,13 @@ switch (step) { case 12: r0 = pxsim_Array__mk(); s.tmp_11 = r0; - r0 = pxsim_Array__push(s.tmp_11, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_11, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_11, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_11, globals.tile3___4435); - s.tmp_12 = tiles_createTilemap__P2742_mk(s); - s.tmp_12.arg0 = _hex7229; - r0 = pxsim.image.ofBuffer(_hex7231); + r0 = pxsim_Array__push(s.tmp_11, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_11, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_11, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_11, globals.tile3___68654); + s.tmp_12 = tiles_createTilemap__P66961_mk(s); + s.tmp_12.arg0 = _hex71448; + r0 = pxsim.image.ofBuffer(_hex71450); s.tmp_12.arg1 = r0; s.tmp_12.arg2 = s.tmp_11; s.tmp_12.arg3 = 4; @@ -2135,13 +2149,13 @@ switch (step) { case 14: r0 = pxsim_Array__mk(); s.tmp_13 = r0; - r0 = pxsim_Array__push(s.tmp_13, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_13, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_13, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_13, globals.tile3___4435); - s.tmp_14 = tiles_createTilemap__P2742_mk(s); - s.tmp_14.arg0 = _hex7240; - r0 = pxsim.image.ofBuffer(_hex7242); + r0 = pxsim_Array__push(s.tmp_13, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_13, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_13, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_13, globals.tile3___68654); + s.tmp_14 = tiles_createTilemap__P66961_mk(s); + s.tmp_14.arg0 = _hex71459; + r0 = pxsim.image.ofBuffer(_hex71461); s.tmp_14.arg1 = r0; s.tmp_14.arg2 = s.tmp_13; s.tmp_14.arg3 = 4; @@ -2153,13 +2167,13 @@ switch (step) { case 16: r0 = pxsim_Array__mk(); s.tmp_15 = r0; - r0 = pxsim_Array__push(s.tmp_15, globals.transparency16___4434); - r0 = pxsim_Array__push(s.tmp_15, globals.tile1___4439); - r0 = pxsim_Array__push(s.tmp_15, globals.tile2___4436); - r0 = pxsim_Array__push(s.tmp_15, globals.tile3___4435); - s.tmp_16 = tiles_createTilemap__P2742_mk(s); - s.tmp_16.arg0 = _hex7251; - r0 = pxsim.image.ofBuffer(_hex7253); + r0 = pxsim_Array__push(s.tmp_15, globals.transparency16___68653); + r0 = pxsim_Array__push(s.tmp_15, globals.tile1___68658); + r0 = pxsim_Array__push(s.tmp_15, globals.tile2___68655); + r0 = pxsim_Array__push(s.tmp_15, globals.tile3___68654); + s.tmp_16 = tiles_createTilemap__P66961_mk(s); + s.tmp_16.arg0 = _hex71470; + r0 = pxsim.image.ofBuffer(_hex71472); s.tmp_16.arg1 = r0; s.tmp_16.arg2 = s.tmp_15; s.tmp_16.arg3 = 4; @@ -2173,12 +2187,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -myTiles_inline__P7173.info = {"start":719,"length":9548,"line":15,"column":40,"endLine":183,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +myTiles_inline__P71392.info = {"start":719,"length":9548,"line":15,"column":40,"endLine":183,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function myTiles_inline__P7173_mk(s) { +function myTiles_inline__P71392_mk(s) { checkStack(s.depth); return { - parent: s, fn: myTiles_inline__P7173, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P71392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2200,27 +2214,27 @@ function myTiles_inline__P7173_mk(s) { arg0: undefined, } } -const _hex7180 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7182 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7191 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7193 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7199 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7201 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7207 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7209 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7218 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7220 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7229 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7231 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7240 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7242 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7251 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") -const _hex7253 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71399 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71401 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71410 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71412 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71418 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71420 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71426 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71428 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71437 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71439 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71448 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71450 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71459 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71461 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71470 = pxsim.BufferMethods.createBufferFromHex("12001200030303030303030303030303030303030303030101010101010101010101010101010103030101010101010101010101010101010103030102010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030101010101010101010101010101010103030303030303030303030303030303030303") +const _hex71472 = pxsim.BufferMethods.createBufferFromHex("8704120012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function myTiles_inline__P7262(s) { +function myTiles_inline__P71481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2234,7 +2248,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1 = helpers_stringTrim__P64342_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 93; s.pc = 14; return s.tmp_1; case 14: @@ -2265,27 +2279,27 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 1: - r0 = globals.transparency16___4434; + r0 = globals.transparency16___68653; { step = 13; continue; } case 2: case 3: - r0 = globals.tile3___4435; + r0 = globals.tile3___68654; { step = 13; continue; } case 4: case 5: - r0 = globals.tile2___4436; + r0 = globals.tile2___68655; { step = 13; continue; } case 6: case 7: - r0 = globals.tile8___4437; + r0 = globals.tile8___68656; { step = 13; continue; } case 8: case 9: - r0 = globals.tile4___4438; + r0 = globals.tile4___68657; { step = 13; continue; } case 10: case 11: - r0 = globals.tile1___4439; + r0 = globals.tile1___68658; { step = 13; continue; } case 12: r0 = null; @@ -2293,12 +2307,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -myTiles_inline__P7262.info = {"start":10307,"length":495,"line":185,"column":37,"endLine":200,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +myTiles_inline__P71481.info = {"start":10307,"length":495,"line":185,"column":37,"endLine":200,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function myTiles_inline__P7262_mk(s) { +function myTiles_inline__P71481_mk(s) { checkStack(s.depth); return { - parent: s, fn: myTiles_inline__P7262, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P71481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2309,7 +2323,7 @@ function myTiles_inline__P7262_mk(s) { -function myImages_inline__P7275(s) { +function myImages_inline__P71494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2323,7 +2337,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1 = helpers_stringTrim__P64342_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 95; s.pc = 19; return s.tmp_1; case 19: @@ -2365,35 +2379,35 @@ switch (step) { { step = 17; continue; } case 1: case 2: - r0 = pxsim.image.ofBuffer(_hex7281); + r0 = pxsim.image.ofBuffer(_hex71500); { step = 18; continue; } case 3: case 4: - r0 = pxsim.image.ofBuffer(_hex7283); + r0 = pxsim.image.ofBuffer(_hex71502); { step = 18; continue; } case 5: case 6: - r0 = pxsim.image.ofBuffer(_hex7285); + r0 = pxsim.image.ofBuffer(_hex71504); { step = 18; continue; } case 7: case 8: - r0 = pxsim.image.ofBuffer(_hex7287); + r0 = pxsim.image.ofBuffer(_hex71506); { step = 18; continue; } case 9: case 10: - r0 = pxsim.image.ofBuffer(_hex7289); + r0 = pxsim.image.ofBuffer(_hex71508); { step = 18; continue; } case 11: case 12: - r0 = pxsim.image.ofBuffer(_hex7291); + r0 = pxsim.image.ofBuffer(_hex71510); { step = 18; continue; } case 13: case 14: - r0 = pxsim.image.ofBuffer(_hex7293); + r0 = pxsim.image.ofBuffer(_hex71512); { step = 18; continue; } case 15: case 16: - r0 = pxsim.image.ofBuffer(_hex7295); + r0 = pxsim.image.ofBuffer(_hex71514); { step = 18; continue; } case 17: r0 = null; @@ -2401,31 +2415,31 @@ switch (step) { return leave(s, r0) default: oops() } } } -myImages_inline__P7275.info = {"start":97,"length":4824,"line":3,"column":38,"endLine":143,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} +myImages_inline__P71494.info = {"start":97,"length":4824,"line":3,"column":38,"endLine":143,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} -function myImages_inline__P7275_mk(s) { +function myImages_inline__P71494_mk(s) { checkStack(s.depth); return { - parent: s, fn: myImages_inline__P7275, depth: s.depth + 1, + parent: s, fn: myImages_inline__P71494, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, } } -const _hex7281 = pxsim.BufferMethods.createBufferFromHex("870404000400000090090000999900009999000090090000") -const _hex7283 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000ff001fbbf80000009f8fbfbdf8000000bfffbbbdf8000000bffbbbbdf8000000bffbbbb9f80c0000bffbbbb9f80f0000f08bbbbbf8000000008fbbbbfb0c0000008fb88bff0f000000f0b88bf800000000f0b8bb880f00000000b8bb8bf900000000b8bbbbf80000000088bbbbf80000008088fbbbf8000000888b0fbff8000080b88b0fb0fb0000f0ff8f0f000000000000800f000000000000f00f00000000") -const _hex7285 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f0000ff009c2b220f0000ffcf992b22f200002fcf992122f200002f2f1b2122f20000cf4c122122f20000cf4c122922f20000f04cb22922f2ff00f02c222222f2c20f002f222222cccc0f002f22c224ff220f002f222c44ffff0f00c0222c42fcff0f00c0222c42f4ff0f00c02ccc22c4ff00004c2ccc22c20000c04422cc2cc200004c2422fc2cc200004c222ff2cc0c0000fcff2cf2000000000000c0f200000000000000ff00000000") -const _hex7287 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000010000000000000000000000010000000000000000000000d10000000000000000000000d10000000000000000000000d1000000ffff0f0000000000d10000f06688f800f00f0000d100006f8688880ff00f0000d100f096698886fff00f0000d1006f99996888f8000f0000d0f0969d998888f8ff0f0000d0f0999999f888f8000f0000d0d0d99999868ff8000f0000d0f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f000010606666868888f8000f000010f06666668688f8000f000010606666668881f8000f000010f08668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000100d006f868888ff000f0000100d00f06686f8ff000f0000100d0000ff8fff0f00000000100d000000ffff0f00000000100d000000ffff0000000000000d000000f0ff0000000000000d000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7289 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000800f00000000f0ff8f0f0000000080b8810fb0fb00000088810fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0f1000000000000f00f00000000") -const _hex7291 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fb0fb000000888b0fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f00000000") -const _hex7293 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000ff000000000000c0f200000000fcff2cf2000000004c222ff2cc0c00004c2422fc2cc20000c04422cc2cc20000004c2ccc22c2000000c02ccc22c4ff0000c0222c42f4ff0f00c0222c42fcff0f002f222c44ffff0f002f22c224ff220f002f222222cccc0ff02c222222f2c20ff04cb22922f2ff00cf4c122922f20000cf4c122122f200002f2f1b2122f200002fcf992122f20000ffcf992b22f20000ff009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") -const _hex7295 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f0000000000000d000000f00f0000000000000d000000f0ff0000000000100d000000ffff0000000000100d000000ffff0f00000000100d0000ff8fff0f00000000100d00f06686f8ff000f0000100d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010f08668818688f8ff0f000010606666668881f8000f000010f06666668688f8000f000010606666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d0f099999988f8f8000f0000d0d0d99999868ff8000f0000d0f0999999f888f8000f0000d0f0969d998888f8ff0f0000d1006f99996888f8000f0000d100f096698886fff00f0000d100006f8688880ff00f0000d10000f06688f800f00f0000d1000000ffff0f0000000000d10000000000000000000000d10000000000000000000000010000000000000000000000010000000000000000000000000000000000000000000000") +const _hex71500 = pxsim.BufferMethods.createBufferFromHex("870404000400000090090000999900009999000090090000") +const _hex71502 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000ff001fbbf80000009f8fbfbdf8000000bfffbbbdf8000000bffbbbbdf8000000bffbbbb9f80c0000bffbbbb9f80f0000f08bbbbbf8000000008fbbbbfb0c0000008fb88bff0f000000f0b88bf800000000f0b8bb880f00000000b8bb8bf900000000b8bbbbf80000000088bbbbf80000008088fbbbf8000000888b0fbff8000080b88b0fb0fb0000f0ff8f0f000000000000800f000000000000f00f00000000") +const _hex71504 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f0000ff009c2b220f0000ffcf992b22f200002fcf992122f200002f2f1b2122f20000cf4c122122f20000cf4c122922f20000f04cb22922f2ff00f02c222222f2c20f002f222222cccc0f002f22c224ff220f002f222c44ffff0f00c0222c42fcff0f00c0222c42f4ff0f00c02ccc22c4ff00004c2ccc22c20000c04422cc2cc200004c2422fc2cc200004c222ff2cc0c0000fcff2cf2000000000000c0f200000000000000ff00000000") +const _hex71506 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000010000000000000000000000010000000000000000000000d10000000000000000000000d10000000000000000000000d1000000ffff0f0000000000d10000f06688f800f00f0000d100006f8688880ff00f0000d100f096698886fff00f0000d1006f99996888f8000f0000d0f0969d998888f8ff0f0000d0f0999999f888f8000f0000d0d0d99999868ff8000f0000d0f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f000010606666868888f8000f000010f06666668688f8000f000010606666668881f8000f000010f08668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000100d006f868888ff000f0000100d00f06686f8ff000f0000100d0000ff8fff0f00000000100d000000ffff0f00000000100d000000ffff0000000000000d000000f0ff0000000000000d000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71508 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000800f00000000f0ff8f0f0000000080b8810fb0fb00000088810fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0f1000000000000f00f00000000") +const _hex71510 = pxsim.BufferMethods.createBufferFromHex("870418000c0000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fb0fb000000888b0fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f00000000") +const _hex71512 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000ff000000000000c0f200000000fcff2cf2000000004c222ff2cc0c00004c2422fc2cc20000c04422cc2cc20000004c2ccc22c2000000c02ccc22c4ff0000c0222c42f4ff0f00c0222c42fcff0f002f222c44ffff0f002f22c224ff220f002f222222cccc0ff02c222222f2c20ff04cb22922f2ff00cf4c122922f20000cf4c122122f200002f2f1b2122f200002fcf992122f20000ffcf992b22f20000ff009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") +const _hex71514 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f0000000000000d000000f00f0000000000000d000000f0ff0000000000100d000000ffff0000000000100d000000ffff0f00000000100d0000ff8fff0f00000000100d00f06686f8ff000f0000100d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010f08668818688f8ff0f000010606666668881f8000f000010f06666668688f8000f000010606666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d0f099999988f8f8000f0000d0d0d99999868ff8000f0000d0f0999999f888f8000f0000d0f0969d998888f8ff0f0000d1006f99996888f8000f0000d100f096698886fff00f0000d100006f8688880ff00f0000d10000f06688f800f00f0000d1000000ffff0f0000000000d10000000000000000000000d10000000000000000000000010000000000000000000000010000000000000000000000000000000000000000000000") -function myImages_inline__P7298(s) { +function myImages_inline__P71517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2439,7 +2453,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1 = helpers_stringTrim__P64342_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 97; s.pc = 15; return s.tmp_1; case 15: @@ -2475,10 +2489,10 @@ switch (step) { case 2: r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim.image.ofBuffer(_hex7305); + r0 = pxsim.image.ofBuffer(_hex71524); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_2, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex7307); + r0 = pxsim.image.ofBuffer(_hex71526); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_2, s.tmp_4); r0 = s.tmp_2; @@ -2487,10 +2501,10 @@ switch (step) { case 4: r0 = pxsim_Array__mk(); s.tmp_5 = r0; - r0 = pxsim.image.ofBuffer(_hex7310); + r0 = pxsim.image.ofBuffer(_hex71529); s.tmp_6 = r0; r0 = pxsim_Array__push(s.tmp_5, s.tmp_6); - r0 = pxsim.image.ofBuffer(_hex7312); + r0 = pxsim.image.ofBuffer(_hex71531); s.tmp_7 = r0; r0 = pxsim_Array__push(s.tmp_5, s.tmp_7); r0 = s.tmp_5; @@ -2499,31 +2513,31 @@ switch (step) { case 6: r0 = pxsim_Array__mk(); s.tmp_8 = r0; - r0 = pxsim.image.ofBuffer(_hex7315); + r0 = pxsim.image.ofBuffer(_hex71534); s.tmp_9 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_9); - r0 = pxsim.image.ofBuffer(_hex7317); + r0 = pxsim.image.ofBuffer(_hex71536); s.tmp_10 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_10); - r0 = pxsim.image.ofBuffer(_hex7319); + r0 = pxsim.image.ofBuffer(_hex71538); s.tmp_11 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_11); - r0 = pxsim.image.ofBuffer(_hex7321); + r0 = pxsim.image.ofBuffer(_hex71540); s.tmp_12 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_12); - r0 = pxsim.image.ofBuffer(_hex7323); + r0 = pxsim.image.ofBuffer(_hex71542); s.tmp_13 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_13); - r0 = pxsim.image.ofBuffer(_hex7325); + r0 = pxsim.image.ofBuffer(_hex71544); s.tmp_14 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_14); - r0 = pxsim.image.ofBuffer(_hex7327); + r0 = pxsim.image.ofBuffer(_hex71546); s.tmp_15 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_15); - r0 = pxsim.image.ofBuffer(_hex7329); + r0 = pxsim.image.ofBuffer(_hex71548); s.tmp_16 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_16); - r0 = pxsim.image.ofBuffer(_hex7331); + r0 = pxsim.image.ofBuffer(_hex71550); s.tmp_17 = r0; r0 = pxsim_Array__push(s.tmp_8, s.tmp_17); r0 = s.tmp_8; @@ -2532,28 +2546,28 @@ switch (step) { case 8: r0 = pxsim_Array__mk(); s.tmp_18 = r0; - r0 = pxsim.image.ofBuffer(_hex7334); + r0 = pxsim.image.ofBuffer(_hex71553); s.tmp_19 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_19); - r0 = pxsim.image.ofBuffer(_hex7336); + r0 = pxsim.image.ofBuffer(_hex71555); s.tmp_20 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_20); - r0 = pxsim.image.ofBuffer(_hex7338); + r0 = pxsim.image.ofBuffer(_hex71557); s.tmp_21 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_21); - r0 = pxsim.image.ofBuffer(_hex7340); + r0 = pxsim.image.ofBuffer(_hex71559); s.tmp_22 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_22); - r0 = pxsim.image.ofBuffer(_hex7342); + r0 = pxsim.image.ofBuffer(_hex71561); s.tmp_23 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_23); - r0 = pxsim.image.ofBuffer(_hex7344); + r0 = pxsim.image.ofBuffer(_hex71563); s.tmp_24 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_24); - r0 = pxsim.image.ofBuffer(_hex7346); + r0 = pxsim.image.ofBuffer(_hex71565); s.tmp_25 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_25); - r0 = pxsim.image.ofBuffer(_hex7348); + r0 = pxsim.image.ofBuffer(_hex71567); s.tmp_26 = r0; r0 = pxsim_Array__push(s.tmp_18, s.tmp_26); r0 = s.tmp_18; @@ -2562,10 +2576,10 @@ switch (step) { case 10: r0 = pxsim_Array__mk(); s.tmp_27 = r0; - r0 = pxsim.image.ofBuffer(_hex7351); + r0 = pxsim.image.ofBuffer(_hex71570); s.tmp_28 = r0; r0 = pxsim_Array__push(s.tmp_27, s.tmp_28); - r0 = pxsim.image.ofBuffer(_hex7353); + r0 = pxsim.image.ofBuffer(_hex71572); s.tmp_29 = r0; r0 = pxsim_Array__push(s.tmp_27, s.tmp_29); r0 = s.tmp_27; @@ -2574,10 +2588,10 @@ switch (step) { case 12: r0 = pxsim_Array__mk(); s.tmp_30 = r0; - r0 = pxsim.image.ofBuffer(_hex7356); + r0 = pxsim.image.ofBuffer(_hex71575); s.tmp_31 = r0; r0 = pxsim_Array__push(s.tmp_30, s.tmp_31); - r0 = pxsim.image.ofBuffer(_hex7358); + r0 = pxsim.image.ofBuffer(_hex71577); s.tmp_32 = r0; r0 = pxsim_Array__push(s.tmp_30, s.tmp_32); r0 = s.tmp_30; @@ -2588,12 +2602,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -myImages_inline__P7298.info = {"start":4966,"length":16581,"line":145,"column":42,"endLine":654,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} +myImages_inline__P71517.info = {"start":4966,"length":16581,"line":145,"column":42,"endLine":654,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} -function myImages_inline__P7298_mk(s) { +function myImages_inline__P71517_mk(s) { checkStack(s.depth); return { - parent: s, fn: myImages_inline__P7298, depth: s.depth + 1, + parent: s, fn: myImages_inline__P71517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2631,36 +2645,36 @@ function myImages_inline__P7298_mk(s) { arg0: undefined, } } -const _hex7305 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000ff001fbbf80000009f8fbfbdf8000000bfffbbbdf8000000bffbbbbdf8000000bffbbbb9f80c0000bffbbbb9f80f0000f08bbbbbf8000000008fbbbbfb0c0000008fb88bff0f000000f0b88bf800000000f0b8bb880f00000000b8bb8bf900000000b8bbbbf80000000088bbbbf80000008088fbbbf8000000888b0fbff8000080b88b0fb0fb0000f0ff8f0f000000000000800f000000000000f00f000000") -const _hex7307 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000f00fbfbbf8000000f089dfbbf8000000f0fb9bbbf8000000f0fb9bbbf8000000f0fb9bbbf80c0000f0fb9bbbf80f000000ffbbbbf800000000ffbbbbfb0c000000f0bf8bff0f00000000bf8bf80000000000b88bf80000000000b8bb980f00000000b8bb8b0f0000000088bb8b0f0000008088bb8b0f000000888bff8b0f000080b88b0fbb0f0000f0ff8f0f000000000000800f000000000000f00f000000") -const _hex7310 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fb0fb000000888b0fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f000000") -const _hex7312 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fbb0f000000888bff8b0f0000008088bb8b0f0000000088bb8b0f00000000b8bb8b0f00000000b8bb980f00000000b88bf80000000000bf8bf800000000f0bf8bff0f000000ffbbbbfb0c000000ffbbbbf8000000f0fb9bbbf80f0000f0fb9bbbf80c0000f0fb9bbbf8000000f0fb9bbbf8000000f089dfbbf8000000f00fbfbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f000000") -const _hex7315 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000010000000000000000000000010000000000000000000000d10000000000000000000000d10000000000000000000000d1000000ffff8f0000000000d10000f06688f800f00f0000d100006f8688880ff00f0000d100f096698886fff00f0000d1006f99996888f8000f0000d0f0969d998888f8ff0f0000d0f0999999f888f8000f0000d0d0d99999868ff8000f0000d0f099999988f8f8000f00001ddd99998986f8f8000f0000ddfdf6f9fff8fff8000f000010606666868888f8000f000010f06666668688f8000f000010606666668881f8000f000010f08668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000100d006f868888ff000f0000100d00f06686f8ff000f0000100d0000ff8fff0f00000000100d000000ffff0f00000000100d000000ffff0000000000000d000000f0ff0000000000000d000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7317 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000100f096698886fff00f0000d1006f99996888f8000f0000d1f0969d998888f8ff0f0000d1f0999999f888f8000f0000d1d0d99999868ff8000f0000d1f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000106d6666868888f8000f000010fd6666668688f8000f0000106d6666668881f8000f000010fd8668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000000d006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7319 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000000f096698886fff00f000000006f99996888f8000f000000f0969d998888f8ff0f000000f0999999f888f8000f0000008dd99999868ff8000f0000d0fd99999988f8f8000f00001d8d99998986f8f8000f0000ddfd969ffff8fff8000f0000d08d6666868888f8000f0000d0f06666668688f8000f000000606666668881f8000f000000f08668818688f8ff0f000000006f18168888f8000f00000000f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7321 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7323 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000000d00000000000000000000000d00000000000000000000100d00000000000000000000100d00000000000000000000100d0000ffff8f0000000000100d00f06688f800f00f0000100d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010f0969d998888f8ff0f000010f0999999f888f8000f000010d0d99999868ff8000f000010f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d0606666868888f8000f0000d0f06666668688f8000f0000d0606666668881f8000f0000d0f08668818688f8ff0f0000d1006f18168888f8000f0000d100f066618881ff000f0000d100006f868888ff000f0000d10000f06686f8ff000f0000d1000000ff8fff0f00000000d100000000ffff0f00000000d100000000ffff00000000000100000000f0ff00000000000100000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7325 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7327 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd96fffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7329 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000000f096698886fff00f000000006f99996888f8000f000000f0969d998888f8ff0f000000f0999999f888f8000f0000008dd99999868ff8000f0000d0fd99999988f8f8000f00001d8d99998986f8f8000f0000ddfd969ffff8fff8000f0000d08d6666868888f8000f0000d0f06666668688f8000f000000606666668881f8000f000000f08668818688f8ff0f000000006f18168888f8000f00000000f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7331 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000100f096698886fff00f0000d1006f99996888f8000f0000d1f0969d998888f8ff0f0000d1f0999999f888f8000f0000d1d0d99999868ff8000f0000d1f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd96f9fff8fff8000f0000106d6666868888f8000f000010fd6666668688f8000f0000106d6666668881f8000f000010fd8668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000000d006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") -const _hex7334 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f0000000000000d000000f00f0000000000000d000000f0ff0000000000100d000000ffff0000000000100d000000ffff0f00000000100d0000ff8fff0f00000000100d00f06686f8ff000f0000100d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010f08668818688f8ff0f000010606666668881f8000f000010f06666668688f8000f000010606666868888f8000f0000ddfd96f9fff8fff8000f00001ddd99998986f8f8000f0000d0f099999988f8f8000f0000d0d0d99999868ff8000f0000d0f0999999f888f8000f0000d0f0969d998888f8ff0f0000d1006f99996888f8000f0000d100f096698886fff00f0000d100006f8688880ff00f0000d10000f06688f800f00f0000d1000000ffff8f0000000000d10000000000000000000000d10000000000000000000000010000000000000000000000010000000000000000000000000000000000000000000000") -const _hex7336 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f0000000d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010fd8668818688f8ff0f0000106d6666668881f8000f000010fd6666668688f8000f0000106d6666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d1f099999988f8f8000f0000d1d0d99999868ff8000f0000d1f0999999f888f8000f0000d1f0969d998888f8ff0f0000d1006f99996888f8000f00000100f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7338 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000000f066618881ff000f000000006f18168888f8000f000000f08668818688f8ff0f000000606666668881f8000f0000d0f06666668688f8000f0000d08d6666868888f8000f0000ddfd969ffff8fff8000f00001d8d99998986f8f8000f0000d0fd99999988f8f8000f0000008dd99999868ff8000f000000f0999999f888f8000f000000f0969d998888f8ff0f000000006f99996888f8000f00000000f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7340 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000100f066618881ff000f0000d1006f18168888f8000f0000d1f08668818688f8ff0f0000d1606666668881f8000f0000d1f06666668688f8000f0000d1606666868888f8000f0000ddfd96fff9f8fff8000f00001ddd99998986f8f8000f000010fd99999988f8f8000f000010ddd99999868ff8000f000010fd999999f888f8000f000010fd969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000000d006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7342 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000100000000f00f00000000000100000000f0ff0000000000d100000000ffff0000000000d100000000ffff0f00000000d1000000ff8fff0f00000000d10000f06686f8ff000f0000d100006f868888ff000f0000d100f066618881ff000f0000d1006f18168888f8000f0000d0f08668818688f8ff0f0000d0606666668881f8000f0000d0f06666668688f8000f0000d0606666868888f8000f0000ddfd96f9fff8fff8000f00001ddd99998986f8f8000f000010f099999988f8f8000f000010d0d99999868ff8000f000010f0999999f888f8000f000010f0969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000100d006f8688880ff00f0000100d00f06688f800f00f0000100d0000ffff8f0000000000100d00000000000000000000100d00000000000000000000000d00000000000000000000000d00000000000000000000000000000000000000000000") -const _hex7344 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000100f066618881ff000f0000d1006f18168888f8000f0000d1f08668818688f8ff0f0000d1606666668881f8000f0000d1f06666668688f8000f0000d1606666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f000010fd99999988f8f8000f000010ddd99999868ff8000f000010fd999999f888f8000f000010fd969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000000d006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7346 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000000f066618881ff000f000000006f18168888f8000f000000f08668818688f8ff0f000000606666668881f8000f0000d0f06666668688f8000f0000d08d6666868888f8000f0000ddfd96f9fff8fff8000f00001d8d99998986f8f8000f0000d0fd99999988f8f8000f0000008dd99999868ff8000f000000f0999999f888f8000f000000f0969d998888f8ff0f000000006f99996888f8000f00000000f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7348 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f0000000d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010fd8668818688f8ff0f0000106d6666668881f8000f000010fd6666668688f8000f0000106d6666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d1f099999988f8f8000f0000d1d0d99999868ff8000f0000d1f0999999f888f8000f0000d1f0969d998888f8ff0f0000d1006f99996888f8000f00000100f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7351 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f000000009c2b220f0000ffc099b922f20000ffcf9b1922f200002f2fb41122f200002f4c241122f20000cf4c229122f20000cf4c229b22f2ff00f02c222222f2c20f002f222222fcccfc002f222242ff2ff2002f22224cf4ffff00c022c22244ffff00c022c22242fcff00c02cc22222f20f00cc2cc22c22f200c04c24c2fc22f200cc4422cc0f2ff2004c24f2c20fc0fc00fcffcf220f0000000000002c0f000000000000f00f000000") -const _hex7353 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f0000ff009c2b220f0000ffcf992b22f200002fcf992122f200002f2f1b2122f20000cf4c122122f20000cf4c122922f20000f04cb22922f2ff00f02c222222f2c20f002f222222cccc0f002f22c224ff220f002f222c44ffff0f00c0222c42fcff0f00c0222c42f4ff0f00c02ccc22c4ff00004c2ccc22c20000c04422cc2cc200004c2422fc2cc200004c222ff2cc0c0000fcff2cf2000000000000c0f200000000000000ff00000000") -const _hex7356 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f0000000000002c0f000000fcffcf220f0000004c24f2c20fc0fc00cc4422cc0f2ff200c04c24c2fc22f20000cc2cc22c22f20000c02cc22222f20f00c022c22242fcff00c022c22244ffff002f22224cf4ffff002f222242ff2ff2002f222222fcccfcf02c222222f2c20fcf4c229b22f2ff00cf4c229122f200002f4c241122f200002f2fb41122f20000ffcf9b1922f20000ffc099b922f2000000009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") -const _hex7358 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000ff000000000000c0f200000000fcff2cf2000000004c222ff2cc0c00004c2422fc2cc20000c04422cc2cc20000004c2ccc22c2000000c02ccc22c4ff0000c0222c42f4ff0f00c0222c42fcff0f002f222c44ffff0f002f22c224ff220f002f222222cccc0ff02c222222f2c20ff04cb22922f2ff00cf4c122922f20000cf4c122122f200002f2f1b2122f200002fcf992122f20000ffcf992b22f20000ff009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") +const _hex71524 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000ff001fbbf80000009f8fbfbdf8000000bfffbbbdf8000000bffbbbbdf8000000bffbbbb9f80c0000bffbbbb9f80f0000f08bbbbbf8000000008fbbbbfb0c0000008fb88bff0f000000f0b88bf800000000f0b8bb880f00000000b8bb8bf900000000b8bbbbf80000000088bbbbf80000008088fbbbf8000000888b0fbff8000080b88b0fb0fb0000f0ff8f0f000000000000800f000000000000f00f000000") +const _hex71526 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000f0fb000000000000bf8b0f0000000000bfbb0f000000f00fbfbbf8000000f089dfbbf8000000f0fb9bbbf8000000f0fb9bbbf8000000f0fb9bbbf80c0000f0fb9bbbf80f000000ffbbbbf800000000ffbbbbfb0c000000f0bf8bff0f00000000bf8bf80000000000b88bf80000000000b8bb980f00000000b8bb8b0f0000000088bb8b0f0000008088bb8b0f000000888bff8b0f000080b88b0fbb0f0000f0ff8f0f000000000000800f000000000000f00f000000") +const _hex71529 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fb0fb000000888b0fbff80000008088fbbbf80000000088bbbbf800000000b8bbbbf800000000b8bb8bf9000000f0b8bb880f000000f0b88bf8000000008fb88bff0f0000008fbbbbfb0c0000f08bbbbbf8000000bffbbbb9f80f0000bffbbbb9f80c0000bffbbbbdf8000000bfffbbbdf80000009f8fbfbdf8000000ff001fbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f000000") +const _hex71531 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f000000000000800f00000000f0ff8f0f0000000080b88b0fbb0f000000888bff8b0f0000008088bb8b0f0000000088bb8b0f00000000b8bb8b0f00000000b8bb980f00000000b88bf80000000000bf8bf800000000f0bf8bff0f000000ffbbbbfb0c000000ffbbbbf8000000f0fb9bbbf80f0000f0fb9bbbf80c0000f0fb9bbbf8000000f0fb9bbbf8000000f089dfbbf8000000f00fbfbbf80000000000bfbb0f0000000000bf8b0f0000000000f0fb000000000000f00f000000") +const _hex71534 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000010000000000000000000000010000000000000000000000d10000000000000000000000d10000000000000000000000d1000000ffff8f0000000000d10000f06688f800f00f0000d100006f8688880ff00f0000d100f096698886fff00f0000d1006f99996888f8000f0000d0f0969d998888f8ff0f0000d0f0999999f888f8000f0000d0d0d99999868ff8000f0000d0f099999988f8f8000f00001ddd99998986f8f8000f0000ddfdf6f9fff8fff8000f000010606666868888f8000f000010f06666668688f8000f000010606666668881f8000f000010f08668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000100d006f868888ff000f0000100d00f06686f8ff000f0000100d0000ff8fff0f00000000100d000000ffff0f00000000100d000000ffff0000000000000d000000f0ff0000000000000d000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71536 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000100f096698886fff00f0000d1006f99996888f8000f0000d1f0969d998888f8ff0f0000d1f0999999f888f8000f0000d1d0d99999868ff8000f0000d1f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000106d6666868888f8000f000010fd6666668688f8000f0000106d6666668881f8000f000010fd8668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000000d006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71538 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000000f096698886fff00f000000006f99996888f8000f000000f0969d998888f8ff0f000000f0999999f888f8000f0000008dd99999868ff8000f0000d0fd99999988f8f8000f00001d8d99998986f8f8000f0000ddfd969ffff8fff8000f0000d08d6666868888f8000f0000d0f06666668688f8000f000000606666668881f8000f000000f08668818688f8ff0f000000006f18168888f8000f00000000f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71540 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71542 = pxsim.BufferMethods.createBufferFromHex("8704240014000000000000000000000000000000000d00000000000000000000000d00000000000000000000100d00000000000000000000100d00000000000000000000100d0000ffff8f0000000000100d00f06688f800f00f0000100d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010f0969d998888f8ff0f000010f0999999f888f8000f000010d0d99999868ff8000f000010f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d0606666868888f8000f0000d0f06666668688f8000f0000d0606666668881f8000f0000d0f08668818688f8ff0f0000d1006f18168888f8000f0000d100f066618881ff000f0000d100006f868888ff000f0000d10000f06686f8ff000f0000d1000000ff8fff0f00000000d100000000ffff0f00000000d100000000ffff00000000000100000000f0ff00000000000100000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71544 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd969ffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71546 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f0000000d006f8688880ff00f0000100df096698886fff00f0000100d6f99996888f8000f000010fd969d998888f8ff0f000010fd999999f888f8000f000010ddd99999868ff8000f000010fd99999988f8f8000f00001ddd99998986f8f8000f0000ddfd96fffff8fff8000f0000d1606666868888f8000f0000d1f06666668688f8000f0000d1606666668881f8000f0000d1f08668818688f8ff0f0000d1006f18168888f8000f00000100f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71548 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000000f096698886fff00f000000006f99996888f8000f000000f0969d998888f8ff0f000000f0999999f888f8000f0000008dd99999868ff8000f0000d0fd99999988f8f8000f00001d8d99998986f8f8000f0000ddfd969ffff8fff8000f0000d08d6666868888f8000f0000d0f06666668688f8000f000000606666668881f8000f000000f08668818688f8ff0f000000006f18168888f8000f00000000f066618881ff000f00000000006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71550 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff8f0000000000000000f06688f800f00f00000000006f8688880ff00f00000100f096698886fff00f0000d1006f99996888f8000f0000d1f0969d998888f8ff0f0000d1f0999999f888f8000f0000d1d0d99999868ff8000f0000d1f099999988f8f8000f00001ddd99998986f8f8000f0000ddfd96f9fff8fff8000f0000106d6666868888f8000f000010fd6666668688f8000f0000106d6666668881f8000f000010fd8668818688f8ff0f0000100d6f18168888f8000f0000100df066618881ff000f0000000d006f868888ff000f0000000000f06686f8ff000f000000000000ff8fff0f000000000000000000ffff0f000000000000000000ffff00000000000000000000f0ff00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f60f00000000000000000060ff0f000000000000000000f6ff0f000000000000000000ffff0f0000000000") +const _hex71553 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f0000000000000d000000f00f0000000000000d000000f0ff0000000000100d000000ffff0000000000100d000000ffff0f00000000100d0000ff8fff0f00000000100d00f06686f8ff000f0000100d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010f08668818688f8ff0f000010606666668881f8000f000010f06666668688f8000f000010606666868888f8000f0000ddfd96f9fff8fff8000f00001ddd99998986f8f8000f0000d0f099999988f8f8000f0000d0d0d99999868ff8000f0000d0f0999999f888f8000f0000d0f0969d998888f8ff0f0000d1006f99996888f8000f0000d100f096698886fff00f0000d100006f8688880ff00f0000d10000f06688f800f00f0000d1000000ffff8f0000000000d10000000000000000000000d10000000000000000000000010000000000000000000000010000000000000000000000000000000000000000000000") +const _hex71555 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f0000000d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010fd8668818688f8ff0f0000106d6666668881f8000f000010fd6666668688f8000f0000106d6666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d1f099999988f8f8000f0000d1d0d99999868ff8000f0000d1f0999999f888f8000f0000d1f0969d998888f8ff0f0000d1006f99996888f8000f00000100f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71557 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000000f066618881ff000f000000006f18168888f8000f000000f08668818688f8ff0f000000606666668881f8000f0000d0f06666668688f8000f0000d08d6666868888f8000f0000ddfd969ffff8fff8000f00001d8d99998986f8f8000f0000d0fd99999988f8f8000f0000008dd99999868ff8000f000000f0999999f888f8000f000000f0969d998888f8ff0f000000006f99996888f8000f00000000f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71559 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000100f066618881ff000f0000d1006f18168888f8000f0000d1f08668818688f8ff0f0000d1606666668881f8000f0000d1f06666668688f8000f0000d1606666868888f8000f0000ddfd96fff9f8fff8000f00001ddd99998986f8f8000f000010fd99999988f8f8000f000010ddd99999868ff8000f000010fd999999f888f8000f000010fd969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000000d006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71561 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000100000000f00f00000000000100000000f0ff0000000000d100000000ffff0000000000d100000000ffff0f00000000d1000000ff8fff0f00000000d10000f06686f8ff000f0000d100006f868888ff000f0000d100f066618881ff000f0000d1006f18168888f8000f0000d0f08668818688f8ff0f0000d0606666668881f8000f0000d0f06666668688f8000f0000d0606666868888f8000f0000ddfd96f9fff8fff8000f00001ddd99998986f8f8000f000010f099999988f8f8000f000010d0d99999868ff8000f000010f0999999f888f8000f000010f0969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000100d006f8688880ff00f0000100d00f06688f800f00f0000100d0000ffff8f0000000000100d00000000000000000000100d00000000000000000000000d00000000000000000000000d00000000000000000000000000000000000000000000") +const _hex71563 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000100f066618881ff000f0000d1006f18168888f8000f0000d1f08668818688f8ff0f0000d1606666668881f8000f0000d1f06666668688f8000f0000d1606666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f000010fd99999988f8f8000f000010ddd99999868ff8000f000010fd999999f888f8000f000010fd969d998888f8ff0f0000100d6f99996888f8000f0000100df096698886fff00f0000000d006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71565 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f00000000006f868888ff000f00000000f066618881ff000f000000006f18168888f8000f000000f08668818688f8ff0f000000606666668881f8000f0000d0f06666668688f8000f0000d08d6666868888f8000f0000ddfd96f9fff8fff8000f00001d8d99998986f8f8000f0000d0fd99999988f8f8000f0000008dd99999868ff8000f000000f0999999f888f8000f000000f0969d998888f8ff0f000000006f99996888f8000f00000000f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71567 = pxsim.BufferMethods.createBufferFromHex("870424001400000000000000ffff0f000000000000000000f6ff0f00000000000000000060ff0f00000000000000000000f60f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f00f00000000000000000000f0ff00000000000000000000ffff00000000000000000000ffff0f0000000000000000ff8fff0f00000000000000f06686f8ff000f0000000d006f868888ff000f0000100df066618881ff000f0000100d6f18168888f8000f000010fd8668818688f8ff0f0000106d6666668881f8000f000010fd6666668688f8000f0000106d6666868888f8000f0000ddfd969ffff8fff8000f00001ddd99998986f8f8000f0000d1f099999988f8f8000f0000d1d0d99999868ff8000f0000d1f0999999f888f8000f0000d1f0969d998888f8ff0f0000d1006f99996888f8000f00000100f096698886fff00f00000000006f8688880ff00f0000000000f06688f800f00f000000000000ffff8f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex71570 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f000000009c2b220f0000ffc099b922f20000ffcf9b1922f200002f2fb41122f200002f4c241122f20000cf4c229122f20000cf4c229b22f2ff00f02c222222f2c20f002f222222fcccfc002f222242ff2ff2002f22224cf4ffff00c022c22244ffff00c022c22242fcff00c02cc22222f20f00cc2cc22c22f200c04c24c2fc22f200cc4422cc0f2ff2004c24f2c20fc0fc00fcffcf220f0000000000002c0f000000000000f00f000000") +const _hex71572 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000c00f0000000000002cf20000000000c022220f0000ff009c2b220f0000ffcf992b22f200002fcf992122f200002f2f1b2122f20000cf4c122122f20000cf4c122922f20000f04cb22922f2ff00f02c222222f2c20f002f222222cccc0f002f22c224ff220f002f222c44ffff0f00c0222c42fcff0f00c0222c42f4ff0f00c02ccc22c4ff00004c2ccc22c20000c04422cc2cc200004c2422fc2cc200004c222ff2cc0c0000fcff2cf2000000000000c0f200000000000000ff00000000") +const _hex71575 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000f00f0000000000002c0f000000fcffcf220f0000004c24f2c20fc0fc00cc4422cc0f2ff200c04c24c2fc22f20000cc2cc22c22f20000c02cc22222f20f00c022c22242fcff00c022c22244ffff002f22224cf4ffff002f222242ff2ff2002f222222fcccfcf02c222222f2c20fcf4c229b22f2ff00cf4c229122f200002f4c241122f200002f2fb41122f20000ffcf9b1922f20000ffc099b922f2000000009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") +const _hex71577 = pxsim.BufferMethods.createBufferFromHex("8704180010000000000000ff000000000000c0f200000000fcff2cf2000000004c222ff2cc0c00004c2422fc2cc20000c04422cc2cc20000004c2ccc22c2000000c02ccc22c4ff0000c0222c42f4ff0f00c0222c42fcff0f002f222c44ffff0f002f22c224ff220f002f222222cccc0ff02c222222f2c20ff04cb22922f2ff00cf4c122922f20000cf4c122122f200002f2f1b2122f200002fcf992122f20000ffcf992b22f20000ff009c2b220f00000000c022220f00000000002cf2000000000000c00f000000") -function myImages_inline__P7361(s) { +function myImages_inline__P71580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2674,7 +2688,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_stringTrim__P123_mk(s); + s.tmp_0 = helpers_stringTrim__P64342_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 99; s.pc = 1; return s.tmp_0; case 1: @@ -2683,12 +2697,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -myImages_inline__P7361.info = {"start":21587,"length":105,"line":656,"column":37,"endLine":661,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} +myImages_inline__P71580.info = {"start":21587,"length":105,"line":656,"column":37,"endLine":661,"endColumn":5,"fileName":"images.g.ts","functionName":"inline","argumentNames":["name"]} -function myImages_inline__P7361_mk(s) { +function myImages_inline__P71580_mk(s) { checkStack(s.depth); return { - parent: s, fn: myImages_inline__P7361, depth: s.depth + 1, + parent: s, fn: myImages_inline__P71580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2698,7 +2712,7 @@ function myImages_inline__P7361_mk(s) { -function inline__P7371(s) { +function on_b_pressed__P71590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2708,8 +2722,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = Sprite_sayText__P2392_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; + s.tmp_0 = Sprite_sayText__P66611_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; s.tmp_0.arg1 = "Som-hi!!"; s.tmp_0.arg2 = 500; s.tmp_0.arg3 = true; @@ -2722,12 +2736,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7371.info = {"start":52,"length":59,"line":0,"column":52,"endLine":2,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +on_b_pressed__P71590.info = {"start":52,"length":71,"line":0,"column":52,"endLine":2,"endColumn":1,"fileName":"main.ts","functionName":"on_b_pressed","argumentNames":[]} -function inline__P7371_mk(s) { +function on_b_pressed__P71590_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7371, depth: s.depth + 1, + parent: s, fn: on_b_pressed__P71590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -2736,7 +2750,7 @@ function inline__P7371_mk(s) { -function inline__P7376(s) { +function on_fire_created__P71595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2750,21 +2764,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_createParticleEffectAtLocation__P4403_mk(s); + s.tmp_0 = scene_createParticleEffectAtLocation__P68622_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.fire___3258; + s.tmp_0.arg1 = globals.fire___67477; s.tmp_0.arg2 = undefined; s.callLocIdx = 103; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_set_flame_strength__P4412_mk(s); + s.tmp_0 = sprites_set_flame_strength__P68631_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 20; s.callLocIdx = 104; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = music_Melody_play__P1633_mk(s); - s.tmp_0.arg0 = globals.knock___1655; + s.tmp_0 = music_Melody_play__P65852_mk(s); + s.tmp_0.arg0 = globals.knock___65874; s.tmp_0.arg1 = 255; s.callLocIdx = 105; s.pc = 3; return s.tmp_0; case 3: @@ -2773,12 +2787,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7376.info = {"start":137,"length":156,"line":3,"column":24,"endLine":7,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["location"]} +on_fire_created__P71595.info = {"start":149,"length":187,"line":3,"column":24,"endLine":7,"endColumn":1,"fileName":"main.ts","functionName":"on_fire_created","argumentNames":["location"]} -function inline__P7376_mk(s) { +function on_fire_created__P71595_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7376, depth: s.depth + 1, + parent: s, fn: on_fire_created__P71595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2788,7 +2802,7 @@ function inline__P7376_mk(s) { -function inline__P7389(s) { +function on_left_pressed__P71608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2798,10 +2812,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = animation_runImageAnimation__P3342_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; - s.tmp_1 = helpers_getAnimationByName__P3317_mk(s); - s.tmp_1.arg0 = "Fire Plane 2 Left Animation"; + s.tmp_0 = animation_runImageAnimation__P67561_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; + s.tmp_1 = helpers_getAnimationByName__P67536_mk(s); + s.tmp_1.arg0 = "\n Fire Plane 2 Left Animation\n "; s.callLocIdx = 107; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -2815,12 +2829,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7389.info = {"start":350,"length":137,"line":8,"column":55,"endLine":15,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +on_left_pressed__P71608.info = {"start":393,"length":152,"line":8,"column":55,"endLine":12,"endColumn":1,"fileName":"main.ts","functionName":"on_left_pressed","argumentNames":[]} -function inline__P7389_mk(s) { +function on_left_pressed__P71608_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7389, depth: s.depth + 1, + parent: s, fn: on_left_pressed__P71608, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2830,7 +2844,7 @@ function inline__P7389_mk(s) { -function inline__P7397(s) { +function on_right_pressed__P71616(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2840,10 +2854,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = animation_runImageAnimation__P3342_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; - s.tmp_1 = helpers_getAnimationByName__P3317_mk(s); - s.tmp_1.arg0 = "Fire Plane 2 Right Animation"; + s.tmp_0 = animation_runImageAnimation__P67561_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; + s.tmp_1 = helpers_getAnimationByName__P67536_mk(s); + s.tmp_1.arg0 = "\n Fire Plane 2 Right Animation\n "; s.callLocIdx = 110; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -2857,12 +2871,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7397.info = {"start":545,"length":138,"line":16,"column":56,"endLine":23,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +on_right_pressed__P71616.info = {"start":603,"length":154,"line":13,"column":56,"endLine":17,"endColumn":1,"fileName":"main.ts","functionName":"on_right_pressed","argumentNames":[]} -function inline__P7397_mk(s) { +function on_right_pressed__P71616_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7397, depth: s.depth + 1, + parent: s, fn: on_right_pressed__P71616, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2872,7 +2886,7 @@ function inline__P7397_mk(s) { -function inline__P7411(s) { +function on_fire_destroyed__P71630(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2886,15 +2900,15 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_clearParticleEffectsAtLocation__P4404_mk(s); + s.tmp_0 = scene_clearParticleEffectsAtLocation__P68623_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 121; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P2745_mk(s); + s.tmp_0 = tiles_setTileAt__P66964_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = helpers_getTileByName__P3318_mk(s); - s.tmp_1.arg0 = "burnt tree"; + s.tmp_1 = helpers_getTileByName__P67537_mk(s); + s.tmp_1.arg0 = "\n burnt tree\n "; s.callLocIdx = 122; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -2902,8 +2916,8 @@ switch (step) { s.callLocIdx = 123; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = music_Melody_play__P1633_mk(s); - s.tmp_0.arg0 = globals.thump___1657; + s.tmp_0 = music_Melody_play__P65852_mk(s); + s.tmp_0.arg0 = globals.thump___65876; s.tmp_0.arg1 = 255; s.callLocIdx = 124; s.pc = 4; return s.tmp_0; case 4: @@ -2912,12 +2926,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7411.info = {"start":982,"length":155,"line":34,"column":26,"endLine":38,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["location2"]} +on_fire_destroyed__P71630.info = {"start":1056,"length":202,"line":29,"column":26,"endLine":35,"endColumn":1,"fileName":"main.ts","functionName":"on_fire_destroyed","argumentNames":["location2"]} -function inline__P7411_mk(s) { +function on_fire_destroyed__P71630_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7411, depth: s.depth + 1, + parent: s, fn: on_fire_destroyed__P71630, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2928,7 +2942,7 @@ function inline__P7411_mk(s) { -function inline__P7425(s) { +function on_a_repeated__P71644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2938,10 +2952,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = sprites_spray__P4414_mk(s); - s.tmp_0.arg0 = globals.mySprite___4432; - s.tmp_1 = helpers_getImageByName__P3316_mk(s); - s.tmp_1.arg0 = "water"; + s.tmp_0 = sprites_spray__P68633_mk(s); + s.tmp_0.arg0 = globals.mySprite___68651; + s.tmp_1 = helpers_getImageByName__P67535_mk(s); + s.tmp_1.arg0 = "\n water\n "; s.callLocIdx = 126; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -2949,8 +2963,8 @@ switch (step) { s.callLocIdx = 127; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_play__P1907_mk(s); - s.tmp_1 = music_createSoundEffect__P1778_mk(s); + s.tmp_0 = music_play__P66126_mk(s); + s.tmp_1 = music_createSoundEffect__P65997_mk(s); s.tmp_1.arg0 = 0; s.tmp_1.arg1 = 200; s.tmp_1.arg2 = 600; @@ -2971,12 +2985,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7425.info = {"start":1192,"length":231,"line":39,"column":53,"endLine":42,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +on_a_repeated__P71644.info = {"start":1313,"length":258,"line":36,"column":53,"endLine":41,"endColumn":1,"fileName":"main.ts","functionName":"on_a_repeated","argumentNames":[]} -function inline__P7425_mk(s) { +function on_a_repeated__P71644_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7425, depth: s.depth + 1, + parent: s, fn: on_a_repeated__P71644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2986,7 +3000,7 @@ function inline__P7425_mk(s) { -function inline__P7440(s) { +function on_overlap_tile__P71659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3001,14 +3015,14 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_destroy__P2408_mk(s); + s.tmp_0 = Sprite_destroy__P66627_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.ashes___3262; + s.tmp_0.arg1 = globals.ashes___67481; s.tmp_0.arg2 = 500; s.callLocIdx = 132; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_change_flame_strength_by__P4413_mk(s); + s.tmp_0 = sprites_change_flame_strength_by__P68632_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = -1; s.callLocIdx = 133; s.pc = 2; return s.tmp_0; @@ -3018,12 +3032,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7440.info = {"start":1487,"length":123,"line":43,"column":62,"endLine":46,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location3"]} +on_overlap_tile__P71659.info = {"start":1649,"length":162,"line":44,"column":7,"endLine":47,"endColumn":1,"fileName":"main.ts","functionName":"on_overlap_tile","argumentNames":["sprite","location3"]} -function inline__P7440_mk(s) { +function on_overlap_tile__P71659_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7440, depth: s.depth + 1, + parent: s, fn: on_overlap_tile__P71659, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -3034,7 +3048,7 @@ function inline__P7440_mk(s) { -function inline__P7515(s) { +function on_on_update__P71736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3044,20 +3058,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = sprites_random_spread__P4415_mk(s); - s.callLocIdx = 150; s.pc = 1; return s.tmp_0; + s.tmp_0 = sprites_random_spread__P68634_mk(s); + s.callLocIdx = 151; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7515.info = {"start":2761,"length":43,"line":77,"column":14,"endLine":79,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +on_on_update__P71736.info = {"start":3096,"length":55,"line":90,"column":14,"endLine":92,"endColumn":1,"fileName":"main.ts","functionName":"on_on_update","argumentNames":[]} -function inline__P7515_mk(s) { +function on_on_update__P71736_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7515, depth: s.depth + 1, + parent: s, fn: on_on_update__P71736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -3066,7 +3080,7 @@ function inline__P7515_mk(s) { -function sprites_random_spread__P4415(s) { +function sprites_random_spread__P68634(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3076,7 +3090,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = forestFire_updateFireSpread__P4426_mk(s); + s.tmp_0 = forestFire_updateFireSpread__P68645_mk(s); s.callLocIdx = 2283; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -3084,12 +3098,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_random_spread__P4415.info = {"start":3981,"length":78,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"random_spread","argumentNames":[]} +sprites_random_spread__P68634.info = {"start":3981,"length":78,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"random_spread","argumentNames":[]} -function sprites_random_spread__P4415_mk(s) { +function sprites_random_spread__P68634_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_random_spread__P4415, depth: s.depth + 1, + parent: s, fn: sprites_random_spread__P68634, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -3098,7 +3112,7 @@ function sprites_random_spread__P4415_mk(s) { -function forestFire_updateFireSpread__P4426(s) { +function forestFire_updateFireSpread__P68645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3108,8 +3122,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = forestFire_FireState_update__P7137_mk(s); - s.tmp_0.arg0 = globals.state___7146; + s.tmp_0 = forestFire_FireState_update__P71356_mk(s); + s.tmp_0.arg0 = globals.state___71365; s.callLocIdx = 2350; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -3117,12 +3131,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forestFire_updateFireSpread__P4426.info = {"start":11504,"length":66,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"updateFireSpread","argumentNames":[]} +forestFire_updateFireSpread__P68645.info = {"start":11504,"length":66,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"updateFireSpread","argumentNames":[]} -function forestFire_updateFireSpread__P4426_mk(s) { +function forestFire_updateFireSpread__P68645_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_updateFireSpread__P4426, depth: s.depth + 1, + parent: s, fn: forestFire_updateFireSpread__P68645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -3131,7 +3145,7 @@ function forestFire_updateFireSpread__P4426_mk(s) { -function forestFire_FireState_update__P7137(s) { +function forestFire_FireState_update__P71356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3141,49 +3155,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___7524 = undefined; - s.tmWidth___7528 = undefined; - s.tmHeight___7535 = undefined; - s.old___7554 = undefined; - s.oldHealth___7568 = undefined; + s.tm___71745 = undefined; + s.tmWidth___71749 = undefined; + s.tmHeight___71756 = undefined; + s.old___71775 = undefined; + s.oldHealth___71789 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); r0 = (s.arg0).fields["updateHasBeenCalled"] = (true); - s.tmp_0 = game_currentScene__P2979_mk(s); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 2311; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___7524 = (r0); - s.tmp_1 = tiles_TileMap_areaWidth__P2723_mk(s); - s.tmp_1.arg0 = s.tm___7524; + s.tm___71745 = (r0); + s.tmp_1 = tiles_TileMap_areaWidth__P66942_mk(s); + s.tmp_1.arg0 = s.tm___71745; s.callLocIdx = 2312; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; - r0 = s.tm___7524.fields["_scale"]; + r0 = s.tm___71745.fields["_scale"]; s.tmp_2 = r0; r0 = (s.tmp_0 >> s.tmp_2); - s.tmWidth___7528 = (r0); - s.tmp_1 = tiles_TileMap_areaHeight__P2724_mk(s); - s.tmp_1.arg0 = s.tm___7524; + s.tmWidth___71749 = (r0); + s.tmp_1 = tiles_TileMap_areaHeight__P66943_mk(s); + s.tmp_1.arg0 = s.tm___71745; s.callLocIdx = 2314; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; - r0 = s.tm___7524.fields["_scale"]; + r0 = s.tm___71745.fields["_scale"]; s.tmp_2 = r0; r0 = (s.tmp_0 >> s.tmp_2); - s.tmHeight___7535 = (r0); + s.tmHeight___71756 = (r0); r0 = s.arg0.fields["timeBuffer"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.width(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.tmWidth___7528); + r0 = (s.tmp_1 !== s.tmWidth___71749); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } @@ -3194,36 +3208,36 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_ImageMethods.height(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 !== s.tmHeight___7535); + r0 = (s.tmp_3 !== s.tmHeight___71756); case 2: // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } r0 = s.arg0.fields["timeBuffer"]; - s.old___7554 = (r0); + s.old___71775 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.tmWidth___7528, s.tmHeight___7535); + r0 = pxsim.image.create(s.tmWidth___71749, s.tmHeight___71756); s.tmp_1 = r0; r0 = (s.tmp_0).fields["timeBuffer"] = (s.tmp_1); r0 = s.arg0.fields["timeBuffer"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.old___7554, 0, 0); + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.old___71775, 0, 0); r0 = s.arg0.fields["healthBuffer"]; - s.oldHealth___7568 = (r0); + s.oldHealth___71789 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.tmWidth___7528, s.tmHeight___7535); + r0 = pxsim.image.create(s.tmWidth___71749, s.tmHeight___71756); s.tmp_1 = r0; r0 = (s.tmp_0).fields["healthBuffer"] = (s.tmp_1); r0 = s.arg0.fields["healthBuffer"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.oldHealth___7568, 0, 0); + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.oldHealth___71789, 0, 0); case 3: case 4: s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; - s.tmp_4 = game_currentScene__P2979_mk(s); + s.tmp_4 = game_currentScene__P67198_mk(s); s.callLocIdx = 2316; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; @@ -3248,7 +3262,7 @@ switch (step) { r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; r0 = (s.tmp_2).fields["timer"] = (s.tmp_3); - s.tmp_0 = forestFire_FireState_updateFireSpread__P7138_mk(s); + s.tmp_0 = forestFire_FireState_updateFireSpread__P71357_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 2317; s.pc = 11; return s.tmp_0; case 11: @@ -3259,12 +3273,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forestFire_FireState_update__P7137.info = {"start":5069,"length":1149,"line":148,"column":8,"endLine":174,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"update","argumentNames":["this"]} +forestFire_FireState_update__P71356.info = {"start":5069,"length":1149,"line":148,"column":8,"endLine":174,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"update","argumentNames":["this"]} -function forestFire_FireState_update__P7137_mk(s) { +function forestFire_FireState_update__P71356_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_update__P7137, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_update__P71356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3272,11 +3286,11 @@ function forestFire_FireState_update__P7137_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___7524: undefined, - tmWidth___7528: undefined, - tmHeight___7535: undefined, - old___7554: undefined, - oldHealth___7568: undefined, + tm___71745: undefined, + tmWidth___71749: undefined, + tmHeight___71756: undefined, + old___71775: undefined, + oldHealth___71789: undefined, arg0: undefined, } } @@ -3284,7 +3298,7 @@ function forestFire_FireState_update__P7137_mk(s) { -function forestFire_FireState_updateFireSpread__P7138(s) { +function forestFire_FireState_updateFireSpread__P71357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3294,22 +3308,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___7605 = undefined; - s.x___7606 = undefined; - s.y___7613 = undefined; - s.tm___7657 = undefined; - s.i___7661 = undefined; - s.location___7665 = undefined; + s.current___71826 = undefined; + s.x___71827 = undefined; + s.y___71834 = undefined; + s.tm___71878 = undefined; + s.i___71882 = undefined; + s.location___71886 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - s.current___7605 = (0); - s.x___7606 = (0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + s.current___71826 = (0); + s.x___71827 = (0); case 1: - s.tmp_1 = r0 = s.x___7606; + s.tmp_1 = r0 = s.x___71827; r0 = s.arg0.fields["timeBuffer"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -3318,9 +3332,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.y___7613 = (0); + s.y___71834 = (0); case 2: - s.tmp_1 = r0 = s.y___7613; + s.tmp_1 = r0 = s.y___71834; r0 = s.arg0.fields["timeBuffer"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -3329,8 +3343,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_5 = Math_percentChance__P3037_mk(s); - s.tmp_9 = forestFire_FireState_danger__P7132_mk(s); + s.tmp_5 = Math_percentChance__P67256_mk(s); + s.tmp_9 = forestFire_FireState_danger__P71351_mk(s); s.tmp_9.arg0 = s.arg0; s.callLocIdx = 2318; s.pc = 21; return s.tmp_9; case 21: @@ -3353,16 +3367,16 @@ switch (step) { case 4: r0 = s.arg0.fields["timeBuffer"]; s.tmp_10 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_10, s.x___7606, s.y___7613); - s.current___7605 = (r0); - r0 = (s.current___7605 > 0); + r0 = pxsim_ImageMethods.getPixel(s.tmp_10, s.x___71827, s.y___71834); + s.current___71826 = (r0); + r0 = (s.current___71826 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } r0 = s.tmp_0; { step = 6; continue; } case 5: - r0 = (s.current___7605 < 15); + r0 = (s.current___71826 < 15); case 6: // jmp value (already in r0) s.tmp_1 = r0; @@ -3370,40 +3384,40 @@ switch (step) { if (!r0) { step = 15; continue; } r0 = s.arg0.fields["timeBuffer"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.x___7606; - s.tmp_4 = r0 = s.y___7613; - r0 = (s.current___7605 - 1); + s.tmp_3 = r0 = s.x___71827; + s.tmp_4 = r0 = s.y___71834; + r0 = (s.current___71826 - 1); s.tmp_5 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_2, s.tmp_3, s.tmp_4, s.tmp_5); - r0 = (s.current___7605 === 1); + r0 = (s.current___71826 === 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } r0 = s.arg0.fields["timeBuffer"]; s.tmp_1 = r0; - s.tmp_2 = r0 = s.x___7606; - s.tmp_3 = r0 = s.y___7613; - s.tmp_5 = forestFire_FireState_getRandomSpreadInterval__P7134_mk(s); + s.tmp_2 = r0 = s.x___71827; + s.tmp_3 = r0 = s.y___71834; + s.tmp_5 = forestFire_FireState_getRandomSpreadInterval__P71353_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 2320; s.pc = 22; return s.tmp_5; case 22: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_1, s.tmp_2, s.tmp_3, s.tmp_4); - s.tmp_0 = game_currentScene__P2979_mk(s); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 2321; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___7657 = (r0); - s.i___7661 = (0); + s.tm___71878 = (r0); + s.i___71882 = (0); case 7: - r0 = (s.i___7661 < 10); + r0 = (s.i___71882 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.location___7665 = (undefined); - s.tmp_1 = Math_percentChance__P3037_mk(s); + s.location___71886 = (undefined); + s.tmp_1 = Math_percentChance__P67256_mk(s); s.tmp_1.arg0 = 50; s.callLocIdx = 2322; s.pc = 24; return s.tmp_1; case 24: @@ -3411,22 +3425,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.tmp_2 = tiles_getTileLocation__P2747_mk(s); - s.tmp_3 = Math_clamp__P127_mk(s); + s.tmp_2 = tiles_getTileLocation__P66966_mk(s); + s.tmp_3 = Math_clamp__P64346_mk(s); s.tmp_3.arg0 = 0; - s.tmp_6 = tiles_TileMap_areaWidth__P2723_mk(s); - s.tmp_6.arg0 = s.tm___7657; + s.tmp_6 = tiles_TileMap_areaWidth__P66942_mk(s); + s.tmp_6.arg0 = s.tm___71878; s.callLocIdx = 2323; s.pc = 27; return s.tmp_6; case 27: r0 = s.retval; s.tmp_5 = r0; - r0 = s.tm___7657.fields["_scale"]; + r0 = s.tm___71878.fields["_scale"]; s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_4 = r0; r0 = (s.tmp_4 - 1); s.tmp_3.arg1 = r0; - s.tmp_8 = r0 = s.x___7606; + s.tmp_8 = r0 = s.x___71827; r0 = pxsim.Math_.randomRange(-2, 2); s.tmp_9 = r0; r0 = (s.tmp_8 + s.tmp_9); @@ -3435,30 +3449,30 @@ switch (step) { case 26: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.y___7613; + s.tmp_2.arg1 = s.y___71834; s.callLocIdx = 2326; s.pc = 25; return s.tmp_2; case 25: r0 = s.retval; - s.location___7665 = (r0); + s.location___71886 = (r0); { step = 9; continue; } case 8: - s.tmp_0 = tiles_getTileLocation__P2747_mk(s); - s.tmp_0.arg0 = s.x___7606; - s.tmp_1 = Math_clamp__P127_mk(s); + s.tmp_0 = tiles_getTileLocation__P66966_mk(s); + s.tmp_0.arg0 = s.x___71827; + s.tmp_1 = Math_clamp__P64346_mk(s); s.tmp_1.arg0 = 0; - s.tmp_4 = tiles_TileMap_areaHeight__P2724_mk(s); - s.tmp_4.arg0 = s.tm___7657; + s.tmp_4 = tiles_TileMap_areaHeight__P66943_mk(s); + s.tmp_4.arg0 = s.tm___71878; s.callLocIdx = 2327; s.pc = 30; return s.tmp_4; case 30: r0 = s.retval; s.tmp_3 = r0; - r0 = s.tm___7657.fields["_scale"]; + r0 = s.tm___71878.fields["_scale"]; s.tmp_5 = r0; r0 = (s.tmp_3 >> s.tmp_5); s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1.arg1 = r0; - s.tmp_6 = r0 = s.y___7613; + s.tmp_6 = r0 = s.y___71834; r0 = pxsim.Math_.randomRange(-2, 2); s.tmp_7 = r0; r0 = (s.tmp_6 + s.tmp_7); @@ -3470,11 +3484,11 @@ switch (step) { s.callLocIdx = 2330; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; - s.location___7665 = (r0); + s.location___71886 = (r0); case 9: - s.tmp_1 = forestFire_FireState_tryFireSpread__P7139_mk(s); + s.tmp_1 = forestFire_FireState_tryFireSpread__P71358_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.location___7665; + s.tmp_1.arg1 = s.location___71886; s.callLocIdx = 2331; s.pc = 31; return s.tmp_1; case 31: r0 = s.retval; @@ -3484,8 +3498,8 @@ switch (step) { { step = 12; continue; } case 10: case 11: - r0 = (s.i___7661 + 1); - s.i___7661 = (r0); + r0 = (s.i___71882 + 1); + s.i___71882 = (r0); { step = 7; continue; } case 12: case 13: @@ -3493,24 +3507,24 @@ switch (step) { case 15: case 16: case 17: - r0 = (s.y___7613 + 1); - s.y___7613 = (r0); + r0 = (s.y___71834 + 1); + s.y___71834 = (r0); { step = 2; continue; } case 18: - r0 = (s.x___7606 + 1); - s.x___7606 = (r0); + r0 = (s.x___71827 + 1); + s.x___71827 = (r0); { step = 1; continue; } case 19: r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_updateFireSpread__P7138.info = {"start":6228,"length":2613,"line":176,"column":8,"endLine":230,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"updateFireSpread","argumentNames":["this"]} +forestFire_FireState_updateFireSpread__P71357.info = {"start":6228,"length":2613,"line":176,"column":8,"endLine":230,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"updateFireSpread","argumentNames":["this"]} -function forestFire_FireState_updateFireSpread__P7138_mk(s) { +function forestFire_FireState_updateFireSpread__P71357_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_updateFireSpread__P7138, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_updateFireSpread__P71357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3523,12 +3537,12 @@ function forestFire_FireState_updateFireSpread__P7138_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - current___7605: undefined, - x___7606: undefined, - y___7613: undefined, - tm___7657: undefined, - i___7661: undefined, - location___7665: undefined, + current___71826: undefined, + x___71827: undefined, + y___71834: undefined, + tm___71878: undefined, + i___71882: undefined, + location___71886: undefined, arg0: undefined, } } @@ -3536,7 +3550,7 @@ function forestFire_FireState_updateFireSpread__P7138_mk(s) { -function forestFire_FireState_tryFireSpread__P7139(s) { +function forestFire_FireState_tryFireSpread__P71358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3546,26 +3560,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileImage___7713 = undefined; - s.tile___7726 = undefined; - s.unnamed132___U2 = undefined; - s.unnamed133___U3 = undefined; + s.tileImage___71934 = undefined; + s.tile___71947 = undefined; + s.unnamed404___U2 = undefined; + s.unnamed405___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - s.tmp_0 = tiles_getTileImage__P2748_mk(s); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + s.tmp_0 = tiles_getTileImage__P66967_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 2332; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tileImage___7713 = (r0); + s.tileImage___71934 = (r0); r0 = s.arg0.fields["timeBuffer"]; s.tmp_1 = r0; - s.tmp_3 = tiles_Location_col__P2685_mk(s); + s.tmp_3 = tiles_Location_col__P66904_mk(s); s.tmp_3.arg0 = s.arg1; s.callLocIdx = 2333; s.pc = 9; return s.tmp_3; case 9: @@ -3581,26 +3595,26 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.tile___7726 = (undefined); + s.tile___71947 = (undefined); r0 = s.arg0.fields["unburntTileCache"]; - s.unnamed132___U2 = (r0); - s.unnamed133___U3 = (0); + s.unnamed404___U2 = (r0); + s.unnamed405___U3 = (0); case 3: - s.tmp_0 = r0 = s.unnamed133___U3; - r0 = pxsim_Array__length(s.unnamed132___U2); + s.tmp_0 = r0 = s.unnamed405___U3; + r0 = pxsim_Array__length(s.unnamed404___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed132___U2, s.unnamed133___U3); - s.tile___7726 = (r0); - r0 = pxsim_ImageMethods.equals(s.tileImage___7713, s.tile___7726); + r0 = pxsim_Array__getAt(s.unnamed404___U2, s.unnamed405___U3); + s.tile___71947 = (r0); + r0 = pxsim_ImageMethods.equals(s.tileImage___71934, s.tile___71947); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - s.tmp_3 = forestFire_FireState_createFireAtLocation__P7136_mk(s); + s.tmp_3 = forestFire_FireState_createFireAtLocation__P71355_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.tileImage___7713; + s.tmp_3.arg2 = s.tileImage___71934; r0 = s.arg0.fields["fireImage"]; s.tmp_3.arg3 = r0; s.callLocIdx = 2335; s.pc = 10; return s.tmp_3; @@ -3610,32 +3624,32 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.unnamed133___U3 + 1); - s.unnamed133___U3 = (r0); + r0 = (s.unnamed405___U3 + 1); + s.unnamed405___U3 = (r0); { step = 3; continue; } case 6: - s.unnamed132___U2 = (undefined); + s.unnamed404___U2 = (undefined); r0 = false; case 7: return leave(s, r0) default: oops() } } } -forestFire_FireState_tryFireSpread__P7139.info = {"start":8851,"length":474,"line":232,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"tryFireSpread","argumentNames":["this","location"]} +forestFire_FireState_tryFireSpread__P71358.info = {"start":8851,"length":474,"line":232,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"tryFireSpread","argumentNames":["this","location"]} -function forestFire_FireState_tryFireSpread__P7139_mk(s) { +function forestFire_FireState_tryFireSpread__P71358_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_tryFireSpread__P7139, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_tryFireSpread__P71358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tileImage___7713: undefined, - tile___7726: undefined, - unnamed132___U2: undefined, - unnamed133___U3: undefined, + tileImage___71934: undefined, + tile___71947: undefined, + unnamed404___U2: undefined, + unnamed405___U3: undefined, arg0: undefined, arg1: undefined, } } @@ -3644,7 +3658,7 @@ function forestFire_FireState_tryFireSpread__P7139_mk(s) { -function forestFire_FireState_createFireAtLocation__P7136(s) { +function forestFire_FireState_createFireAtLocation__P71355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3654,14 +3668,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.image___7748 = undefined; - s.foundIt___7756 = undefined; - s.tile___7758 = undefined; - s.unnamed128___U3 = undefined; - s.unnamed129___U4 = undefined; - s.handler___7794 = undefined; - s.unnamed130___U6 = undefined; - s.unnamed131___U7 = undefined; + s.image___71969 = undefined; + s.foundIt___71977 = undefined; + s.tile___71979 = undefined; + s.unnamed400___U3 = undefined; + s.unnamed401___U4 = undefined; + s.handler___72015 = undefined; + s.unnamed402___U6 = undefined; + s.unnamed403___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3670,41 +3684,41 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 9; continue; } r0 = (s.arg0).fields["fireHasStarted"] = (true); r0 = pxsim_ImageMethods.clone(s.arg2); - s.image___7748 = (r0); - r0 = pxsim_ImageMethods.drawTransparentImage(s.image___7748, s.arg3, 0, 0); - s.foundIt___7756 = (false); - s.tile___7758 = (undefined); + s.image___71969 = (r0); + r0 = pxsim_ImageMethods.drawTransparentImage(s.image___71969, s.arg3, 0, 0); + s.foundIt___71977 = (false); + s.tile___71979 = (undefined); r0 = s.arg0.fields["tileCache"]; - s.unnamed128___U3 = (r0); - s.unnamed129___U4 = (0); + s.unnamed400___U3 = (r0); + s.unnamed401___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed129___U4; - r0 = pxsim_Array__length(s.unnamed128___U3); + s.tmp_0 = r0 = s.unnamed401___U4; + r0 = pxsim_Array__length(s.unnamed400___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed128___U3, s.unnamed129___U4); - s.tile___7758 = (r0); - r0 = pxsim_ImageMethods.equals(s.tile___7758, s.image___7748); + r0 = pxsim_Array__getAt(s.unnamed400___U3, s.unnamed401___U4); + s.tile___71979 = (r0); + r0 = pxsim_ImageMethods.equals(s.tile___71979, s.image___71969); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - s.image___7748 = (s.tile___7758); - s.foundIt___7756 = (true); + s.image___71969 = (s.tile___71979); + s.foundIt___71977 = (true); { step = 4; continue; } case 2: case 3: - r0 = (s.unnamed129___U4 + 1); - s.unnamed129___U4 = (r0); + r0 = (s.unnamed401___U4 + 1); + s.unnamed401___U4 = (r0); { step = 1; continue; } case 4: - s.unnamed128___U3 = (undefined); - r0 = pxsim_numops_toBoolDecr(s.foundIt___7756); + s.unnamed400___U3 = (undefined); + r0 = pxsim_numops_toBoolDecr(s.foundIt___71977); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -3712,21 +3726,21 @@ switch (step) { if (!r0) { step = 5; continue; } r0 = s.arg0.fields["tileCache"]; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.image___7748); + r0 = pxsim_Array__push(s.tmp_2, s.image___71969); r0 = s.arg0.fields["unburntTileCache"]; s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg2); case 5: case 6: - s.tmp_0 = tiles_setTileAt__P2745_mk(s); + s.tmp_0 = tiles_setTileAt__P66964_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.image___7748; + s.tmp_0.arg1 = s.image___71969; s.callLocIdx = 2306; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = s.arg0.fields["timeBuffer"]; s.tmp_0 = r0; - s.tmp_2 = tiles_Location_col__P2685_mk(s); + s.tmp_2 = tiles_Location_col__P66904_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 2307; s.pc = 12; return s.tmp_2; case 12: @@ -3734,49 +3748,49 @@ switch (step) { s.tmp_1 = r0; r0 = s.arg1.fields["_row"]; s.tmp_3 = r0; - s.tmp_5 = forestFire_FireState_getRandomSpreadInterval__P7134_mk(s); + s.tmp_5 = forestFire_FireState_getRandomSpreadInterval__P71353_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 2309; s.pc = 13; return s.tmp_5; case 13: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.tmp_4); - s.handler___7794 = (undefined); + s.handler___72015 = (undefined); r0 = s.arg0.fields["fireCreatedHandlers"]; - s.unnamed130___U6 = (r0); - s.unnamed131___U7 = (0); + s.unnamed402___U6 = (r0); + s.unnamed403___U7 = (0); case 7: - s.tmp_0 = r0 = s.unnamed131___U7; - r0 = pxsim_Array__length(s.unnamed130___U6); + s.tmp_0 = r0 = s.unnamed403___U7; + r0 = pxsim_Array__length(s.unnamed402___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed130___U6, s.unnamed131___U7); - s.handler___7794 = (r0); + r0 = pxsim_Array__getAt(s.unnamed402___U6, s.unnamed403___U7); + s.handler___72015 = (r0); s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = s.handler___7794; + s.tmp_2.argL = s.handler___72015; s.tmp_2.arg0 = s.arg1; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 2310; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = (s.unnamed131___U7 + 1); - s.unnamed131___U7 = (r0); + r0 = (s.unnamed403___U7 + 1); + s.unnamed403___U7 = (r0); { step = 7; continue; } case 8: - s.unnamed130___U6 = (undefined); + s.unnamed402___U6 = (undefined); case 9: case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_createFireAtLocation__P7136.info = {"start":4074,"length":985,"line":118,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtLocation","argumentNames":["this","location","tile","fire"]} +forestFire_FireState_createFireAtLocation__P71355.info = {"start":4074,"length":985,"line":118,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtLocation","argumentNames":["this","location","tile","fire"]} -function forestFire_FireState_createFireAtLocation__P7136_mk(s) { +function forestFire_FireState_createFireAtLocation__P71355_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_createFireAtLocation__P7136, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_createFireAtLocation__P71355, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3784,14 +3798,14 @@ function forestFire_FireState_createFireAtLocation__P7136_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - image___7748: undefined, - foundIt___7756: undefined, - tile___7758: undefined, - unnamed128___U3: undefined, - unnamed129___U4: undefined, - handler___7794: undefined, - unnamed130___U6: undefined, - unnamed131___U7: undefined, + image___71969: undefined, + foundIt___71977: undefined, + tile___71979: undefined, + unnamed400___U3: undefined, + unnamed401___U4: undefined, + handler___72015: undefined, + unnamed402___U6: undefined, + unnamed403___U7: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3802,7 +3816,7 @@ function forestFire_FireState_createFireAtLocation__P7136_mk(s) { -function tiles_getTileImage__P2748(s) { +function tiles_getTileImage__P66967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3812,16 +3826,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___7811 = undefined; + s.scene___72032 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 1307; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___7811 = (r0); + s.scene___72032 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -3831,7 +3845,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___7811.fields["tileMap"]; + r0 = s.scene___72032.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -3841,14 +3855,14 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex7821); + r0 = pxsim.image.ofBuffer(_hex72042); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P2739_mk(s); - r0 = s.scene___7811.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P66958_mk(s); + r0 = s.scene___72032.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P2684_mk(s); + s.tmp_6 = tiles_Location_tileSet__P66903_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 1308; s.pc = 8; return s.tmp_6; case 8: @@ -3861,12 +3875,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_getTileImage__P2748.info = {"start":21871,"length":207,"line":673,"column":4,"endLine":677,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P66967.info = {"start":21871,"length":207,"line":673,"column":4,"endLine":677,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P2748_mk(s) { +function tiles_getTileImage__P66967_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P2748, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P66967, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3875,16 +3889,16 @@ function tiles_getTileImage__P2748_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___7811: undefined, + scene___72032: undefined, arg0: undefined, } } -const _hex7821 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex72042 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P2739(s) { +function tiles_TileMap_getTileImage__P66958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3900,8 +3914,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P2706_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P66925_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -3911,12 +3925,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P2739.info = {"start":17510,"length":96,"line":553,"column":8,"endLine":555,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getTileImage__P66958.info = {"start":17510,"length":96,"line":553,"column":8,"endLine":555,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMap_getTileImage__P2739_mk(s) { +function tiles_TileMap_getTileImage__P66958_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P2739, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P66958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -3927,7 +3941,7 @@ function tiles_TileMap_getTileImage__P2739_mk(s) { -function tiles_TileMap_data__P2720(s) { +function tiles_TileMap_data__P66939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3942,18 +3956,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P2720.info = {"start":9424,"length":65,"line":321,"column":8,"endLine":323,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_TileMap_data__P2720.isGetter = true; +tiles_TileMap_data__P66939.info = {"start":9424,"length":65,"line":321,"column":8,"endLine":323,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} +tiles_TileMap_data__P66939.isGetter = true; -function tiles_TileMap_data__P2720_mk(s) { +function tiles_TileMap_data__P66939_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P2720, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P66939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -3962,7 +3976,7 @@ function tiles_TileMap_data__P2720_mk(s) { -function tiles_TileMapData_getTileImage__P2706(s) { +function tiles_TileMapData_getTileImage__P66925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3972,25 +3986,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___7902 = undefined; - s.cachedImage___7906 = undefined; - s.originalImage___7913 = undefined; + s.size___72123 = undefined; + s.cachedImage___72127 = undefined; + s.originalImage___72134 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___7902 = (r0); + s.size___72123 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___7906 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___7906); + s.cachedImage___72127 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___72127); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -3999,58 +4013,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___7913 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___7913); + s.originalImage___72134 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___72134); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___7913); + r0 = pxsim_ImageMethods.width(s.originalImage___72134); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___7902); + r0 = (s.tmp_1 <= s.size___72123); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_ImageMethods.height(s.originalImage___7913); + r0 = pxsim_ImageMethods.height(s.originalImage___72134); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___7902); + r0 = (s.tmp_2 <= s.size___72123); case 2: // jmp value (already in r0) s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.cachedImage___7906 = (s.originalImage___7913); + s.cachedImage___72127 = (s.originalImage___72134); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___7902, s.size___7902); - s.cachedImage___7906 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___7906, s.originalImage___7913, 0, 0); + r0 = pxsim.image.create(s.size___72123, s.size___72123); + s.cachedImage___72127 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___72127, s.originalImage___72134, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___7906); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___72127); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___7906; + r0 = s.cachedImage___72127; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P2706.info = {"start":7354,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMapData_getTileImage__P66925.info = {"start":7354,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMapData_getTileImage__P2706_mk(s) { +function tiles_TileMapData_getTileImage__P66925_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P2706, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P66925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - size___7902: undefined, - cachedImage___7906: undefined, - originalImage___7913: undefined, + size___72123: undefined, + cachedImage___72127: undefined, + originalImage___72134: undefined, arg0: undefined, arg1: undefined, } } @@ -4059,7 +4073,7 @@ function tiles_TileMapData_getTileImage__P2706_mk(s) { -function tiles_TileMapData_scale__P2701(s) { +function tiles_TileMapData_scale__P66920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4074,18 +4088,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2701.info = {"start":6564,"length":66,"line":222,"column":8,"endLine":224,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMapData_scale__P2701.isGetter = true; +tiles_TileMapData_scale__P66920.info = {"start":6564,"length":66,"line":222,"column":8,"endLine":224,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMapData_scale__P66920.isGetter = true; -function tiles_TileMapData_scale__P2701_mk(s) { +function tiles_TileMapData_scale__P66920_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2701, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P66920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4094,7 +4108,7 @@ function tiles_TileMapData_scale__P2701_mk(s) { -function tiles_Location_tileSet__P2684(s) { +function tiles_Location_tileSet__P66903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4109,9 +4123,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P2730_mk(s); - s.tmp_1 = tiles_Location_tileMap__P2675_mk(s); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P66949_mk(s); + s.tmp_1 = tiles_Location_tileMap__P66894_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 1202; s.pc = 2; return s.tmp_1; case 2: @@ -4127,13 +4141,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P2684.info = {"start":2323,"length":101,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} -tiles_Location_tileSet__P2684.isGetter = true; +tiles_Location_tileSet__P66903.info = {"start":2323,"length":101,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} +tiles_Location_tileSet__P66903.isGetter = true; -function tiles_Location_tileSet__P2684_mk(s) { +function tiles_Location_tileSet__P66903_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P2684, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P66903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4144,7 +4158,7 @@ function tiles_Location_tileSet__P2684_mk(s) { -function tiles_TileMap_getTileIndex__P2730(s) { +function tiles_TileMap_getTileIndex__P66949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4161,8 +4175,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P2703_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P66922_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -4173,12 +4187,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P2730.info = {"start":11191,"length":105,"line":384,"column":8,"endLine":386,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +tiles_TileMap_getTileIndex__P66949.info = {"start":11191,"length":105,"line":384,"column":8,"endLine":386,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function tiles_TileMap_getTileIndex__P2730_mk(s) { +function tiles_TileMap_getTileIndex__P66949_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P2730, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P66949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4190,7 +4204,7 @@ function tiles_TileMap_getTileIndex__P2730_mk(s) { -function tiles_TileMapData_getTile__P2703(s) { +function tiles_TileMapData_getTile__P66922(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4207,8 +4221,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2709_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P66928_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -4241,12 +4255,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P2703.info = {"start":6752,"length":200,"line":231,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMapData_getTile__P66922.info = {"start":6752,"length":200,"line":231,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_TileMapData_getTile__P2703_mk(s) { +function tiles_TileMapData_getTile__P66922_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P2703, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P66922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4266,7 +4280,7 @@ function tiles_TileMapData_getTile__P2703_mk(s) { -function tiles_TileMapData_isOutsideMap__P2709(s) { +function tiles_TileMapData_isOutsideMap__P66928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4283,7 +4297,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -4323,12 +4337,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P2709.info = {"start":8335,"length":132,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +tiles_TileMapData_isOutsideMap__P66928.info = {"start":8335,"length":132,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function tiles_TileMapData_isOutsideMap__P2709_mk(s) { +function tiles_TileMapData_isOutsideMap__P66928_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P2709, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P66928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4347,7 +4361,7 @@ function tiles_TileMapData_isOutsideMap__P2709_mk(s) { -function tiles_TileMapData_height__P2700(s) { +function tiles_TileMapData_height__P66919(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4362,18 +4376,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = s.arg0.fields["_height"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_height__P2700.info = {"start":6489,"length":65,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} -tiles_TileMapData_height__P2700.isGetter = true; +tiles_TileMapData_height__P66919.info = {"start":6489,"length":65,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} +tiles_TileMapData_height__P66919.isGetter = true; -function tiles_TileMapData_height__P2700_mk(s) { +function tiles_TileMapData_height__P66919_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P2700, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P66919, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4382,7 +4396,7 @@ function tiles_TileMapData_height__P2700_mk(s) { -function tiles_TileMapData_width__P2699(s) { +function tiles_TileMapData_width__P66918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4397,18 +4411,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = s.arg0.fields["_width"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_width__P2699.info = {"start":6416,"length":63,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} -tiles_TileMapData_width__P2699.isGetter = true; +tiles_TileMapData_width__P66918.info = {"start":6416,"length":63,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} +tiles_TileMapData_width__P66918.isGetter = true; -function tiles_TileMapData_width__P2699_mk(s) { +function tiles_TileMapData_width__P66918_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P2699, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P66918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4417,7 +4431,7 @@ function tiles_TileMapData_width__P2699_mk(s) { -function tiles_Location_tileMap__P2675(s) { +function tiles_Location_tileMap__P66894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4432,8 +4446,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 1193; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -4441,13 +4455,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileMap__P2675.info = {"start":491,"length":73,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileMap","argumentNames":["this"]} -tiles_Location_tileMap__P2675.isGetter = true; +tiles_Location_tileMap__P66894.info = {"start":491,"length":73,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileMap","argumentNames":["this"]} +tiles_Location_tileMap__P66894.isGetter = true; -function tiles_Location_tileMap__P2675_mk(s) { +function tiles_Location_tileMap__P66894_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileMap__P2675, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileMap__P66894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4457,7 +4471,7 @@ function tiles_Location_tileMap__P2675_mk(s) { -function tiles_Location_col__P2685(s) { +function tiles_Location_col__P66904(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4472,18 +4486,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_col__P2685.info = {"start":2456,"length":53,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]} -tiles_Location_col__P2685.isGetter = true; +tiles_Location_col__P66904.info = {"start":2456,"length":53,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]} +tiles_Location_col__P66904.isGetter = true; -function tiles_Location_col__P2685_mk(s) { +function tiles_Location_col__P66904_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P2685, depth: s.depth + 1, + parent: s, fn: tiles_Location_col__P66904, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4492,7 +4506,7 @@ function tiles_Location_col__P2685_mk(s) { -function tiles_Location_column__P2676(s) { +function tiles_Location_column__P66895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4507,18 +4521,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_column__P2676.info = {"start":695,"length":54,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"column","argumentNames":["this"]} -tiles_Location_column__P2676.isGetter = true; +tiles_Location_column__P66895.info = {"start":695,"length":54,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"column","argumentNames":["this"]} +tiles_Location_column__P66895.isGetter = true; -function tiles_Location_column__P2676_mk(s) { +function tiles_Location_column__P66895_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_column__P2676, depth: s.depth + 1, + parent: s, fn: tiles_Location_column__P66895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4527,7 +4541,7 @@ function tiles_Location_column__P2676_mk(s) { -function tiles_Location_row__P2677(s) { +function tiles_Location_row__P66896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4542,18 +4556,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P2677.info = {"start":877,"length":51,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} -tiles_Location_row__P2677.isGetter = true; +tiles_Location_row__P66896.info = {"start":877,"length":51,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} +tiles_Location_row__P66896.isGetter = true; -function tiles_Location_row__P2677_mk(s) { +function tiles_Location_row__P66896_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P2677, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P66896, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4562,7 +4576,7 @@ function tiles_Location_row__P2677_mk(s) { -function forestFire_FireState_getRandomSpreadInterval__P7134(s) { +function forestFire_FireState_getRandomSpreadInterval__P71353(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4572,14 +4586,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spreadTime___8012 = undefined; + s.spreadTime___72233 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - s.tmp_1 = forestFire_FireState_spreadTime__P7133_mk(s); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + s.tmp_1 = forestFire_FireState_spreadTime__P71352_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 2302; s.pc = 1; return s.tmp_1; case 1: @@ -4588,12 +4602,12 @@ switch (step) { r0 = pxsim.Math_.randomRange(0, 1000); s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.spreadTime___8012 = (r0); - s.tmp_0 = Math_min__P131_mk(s); + s.spreadTime___72233 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); s.tmp_0.arg0 = 14; r0 = s.arg0.fields["period"]; s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.spreadTime___8012, s.tmp_1); + r0 = pxsim.Math_.idiv(s.spreadTime___72233, s.tmp_1); s.tmp_0.arg1 = r0; s.callLocIdx = 2303; s.pc = 2; return s.tmp_0; case 2: @@ -4601,17 +4615,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -forestFire_FireState_getRandomSpreadInterval__P7134.info = {"start":3689,"length":182,"line":108,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"getRandomSpreadInterval","argumentNames":["this"]} +forestFire_FireState_getRandomSpreadInterval__P71353.info = {"start":3689,"length":182,"line":108,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"getRandomSpreadInterval","argumentNames":["this"]} -function forestFire_FireState_getRandomSpreadInterval__P7134_mk(s) { +function forestFire_FireState_getRandomSpreadInterval__P71353_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_getRandomSpreadInterval__P7134, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_getRandomSpreadInterval__P71353, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - spreadTime___8012: undefined, + spreadTime___72233: undefined, arg0: undefined, } } @@ -4619,7 +4633,7 @@ function forestFire_FireState_getRandomSpreadInterval__P7134_mk(s) { -function forestFire_FireState_spreadTime__P7133(s) { +function forestFire_FireState_spreadTime__P71352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4634,8 +4648,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - s.tmp_3 = forestFire_FireState_danger__P7132_mk(s); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + s.tmp_3 = forestFire_FireState_danger__P71351_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 2301; s.pc = 1; return s.tmp_3; case 1: @@ -4649,13 +4663,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -forestFire_FireState_spreadTime__P7133.info = {"start":3598,"length":81,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"spreadTime","argumentNames":["this"]} -forestFire_FireState_spreadTime__P7133.isGetter = true; +forestFire_FireState_spreadTime__P71352.info = {"start":3598,"length":81,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"spreadTime","argumentNames":["this"]} +forestFire_FireState_spreadTime__P71352.isGetter = true; -function forestFire_FireState_spreadTime__P7133_mk(s) { +function forestFire_FireState_spreadTime__P71352_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_spreadTime__P7133, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_spreadTime__P71352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4668,7 +4682,7 @@ function forestFire_FireState_spreadTime__P7133_mk(s) { -function Math_min__P131(s) { +function Math_min__P64350(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4696,12 +4710,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_min__P131.info = {"start":16854,"length":105,"line":568,"column":4,"endLine":571,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} +Math_min__P64350.info = {"start":16854,"length":105,"line":568,"column":4,"endLine":571,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function Math_min__P131_mk(s) { +function Math_min__P64350_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P131, depth: s.depth + 1, + parent: s, fn: Math_min__P64350, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4712,7 +4726,7 @@ function Math_min__P131_mk(s) { -function forestFire_FireState_danger__P7132(s) { +function forestFire_FireState_danger__P71351(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4727,7 +4741,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); r0 = s.arg0.fields["windSpeed"]; s.tmp_2 = r0; r0 = s.arg0.fields["dryGrass"]; @@ -4744,13 +4758,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -forestFire_FireState_danger__P7132.info = {"start":3483,"length":105,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"danger","argumentNames":["this"]} -forestFire_FireState_danger__P7132.isGetter = true; +forestFire_FireState_danger__P71351.info = {"start":3483,"length":105,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"danger","argumentNames":["this"]} +forestFire_FireState_danger__P71351.isGetter = true; -function forestFire_FireState_danger__P7132_mk(s) { +function forestFire_FireState_danger__P71351_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_danger__P7132, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_danger__P71351, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4765,7 +4779,7 @@ function forestFire_FireState_danger__P7132_mk(s) { -function Math_percentChance__P3037(s) { +function Math_percentChance__P67256(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4803,12 +4817,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_percentChance__P3037.info = {"start":369,"length":259,"line":9,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["percentage"]} +Math_percentChance__P67256.info = {"start":369,"length":259,"line":9,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["percentage"]} -function Math_percentChance__P3037_mk(s) { +function Math_percentChance__P67256_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_percentChance__P3037, depth: s.depth + 1, + parent: s, fn: Math_percentChance__P67256, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4820,7 +4834,7 @@ function Math_percentChance__P3037_mk(s) { -function tiles_getTileLocation__P2747(s) { +function tiles_getTileLocation__P66966(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4830,17 +4844,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___7974 = undefined; + s.scene___72195 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 1305; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.scene___7974 = (r0); + s.scene___72195 = (r0); r0 = (s.arg0 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -4857,7 +4871,7 @@ switch (step) { r0 = s.tmp_1; { step = 4; continue; } case 3: - r0 = s.scene___7974.fields["tileMap"]; + r0 = s.scene___72195.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -4871,8 +4885,8 @@ switch (step) { { step = 7; continue; } case 5: case 6: - s.tmp_5 = tiles_TileMap_getTile__P2729_mk(s); - r0 = s.scene___7974.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTile__P66948_mk(s); + r0 = s.scene___72195.fields["tileMap"]; s.tmp_5.arg0 = r0; s.tmp_5.arg1 = s.arg0; s.tmp_5.arg2 = s.arg1; @@ -4883,12 +4897,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_getTileLocation__P2747.info = {"start":21520,"length":247,"line":663,"column":4,"endLine":667,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} +tiles_getTileLocation__P66966.info = {"start":21520,"length":247,"line":663,"column":4,"endLine":667,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} -function tiles_getTileLocation__P2747_mk(s) { +function tiles_getTileLocation__P66966_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileLocation__P2747, depth: s.depth + 1, + parent: s, fn: tiles_getTileLocation__P66966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4896,7 +4910,7 @@ function tiles_getTileLocation__P2747_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___7974: undefined, + scene___72195: undefined, arg0: undefined, arg1: undefined, } } @@ -4905,7 +4919,7 @@ function tiles_getTileLocation__P2747_mk(s) { -function tiles_TileMap_getTile__P2729(s) { +function tiles_TileMap_getTile__P66948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4922,10 +4936,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2673_VT); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C66892_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P2674_mk(s); + s.tmp_1 = tiles_Location_constructor__P66893_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -4937,12 +4951,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P2729.info = {"start":11070,"length":111,"line":380,"column":8,"endLine":382,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMap_getTile__P66948.info = {"start":11070,"length":111,"line":380,"column":8,"endLine":382,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_TileMap_getTile__P2729_mk(s) { +function tiles_TileMap_getTile__P66948_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P2729, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P66948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4955,7 +4969,7 @@ function tiles_TileMap_getTile__P2729_mk(s) { -function tiles_Location_constructor__P2674(s) { +function tiles_Location_constructor__P66893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4973,19 +4987,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = (s.arg0).fields["_col"] = (s.arg1); r0 = (s.arg0).fields["_row"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P2674.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} +tiles_Location_constructor__P66893.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function tiles_Location_constructor__P2674_mk(s) { +function tiles_Location_constructor__P66893_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P2674, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P66893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -4997,7 +5011,7 @@ function tiles_Location_constructor__P2674_mk(s) { -function Math_clamp__P127(s) { +function Math_clamp__P64346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5013,9 +5027,9 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P131_mk(s); + s.tmp_0 = Math_min__P64350_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P130_mk(s); + s.tmp_1 = Math_max__P64349_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg2; s.callLocIdx = 26; s.pc = 2; return s.tmp_1; @@ -5028,12 +5042,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_clamp__P127.info = {"start":15643,"length":130,"line":528,"column":4,"endLine":530,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +Math_clamp__P64346.info = {"start":15643,"length":130,"line":528,"column":4,"endLine":530,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function Math_clamp__P127_mk(s) { +function Math_clamp__P64346_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P127, depth: s.depth + 1, + parent: s, fn: Math_clamp__P64346, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5046,7 +5060,7 @@ function Math_clamp__P127_mk(s) { -function Math_max__P130(s) { +function Math_max__P64349(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5074,12 +5088,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_max__P130.info = {"start":16614,"length":105,"line":558,"column":4,"endLine":561,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} +Math_max__P64349.info = {"start":16614,"length":105,"line":558,"column":4,"endLine":561,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function Math_max__P130_mk(s) { +function Math_max__P64349_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P130, depth: s.depth + 1, + parent: s, fn: Math_max__P64349, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -5090,7 +5104,7 @@ function Math_max__P130_mk(s) { -function tiles_TileMap_areaHeight__P2724(s) { +function tiles_TileMap_areaHeight__P66943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5105,7 +5119,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -5127,12 +5141,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P2724.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +tiles_TileMap_areaHeight__P66943.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function tiles_TileMap_areaHeight__P2724_mk(s) { +function tiles_TileMap_areaHeight__P66943_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P2724, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P66943, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5146,7 +5160,7 @@ function tiles_TileMap_areaHeight__P2724_mk(s) { -function tiles_TileMap_areaWidth__P2723(s) { +function tiles_TileMap_areaWidth__P66942(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5161,7 +5175,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -5183,12 +5197,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P2723.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +tiles_TileMap_areaWidth__P66942.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function tiles_TileMap_areaWidth__P2723_mk(s) { +function tiles_TileMap_areaWidth__P66942_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P2723, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P66942, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5202,7 +5216,7 @@ function tiles_TileMap_areaWidth__P2723_mk(s) { -function tiles_TileMap_scale__P2718(s) { +function tiles_TileMap_scale__P66937(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5217,18 +5231,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_scale__P2718.info = {"start":9205,"length":55,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMap_scale__P2718.isGetter = true; +tiles_TileMap_scale__P66937.info = {"start":9205,"length":55,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMap_scale__P66937.isGetter = true; -function tiles_TileMap_scale__P2718_mk(s) { +function tiles_TileMap_scale__P66937_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2718, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P66937, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -5237,7 +5251,7 @@ function tiles_TileMap_scale__P2718_mk(s) { -function game_onUpdate__P3003(s) { +function game_onUpdate__P67222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5260,8 +5274,8 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_3 = game_eventContext__P2982_mk(s); + s.tmp_2 = control_EventContext_registerFrameHandler__P64622_mk(s); + s.tmp_3 = game_eventContext__P67201_mk(s); s.callLocIdx = 1622; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; @@ -5276,12 +5290,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdate__P3003.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} +game_onUpdate__P67222.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} -function game_onUpdate__P3003_mk(s) { +function game_onUpdate__P67222_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P3003, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P67222, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5294,7 +5308,7 @@ function game_onUpdate__P3003_mk(s) { -function control_EventContext_registerFrameHandler__P403(s) { +function control_EventContext_registerFrameHandler__P64622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5304,8 +5318,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___8094 = undefined; - s.i___8103 = undefined; + s.fn___72315 = undefined; + s.i___72324 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -5313,7 +5327,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5326,20 +5340,20 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P4526_mk(s); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P68745_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 69; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C392_VT); - s.fn___8094 = (r0); - r0 = (s.fn___8094).fields["order"] = (s.arg1); - r0 = (s.fn___8094).fields["handler"] = (s.arg2); - s.i___8103 = (0); + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C64611_VT); + s.fn___72315 = (r0); + r0 = (s.fn___72315).fields["order"] = (s.arg1); + r0 = (s.fn___72315).fields["handler"] = (s.arg2); + s.i___72324 = (0); case 3: - s.tmp_1 = r0 = s.i___8103; + s.tmp_1 = r0 = s.i___72324; r0 = s.arg0.fields["frameCallbacks"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -5350,7 +5364,7 @@ switch (step) { if (!r0) { step = 6; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___8103); + r0 = pxsim_Array__getAt(s.tmp_6, s.i___72324); r0 = r0.fields["order"]; s.tmp_5 = r0; r0 = (s.tmp_5 > s.arg1); @@ -5359,29 +5373,29 @@ switch (step) { if (!r0) { step = 4; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___8103, s.fn___8094); - r0 = s.fn___8094; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___72324, s.fn___72315); + r0 = s.fn___72315; { step = 7; continue; } case 4: case 5: - r0 = (s.i___8103 + 1); - s.i___8103 = (r0); + r0 = (s.i___72324 + 1); + s.i___72324 = (r0); { step = 3; continue; } case 6: r0 = s.arg0.fields["frameCallbacks"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___8094); - r0 = s.fn___8094; + r0 = pxsim_Array__push(s.tmp_0, s.fn___72315); + r0 = s.fn___72315; case 7: return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P403.info = {"start":4862,"length":643,"line":147,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} +control_EventContext_registerFrameHandler__P64622.info = {"start":4862,"length":643,"line":147,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function control_EventContext_registerFrameHandler__P403_mk(s) { +function control_EventContext_registerFrameHandler__P64622_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P403, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P64622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5391,8 +5405,8 @@ function control_EventContext_registerFrameHandler__P403_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - fn___8094: undefined, - i___8103: undefined, + fn___72315: undefined, + i___72324: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -5402,7 +5416,7 @@ function control_EventContext_registerFrameHandler__P403_mk(s) { -function control_EventContext_registerFrameCallbacks__P4526(s) { +function control_EventContext_registerFrameCallbacks__P68745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5412,13 +5426,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___8137 = undefined; + s.worker___72358 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5431,28 +5445,28 @@ switch (step) { case 1: case 2: r0 = s.arg0.fields["frameWorker"]; - s.worker___8137 = (r0); - r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P8143); + s.worker___72358 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P72364); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___8137); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___72358); r0 = pxsim.control.runInParallel(s.tmp_0); case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P4526.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +control_EventContext_registerFrameCallbacks__P68745.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function control_EventContext_registerFrameCallbacks__P4526_mk(s) { +function control_EventContext_registerFrameCallbacks__P68745_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P4526, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P68745, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___8137: undefined, + worker___72358: undefined, arg0: undefined, } } @@ -5460,7 +5474,7 @@ function control_EventContext_registerFrameCallbacks__P4526_mk(s) { -function control_EventContext_registerFrameCallbacks_inline__P8143(s) { +function control_EventContext_registerFrameCallbacks_inline__P72364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5470,15 +5484,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___8173 = undefined; + s.delay___72394 = undefined; r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P8149); + r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P72370); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P367_mk(s); + s.tmp_2 = pauseUntil__P64586_mk(s); s.tmp_2.arg0 = s.tmp_1; s.tmp_2.arg1 = undefined; s.callLocIdx = 63; s.pc = 5; return s.tmp_2; @@ -5501,14 +5515,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P4525_mk(s); + s.tmp_2 = control_EventContext_runCallbacks__P68744_mk(s); s.tmp_2.arg0 = s.caps[0]; s.callLocIdx = 64; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - s.delay___8173 = (r0); - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = s.delay___8173; + s.delay___72394 = (r0); + s.tmp_0 = pause__P64632_mk(s); + s.tmp_0.arg0 = s.delay___72394; s.callLocIdx = 65; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; @@ -5519,24 +5533,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P8143.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P72364.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function control_EventContext_registerFrameCallbacks_inline__P8143_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P72364_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P8143, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P72364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___8173: undefined, + delay___72394: undefined, } } -function control_EventContext_registerFrameCallbacks_inline__P8149(s) { +function control_EventContext_registerFrameCallbacks_inline__P72370(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5554,12 +5568,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P8149.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P72370.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function control_EventContext_registerFrameCallbacks_inline__P8149_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P72370_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P8149, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P72370, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5569,7 +5583,7 @@ function control_EventContext_registerFrameCallbacks_inline__P8149_mk(s) { -function control_EventContext_runCallbacks__P4525(s) { +function control_EventContext_runCallbacks__P68744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5579,44 +5593,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___8182 = undefined; - s.f___8195 = undefined; - s.unnamed76___U2 = undefined; - s.unnamed77___U3 = undefined; - s.now___8200 = undefined; - s.runtime___8203 = undefined; - s.realTimeInSample___8222 = undefined; - s.fps___8231 = undefined; - s.delay___8300 = undefined; + s.loopStart___72403 = undefined; + s.f___72416 = undefined; + s.unnamed348___U2 = undefined; + s.unnamed349___U3 = undefined; + s.now___72421 = undefined; + s.runtime___72424 = undefined; + s.realTimeInSample___72443 = undefined; + s.fps___72452 = undefined; + s.delay___72521 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); r0 = pxsim.control.millis(); - s.loopStart___8182 = (r0); + s.loopStart___72403 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["prevTimeMillis"]; s.tmp_2 = r0; - r0 = (s.loopStart___8182 - s.tmp_2); + r0 = (s.loopStart___72403 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___8182); - s.f___8195 = (undefined); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___72403); + s.f___72416 = (undefined); r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed76___U2 = (r0); - s.unnamed77___U3 = (0); + s.unnamed348___U2 = (r0); + s.unnamed349___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed77___U3; - r0 = pxsim_Array__length(s.unnamed76___U2); + s.tmp_0 = r0 = s.unnamed349___U3; + r0 = pxsim_Array__length(s.unnamed348___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed76___U2, s.unnamed77___U3); - s.f___8195 = (r0); + r0 = pxsim_Array__getAt(s.unnamed348___U2, s.unnamed349___U3); + s.f___72416 = (r0); s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___8195; + s.tmp_2.arg0 = s.f___72416; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); s.callLocIdx = 61; s.pc = 11; return s.tmp_2; @@ -5628,19 +5642,19 @@ switch (step) { } case 11: r0 = s.retval; - r0 = (s.unnamed77___U3 + 1); - s.unnamed77___U3 = (r0); + r0 = (s.unnamed349___U3 + 1); + s.unnamed349___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed76___U2 = (undefined); + s.unnamed348___U2 = (undefined); r0 = pxsim.control.millis(); - s.now___8200 = (r0); - r0 = (s.now___8200 - s.loopStart___8182); - s.runtime___8203 = (r0); + s.now___72421 = (r0); + r0 = (s.now___72421 - s.loopStart___72403); + s.runtime___72424 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timeInSample"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___8203); + r0 = (s.tmp_2 + s.runtime___72424); s.tmp_1 = r0; r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; @@ -5668,9 +5682,9 @@ switch (step) { if (!r0) { step = 9; continue; } r0 = s.arg0.fields["lastPerfDump"]; s.tmp_4 = r0; - r0 = (s.now___8200 - s.tmp_4); - s.realTimeInSample___8222 = (r0); - r0 = (s.arg0).fields["lastPerfDump"] = (s.now___8200); + r0 = (s.now___72421 - s.tmp_4); + s.realTimeInSample___72443 = (r0); + r0 = (s.arg0).fields["lastPerfDump"] = (s.now___72421); r0 = s.arg0.fields["framesInSample"]; s.tmp_0 = r0; r0 = s.arg0.fields["timeInSample"]; @@ -5678,8 +5692,8 @@ switch (step) { r0 = (s.tmp_2 / 1000); s.tmp_1 = r0; r0 = (s.tmp_0 / s.tmp_1); - s.fps___8231 = (r0); - r0 = pxsim.Math_.round(s.fps___8231); + s.fps___72452 = (r0); + r0 = pxsim.Math_.round(s.fps___72452); s.tmp_1 = r0; if ((s.tmp_1) && (s.tmp_1).vtable) { setupResume(s, 12); @@ -5691,21 +5705,21 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___397 = (r0); - r0 = (s.fps___8231 < 99); + globals.control_EventContext_lastStats___64616 = (r0); + r0 = (s.fps___72452 < 99); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { + if ((globals.control_EventContext_lastStats___64616) && (globals.control_EventContext_lastStats___64616).vtable) { setupResume(s, 13); - pxsim_String__stringConv(globals.control_EventContext_lastStats___397); + pxsim_String__stringConv(globals.control_EventContext_lastStats___64616); checkResumeConsumed(); return; - } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } + } else { s.retval = (globals.control_EventContext_lastStats___64616) + ""; } case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.fps___8231 * 10); + r0 = (s.fps___72452 * 10); s.tmp_7 = r0; r0 = pxsim.Math_.round(s.tmp_7); s.tmp_6 = r0; @@ -5732,7 +5746,7 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___397 = (r0); + globals.control_EventContext_lastStats___64616 = (r0); case 5: case 6: r0 = pxsim.control.profilingEnabled(); @@ -5741,7 +5755,7 @@ switch (step) { if (!r0) { step = 7; continue; } r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; - r0 = (s.fps___8231 * 100); + r0 = (s.fps___72452 * 100); s.tmp_12 = r0; r0 = (s.tmp_12 | 0); s.tmp_11 = r0; @@ -5788,12 +5802,12 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, "ms/"); s.tmp_3 = r0; - if ((s.realTimeInSample___8222) && (s.realTimeInSample___8222).vtable) { + if ((s.realTimeInSample___72443) && (s.realTimeInSample___72443).vtable) { setupResume(s, 19); - pxsim_String__stringConv(s.realTimeInSample___8222); + pxsim_String__stringConv(s.realTimeInSample___72443); checkResumeConsumed(); return; - } else { s.retval = (s.realTimeInSample___8222) + ""; } + } else { s.retval = (s.realTimeInSample___72443) + ""; } case 19: r0 = s.retval; s.tmp_17 = r0; @@ -5810,24 +5824,24 @@ switch (step) { r0 = (s.arg0).fields["framesInSample"] = (0); case 9: case 10: - s.tmp_0 = Math_max__P130_mk(s); + s.tmp_0 = Math_max__P64349_mk(s); s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___8203); + r0 = (20 - s.runtime___72424); s.tmp_0.arg1 = r0; s.callLocIdx = 62; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - s.delay___8300 = (r0); - r0 = s.delay___8300; + s.delay___72521 = (r0); + r0 = s.delay___72521; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P4525.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +control_EventContext_runCallbacks__P68744.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function control_EventContext_runCallbacks__P4525_mk(s) { +function control_EventContext_runCallbacks__P68744_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P4525, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P68744, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5847,15 +5861,15 @@ function control_EventContext_runCallbacks__P4525_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - loopStart___8182: undefined, - f___8195: undefined, - unnamed76___U2: undefined, - unnamed77___U3: undefined, - now___8200: undefined, - runtime___8203: undefined, - realTimeInSample___8222: undefined, - fps___8231: undefined, - delay___8300: undefined, + loopStart___72403: undefined, + f___72416: undefined, + unnamed348___U2: undefined, + unnamed349___U3: undefined, + now___72421: undefined, + runtime___72424: undefined, + realTimeInSample___72443: undefined, + fps___72452: undefined, + delay___72521: undefined, arg0: undefined, } } @@ -5863,7 +5877,7 @@ function control_EventContext_runCallbacks__P4525_mk(s) { -function pauseUntil__P367(s) { +function pauseUntil__P64586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5910,7 +5924,7 @@ switch (step) { s.arg1 = (0); case 5: case 6: - s.tmp_0 = control___queuePollEvent__P366_mk(s); + s.tmp_0 = control___queuePollEvent__P64585_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = undefined; @@ -5922,12 +5936,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pauseUntil__P367.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +pauseUntil__P64586.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} -function pauseUntil__P367_mk(s) { +function pauseUntil__P64586_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P367, depth: s.depth + 1, + parent: s, fn: pauseUntil__P64586, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5943,7 +5957,7 @@ function pauseUntil__P367_mk(s) { -function control___queuePollEvent__P366(s) { +function control___queuePollEvent__P64585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5953,16 +5967,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___8322 = undefined; + s.ev___72543 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C4499_VT); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C68718_VT); s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P4500_mk(s); + s.tmp_1 = control_PollEvent_constructor__P68719_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1023; r0 = pxsim.control.allocateNotifyEvent(); @@ -5978,8 +5992,8 @@ switch (step) { s.callLocIdx = 39; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.ev___8322 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___4502); + s.ev___72543 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___68721); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -5987,19 +6001,19 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___8322); - globals._pollEventQueue___4502 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P4503); + r0 = pxsim_Array__push(s.tmp_2, s.ev___72543); + globals._pollEventQueue___68721 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P68722); { step = 2; continue; } case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___4502, s.ev___8322); + r0 = pxsim_Array__push(globals._pollEventQueue___68721, s.ev___72543); case 2: r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P391_mk(s); - r0 = s.ev___8322.fields["eid"]; + s.tmp_0 = control_onEvent__P64610_mk(s); + r0 = s.ev___72543.fields["eid"]; s.tmp_0.arg0 = r0; - r0 = s.ev___8322.fields["vid"]; + r0 = s.ev___72543.fields["vid"]; s.tmp_0.arg1 = r0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = 16; @@ -6008,9 +6022,9 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = s.ev___8322.fields["eid"]; + r0 = s.ev___72543.fields["eid"]; s.tmp_0 = r0; - r0 = s.ev___8322.fields["vid"]; + r0 = s.ev___72543.fields["vid"]; s.tmp_1 = r0; setupResume(s, 7); pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); @@ -6023,17 +6037,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___queuePollEvent__P366.info = {"start":1262,"length":758,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} +control___queuePollEvent__P64585.info = {"start":1262,"length":758,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} -function control___queuePollEvent__P366_mk(s) { +function control___queuePollEvent__P64585_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P366, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P64585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___8322: undefined, + ev___72543: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6043,7 +6057,7 @@ function control___queuePollEvent__P366_mk(s) { -function control_pollEvents__P4503(s) { +function control_pollEvents__P68722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6053,31 +6067,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___8449 = undefined; - s.i___8452 = undefined; - s.ev___8458 = undefined; + s.now___72670 = undefined; + s.i___72673 = undefined; + s.ev___72679 = undefined; case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___4502); + r0 = pxsim_Array__length(globals._pollEventQueue___68721); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } r0 = pxsim.control.millis(); - s.now___8449 = (r0); - s.i___8452 = (0); + s.now___72670 = (r0); + s.i___72673 = (0); case 2: - s.tmp_1 = r0 = s.i___8452; - r0 = pxsim_Array__length(globals._pollEventQueue___4502); + s.tmp_1 = r0 = s.i___72673; + r0 = pxsim_Array__length(globals._pollEventQueue___68721); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = pxsim_Array__getAt(globals._pollEventQueue___4502, s.i___8452); - s.ev___8458 = (r0); + r0 = pxsim_Array__getAt(globals._pollEventQueue___68721, s.i___72673); + s.ev___72679 = (r0); s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___8458; + s.tmp_1.arg0 = s.ev___72679; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); s.callLocIdx = 36; s.pc = 13; return s.tmp_1; @@ -6095,7 +6109,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 3: - r0 = s.ev___8458.fields["timeOut"]; + r0 = s.ev___72679.fields["timeOut"]; s.tmp_3 = r0; r0 = (s.tmp_3 > 0); s.tmp_2 = r0; @@ -6104,11 +6118,11 @@ switch (step) { r0 = s.tmp_2; { step = 5; continue; } case 4: - r0 = s.ev___8458.fields["start"]; + r0 = s.ev___72679.fields["start"]; s.tmp_5 = r0; - r0 = (s.now___8449 - s.tmp_5); + r0 = (s.now___72670 - s.tmp_5); s.tmp_4 = r0; - r0 = s.ev___8458.fields["timeOut"]; + r0 = s.ev___72679.fields["timeOut"]; s.tmp_6 = r0; r0 = (s.tmp_4 > s.tmp_6); case 5: @@ -6120,50 +6134,50 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 9; continue; } - r0 = s.ev___8458.fields["eid"]; + r0 = s.ev___72679.fields["eid"]; s.tmp_9 = r0; - r0 = s.ev___8458.fields["vid"]; + r0 = s.ev___72679.fields["vid"]; s.tmp_10 = r0; r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___8458.fields["once"]; + r0 = s.ev___72679.fields["once"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P100_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___4502; - s.tmp_1.arg1 = s.i___8452; + s.tmp_1 = helpers_arraySplice__P64319_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___68721; + s.tmp_1.arg1 = s.i___72673; s.tmp_1.arg2 = 1; s.callLocIdx = 37; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - r0 = (s.i___8452 - 1); - s.i___8452 = (r0); + r0 = (s.i___72673 - 1); + s.i___72673 = (r0); case 7: case 8: case 9: case 10: - r0 = (s.i___8452 + 1); - s.i___8452 = (r0); + r0 = (s.i___72673 + 1); + s.i___72673 = (r0); { step = 2; continue; } case 11: - s.tmp_0 = pause__P413_mk(s); + s.tmp_0 = pause__P64632_mk(s); s.tmp_0.arg0 = 50; s.callLocIdx = 38; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; { step = 1; continue; } case 12: - globals._pollEventQueue___4502 = (undefined); + globals._pollEventQueue___68721 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_pollEvents__P4503.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +control_pollEvents__P68722.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function control_pollEvents__P4503_mk(s) { +function control_pollEvents__P68722_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P4503, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P68722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6176,16 +6190,16 @@ function control_pollEvents__P4503_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - now___8449: undefined, - i___8452: undefined, - ev___8458: undefined, + now___72670: undefined, + i___72673: undefined, + ev___72679: undefined, } } -function helpers_arraySplice__P100(s) { +function helpers_arraySplice__P64319(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6195,7 +6209,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___8506 = undefined; + s.i___72727 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6209,15 +6223,15 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.i___8506 = (0); + s.i___72727 = (0); case 3: - r0 = (s.i___8506 < s.arg2); + r0 = (s.i___72727 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } r0 = pxsim_Array_.removeAt(s.arg0, s.arg1); - r0 = (s.i___8506 + 1); - s.i___8506 = (r0); + r0 = (s.i___72727 + 1); + s.i___72727 = (r0); { step = 3; continue; } case 4: case 5: @@ -6225,15 +6239,15 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySplice__P100.info = {"start":3642,"length":213,"line":137,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySplice","argumentNames":["arr","start","len"]} +helpers_arraySplice__P64319.info = {"start":3642,"length":213,"line":137,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySplice","argumentNames":["arr","start","len"]} -function helpers_arraySplice__P100_mk(s) { +function helpers_arraySplice__P64319_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P100, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P64319, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___8506: undefined, + i___72727: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6243,7 +6257,7 @@ function helpers_arraySplice__P100_mk(s) { -function control_PollEvent_constructor__P4500(s) { +function control_PollEvent_constructor__P68719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6264,7 +6278,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C4499_VT)) failedCast(r0); + if (!checkSubtype(r0, control_PollEvent__C68718_VT)) failedCast(r0); r0 = (s.arg0).fields["eid"] = (s.arg1); r0 = (s.arg0).fields["vid"] = (s.arg2); r0 = (s.arg0).fields["start"] = (s.arg3); @@ -6275,12 +6289,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P4500.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} +control_PollEvent_constructor__P68719.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} -function control_PollEvent_constructor__P4500_mk(s) { +function control_PollEvent_constructor__P68719_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P4500, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P68719, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -6295,7 +6309,7 @@ function control_PollEvent_constructor__P4500_mk(s) { -function control_onEvent__P391(s) { +function control_onEvent__P64610(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6305,7 +6319,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___8365 = undefined; + s.ctx___72586 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6313,12 +6327,12 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = control_eventContext__P408_mk(s); + s.tmp_0 = control_eventContext__P64627_mk(s); s.callLocIdx = 58; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.ctx___8365 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___8365); + s.ctx___72586 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___72586); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -6327,8 +6341,8 @@ switch (step) { r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); { step = 2; continue; } case 1: - s.tmp_0 = control_EventContext_registerHandler__P405_mk(s); - s.tmp_0.arg0 = s.ctx___8365; + s.tmp_0 = control_EventContext_registerHandler__P64624_mk(s); + s.tmp_0.arg0 = s.ctx___72586; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; s.tmp_0.arg3 = s.arg2; @@ -6341,16 +6355,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_onEvent__P391.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} +control_onEvent__P64610.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} -function control_onEvent__P391_mk(s) { +function control_onEvent__P64610_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P391, depth: s.depth + 1, + parent: s, fn: control_onEvent__P64610, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___8365: undefined, + ctx___72586: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6361,7 +6375,7 @@ function control_onEvent__P391_mk(s) { -function control_eventContext__P408(s) { +function control_eventContext__P64627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6371,10 +6385,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4528); + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___68747); if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___4528; - r0 = pxsim_Array__length(globals.eventContexts___4528); + s.tmp_0 = r0 = globals.eventContexts___68747; + r0 = pxsim_Array__length(globals.eventContexts___68747); s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1 = r0; @@ -6389,12 +6403,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_eventContext__P408.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +control_eventContext__P64627.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function control_eventContext__P408_mk(s) { +function control_eventContext__P64627_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P408, depth: s.depth + 1, + parent: s, fn: control_eventContext__P64627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6406,7 +6420,7 @@ function control_eventContext__P408_mk(s) { -function control_EventContext_registerHandler__P405(s) { +function control_EventContext_registerHandler__P64624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6416,10 +6430,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___8388 = undefined; - s.unnamed82___U1 = undefined; - s.unnamed83___U2 = undefined; - s.hn___8411 = undefined; + s.h___72609 = undefined; + s.unnamed354___U1 = undefined; + s.unnamed355___U2 = undefined; + s.hn___72632 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6429,20 +6443,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.h___8388 = (undefined); + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); + s.h___72609 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed82___U1 = (r0); - s.unnamed83___U2 = (0); + s.unnamed354___U1 = (r0); + s.unnamed355___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed83___U2; - r0 = pxsim_Array__length(s.unnamed82___U1); + s.tmp_0 = r0 = s.unnamed355___U2; + r0 = pxsim_Array__length(s.unnamed354___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed82___U1, s.unnamed83___U2); - s.h___8388 = (r0); - r0 = s.h___8388.fields["src"]; + r0 = pxsim_Array__getAt(s.unnamed354___U1, s.unnamed355___U2); + s.h___72609 = (r0); + r0 = s.h___72609.fields["src"]; s.tmp_3 = r0; r0 = (s.tmp_3 == s.arg1); s.tmp_2 = r0; @@ -6451,7 +6465,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = s.h___8388.fields["value"]; + r0 = s.h___72609.fields["value"]; s.tmp_4 = r0; r0 = (s.tmp_4 == s.arg2); case 3: @@ -6459,19 +6473,19 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = (s.h___8388).fields["flags"] = (s.arg4); - r0 = (s.h___8388).fields["handler"] = (s.arg3); + r0 = (s.h___72609).fields["flags"] = (s.arg4); + r0 = (s.h___72609).fields["handler"] = (s.arg3); { step = 7; continue; } case 4: case 5: - r0 = (s.unnamed83___U2 + 1); - s.unnamed83___U2 = (r0); + r0 = (s.unnamed355___U2 + 1); + s.unnamed355___U2 = (r0); { step = 1; continue; } case 6: - s.unnamed82___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C4520_VT); + s.unnamed354___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C68739_VT); s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P4523_mk(s); + s.tmp_1 = control_EventHandler_constructor__P68742_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -6480,12 +6494,12 @@ switch (step) { s.callLocIdx = 70; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - s.hn___8411 = (s.tmp_0); + s.hn___72632 = (s.tmp_0); r0 = s.arg0.fields["handlers"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___8411); - s.tmp_0 = control_EventHandler_register__P4521_mk(s); - s.tmp_0.arg0 = s.hn___8411; + r0 = pxsim_Array__push(s.tmp_0, s.hn___72632); + s.tmp_0 = control_EventHandler_register__P68740_mk(s); + s.tmp_0.arg0 = s.hn___72632; s.callLocIdx = 71; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; @@ -6494,12 +6508,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P405.info = {"start":5760,"length":525,"line":173,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} +control_EventContext_registerHandler__P64624.info = {"start":5760,"length":525,"line":173,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function control_EventContext_registerHandler__P405_mk(s) { +function control_EventContext_registerHandler__P64624_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P405, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P64624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6507,10 +6521,10 @@ function control_EventContext_registerHandler__P405_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - h___8388: undefined, - unnamed82___U1: undefined, - unnamed83___U2: undefined, - hn___8411: undefined, + h___72609: undefined, + unnamed354___U1: undefined, + unnamed355___U2: undefined, + hn___72632: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6522,7 +6536,7 @@ function control_EventContext_registerHandler__P405_mk(s) { -function control_EventHandler_constructor__P4523(s) { +function control_EventHandler_constructor__P68742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6541,7 +6555,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4520_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventHandler__C68739_VT)) failedCast(r0); r0 = (s.arg0).fields["src"] = (s.arg1); r0 = (s.arg0).fields["value"] = (s.arg2); r0 = (s.arg0).fields["handler"] = (s.arg3); @@ -6550,12 +6564,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P4523.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} +control_EventHandler_constructor__P68742.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} -function control_EventHandler_constructor__P4523_mk(s) { +function control_EventHandler_constructor__P68742_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P4523, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P68742, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -6568,7 +6582,7 @@ function control_EventHandler_constructor__P4523_mk(s) { -function control_EventHandler_register__P4521(s) { +function control_EventHandler_register__P68740(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6583,8 +6597,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4520_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P8432); + if (!checkSubtype(r0, control_EventHandler__C68739_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P72653); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["src"]; @@ -6598,12 +6612,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventHandler_register__P4521.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control_EventHandler_register__P68740.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function control_EventHandler_register__P4521_mk(s) { +function control_EventHandler_register__P68740_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P4521, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P68740, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6616,7 +6630,7 @@ function control_EventHandler_register__P4521_mk(s) { -function control_EventHandler_register_inline__P8432(s) { +function control_EventHandler_register_inline__P72653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6649,12 +6663,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventHandler_register_inline__P8432.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventHandler_register_inline__P72653.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function control_EventHandler_register_inline__P8432_mk(s) { +function control_EventHandler_register_inline__P72653_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register_inline__P8432, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P72653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6664,7 +6678,7 @@ function control_EventHandler_register_inline__P8432_mk(s) { -function music_stringPlayable__P1909(s) { +function music_stringPlayable__P66128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6674,17 +6688,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.notes___8545 = undefined; - s.formattedMelody___8555 = undefined; - s.newOctave___8556 = undefined; - s.i___8557 = undefined; + s.notes___72766 = undefined; + s.formattedMelody___72776 = undefined; + s.newOctave___72777 = undefined; + s.i___72778 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arrayFilter__P110_mk(s); - s.tmp_1 = helpers_stringSplit__P122_mk(s); + s.tmp_0 = helpers_arrayFilter__P64329_mk(s); + s.tmp_1 = helpers_stringSplit__P64341_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = " "; s.tmp_1.arg2 = undefined; @@ -6692,46 +6706,46 @@ switch (step) { case 12: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = notes_inline__P8550; + s.tmp_0.arg1 = notes_inline__P72771; s.callLocIdx = 181; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.notes___8545 = (r0); + s.notes___72766 = (r0); r0 = pxsim_String_.mkEmpty(); - s.formattedMelody___8555 = (r0); - s.newOctave___8556 = (false); - s.i___8557 = (0); + s.formattedMelody___72776 = (r0); + s.newOctave___72777 = (false); + s.i___72778 = (0); case 1: - s.tmp_1 = r0 = s.i___8557; - r0 = pxsim_Array__length(s.notes___8545); + s.tmp_1 = r0 = s.i___72778; + r0 = pxsim_Array__length(s.notes___72766); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.notes___8545, s.i___8557); + r0 = pxsim_Array__getAt(s.notes___72766, s.i___72778); s.tmp_4 = r0; r0 = (s.tmp_4 === "-"); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } - r0 = pxsim_Array_.setAt(s.notes___8545, s.i___8557, "R"); + r0 = pxsim_Array_.setAt(s.notes___72766, s.i___72778, "R"); { step = 7; continue; } case 2: - r0 = pxsim_Array__getAt(s.notes___8545, s.i___8557); + r0 = pxsim_Array__getAt(s.notes___72766, s.i___72778); s.tmp_1 = r0; r0 = (s.tmp_1 === "C5"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.newOctave___8556 = (true); + s.newOctave___72777 = (true); { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.newOctave___8556); + r0 = pxsim_numops_toBoolDecr(s.newOctave___72777); if (!r0) { step = 4; continue; } - s.tmp_0 = r0 = s.notes___8545; - s.tmp_1 = r0 = s.i___8557; - r0 = pxsim_Array__getAt(s.tmp_0, s.i___8557); + s.tmp_0 = r0 = s.notes___72766; + s.tmp_1 = r0 = s.i___72778; + r0 = pxsim_Array__getAt(s.tmp_0, s.i___72778); s.tmp_4 = r0; if ((s.tmp_4) && (s.tmp_4).vtable) { setupResume(s, 13); @@ -6745,25 +6759,25 @@ switch (step) { r0 = pxsim_String__concat(s.tmp_3, "4"); s.tmp_2 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); - s.newOctave___8556 = (false); + s.newOctave___72777 = (false); case 4: case 5: case 6: case 7: - r0 = (s.i___8557 == 0); + r0 = (s.i___72778 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - if ((s.formattedMelody___8555) && (s.formattedMelody___8555).vtable) { + if ((s.formattedMelody___72776) && (s.formattedMelody___72776).vtable) { setupResume(s, 14); - pxsim_String__stringConv(s.formattedMelody___8555); + pxsim_String__stringConv(s.formattedMelody___72776); checkResumeConsumed(); return; - } else { s.retval = (s.formattedMelody___8555) + ""; } + } else { s.retval = (s.formattedMelody___72776) + ""; } case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.notes___8545, s.i___8557); + r0 = pxsim_Array__getAt(s.notes___72766, s.i___72778); s.tmp_9 = r0; if ((s.tmp_9) && (s.tmp_9).vtable) { setupResume(s, 15); @@ -6817,19 +6831,19 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.formattedMelody___8555 = (r0); + s.formattedMelody___72776 = (r0); { step = 9; continue; } case 8: - if ((s.formattedMelody___8555) && (s.formattedMelody___8555).vtable) { + if ((s.formattedMelody___72776) && (s.formattedMelody___72776).vtable) { setupResume(s, 20); - pxsim_String__stringConv(s.formattedMelody___8555); + pxsim_String__stringConv(s.formattedMelody___72776); checkResumeConsumed(); return; - } else { s.retval = (s.formattedMelody___8555) + ""; } + } else { s.retval = (s.formattedMelody___72776) + ""; } case 20: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.notes___8545, s.i___8557); + r0 = pxsim_Array__getAt(s.notes___72766, s.i___72778); s.tmp_4 = r0; if ((s.tmp_4) && (s.tmp_4).vtable) { setupResume(s, 21); @@ -6852,23 +6866,23 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.formattedMelody___8555 = (r0); + s.formattedMelody___72776 = (r0); case 9: - r0 = (s.i___8557 + 1); - s.i___8557 = (r0); + r0 = (s.i___72778 + 1); + s.i___72778 = (r0); { step = 1; continue; } case 10: - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C1901_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C66120_VT); s.tmp_0 = r0; - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C65845_VT); s.tmp_1 = r0; - s.tmp_2 = music_Melody_constructor__P1629_mk(s); + s.tmp_2 = music_Melody_constructor__P65848_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = s.formattedMelody___8555; + s.tmp_2.arg1 = s.formattedMelody___72776; s.callLocIdx = 182; s.pc = 23; return s.tmp_2; case 23: r0 = s.retval; - s.tmp_3 = music_MelodyPlayable_constructor__P1902_mk(s); + s.tmp_3 = music_MelodyPlayable_constructor__P66121_mk(s); s.tmp_3.arg0 = s.tmp_0; s.tmp_3.arg1 = s.tmp_1; s.callLocIdx = 183; s.pc = 24; return s.tmp_3; @@ -6878,12 +6892,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_stringPlayable__P1909.info = {"start":3666,"length":974,"line":137,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"stringPlayable","argumentNames":["melody","tempo"]} +music_stringPlayable__P66128.info = {"start":3666,"length":974,"line":137,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"stringPlayable","argumentNames":["melody","tempo"]} -function music_stringPlayable__P1909_mk(s) { +function music_stringPlayable__P66128_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_stringPlayable__P1909, depth: s.depth + 1, + parent: s, fn: music_stringPlayable__P66128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6896,10 +6910,10 @@ function music_stringPlayable__P1909_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - notes___8545: undefined, - formattedMelody___8555: undefined, - newOctave___8556: undefined, - i___8557: undefined, + notes___72766: undefined, + formattedMelody___72776: undefined, + newOctave___72777: undefined, + i___72778: undefined, arg0: undefined, arg1: undefined, } } @@ -6908,7 +6922,7 @@ function music_stringPlayable__P1909_mk(s) { -function notes_inline__P8550(s) { +function notes_inline__P72771(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6932,12 +6946,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -notes_inline__P8550.info = {"start":3795,"length":8,"line":138,"column":55,"endLine":138,"endColumn":63,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["n"]} +notes_inline__P72771.info = {"start":3795,"length":8,"line":138,"column":55,"endLine":138,"endColumn":63,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["n"]} -function notes_inline__P8550_mk(s) { +function notes_inline__P72771_mk(s) { checkStack(s.depth); return { - parent: s, fn: notes_inline__P8550, depth: s.depth + 1, + parent: s, fn: notes_inline__P72771, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6949,7 +6963,7 @@ function notes_inline__P8550_mk(s) { -function music_MelodyPlayable_constructor__P1902(s) { +function music_MelodyPlayable_constructor__P66121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6965,19 +6979,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayable__C1901_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayable__C66120_VT)) failedCast(r0); r0 = (s.arg0).fields["melody"] = (s.arg1); r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayable_constructor__P1902.info = {"start":1531,"length":67,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this","melody"]} +music_MelodyPlayable_constructor__P66121.info = {"start":1531,"length":67,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this","melody"]} -function music_MelodyPlayable_constructor__P1902_mk(s) { +function music_MelodyPlayable_constructor__P66121_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayable_constructor__P1902, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayable_constructor__P66121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -6987,7 +7001,7 @@ function music_MelodyPlayable_constructor__P1902_mk(s) { -function music_Playable_constructor__P1898(s) { +function music_Playable_constructor__P66117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7002,17 +7016,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Playable__C1896_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Playable__C66115_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Playable_constructor__P1898.info = {"start":1086,"length":26,"line":47,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} +music_Playable_constructor__P66117.info = {"start":1086,"length":26,"line":47,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} -function music_Playable_constructor__P1898_mk(s) { +function music_Playable_constructor__P66117_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Playable_constructor__P1898, depth: s.depth + 1, + parent: s, fn: music_Playable_constructor__P66117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7021,7 +7035,7 @@ function music_Playable_constructor__P1898_mk(s) { -function music_Melody_constructor__P1629(s) { +function music_Melody_constructor__P65848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7037,18 +7051,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P1629.info = {"start":6430,"length":67,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +music_Melody_constructor__P65848.info = {"start":6430,"length":67,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} -function music_Melody_constructor__P1629_mk(s) { +function music_Melody_constructor__P65848_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P1629, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P65848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -7058,7 +7072,7 @@ function music_Melody_constructor__P1629_mk(s) { -function helpers_stringSplit__P122(s) { +function helpers_stringSplit__P64341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7068,15 +7082,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___8638 = undefined; - s.lim___8640 = undefined; - s.s___8656 = undefined; - s.p___8659 = undefined; - s.R___8660 = undefined; - s.z___8674 = undefined; - s.T___8687 = undefined; - s.q___8688 = undefined; - s.e___8694 = undefined; + s.A___72859 = undefined; + s.lim___72861 = undefined; + s.s___72877 = undefined; + s.p___72880 = undefined; + s.R___72881 = undefined; + s.z___72895 = undefined; + s.T___72908 = undefined; + s.q___72909 = undefined; + s.e___72915 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7084,36 +7098,36 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.A___8638 = (r0); - s.lim___8640 = (0); + s.A___72859 = (r0); + s.lim___72861 = (0); r0 = (s.arg2 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (536870912 - 1); - s.lim___8640 = (r0); + s.lim___72861 = (r0); { step = 4; continue; } case 1: r0 = (s.arg2 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.lim___8640 = (0); + s.lim___72861 = (0); { step = 3; continue; } case 2: r0 = (s.arg2 | 0); - s.lim___8640 = (r0); + s.lim___72861 = (r0); case 3: case 4: r0 = pxsim_String_.length(s.arg0); - s.s___8656 = (r0); - s.p___8659 = (0); - s.R___8660 = (s.arg1); - r0 = (s.lim___8640 == 0); + s.s___72877 = (r0); + s.p___72880 = (0); + s.R___72881 = (s.arg1); + r0 = (s.lim___72861 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.A___8638; + r0 = s.A___72859; { step = 21; continue; } case 5: case 6: @@ -7121,123 +7135,123 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___8638, 0, s.arg0); - r0 = s.A___8638; + r0 = pxsim_Array_.setAt(s.A___72859, 0, s.arg0); + r0 = s.A___72859; { step = 21; continue; } case 7: case 8: - r0 = (s.s___8656 == 0); + r0 = (s.s___72877 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P4451_mk(s); + s.tmp_1 = helpers_splitMatch__P68670_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___8660; + s.tmp_1.arg2 = s.R___72881; s.callLocIdx = 19; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - s.z___8674 = (r0); - r0 = (s.z___8674 > -1); + s.z___72895 = (r0); + r0 = (s.z___72895 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = s.A___8638; + r0 = s.A___72859; { step = 21; continue; } case 9: case 10: - r0 = pxsim_Array_.setAt(s.A___8638, 0, s.arg0); - r0 = s.A___8638; + r0 = pxsim_Array_.setAt(s.A___72859, 0, s.arg0); + r0 = s.A___72859; { step = 21; continue; } case 11: case 12: - s.q___8688 = (s.p___8659); + s.q___72909 = (s.p___72880); case 13: - r0 = (s.q___8688 != s.s___8656); + r0 = (s.q___72909 != s.s___72877); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P4451_mk(s); + s.tmp_1 = helpers_splitMatch__P68670_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___8688; - s.tmp_1.arg2 = s.R___8660; + s.tmp_1.arg1 = s.q___72909; + s.tmp_1.arg2 = s.R___72881; s.callLocIdx = 20; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - s.e___8694 = (r0); - r0 = (s.e___8694 < 0); + s.e___72915 = (r0); + r0 = (s.e___72915 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.q___8688 + 1); - s.q___8688 = (r0); + r0 = (s.q___72909 + 1); + s.q___72909 = (r0); { step = 19; continue; } case 14: - r0 = (s.e___8694 == s.p___8659); + r0 = (s.e___72915 == s.p___72880); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = (s.q___8688 + 1); - s.q___8688 = (r0); + r0 = (s.q___72909 + 1); + s.q___72909 = (r0); { step = 18; continue; } case 15: - s.tmp_0 = helpers_stringSlice__P119_mk(s); + s.tmp_0 = helpers_stringSlice__P64338_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___8659; - s.tmp_0.arg2 = s.q___8688; + s.tmp_0.arg1 = s.p___72880; + s.tmp_0.arg2 = s.q___72909; s.callLocIdx = 21; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.T___8687 = (r0); - r0 = pxsim_Array__push(s.A___8638, s.T___8687); - r0 = pxsim_Array__length(s.A___8638); + s.T___72908 = (r0); + r0 = pxsim_Array__push(s.A___72859, s.T___72908); + r0 = pxsim_Array__length(s.A___72859); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___8640); + r0 = (s.tmp_1 == s.lim___72861); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - r0 = s.A___8638; + r0 = s.A___72859; { step = 21; continue; } case 16: case 17: - s.p___8659 = (s.e___8694); - s.q___8688 = (s.p___8659); + s.p___72880 = (s.e___72915); + s.q___72909 = (s.p___72880); case 18: case 19: { step = 13; continue; } case 20: - s.tmp_0 = helpers_stringSlice__P119_mk(s); + s.tmp_0 = helpers_stringSlice__P64338_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___8659; - s.tmp_0.arg2 = s.q___8688; + s.tmp_0.arg1 = s.p___72880; + s.tmp_0.arg2 = s.q___72909; s.callLocIdx = 22; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.T___8687 = (r0); - r0 = pxsim_Array__push(s.A___8638, s.T___8687); - r0 = s.A___8638; + s.T___72908 = (r0); + r0 = pxsim_Array__push(s.A___72859, s.T___72908); + r0 = s.A___72859; case 21: return leave(s, r0) default: oops() } } } -helpers_stringSplit__P122.info = {"start":12919,"length":1319,"line":434,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +helpers_stringSplit__P64341.info = {"start":12919,"length":1319,"line":434,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function helpers_stringSplit__P122_mk(s) { +function helpers_stringSplit__P64341_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P122, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P64341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___8638: undefined, - lim___8640: undefined, - s___8656: undefined, - p___8659: undefined, - R___8660: undefined, - z___8674: undefined, - T___8687: undefined, - q___8688: undefined, - e___8694: undefined, + A___72859: undefined, + lim___72861: undefined, + s___72877: undefined, + p___72880: undefined, + R___72881: undefined, + z___72895: undefined, + T___72908: undefined, + q___72909: undefined, + e___72915: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7247,7 +7261,7 @@ function helpers_stringSplit__P122_mk(s) { -function helpers_splitMatch__P4451(s) { +function helpers_splitMatch__P68670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7257,9 +7271,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___8774 = undefined; - s.s___8777 = undefined; - s.i___8787 = undefined; + s.r___72995 = undefined; + s.s___72998 = undefined; + s.i___73008 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7267,12 +7281,12 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg2); - s.r___8774 = (r0); + s.r___72995 = (r0); r0 = pxsim_String_.length(s.arg0); - s.s___8777 = (r0); - r0 = (s.arg1 + s.r___8774); + s.s___72998 = (r0); + r0 = (s.arg1 + s.r___72995); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___8777); + r0 = (s.tmp_1 > s.s___72998); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -7280,18 +7294,18 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.i___8787 = (0); + s.i___73008 = (0); case 3: - r0 = (s.i___8787 < s.r___8774); + r0 = (s.i___73008 < s.r___72995); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } s.tmp_3 = r0 = s.arg0; - r0 = (s.arg1 + s.i___8787); + r0 = (s.arg1 + s.i___73008); s.tmp_4 = r0; r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); s.tmp_2 = r0; - r0 = pxsim_String_.charAt(s.arg2, s.i___8787); + r0 = pxsim_String_.charAt(s.arg2, s.i___73008); s.tmp_5 = r0; r0 = (s.tmp_2 != s.tmp_5); s.tmp_1 = r0; @@ -7301,21 +7315,21 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.i___8787 + 1); - s.i___8787 = (r0); + r0 = (s.i___73008 + 1); + s.i___73008 = (r0); { step = 3; continue; } case 6: - r0 = (s.arg1 + s.r___8774); + r0 = (s.arg1 + s.r___72995); case 7: return leave(s, r0) default: oops() } } } -helpers_splitMatch__P4451.info = {"start":14244,"length":289,"line":480,"column":4,"endLine":489,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +helpers_splitMatch__P68670.info = {"start":14244,"length":289,"line":480,"column":4,"endLine":489,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function helpers_splitMatch__P4451_mk(s) { +function helpers_splitMatch__P68670_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P4451, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P68670, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7323,9 +7337,9 @@ function helpers_splitMatch__P4451_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - r___8774: undefined, - s___8777: undefined, - i___8787: undefined, + r___72995: undefined, + s___72998: undefined, + i___73008: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7335,7 +7349,7 @@ function helpers_splitMatch__P4451_mk(s) { -function helpers_stringSlice__P119(s) { +function helpers_stringSlice__P64338(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7345,7 +7359,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___8739 = undefined; + s.len___72960 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7353,13 +7367,13 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg0); - s.len___8739 = (r0); + s.len___72960 = (r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = Math_max__P130_mk(s); - r0 = (s.len___8739 + s.arg1); + s.tmp_1 = Math_max__P64349_mk(s); + r0 = (s.len___72960 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; s.callLocIdx = 18; s.pc = 9; return s.tmp_1; @@ -7372,7 +7386,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.arg2 = (s.len___8739); + s.arg2 = (s.len___72960); { step = 6; continue; } case 3: r0 = (s.arg2 === null); @@ -7387,7 +7401,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (s.len___8739 + s.arg2); + r0 = (s.len___72960 + s.arg2); s.arg2 = (r0); case 7: case 8: @@ -7399,17 +7413,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_stringSlice__P119.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} +helpers_stringSlice__P64338.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} -function helpers_stringSlice__P119_mk(s) { +function helpers_stringSlice__P64338_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P119, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P64338, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___8739: undefined, + len___72960: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7419,7 +7433,7 @@ function helpers_stringSlice__P119_mk(s) { -function helpers_arrayFilter__P110(s) { +function helpers_arrayFilter__P64329(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7429,31 +7443,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___8810 = undefined; - s.len___8812 = undefined; - s.i___8815 = undefined; - s.v___8820 = undefined; + s.res___73031 = undefined; + s.len___73033 = undefined; + s.i___73036 = undefined; + s.v___73041 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___8810 = (r0); + s.res___73031 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___8812 = (r0); - s.i___8815 = (0); + s.len___73033 = (r0); + s.i___73036 = (0); case 1: - r0 = (s.i___8815 < s.len___8812); + r0 = (s.i___73036 < s.len___73033); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___8815); - s.v___8820 = (r0); + r0 = pxsim_Array__getAt(s.arg0, s.i___73036); + s.v___73041 = (r0); s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___8820; - s.tmp_1.arg1 = s.i___8815; + s.tmp_1.arg0 = s.v___73041; + s.tmp_1.arg1 = s.i___73036; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 7; s.pc = 5; return s.tmp_1; case 5: @@ -7461,30 +7475,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___8810, s.v___8820); + r0 = pxsim_Array__push(s.res___73031, s.v___73041); case 2: case 3: - r0 = (s.i___8815 + 1); - s.i___8815 = (r0); + r0 = (s.i___73036 + 1); + s.i___73036 = (r0); { step = 1; continue; } case 4: - r0 = s.res___8810; + r0 = s.res___73031; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P110.info = {"start":7695,"length":317,"line":261,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFilter","argumentNames":["arr","callbackfn"]} +helpers_arrayFilter__P64329.info = {"start":7695,"length":317,"line":261,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFilter","argumentNames":["arr","callbackfn"]} -function helpers_arrayFilter__P110_mk(s) { +function helpers_arrayFilter__P64329_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P110, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P64329, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___8810: undefined, - len___8812: undefined, - i___8815: undefined, - v___8820: undefined, + res___73031: undefined, + len___73033: undefined, + i___73036: undefined, + v___73041: undefined, arg0: undefined, arg1: undefined, } } @@ -7493,7 +7507,7 @@ function helpers_arrayFilter__P110_mk(s) { -function init__P4429(s) { +function init__P68648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7503,42 +7517,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = hud_forest_hud_healthy__P4394_mk(s); + s.tmp_0 = hud_forest_hud_healthy__P68613_mk(s); s.tmp_0.arg0 = 7; s.callLocIdx = 113; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = hud_forest_hud_burned__P4395_mk(s); + s.tmp_0 = hud_forest_hud_burned__P68614_mk(s); s.tmp_0.arg0 = 2; s.callLocIdx = 114; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = hud_danger_hud_label__P4398_mk(s); + s.tmp_0 = hud_danger_hud_label__P68617_mk(s); s.tmp_0.arg0 = "Risc d'incendi"; s.callLocIdx = 115; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = hud_fire_hud_label__P4397_mk(s); + s.tmp_0 = hud_fire_hud_label__P68616_mk(s); s.tmp_0.arg0 = "Focs:"; s.callLocIdx = 116; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = hud_forest_hud_label__P4396_mk(s); + s.tmp_0 = hud_forest_hud_label__P68615_mk(s); s.tmp_0.arg0 = "Salut del bosc"; s.callLocIdx = 117; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = hud_fire_hud__P4391_mk(s); + s.tmp_0 = hud_fire_hud__P68610_mk(s); s.tmp_0.arg0 = true; s.callLocIdx = 118; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = hud_danger_hud__P4393_mk(s); + s.tmp_0 = hud_danger_hud__P68612_mk(s); s.tmp_0.arg0 = true; s.callLocIdx = 119; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = hud_forest_hud__P4392_mk(s); + s.tmp_0 = hud_forest_hud__P68611_mk(s); s.tmp_0.arg0 = true; s.callLocIdx = 120; s.pc = 8; return s.tmp_0; case 8: @@ -7547,12 +7561,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -init__P4429.info = {"start":685,"length":270,"line":24,"column":0,"endLine":33,"endColumn":1,"fileName":"main.ts","functionName":"init","argumentNames":[]} +init__P68648.info = {"start":759,"length":269,"line":18,"column":0,"endLine":27,"endColumn":1,"fileName":"main.ts","functionName":"init","argumentNames":[]} -function init__P4429_mk(s) { +function init__P68648_mk(s) { checkStack(s.depth); return { - parent: s, fn: init__P4429, depth: s.depth + 1, + parent: s, fn: init__P68648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -7561,7 +7575,7 @@ function init__P4429_mk(s) { -function hud_forest_hud__P4392(s) { +function hud_forest_hud__P68611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7575,11 +7589,11 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.drawForestHealth___7104 = (s.arg0); + globals.drawForestHealth___71323 = (s.arg0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 1; continue; } - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; s.tmp_0.arg1 = 128; s.tmp_0.arg2 = false; s.callLocIdx = 2255; s.pc = 3; return s.tmp_0; @@ -7587,8 +7601,8 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; s.tmp_0.arg1 = 128; s.tmp_0.arg2 = true; s.callLocIdx = 2256; s.pc = 4; return s.tmp_0; @@ -7599,12 +7613,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -hud_forest_hud__P4392.info = {"start":2503,"length":266,"line":80,"column":4,"endLine":89,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud","argumentNames":["answer"]} +hud_forest_hud__P68611.info = {"start":2503,"length":266,"line":80,"column":4,"endLine":89,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud","argumentNames":["answer"]} -function hud_forest_hud__P4392_mk(s) { +function hud_forest_hud__P68611_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_forest_hud__P4392, depth: s.depth + 1, + parent: s, fn: hud_forest_hud__P68611, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7614,7 +7628,7 @@ function hud_forest_hud__P4392_mk(s) { -function Sprite_setFlag__P2399(s) { +function Sprite_setFlag__P66618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7631,7 +7645,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -7657,12 +7671,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setFlag__P2399.info = {"start":20205,"length":130,"line":676,"column":4,"endLine":679,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +Sprite_setFlag__P66618.info = {"start":20205,"length":130,"line":676,"column":4,"endLine":679,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function Sprite_setFlag__P2399_mk(s) { +function Sprite_setFlag__P66618_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P2399, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P66618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7678,7 +7692,7 @@ function Sprite_setFlag__P2399_mk(s) { -function hud_danger_hud__P4393(s) { +function hud_danger_hud__P68612(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7692,17 +7706,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.drawFireDanger___7108 = (s.arg0); + globals.drawFireDanger___71327 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_danger_hud__P4393.info = {"start":2941,"length":84,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"danger_hud","argumentNames":["answer"]} +hud_danger_hud__P68612.info = {"start":2941,"length":84,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"danger_hud","argumentNames":["answer"]} -function hud_danger_hud__P4393_mk(s) { +function hud_danger_hud__P68612_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_danger_hud__P4393, depth: s.depth + 1, + parent: s, fn: hud_danger_hud__P68612, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7711,7 +7725,7 @@ function hud_danger_hud__P4393_mk(s) { -function hud_fire_hud__P4391(s) { +function hud_fire_hud__P68610(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7725,17 +7739,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.drawFireNumber___7106 = (s.arg0); + globals.drawFireNumber___71325 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_fire_hud__P4391.info = {"start":2244,"length":82,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"fire_hud","argumentNames":["answer"]} +hud_fire_hud__P68610.info = {"start":2244,"length":82,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"fire_hud","argumentNames":["answer"]} -function hud_fire_hud__P4391_mk(s) { +function hud_fire_hud__P68610_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_fire_hud__P4391, depth: s.depth + 1, + parent: s, fn: hud_fire_hud__P68610, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7744,7 +7758,7 @@ function hud_fire_hud__P4391_mk(s) { -function hud_forest_hud_label__P4396(s) { +function hud_forest_hud_label__P68615(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7758,17 +7772,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.forestHealthText___7109 = (s.arg0); + globals.forestHealthText___71328 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_forest_hud_label__P4396.info = {"start":3823,"length":87,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_label","argumentNames":["name"]} +hud_forest_hud_label__P68615.info = {"start":3823,"length":87,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_label","argumentNames":["name"]} -function hud_forest_hud_label__P4396_mk(s) { +function hud_forest_hud_label__P68615_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_forest_hud_label__P4396, depth: s.depth + 1, + parent: s, fn: hud_forest_hud_label__P68615, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7777,7 +7791,7 @@ function hud_forest_hud_label__P4396_mk(s) { -function hud_fire_hud_label__P4397(s) { +function hud_fire_hud_label__P68616(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7791,17 +7805,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.fireNumberText___7110 = (s.arg0); + globals.fireNumberText___71329 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_fire_hud_label__P4397.info = {"start":4050,"length":83,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"fire_hud_label","argumentNames":["name"]} +hud_fire_hud_label__P68616.info = {"start":4050,"length":83,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"fire_hud_label","argumentNames":["name"]} -function hud_fire_hud_label__P4397_mk(s) { +function hud_fire_hud_label__P68616_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_fire_hud_label__P4397, depth: s.depth + 1, + parent: s, fn: hud_fire_hud_label__P68616, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7810,7 +7824,7 @@ function hud_fire_hud_label__P4397_mk(s) { -function hud_danger_hud_label__P4398(s) { +function hud_danger_hud_label__P68617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7824,17 +7838,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.fireDangerText___7113 = (s.arg0); + globals.fireDangerText___71332 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_danger_hud_label__P4398.info = {"start":4285,"length":85,"line":150,"column":4,"endLine":152,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"danger_hud_label","argumentNames":["name"]} +hud_danger_hud_label__P68617.info = {"start":4285,"length":85,"line":150,"column":4,"endLine":152,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"danger_hud_label","argumentNames":["name"]} -function hud_danger_hud_label__P4398_mk(s) { +function hud_danger_hud_label__P68617_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_danger_hud_label__P4398, depth: s.depth + 1, + parent: s, fn: hud_danger_hud_label__P68617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -7843,7 +7857,7 @@ function hud_danger_hud_label__P4398_mk(s) { -function hud_forest_hud_burned__P4395(s) { +function hud_forest_hud_burned__P68614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7857,11 +7871,11 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.burnedColor___7100 = (s.arg0); - s.tmp_0 = StatusBarSprite_setColor__P4336_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = globals.healthyColor___7102; - s.tmp_0.arg2 = globals.burnedColor___7100; + globals.burnedColor___71319 = (s.arg0); + s.tmp_0 = StatusBarSprite_setColor__P68555_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = globals.healthyColor___71321; + s.tmp_0.arg2 = globals.burnedColor___71319; s.tmp_0.arg3 = undefined; s.callLocIdx = 2258; s.pc = 1; return s.tmp_0; case 1: @@ -7870,12 +7884,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -hud_forest_hud_burned__P4395.info = {"start":3536,"length":144,"line":119,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_burned","argumentNames":["color"]} +hud_forest_hud_burned__P68614.info = {"start":3536,"length":144,"line":119,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_burned","argumentNames":["color"]} -function hud_forest_hud_burned__P4395_mk(s) { +function hud_forest_hud_burned__P68614_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_forest_hud_burned__P4395, depth: s.depth + 1, + parent: s, fn: hud_forest_hud_burned__P68614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7885,7 +7899,7 @@ function hud_forest_hud_burned__P4395_mk(s) { -function StatusBarSprite_setColor__P4336(s) { +function StatusBarSprite_setColor__P68555(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7903,13 +7917,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(3, StatusBarSprite_setColor_inline__P15275); + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(3, StatusBarSprite_setColor_inline__P79496); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg3); - s.tmp_1 = StatusBarSprite_applyChange__P7057_mk(s); + s.tmp_1 = StatusBarSprite_applyChange__P71276_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 2110; s.pc = 1; return s.tmp_1; @@ -7919,12 +7933,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -StatusBarSprite_setColor__P4336.info = {"start":5624,"length":290,"line":159,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"setColor","argumentNames":["this","fillColor","bkgdColor","drainColor"]} +StatusBarSprite_setColor__P68555.info = {"start":5624,"length":290,"line":159,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"setColor","argumentNames":["this","fillColor","bkgdColor","drainColor"]} -function StatusBarSprite_setColor__P4336_mk(s) { +function StatusBarSprite_setColor__P68555_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_setColor__P4336, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_setColor__P68555, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7938,7 +7952,7 @@ function StatusBarSprite_setColor__P4336_mk(s) { -function StatusBarSprite_setColor_inline__P15275(s) { +function StatusBarSprite_setColor_inline__P79496(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7965,12 +7979,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -StatusBarSprite_setColor_inline__P15275.info = {"start":5719,"length":187,"line":160,"column":25,"endLine":167,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +StatusBarSprite_setColor_inline__P79496.info = {"start":5719,"length":187,"line":160,"column":25,"endLine":167,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function StatusBarSprite_setColor_inline__P15275_mk(s) { +function StatusBarSprite_setColor_inline__P79496_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_setColor_inline__P15275, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_setColor_inline__P79496, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7980,7 +7994,7 @@ function StatusBarSprite_setColor_inline__P15275_mk(s) { -function StatusBarSprite_applyChange__P7057(s) { +function StatusBarSprite_applyChange__P71276(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7990,40 +8004,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sb___15294 = undefined; - s.output___15299 = undefined; + s.sb___79515 = undefined; + s.output___79520 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); r0 = s.arg0.fields["_statusBar"]; - s.sb___15294 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sb___15294); + s.sb___79515 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sb___79515); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_2_mk(s); s.tmp_0.argL = s.arg1; - s.tmp_0.arg0 = s.sb___15294; + s.tmp_0.arg0 = s.sb___79515; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 2111; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.output___15299 = (r0); - s.tmp_0 = statusbars_StatusBar_updateDisplay__P4373_mk(s); - s.tmp_0.arg0 = s.sb___15294; + s.output___79520 = (r0); + s.tmp_0 = statusbars_StatusBar_updateDisplay__P68592_mk(s); + s.tmp_0.arg0 = s.sb___79515; s.callLocIdx = 2112; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P2371_mk(s); + s.tmp_0 = Sprite_setImage__P66590_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = s.sb___15294.fields["_image"]; + r0 = s.sb___79515.fields["_image"]; s.tmp_0.arg1 = r0; s.callLocIdx = 2114; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = s.output___15299; + r0 = s.output___79520; { step = 3; continue; } case 1: case 2: @@ -8032,16 +8046,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -StatusBarSprite_applyChange__P7057.info = {"start":11236,"length":301,"line":310,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"applyChange","argumentNames":["this","action"]} +StatusBarSprite_applyChange__P71276.info = {"start":11236,"length":301,"line":310,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"applyChange","argumentNames":["this","action"]} -function StatusBarSprite_applyChange__P7057_mk(s) { +function StatusBarSprite_applyChange__P71276_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_applyChange__P7057, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_applyChange__P71276, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sb___15294: undefined, - output___15299: undefined, + sb___79515: undefined, + output___79520: undefined, arg0: undefined, arg1: undefined, } } @@ -8050,7 +8064,7 @@ function StatusBarSprite_applyChange__P7057_mk(s) { -function statusbars_StatusBar_updateDisplay__P4373(s) { +function statusbars_StatusBar_updateDisplay__P68592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8060,36 +8074,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fillWidth___15318 = undefined; - s.fillHeight___15327 = undefined; - s.barIsVertical___15336 = undefined; - s.borderColor___15339 = undefined; - s.barLeft___15348 = undefined; - s.barTop___15349 = undefined; - s.textWidth___15351 = undefined; - s.textHeight___15359 = undefined; - s.labelEnd___15363 = undefined; - s.textX___15368 = undefined; - s.textY___15369 = undefined; - s.showTarget___15475 = undefined; - s.invertDir___15482 = undefined; - s.drainPercent___15489 = undefined; - s.dw___15499 = undefined; - s.dh___15508 = undefined; - s.dx___15517 = undefined; - s.dy___15531 = undefined; - s.percent___15553 = undefined; - s.tw___15562 = undefined; - s.th___15571 = undefined; - s.tx___15580 = undefined; - s.ty___15594 = undefined; - s.handler___15616 = undefined; + s.fillWidth___79539 = undefined; + s.fillHeight___79548 = undefined; + s.barIsVertical___79557 = undefined; + s.borderColor___79560 = undefined; + s.barLeft___79569 = undefined; + s.barTop___79570 = undefined; + s.textWidth___79572 = undefined; + s.textHeight___79580 = undefined; + s.labelEnd___79584 = undefined; + s.textX___79589 = undefined; + s.textY___79590 = undefined; + s.showTarget___79696 = undefined; + s.invertDir___79703 = undefined; + s.drainPercent___79710 = undefined; + s.dw___79720 = undefined; + s.dh___79729 = undefined; + s.dx___79738 = undefined; + s.dy___79752 = undefined; + s.percent___79774 = undefined; + s.tw___79783 = undefined; + s.th___79792 = undefined; + s.tx___79801 = undefined; + s.ty___79815 = undefined; + s.handler___79837 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, 0); @@ -8100,7 +8114,7 @@ switch (step) { r0 = (2 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.fillWidth___15318 = (r0); + s.fillWidth___79539 = (r0); r0 = s.arg0.fields["_barHeight"]; s.tmp_0 = r0; r0 = s.arg0.fields["borderWidth"]; @@ -8108,14 +8122,14 @@ switch (step) { r0 = (2 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.fillHeight___15327 = (r0); + s.fillHeight___79548 = (r0); r0 = s.arg0.fields["_barHeight"]; s.tmp_0 = r0; r0 = s.arg0.fields["_barWidth"]; s.tmp_1 = r0; r0 = (s.tmp_0 > s.tmp_1); - s.barIsVertical___15336 = (r0); - s.tmp_1 = statusbars_util_isNullOrUndefined__P7098_mk(s); + s.barIsVertical___79557 = (r0); + s.tmp_1 = statusbars_util_isNullOrUndefined__P71317_mk(s); r0 = s.arg0.fields["borderColor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 2176; s.pc = 53; return s.tmp_1; @@ -8131,9 +8145,9 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.borderColor___15339 = (s.tmp_2); - s.barLeft___15348 = (0); - s.barTop___15349 = (0); + s.borderColor___79560 = (s.tmp_2); + s.barLeft___79569 = (0); + s.barTop___79570 = (0); r0 = s.arg0.fields["_label"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -8157,7 +8171,7 @@ switch (step) { r0 = pxsim_String_.length(s.tmp_4); s.tmp_3 = r0; r0 = (s.tmp_1 * s.tmp_3); - s.textWidth___15351 = (r0); + s.textWidth___79572 = (r0); s.tmp_0 = if_charHeight_1_mk(s); r0 = s.arg0.fields["font"]; s.tmp_0.arg0 = r0; @@ -8171,110 +8185,110 @@ switch (step) { } case 55: r0 = s.retval; - s.textHeight___15359 = (r0); + s.textHeight___79580 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 2); - s.labelEnd___15363 = (r0); - s.textX___15368 = (0); - s.textY___15369 = (0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___15336); + s.labelEnd___79584 = (r0); + s.textX___79589 = (0); + s.textY___79590 = (0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___79557); if (!r0) { step = 9; continue; } - r0 = pxsim_numops_toBoolDecr(s.labelEnd___15363); + r0 = pxsim_numops_toBoolDecr(s.labelEnd___79584); if (!r0) { step = 3; continue; } r0 = s.arg0.fields["_barHeight"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.textY___15369 = (r0); + s.textY___79590 = (r0); { step = 4; continue; } case 3: - s.tmp_0 = r0 = s.barTop___15349; - r0 = (s.textHeight___15359 + 1); + s.tmp_0 = r0 = s.barTop___79570; + r0 = (s.textHeight___79580 + 1); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.barTop___15349 = (r0); + s.barTop___79570 = (r0); case 4: r0 = s.arg0.fields["_barWidth"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.textWidth___15351); + r0 = (s.tmp_1 > s.textWidth___79572); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } r0 = s.arg0.fields["_barWidth"]; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.textWidth___15351); + r0 = (s.tmp_3 - s.textWidth___79572); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); - s.textX___15368 = (r0); + s.textX___79589 = (r0); { step = 8; continue; } case 5: r0 = s.arg0.fields["_barWidth"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < s.textWidth___15351); + r0 = (s.tmp_1 < s.textWidth___79572); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } r0 = s.arg0.fields["_barWidth"]; s.tmp_4 = r0; - r0 = (s.textWidth___15351 - s.tmp_4); + r0 = (s.textWidth___79572 - s.tmp_4); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); - s.barLeft___15348 = (r0); + s.barLeft___79569 = (r0); case 6: case 7: case 8: { step = 16; continue; } case 9: - r0 = pxsim_numops_toBoolDecr(s.labelEnd___15363); + r0 = pxsim_numops_toBoolDecr(s.labelEnd___79584); if (!r0) { step = 10; continue; } r0 = s.arg0.fields["_barWidth"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.textX___15368 = (r0); + s.textX___79589 = (r0); { step = 11; continue; } case 10: - r0 = (s.barLeft___15348 + s.textWidth___15351); - s.barLeft___15348 = (r0); + r0 = (s.barLeft___79569 + s.textWidth___79572); + s.barLeft___79569 = (r0); case 11: r0 = s.arg0.fields["_barHeight"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.textHeight___15359); + r0 = (s.tmp_1 > s.textHeight___79580); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } r0 = s.arg0.fields["_barHeight"]; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.textHeight___15359); + r0 = (s.tmp_3 - s.textHeight___79580); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); - s.textY___15369 = (r0); + s.textY___79590 = (r0); { step = 15; continue; } case 12: r0 = s.arg0.fields["_barHeight"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < s.textHeight___15359); + r0 = (s.tmp_1 < s.textHeight___79580); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } r0 = s.arg0.fields["_barHeight"]; s.tmp_3 = r0; - r0 = (s.textHeight___15359 - s.tmp_3); + r0 = (s.textHeight___79580 - s.tmp_3); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); - s.barTop___15349 = (r0); + s.barTop___79570 = (r0); case 13: case 14: case 15: case 16: - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); r0 = s.arg0.fields["_image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["_label"]; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.textX___15368; - s.tmp_0.arg3 = s.textY___15369; + s.tmp_0.arg2 = s.textX___79589; + s.tmp_0.arg3 = s.textY___79590; r0 = s.arg0.fields["labelColor"]; s.tmp_0.arg4 = r0; r0 = s.arg0.fields["font"]; @@ -8285,32 +8299,32 @@ switch (step) { r0 = s.retval; case 17: case 18: - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); r0 = s.arg0.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.barLeft___15348; - s.tmp_0.arg2 = s.barTop___15349; + s.tmp_0.arg1 = s.barLeft___79569; + s.tmp_0.arg2 = s.barTop___79570; r0 = s.arg0.fields["_barWidth"]; s.tmp_0.arg3 = r0; r0 = s.arg0.fields["_barHeight"]; s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.borderColor___15339; + s.tmp_0.arg5 = s.borderColor___79560; s.callLocIdx = 2185; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); r0 = s.arg0.fields["_image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_1 = r0; - r0 = (s.barLeft___15348 + s.tmp_1); + r0 = (s.barLeft___79569 + s.tmp_1); s.tmp_0.arg1 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_2 = r0; - r0 = (s.barTop___15349 + s.tmp_2); + r0 = (s.barTop___79570 + s.tmp_2); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.fillWidth___15318; - s.tmp_0.arg4 = s.fillHeight___15327; + s.tmp_0.arg3 = s.fillWidth___79539; + s.tmp_0.arg4 = s.fillHeight___79548; r0 = s.arg0.fields["offColor"]; s.tmp_0.arg5 = r0; s.callLocIdx = 2187; s.pc = 58; return s.tmp_0; @@ -8329,14 +8343,14 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - s.showTarget___15475 = (r0); + s.showTarget___79696 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 8); - s.invertDir___15482 = (r0); - r0 = pxsim_numops_toBoolDecr(s.showTarget___15475); + s.invertDir___79703 = (r0); + r0 = pxsim_numops_toBoolDecr(s.showTarget___79696); if (!r0) { step = 31; continue; } - s.tmp_0 = Math_constrain__P284_mk(s); + s.tmp_0 = Math_constrain__P64503_mk(s); r0 = s.arg0.fields["displayValue"]; s.tmp_1 = r0; r0 = s.arg0.fields["_max"]; @@ -8348,38 +8362,38 @@ switch (step) { s.callLocIdx = 2188; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.drainPercent___15489 = (r0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___15336); + s.drainPercent___79710 = (r0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___79557); if (!r0) { step = 19; continue; } - r0 = s.fillWidth___15318; + r0 = s.fillWidth___79539; { step = 20; continue; } case 19: - r0 = (s.fillWidth___15318 * s.drainPercent___15489); + r0 = (s.fillWidth___79539 * s.drainPercent___79710); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); case 20: // jmp value (already in r0) s.tmp_1 = r0; - s.dw___15499 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___15336); + s.dw___79720 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___79557); if (!r0) { step = 21; continue; } - r0 = (s.fillHeight___15327 * s.drainPercent___15489); + r0 = (s.fillHeight___79548 * s.drainPercent___79710); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); { step = 22; continue; } case 21: - r0 = s.fillHeight___15327; + r0 = s.fillHeight___79548; case 22: // jmp value (already in r0) s.tmp_1 = r0; - s.dh___15508 = (s.tmp_1); - s.tmp_0 = r0 = s.barIsVertical___15336; + s.dh___79729 = (s.tmp_1); + s.tmp_0 = r0 = s.barIsVertical___79557; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 23; continue; } r0 = s.tmp_0; { step = 24; continue; } case 23: - r0 = pxsim_numops_toBoolDecr(s.invertDir___15482); + r0 = pxsim_numops_toBoolDecr(s.invertDir___79703); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); case 24: @@ -8390,23 +8404,23 @@ switch (step) { r0 = 0; { step = 26; continue; } case 25: - r0 = (s.fillWidth___15318 - s.dw___15499); + r0 = (s.fillWidth___79539 - s.dw___79720); case 26: // jmp value (already in r0) s.tmp_3 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_5 = r0; - r0 = (s.barLeft___15348 + s.tmp_5); + r0 = (s.barLeft___79569 + s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_4 + s.tmp_3); - s.dx___15517 = (r0); - s.tmp_0 = r0 = s.barIsVertical___15336; + s.dx___79738 = (r0); + s.tmp_0 = r0 = s.barIsVertical___79557; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 27; continue; } r0 = s.tmp_0; { step = 28; continue; } case 27: - r0 = pxsim_numops_toBoolDecr(s.invertDir___15482); + r0 = pxsim_numops_toBoolDecr(s.invertDir___79703); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); case 28: @@ -8414,7 +8428,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 29; continue; } - r0 = (s.fillHeight___15327 - s.dh___15508); + r0 = (s.fillHeight___79548 - s.dh___79729); { step = 30; continue; } case 29: r0 = 0; @@ -8423,17 +8437,17 @@ switch (step) { s.tmp_3 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_5 = r0; - r0 = (s.barTop___15349 + s.tmp_5); + r0 = (s.barTop___79570 + s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_4 + s.tmp_3); - s.dy___15531 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.dy___79752 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); r0 = s.arg0.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.dx___15517; - s.tmp_0.arg2 = s.dy___15531; - s.tmp_0.arg3 = s.dw___15499; - s.tmp_0.arg4 = s.dh___15508; + s.tmp_0.arg1 = s.dx___79738; + s.tmp_0.arg2 = s.dy___79752; + s.tmp_0.arg3 = s.dw___79720; + s.tmp_0.arg4 = s.dh___79729; r0 = s.arg0.fields["drainColor"]; s.tmp_0.arg5 = r0; s.callLocIdx = 2190; s.pc = 60; return s.tmp_0; @@ -8441,7 +8455,7 @@ switch (step) { r0 = s.retval; case 31: case 32: - s.tmp_0 = Math_constrain__P284_mk(s); + s.tmp_0 = Math_constrain__P64503_mk(s); r0 = s.arg0.fields["target"]; s.tmp_1 = r0; r0 = s.arg0.fields["_max"]; @@ -8453,38 +8467,38 @@ switch (step) { s.callLocIdx = 2191; s.pc = 61; return s.tmp_0; case 61: r0 = s.retval; - s.percent___15553 = (r0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___15336); + s.percent___79774 = (r0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___79557); if (!r0) { step = 33; continue; } - r0 = s.fillWidth___15318; + r0 = s.fillWidth___79539; { step = 34; continue; } case 33: - r0 = (s.fillWidth___15318 * s.percent___15553); + r0 = (s.fillWidth___79539 * s.percent___79774); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); case 34: // jmp value (already in r0) s.tmp_1 = r0; - s.tw___15562 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___15336); + s.tw___79783 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___79557); if (!r0) { step = 35; continue; } - r0 = (s.fillHeight___15327 * s.percent___15553); + r0 = (s.fillHeight___79548 * s.percent___79774); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); { step = 36; continue; } case 35: - r0 = s.fillHeight___15327; + r0 = s.fillHeight___79548; case 36: // jmp value (already in r0) s.tmp_1 = r0; - s.th___15571 = (s.tmp_1); - s.tmp_0 = r0 = s.barIsVertical___15336; + s.th___79792 = (s.tmp_1); + s.tmp_0 = r0 = s.barIsVertical___79557; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 37; continue; } r0 = s.tmp_0; { step = 38; continue; } case 37: - r0 = pxsim_numops_toBoolDecr(s.invertDir___15482); + r0 = pxsim_numops_toBoolDecr(s.invertDir___79703); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); case 38: @@ -8495,23 +8509,23 @@ switch (step) { r0 = 0; { step = 40; continue; } case 39: - r0 = (s.fillWidth___15318 - s.tw___15562); + r0 = (s.fillWidth___79539 - s.tw___79783); case 40: // jmp value (already in r0) s.tmp_3 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_5 = r0; - r0 = (s.barLeft___15348 + s.tmp_5); + r0 = (s.barLeft___79569 + s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_4 + s.tmp_3); - s.tx___15580 = (r0); - s.tmp_0 = r0 = s.barIsVertical___15336; + s.tx___79801 = (r0); + s.tmp_0 = r0 = s.barIsVertical___79557; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 41; continue; } r0 = s.tmp_0; { step = 42; continue; } case 41: - r0 = pxsim_numops_toBoolDecr(s.invertDir___15482); + r0 = pxsim_numops_toBoolDecr(s.invertDir___79703); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); case 42: @@ -8519,7 +8533,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 43; continue; } - r0 = (s.fillHeight___15327 - s.th___15571); + r0 = (s.fillHeight___79548 - s.th___79792); { step = 44; continue; } case 43: r0 = 0; @@ -8528,17 +8542,17 @@ switch (step) { s.tmp_3 = r0; r0 = s.arg0.fields["borderWidth"]; s.tmp_5 = r0; - r0 = (s.barTop___15349 + s.tmp_5); + r0 = (s.barTop___79570 + s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_4 + s.tmp_3); - s.ty___15594 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.ty___79815 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); r0 = s.arg0.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.tx___15580; - s.tmp_0.arg2 = s.ty___15594; - s.tmp_0.arg3 = s.tw___15562; - s.tmp_0.arg4 = s.th___15571; + s.tmp_0.arg1 = s.tx___79801; + s.tmp_0.arg2 = s.ty___79815; + s.tmp_0.arg3 = s.tw___79783; + s.tmp_0.arg4 = s.th___79792; r0 = s.arg0.fields["onColor"]; s.tmp_0.arg5 = r0; s.callLocIdx = 2193; s.pc = 62; return s.tmp_0; @@ -8546,7 +8560,7 @@ switch (step) { r0 = s.retval; case 45: case 46: - s.tmp_1 = statusbars_getPostProcessHandlers__P7097_mk(s); + s.tmp_1 = statusbars_getPostProcessHandlers__P71316_mk(s); s.callLocIdx = 2194; s.pc = 63; return s.tmp_1; case 63: r0 = s.retval; @@ -8563,7 +8577,7 @@ switch (step) { r0 = s.arg0.fields["kind"]; s.tmp_3 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - s.handler___15616 = (r0); + s.handler___79837 = (r0); r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -8571,14 +8585,14 @@ switch (step) { r0 = s.tmp_0; { step = 50; continue; } case 49: - r0 = s.handler___15616; + r0 = s.handler___79837; case 50: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 51; continue; } s.tmp_2 = lambda_3_mk(s); - s.tmp_2.argL = s.handler___15616; + s.tmp_2.argL = s.handler___79837; r0 = s.arg0.fields["sprite"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["_image"]; @@ -8593,12 +8607,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -statusbars_StatusBar_updateDisplay__P4373.info = {"start":19872,"length":4237,"line":575,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateDisplay","argumentNames":["this"]} +statusbars_StatusBar_updateDisplay__P68592.info = {"start":19872,"length":4237,"line":575,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateDisplay","argumentNames":["this"]} -function statusbars_StatusBar_updateDisplay__P4373_mk(s) { +function statusbars_StatusBar_updateDisplay__P68592_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_updateDisplay__P4373, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_updateDisplay__P68592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8606,30 +8620,30 @@ function statusbars_StatusBar_updateDisplay__P4373_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - fillWidth___15318: undefined, - fillHeight___15327: undefined, - barIsVertical___15336: undefined, - borderColor___15339: undefined, - barLeft___15348: undefined, - barTop___15349: undefined, - textWidth___15351: undefined, - textHeight___15359: undefined, - labelEnd___15363: undefined, - textX___15368: undefined, - textY___15369: undefined, - showTarget___15475: undefined, - invertDir___15482: undefined, - drainPercent___15489: undefined, - dw___15499: undefined, - dh___15508: undefined, - dx___15517: undefined, - dy___15531: undefined, - percent___15553: undefined, - tw___15562: undefined, - th___15571: undefined, - tx___15580: undefined, - ty___15594: undefined, - handler___15616: undefined, + fillWidth___79539: undefined, + fillHeight___79548: undefined, + barIsVertical___79557: undefined, + borderColor___79560: undefined, + barLeft___79569: undefined, + barTop___79570: undefined, + textWidth___79572: undefined, + textHeight___79580: undefined, + labelEnd___79584: undefined, + textX___79589: undefined, + textY___79590: undefined, + showTarget___79696: undefined, + invertDir___79703: undefined, + drainPercent___79710: undefined, + dw___79720: undefined, + dh___79729: undefined, + dx___79738: undefined, + dy___79752: undefined, + percent___79774: undefined, + tw___79783: undefined, + th___79792: undefined, + tx___79801: undefined, + ty___79815: undefined, + handler___79837: undefined, arg0: undefined, } } @@ -8637,7 +8651,7 @@ function statusbars_StatusBar_updateDisplay__P4373_mk(s) { -function statusbars_util_isNullOrUndefined__P7098(s) { +function statusbars_util_isNullOrUndefined__P71317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8666,12 +8680,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -statusbars_util_isNullOrUndefined__P7098.info = {"start":33748,"length":126,"line":964,"column":8,"endLine":966,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isNullOrUndefined","argumentNames":["v"]} +statusbars_util_isNullOrUndefined__P71317.info = {"start":33748,"length":126,"line":964,"column":8,"endLine":966,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isNullOrUndefined","argumentNames":["v"]} -function statusbars_util_isNullOrUndefined__P7098_mk(s) { +function statusbars_util_isNullOrUndefined__P71317_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_util_isNullOrUndefined__P7098, depth: s.depth + 1, + parent: s, fn: statusbars_util_isNullOrUndefined__P71317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8682,7 +8696,7 @@ function statusbars_util_isNullOrUndefined__P7098_mk(s) { -function statusbars_getPostProcessHandlers__P7097(s) { +function statusbars_getPostProcessHandlers__P71316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8692,20 +8706,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P7093_mk(s); - s.tmp_0.arg0 = globals.POST_PROCESS_HANDLERS_KEY___7080; + s.tmp_0 = statusbars_getSceneData__P71312_mk(s); + s.tmp_0.arg0 = globals.POST_PROCESS_HANDLERS_KEY___71299; s.callLocIdx = 2226; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -statusbars_getPostProcessHandlers__P7097.info = {"start":33574,"length":143,"line":959,"column":4,"endLine":961,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getPostProcessHandlers","argumentNames":[]} +statusbars_getPostProcessHandlers__P71316.info = {"start":33574,"length":143,"line":959,"column":4,"endLine":961,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getPostProcessHandlers","argumentNames":[]} -function statusbars_getPostProcessHandlers__P7097_mk(s) { +function statusbars_getPostProcessHandlers__P71316_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getPostProcessHandlers__P7097, depth: s.depth + 1, + parent: s, fn: statusbars_getPostProcessHandlers__P71316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -8714,7 +8728,7 @@ function statusbars_getPostProcessHandlers__P7097_mk(s) { -function statusbars_getSceneData__P7093(s) { +function statusbars_getSceneData__P71312(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8728,7 +8742,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = game_currentScene__P2979_mk(s); + s.tmp_2 = game_currentScene__P67198_mk(s); s.callLocIdx = 2221; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; @@ -8739,12 +8753,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -statusbars_getSceneData__P7093.info = {"start":33136,"length":88,"line":943,"column":4,"endLine":945,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getSceneData","argumentNames":["key"]} +statusbars_getSceneData__P71312.info = {"start":33136,"length":88,"line":943,"column":4,"endLine":945,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getSceneData","argumentNames":["key"]} -function statusbars_getSceneData__P7093_mk(s) { +function statusbars_getSceneData__P71312_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getSceneData__P7093, depth: s.depth + 1, + parent: s, fn: statusbars_getSceneData__P71312, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8756,7 +8770,7 @@ function statusbars_getSceneData__P7093_mk(s) { -function scene_Scene_data__P2848(s) { +function scene_Scene_data__P67067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8771,18 +8785,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P2848.info = {"start":6957,"length":53,"line":188,"column":8,"endLine":190,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P2848.isGetter = true; +scene_Scene_data__P67067.info = {"start":6957,"length":53,"line":188,"column":8,"endLine":190,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P67067.isGetter = true; -function scene_Scene_data__P2848_mk(s) { +function scene_Scene_data__P67067_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P2848, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P67067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -8791,7 +8805,7 @@ function scene_Scene_data__P2848_mk(s) { -function statusbars_StatusBar_isVerticalBar__P7085(s) { +function statusbars_StatusBar_isVerticalBar__P71304(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8806,7 +8820,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); r0 = s.arg0.fields["_barHeight"]; s.tmp_0 = r0; r0 = s.arg0.fields["_barWidth"]; @@ -8815,12 +8829,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -statusbars_StatusBar_isVerticalBar__P7085.info = {"start":17681,"length":90,"line":516,"column":8,"endLine":518,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isVerticalBar","argumentNames":["this"]} +statusbars_StatusBar_isVerticalBar__P71304.info = {"start":17681,"length":90,"line":516,"column":8,"endLine":518,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isVerticalBar","argumentNames":["this"]} -function statusbars_StatusBar_isVerticalBar__P7085_mk(s) { +function statusbars_StatusBar_isVerticalBar__P71304_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_isVerticalBar__P7085, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_isVerticalBar__P71304, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8831,7 +8845,7 @@ function statusbars_StatusBar_isVerticalBar__P7085_mk(s) { -function statusbars_StatusBar_label__P4363(s) { +function statusbars_StatusBar_label__P68582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8846,18 +8860,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); r0 = s.arg0.fields["_label"]; return leaveAccessor(s, r0) default: oops() } } } -statusbars_StatusBar_label__P4363.info = {"start":15589,"length":55,"line":443,"column":8,"endLine":445,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"label","argumentNames":["this"]} -statusbars_StatusBar_label__P4363.isGetter = true; +statusbars_StatusBar_label__P68582.info = {"start":15589,"length":55,"line":443,"column":8,"endLine":445,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"label","argumentNames":["this"]} +statusbars_StatusBar_label__P68582.isGetter = true; -function statusbars_StatusBar_label__P4363_mk(s) { +function statusbars_StatusBar_label__P68582_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_label__P4363, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_label__P68582, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -8866,7 +8880,7 @@ function statusbars_StatusBar_label__P4363_mk(s) { -function helpers_imagePrint__P1971(s) { +function helpers_imagePrint__P66190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8876,31 +8890,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___12240 = undefined; - s.cp___12242 = undefined; - s.mult___12243 = undefined; - s.dataW___12248 = undefined; - s.dataH___12254 = undefined; - s.byteHeight___12260 = undefined; - s.charSize___12266 = undefined; - s.dataSize___12270 = undefined; - s.fontdata___12274 = undefined; - s.lastchar___12277 = undefined; - s.imgBuf___12284 = undefined; - s.xOffset___12308 = undefined; - s.yOffset___12309 = undefined; - s.ch___12324 = undefined; - s.l___12343 = undefined; - s.r___12344 = undefined; - s.off___12346 = undefined; - s.guess___12347 = undefined; - s.m___12366 = undefined; - s.v___12375 = undefined; - s.i___12431 = undefined; - s.j___12436 = undefined; - s.mask___12437 = undefined; - s.c___12438 = undefined; - s.n___12455 = undefined; + s.x0___76461 = undefined; + s.cp___76463 = undefined; + s.mult___76464 = undefined; + s.dataW___76469 = undefined; + s.dataH___76475 = undefined; + s.byteHeight___76481 = undefined; + s.charSize___76487 = undefined; + s.dataSize___76491 = undefined; + s.fontdata___76495 = undefined; + s.lastchar___76498 = undefined; + s.imgBuf___76505 = undefined; + s.xOffset___76529 = undefined; + s.yOffset___76530 = undefined; + s.ch___76545 = undefined; + s.l___76564 = undefined; + s.r___76565 = undefined; + s.off___76567 = undefined; + s.guess___76568 = undefined; + s.m___76587 = undefined; + s.v___76596 = undefined; + s.i___76652 = undefined; + s.j___76657 = undefined; + s.mask___76658 = undefined; + s.c___76659 = undefined; + s.n___76676 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8921,7 +8935,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P1958_mk(s); + s.tmp_2 = image_getFontForText__P66177_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 207; s.pc = 39; return s.tmp_2; case 39: @@ -8938,8 +8952,8 @@ switch (step) { s.arg4 = (1); case 3: case 4: - s.x0___12240 = (s.arg2); - s.cp___12242 = (0); + s.x0___76461 = (s.arg2); + s.cp___76463 = (0); s.tmp_1 = if_multiplier_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -8973,7 +8987,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_3 = r0; - s.mult___12243 = (s.tmp_3); + s.mult___76464 = (s.tmp_3); s.tmp_1 = if_charWidth_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -8987,8 +9001,8 @@ switch (step) { case 42: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___12243); - s.dataW___12248 = (r0); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___76464); + s.dataW___76469 = (r0); s.tmp_1 = if_charHeight_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -9002,16 +9016,16 @@ switch (step) { case 43: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___12243); - s.dataH___12254 = (r0); - r0 = (s.dataH___12254 + 7); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___76464); + s.dataH___76475 = (r0); + r0 = (s.dataH___76475 + 7); s.tmp_0 = r0; r0 = (s.tmp_0 >> 3); - s.byteHeight___12260 = (r0); - r0 = (s.byteHeight___12260 * s.dataW___12248); - s.charSize___12266 = (r0); - r0 = (2 + s.charSize___12266); - s.dataSize___12270 = (r0); + s.byteHeight___76481 = (r0); + r0 = (s.byteHeight___76481 * s.dataW___76469); + s.charSize___76487 = (r0); + r0 = (2 + s.charSize___76487); + s.dataSize___76491 = (r0); s.tmp_0 = if_data_1_mk(s); s.tmp_0.arg0 = s.arg5; if (!s.tmp_0.arg0.vtable.iface) { @@ -9024,44 +9038,44 @@ switch (step) { } case 44: r0 = s.retval; - s.fontdata___12274 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___12274); + s.fontdata___76495 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___76495); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___12270); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___76491); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.lastchar___12277 = (r0); - r0 = (s.mult___12243 == 1); + s.lastchar___76498 = (r0); + r0 = (s.mult___76464 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___12266); + r0 = (8 + s.charSize___76487); s.tmp_1 = r0; r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___12284 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___12284, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___12284, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___12284, 2, s.dataW___12248); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___12284, 4, s.dataH___12254); + s.imgBuf___76505 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___76505, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___76505, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___76505, 2, s.dataW___76469); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___76505, 4, s.dataH___76475); case 7: case 8: case 9: - s.tmp_1 = r0 = s.cp___12242; + s.tmp_1 = r0 = s.cp___76463; r0 = pxsim_String_.length(s.arg1); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 38; continue; } - s.xOffset___12308 = (0); - s.yOffset___12309 = (0); + s.xOffset___76529 = (0); + s.yOffset___76530 = (0); s.tmp_0 = r0 = s.arg6; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 10; continue; } r0 = s.tmp_0; { step = 11; continue; } case 10: - s.tmp_1 = r0 = s.cp___12242; + s.tmp_1 = r0 = s.cp___76463; r0 = pxsim_Array__length(s.arg6); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); @@ -9071,7 +9085,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___12242); + r0 = pxsim_Array__getAt(s.arg6, s.cp___76463); s.tmp_4.arg0 = r0; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); @@ -9083,9 +9097,9 @@ switch (step) { } case 45: r0 = s.retval; - s.xOffset___12308 = (r0); + s.xOffset___76529 = (r0); s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___12242); + r0 = pxsim_Array__getAt(s.arg6, s.cp___76463); s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); @@ -9097,15 +9111,15 @@ switch (step) { } case 46: r0 = s.retval; - s.yOffset___12309 = (r0); + s.yOffset___76530 = (r0); case 12: case 13: - s.tmp_0 = r0 = s.cp___12242; + s.tmp_0 = r0 = s.cp___76463; r0 = (s.tmp_0 + 1); - s.cp___12242 = (r0); + s.cp___76463 = (r0); r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___12324 = (r0); - r0 = (s.ch___12324 == 10); + s.ch___76545 = (r0); + r0 = (s.ch___76545 == 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } @@ -9127,89 +9141,89 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.arg3 = (r0); - s.arg2 = (s.x0___12240); + s.arg2 = (s.x0___76461); case 14: case 15: - r0 = (s.ch___12324 < 32); + r0 = (s.ch___76545 < 32); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } { step = 9; continue; } case 16: case 17: - s.l___12343 = (0); - s.r___12344 = (s.lastchar___12277); - s.off___12346 = (0); - r0 = (s.ch___12324 - 32); + s.l___76564 = (0); + s.r___76565 = (s.lastchar___76498); + s.off___76567 = (0); + r0 = (s.ch___76545 - 32); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___12270); - s.guess___12347 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___12274, 4, s.guess___12347); + r0 = (s.tmp_0 * s.dataSize___76491); + s.guess___76568 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___76495, 4, s.guess___76568); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___12324); + r0 = (s.tmp_1 == s.ch___76545); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.off___12346 = (s.guess___12347); + s.off___76567 = (s.guess___76568); { step = 25; continue; } case 18: case 19: - r0 = (s.l___12343 <= s.r___12344); + r0 = (s.l___76564 <= s.r___76565); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___12343; - r0 = (s.r___12344 - s.l___12343); + s.tmp_1 = r0 = s.l___76564; + r0 = (s.r___76565 - s.l___76564); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); - s.m___12366 = (r0); - s.tmp_0 = r0 = s.fontdata___12274; - r0 = (s.m___12366 * s.dataSize___12270); + s.m___76587 = (r0); + s.tmp_0 = r0 = s.fontdata___76495; + r0 = (s.m___76587 * s.dataSize___76491); s.tmp_1 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___12375 = (r0); - r0 = (s.v___12375 == s.ch___12324); + s.v___76596 = (r0); + r0 = (s.v___76596 == s.ch___76545); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.m___12366 * s.dataSize___12270); - s.off___12346 = (r0); + r0 = (s.m___76587 * s.dataSize___76491); + s.off___76567 = (r0); { step = 24; continue; } case 20: case 21: - r0 = (s.v___12375 < s.ch___12324); + r0 = (s.v___76596 < s.ch___76545); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.m___12366 + 1); - s.l___12343 = (r0); + r0 = (s.m___76587 + 1); + s.l___76564 = (r0); { step = 23; continue; } case 22: - r0 = (s.m___12366 - 1); - s.r___12344 = (r0); + r0 = (s.m___76587 - 1); + s.r___76565 = (r0); case 23: { step = 19; continue; } case 24: case 25: - r0 = (s.mult___12243 == 1); + r0 = (s.mult___76464 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___12284; - s.tmp_3 = r0 = s.fontdata___12274; - r0 = (s.off___12346 + 2); + s.tmp_1 = r0 = s.imgBuf___76505; + s.tmp_3 = r0 = s.fontdata___76495; + r0 = (s.off___76567 + 2); s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___12266); + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___76487); s.tmp_2 = r0; r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P1938_mk(s); + s.tmp_0 = helpers_imageDrawIcon__P66157_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___12284; - r0 = (s.arg2 + s.xOffset___12308); + s.tmp_0.arg1 = s.imgBuf___76505; + r0 = (s.arg2 + s.xOffset___76529); s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___12309); + r0 = (s.arg3 + s.yOffset___76530); s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg4; s.callLocIdx = 216; s.pc = 48; return s.tmp_0; @@ -9233,88 +9247,88 @@ switch (step) { s.arg2 = (r0); { step = 37; continue; } case 26: - r0 = (s.off___12346 + 2); - s.off___12346 = (r0); - s.i___12431 = (0); + r0 = (s.off___76567 + 2); + s.off___76567 = (r0); + s.i___76652 = (0); case 27: - r0 = (s.i___12431 < s.dataW___12248); + r0 = (s.i___76652 < s.dataW___76469); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 36; continue; } - s.j___12436 = (0); - s.mask___12437 = (1); - s.tmp_0 = r0 = s.off___12346; + s.j___76657 = (0); + s.mask___76658 = (1); + s.tmp_0 = r0 = s.off___76567; r0 = (s.tmp_0 + 1); - s.off___12346 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___12274, s.tmp_0); - s.c___12438 = (r0); + s.off___76567 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___76495, s.tmp_0); + s.c___76659 = (r0); case 28: - r0 = (s.j___12436 < s.dataH___12254); + r0 = (s.j___76657 < s.dataH___76475); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 35; continue; } - r0 = (s.mask___12437 == 256); + r0 = (s.mask___76658 == 256); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___12346; + s.tmp_2 = r0 = s.off___76567; r0 = (s.tmp_2 + 1); - s.off___12346 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___12274, s.tmp_2); - s.c___12438 = (r0); - s.mask___12437 = (1); + s.off___76567 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___76495, s.tmp_2); + s.c___76659 = (r0); + s.mask___76658 = (1); case 29: case 30: - s.n___12455 = (0); + s.n___76676 = (0); case 31: - r0 = (s.c___12438 & s.mask___12437); + r0 = (s.c___76659 & s.mask___76658); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = (s.n___12455 + 1); - s.n___12455 = (r0); - r0 = (s.mask___12437 << 1); - s.mask___12437 = (r0); + r0 = (s.n___76676 + 1); + s.n___76676 = (r0); + r0 = (s.mask___76658 << 1); + s.mask___76658 = (r0); { step = 31; continue; } case 32: - r0 = pxsim_numops_toBoolDecr(s.n___12455); + r0 = pxsim_numops_toBoolDecr(s.n___76676); if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___12308 * s.mult___12243); + r0 = (s.xOffset___76529 * s.mult___76464); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0.arg1 = r0; s.tmp_3 = r0 = s.arg3; - r0 = (s.j___12436 + s.yOffset___12309); + r0 = (s.j___76657 + s.yOffset___76530); s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___12243); + r0 = (s.tmp_5 * s.mult___76464); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___12243; - r0 = (s.mult___12243 * s.n___12455); + s.tmp_0.arg3 = s.mult___76464; + r0 = (s.mult___76464 * s.n___76676); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg4; s.callLocIdx = 218; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - r0 = (s.j___12436 + s.n___12455); - s.j___12436 = (r0); + r0 = (s.j___76657 + s.n___76676); + s.j___76657 = (r0); { step = 34; continue; } case 33: - r0 = (s.mask___12437 << 1); - s.mask___12437 = (r0); - r0 = (s.j___12436 + 1); - s.j___12436 = (r0); + r0 = (s.mask___76658 << 1); + s.mask___76658 = (r0); + r0 = (s.j___76657 + 1); + s.j___76657 = (r0); case 34: { step = 28; continue; } case 35: - r0 = (s.arg2 + s.mult___12243); + r0 = (s.arg2 + s.mult___76464); s.arg2 = (r0); - r0 = (s.i___12431 + 1); - s.i___12431 = (r0); + r0 = (s.i___76652 + 1); + s.i___76652 = (r0); { step = 27; continue; } case 36: case 37: @@ -9324,12 +9338,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrint__P1971.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} +helpers_imagePrint__P66190.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} -function helpers_imagePrint__P1971_mk(s) { +function helpers_imagePrint__P66190_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P1971, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P66190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9337,31 +9351,31 @@ function helpers_imagePrint__P1971_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - x0___12240: undefined, - cp___12242: undefined, - mult___12243: undefined, - dataW___12248: undefined, - dataH___12254: undefined, - byteHeight___12260: undefined, - charSize___12266: undefined, - dataSize___12270: undefined, - fontdata___12274: undefined, - lastchar___12277: undefined, - imgBuf___12284: undefined, - xOffset___12308: undefined, - yOffset___12309: undefined, - ch___12324: undefined, - l___12343: undefined, - r___12344: undefined, - off___12346: undefined, - guess___12347: undefined, - m___12366: undefined, - v___12375: undefined, - i___12431: undefined, - j___12436: undefined, - mask___12437: undefined, - c___12438: undefined, - n___12455: undefined, + x0___76461: undefined, + cp___76463: undefined, + mult___76464: undefined, + dataW___76469: undefined, + dataH___76475: undefined, + byteHeight___76481: undefined, + charSize___76487: undefined, + dataSize___76491: undefined, + fontdata___76495: undefined, + lastchar___76498: undefined, + imgBuf___76505: undefined, + xOffset___76529: undefined, + yOffset___76530: undefined, + ch___76545: undefined, + l___76564: undefined, + r___76565: undefined, + off___76567: undefined, + guess___76568: undefined, + m___76587: undefined, + v___76596: undefined, + i___76652: undefined, + j___76657: undefined, + mask___76658: undefined, + c___76659: undefined, + n___76676: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9375,7 +9389,7 @@ function helpers_imagePrint__P1971_mk(s) { -function image_getFontForText__P1958(s) { +function image_getFontForText__P66177(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9385,52 +9399,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___11585 = undefined; + s.i___75806 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___11585 = (0); + s.i___75806 = (0); case 1: - s.tmp_1 = r0 = s.i___11585; + s.tmp_1 = r0 = s.i___75806; r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___11585); + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___75806); s.tmp_4 = r0; r0 = (s.tmp_4 > 8192); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } - r0 = globals.font12___1957; + r0 = globals.font12___66176; { step = 5; continue; } case 2: case 3: - r0 = (s.i___11585 + 1); - s.i___11585 = (r0); + r0 = (s.i___75806 + 1); + s.i___75806 = (r0); { step = 1; continue; } case 4: - r0 = globals.font8___1956; + r0 = globals.font8___66175; case 5: return leave(s, r0) default: oops() } } } -image_getFontForText__P1958.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +image_getFontForText__P66177.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function image_getFontForText__P1958_mk(s) { +function image_getFontForText__P66177_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P1958, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P66177, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - i___11585: undefined, + i___75806: undefined, arg0: undefined, } } @@ -9438,7 +9452,7 @@ function image_getFontForText__P1958_mk(s) { -function helpers_imageDrawIcon__P1938(s) { +function helpers_imageDrawIcon__P66157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9458,7 +9472,7 @@ switch (step) { } s.tmp_0 = r0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P4644_mk(s); + s.tmp_3 = helpers_pack__P68863_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg3; s.callLocIdx = 188; s.pc = 1; return s.tmp_3; @@ -9470,12 +9484,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P1938.info = {"start":4684,"length":145,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +helpers_imageDrawIcon__P66157.info = {"start":4684,"length":145,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function helpers_imageDrawIcon__P1938_mk(s) { +function helpers_imageDrawIcon__P66157_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P1938, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P66157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9492,7 +9506,7 @@ function helpers_imageDrawIcon__P1938_mk(s) { -function helpers_pack__P4644(s) { +function helpers_pack__P68863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9507,7 +9521,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P127_mk(s); + s.tmp_2 = Math_clamp__P64346_mk(s); s.tmp_2.arg0 = -30000; s.tmp_2.arg1 = 30000; r0 = (s.arg0 | 0); @@ -9518,7 +9532,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 & 65535); s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P127_mk(s); + s.tmp_5 = Math_clamp__P64346_mk(s); s.tmp_5.arg0 = -30000; s.tmp_5.arg1 = 30000; r0 = (s.arg1 | 0); @@ -9533,12 +9547,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_pack__P4644.info = {"start":3658,"length":145,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +helpers_pack__P68863.info = {"start":3658,"length":145,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function helpers_pack__P4644_mk(s) { +function helpers_pack__P68863_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P4644, depth: s.depth + 1, + parent: s, fn: helpers_pack__P68863, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9554,7 +9568,7 @@ function helpers_pack__P4644_mk(s) { -function helpers_imageFillRect__P1939(s) { +function helpers_imageFillRect__P66158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9574,14 +9588,14 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P4644_mk(s); + s.tmp_2 = helpers_pack__P68863_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; s.callLocIdx = 189; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P4644_mk(s); + s.tmp_4 = helpers_pack__P68863_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; s.callLocIdx = 190; s.pc = 2; return s.tmp_4; @@ -9593,12 +9607,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P1939.info = {"start":4834,"length":159,"line":158,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +helpers_imageFillRect__P66158.info = {"start":4834,"length":159,"line":158,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageFillRect__P1939_mk(s) { +function helpers_imageFillRect__P66158_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P1939, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P66158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9617,7 +9631,7 @@ function helpers_imageFillRect__P1939_mk(s) { -function Math_constrain__P284(s) { +function Math_constrain__P64503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9659,12 +9673,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_constrain__P284.info = {"start":1679,"length":147,"line":34,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/math.ts","functionName":"constrain","argumentNames":["value","low","high"]} +Math_constrain__P64503.info = {"start":1679,"length":147,"line":34,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/math.ts","functionName":"constrain","argumentNames":["value","low","high"]} -function Math_constrain__P284_mk(s) { +function Math_constrain__P64503_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_constrain__P284, depth: s.depth + 1, + parent: s, fn: Math_constrain__P64503, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9679,7 +9693,7 @@ function Math_constrain__P284_mk(s) { -function statusbars_StatusBar_image__P4370(s) { +function statusbars_StatusBar_image__P68589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9694,18 +9708,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -statusbars_StatusBar_image__P4370.info = {"start":17520,"length":55,"line":508,"column":8,"endLine":510,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this"]} -statusbars_StatusBar_image__P4370.isGetter = true; +statusbars_StatusBar_image__P68589.info = {"start":17520,"length":55,"line":508,"column":8,"endLine":510,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this"]} +statusbars_StatusBar_image__P68589.isGetter = true; -function statusbars_StatusBar_image__P4370_mk(s) { +function statusbars_StatusBar_image__P68589_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_image__P4370, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_image__P68589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -9714,7 +9728,7 @@ function statusbars_StatusBar_image__P4370_mk(s) { -function Sprite_setImage__P2371(s) { +function Sprite_setImage__P66590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9730,7 +9744,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -9752,9 +9766,9 @@ switch (step) { case 3: case 4: r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite__C2321_v5_1_mk(s); + s.tmp_0 = Sprite__C66540_v5_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2321_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, Sprite__C66540_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; s.pc = 6; return s.tmp_0; case 6: @@ -9764,12 +9778,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setImage__P2371.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +Sprite_setImage__P66590.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function Sprite_setImage__P2371_mk(s) { +function Sprite_setImage__P66590_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P2371, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P66590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9783,7 +9797,7 @@ function Sprite_setImage__P2371_mk(s) { -function Sprite_recalcSize__P4815(s) { +function Sprite_recalcSize__P69034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9798,13 +9812,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - s.tmp_6 = Sprite_sx__P2350_mk(s); + s.tmp_6 = Sprite_sx__P66569_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 618; s.pc = 1; return s.tmp_6; case 1: @@ -9822,7 +9836,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_ImageMethods.height(s.tmp_4); s.tmp_3 = r0; - s.tmp_6 = Sprite_sy__P2352_mk(s); + s.tmp_6 = Sprite_sy__P66571_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 620; s.pc = 2; return s.tmp_6; case 2: @@ -9835,7 +9849,7 @@ switch (step) { r0 = (s.tmp_7 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); - s.tmp_0 = Sprite_resetHitbox__P2373_mk(s); + s.tmp_0 = Sprite_resetHitbox__P66592_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 622; s.pc = 3; return s.tmp_0; case 3: @@ -9844,12 +9858,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_recalcSize__P4815.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} +Sprite_recalcSize__P69034.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} -function Sprite_recalcSize__P4815_mk(s) { +function Sprite_recalcSize__P69034_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_recalcSize__P4815, depth: s.depth + 1, + parent: s, fn: Sprite_recalcSize__P69034, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9866,7 +9880,7 @@ function Sprite_recalcSize__P4815_mk(s) { -function Sprite_resetHitbox__P2373(s) { +function Sprite_resetHitbox__P66592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9881,11 +9895,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = (s.arg0).fields["_hitbox"] = (null); - s.tmp_0 = Sprite__C2321_v4_1_mk(s); + s.tmp_0 = Sprite__C66540_v4_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2321_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, Sprite__C66540_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setHitbox; s.pc = 1; return s.tmp_0; case 1: @@ -9894,12 +9908,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_resetHitbox__P2373.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} +Sprite_resetHitbox__P66592.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} -function Sprite_resetHitbox__P2373_mk(s) { +function Sprite_resetHitbox__P66592_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_resetHitbox__P2373, depth: s.depth + 1, + parent: s, fn: Sprite_resetHitbox__P66592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -9909,7 +9923,7 @@ function Sprite_resetHitbox__P2373_mk(s) { -function Sprite_setHitbox__P2374(s) { +function Sprite_setHitbox__P66593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9924,12 +9938,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = game_Hitbox_updateIfInvalid__P2203_mk(s); + s.tmp_1 = game_Hitbox_updateIfInvalid__P66422_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_1.arg0 = r0; s.callLocIdx = 616; s.pc = 3; return s.tmp_1; @@ -9938,7 +9952,7 @@ switch (step) { { step = 2; continue; } case 1: s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_calculateHitBox__P2205_mk(s); + s.tmp_2 = game_calculateHitBox__P66424_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 617; s.pc = 4; return s.tmp_2; case 4: @@ -9950,12 +9964,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P2374.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +Sprite_setHitbox__P66593.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Sprite_setHitbox__P2374_mk(s) { +function Sprite_setHitbox__P66593_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P2374, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P66593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9967,7 +9981,7 @@ function Sprite_setHitbox__P2374_mk(s) { -function game_calculateHitBox__P2205(s) { +function game_calculateHitBox__P66424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9977,17 +9991,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___9718 = undefined; - s.minX___9721 = undefined; - s.minY___9725 = undefined; - s.maxX___9729 = undefined; - s.maxY___9731 = undefined; - s.c___9733 = undefined; - s.fxc___9734 = undefined; - s.r___9741 = undefined; - s.fxr___9742 = undefined; - s.width___9806 = undefined; - s.height___9814 = undefined; + s.i___73939 = undefined; + s.minX___73942 = undefined; + s.minY___73946 = undefined; + s.maxX___73950 = undefined; + s.maxY___73952 = undefined; + s.c___73954 = undefined; + s.fxc___73955 = undefined; + s.r___73962 = undefined; + s.fxr___73963 = undefined; + s.width___74027 = undefined; + s.height___74035 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -9999,7 +10013,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = game_Hitbox_isValid__P2201_mk(s); + s.tmp_1 = game_Hitbox_isValid__P66420_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_1.arg0 = r0; s.callLocIdx = 397; s.pc = 12; return s.tmp_1; @@ -10015,137 +10029,137 @@ switch (step) { case 3: case 4: r0 = s.arg0.fields["_image"]; - s.i___9718 = (r0); - r0 = pxsim_ImageMethods.width(s.i___9718); + s.i___73939 = (r0); + r0 = pxsim_ImageMethods.width(s.i___73939); s.tmp_0 = r0; r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.minX___9721 = (r0); - r0 = pxsim_ImageMethods.height(s.i___9718); + s.minX___73942 = (r0); + r0 = pxsim_ImageMethods.height(s.i___73939); s.tmp_0 = r0; r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.minY___9725 = (r0); - s.maxX___9729 = (0); - s.maxY___9731 = (0); - s.c___9733 = (0); - s.fxc___9734 = (0); + s.minY___73946 = (r0); + s.maxX___73950 = (0); + s.maxY___73952 = (0); + s.c___73954 = (0); + s.fxc___73955 = (0); case 5: - s.tmp_1 = r0 = s.c___9733; - r0 = pxsim_ImageMethods.width(s.i___9718); + s.tmp_1 = r0 = s.c___73954; + r0 = pxsim_ImageMethods.width(s.i___73939); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - s.r___9741 = (0); - s.fxr___9742 = (0); + s.r___73962 = (0); + s.fxr___73963 = (0); case 6: - s.tmp_1 = r0 = s.r___9741; - r0 = pxsim_ImageMethods.height(s.i___9718); + s.tmp_1 = r0 = s.r___73962; + r0 = pxsim_ImageMethods.height(s.i___73939); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.getPixel(s.i___9718, s.c___9733, s.r___9741); + r0 = pxsim_ImageMethods.getPixel(s.i___73939, s.c___73954, s.r___73962); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Fx_min__P166_mk(s); - s.tmp_4.arg0 = s.minX___9721; - s.tmp_4.arg1 = s.fxc___9734; + s.tmp_4 = Fx_min__P64385_mk(s); + s.tmp_4.arg0 = s.minX___73942; + s.tmp_4.arg1 = s.fxc___73955; s.callLocIdx = 401; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; - s.minX___9721 = (r0); - s.tmp_0 = Fx_min__P166_mk(s); - s.tmp_0.arg0 = s.minY___9725; - s.tmp_0.arg1 = s.fxr___9742; + s.minX___73942 = (r0); + s.tmp_0 = Fx_min__P64385_mk(s); + s.tmp_0.arg0 = s.minY___73946; + s.tmp_0.arg1 = s.fxr___73963; s.callLocIdx = 402; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.minY___9725 = (r0); - s.tmp_0 = Fx_max__P167_mk(s); - s.tmp_0.arg0 = s.maxX___9729; - s.tmp_0.arg1 = s.fxc___9734; + s.minY___73946 = (r0); + s.tmp_0 = Fx_max__P64386_mk(s); + s.tmp_0.arg0 = s.maxX___73950; + s.tmp_0.arg1 = s.fxc___73955; s.callLocIdx = 403; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.maxX___9729 = (r0); - s.tmp_0 = Fx_max__P167_mk(s); - s.tmp_0.arg0 = s.maxY___9731; - s.tmp_0.arg1 = s.fxr___9742; + s.maxX___73950 = (r0); + s.tmp_0 = Fx_max__P64386_mk(s); + s.tmp_0.arg0 = s.maxY___73952; + s.tmp_0.arg1 = s.fxr___73963; s.callLocIdx = 404; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.maxY___9731 = (r0); + s.maxY___73952 = (r0); case 7: case 8: - r0 = (s.r___9741 + 1); - s.r___9741 = (r0); - r0 = (s.fxr___9742 + 256); + r0 = (s.r___73962 + 1); + s.r___73962 = (r0); + r0 = (s.fxr___73963 + 256); s.tmp_0 = r0; - s.fxr___9742 = (r0); + s.fxr___73963 = (r0); r0 = s.tmp_0; { step = 6; continue; } case 9: - r0 = (s.c___9733 + 1); - s.c___9733 = (r0); - r0 = (s.fxc___9734 + 256); + r0 = (s.c___73954 + 1); + s.c___73954 = (r0); + r0 = (s.fxc___73955 + 256); s.tmp_0 = r0; - s.fxc___9734 = (r0); + s.fxc___73955 = (r0); r0 = s.tmp_0; { step = 5; continue; } case 10: r0 = s.arg0.fields["_sx"]; s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minX___9721, s.tmp_0); + r0 = pxsim.Math_.imul(s.minX___73942, s.tmp_0); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.minX___9721 = (r0); + s.minX___73942 = (r0); r0 = s.arg0.fields["_sy"]; s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minY___9725, s.tmp_0); + r0 = pxsim.Math_.imul(s.minY___73946, s.tmp_0); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.minY___9725 = (r0); + s.minY___73946 = (r0); r0 = s.arg0.fields["_sx"]; s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxX___9729, s.tmp_0); + r0 = pxsim.Math_.imul(s.maxX___73950, s.tmp_0); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.maxX___9729 = (r0); + s.maxX___73950 = (r0); r0 = s.arg0.fields["_sy"]; s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxY___9731, s.tmp_0); + r0 = pxsim.Math_.imul(s.maxY___73952, s.tmp_0); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.maxY___9731 = (r0); - r0 = (s.maxX___9729 - s.minX___9721); + s.maxY___73952 = (r0); + r0 = (s.maxX___73950 - s.minX___73942); s.tmp_0 = r0; r0 = s.arg0.fields["_sx"]; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.width___9806 = (r0); - r0 = (s.maxY___9731 - s.minY___9725); + s.width___74027 = (r0); + r0 = (s.maxY___73952 - s.minY___73946); s.tmp_0 = r0; r0 = s.arg0.fields["_sy"]; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.height___9814 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C2189_VT); + s.height___74035 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C66408_VT); s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P2196_mk(s); + s.tmp_1 = game_Hitbox_constructor__P66415_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___9806; - s.tmp_1.arg3 = s.height___9814; - r0 = (s.minX___9721 & -256); + s.tmp_1.arg2 = s.width___74027; + s.tmp_1.arg3 = s.height___74035; + r0 = (s.minX___73942 & -256); s.tmp_1.arg4 = r0; - r0 = (s.minY___9725 & -256); + r0 = (s.minY___73946 & -256); s.tmp_1.arg5 = r0; s.callLocIdx = 417; s.pc = 17; return s.tmp_1; case 17: @@ -10155,29 +10169,29 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_calculateHitBox__P2205.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +game_calculateHitBox__P66424.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} -function game_calculateHitBox__P2205_mk(s) { +function game_calculateHitBox__P66424_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P2205, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P66424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - i___9718: undefined, - minX___9721: undefined, - minY___9725: undefined, - maxX___9729: undefined, - maxY___9731: undefined, - c___9733: undefined, - fxc___9734: undefined, - r___9741: undefined, - fxr___9742: undefined, - width___9806: undefined, - height___9814: undefined, + i___73939: undefined, + minX___73942: undefined, + minY___73946: undefined, + maxX___73950: undefined, + maxY___73952: undefined, + c___73954: undefined, + fxc___73955: undefined, + r___73962: undefined, + fxr___73963: undefined, + width___74027: undefined, + height___74035: undefined, arg0: undefined, } } @@ -10185,7 +10199,7 @@ function game_calculateHitBox__P2205_mk(s) { -function Sprite_image__P2370(s) { +function Sprite_image__P66589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10200,18 +10214,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P2370.info = {"start":9023,"length":54,"line":322,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P2370.isGetter = true; +Sprite_image__P66589.info = {"start":9023,"length":54,"line":322,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P66589.isGetter = true; -function Sprite_image__P2370_mk(s) { +function Sprite_image__P66589_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P2370, depth: s.depth + 1, + parent: s, fn: Sprite_image__P66589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -10220,7 +10234,7 @@ function Sprite_image__P2370_mk(s) { -function game_Hitbox_isValid__P2201(s) { +function game_Hitbox_isValid__P66420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10235,10 +10249,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); r0 = s.arg0.fields["hash"]; s.tmp_0 = r0; - s.tmp_2 = Sprite_calcDimensionalHash__P2372_mk(s); + s.tmp_2 = Sprite_calcDimensionalHash__P66591_mk(s); r0 = s.arg0.fields["parent"]; s.tmp_2.arg0 = r0; s.callLocIdx = 350; s.pc = 1; return s.tmp_2; @@ -10249,12 +10263,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_isValid__P2201.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} +game_Hitbox_isValid__P66420.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} -function game_Hitbox_isValid__P2201_mk(s) { +function game_Hitbox_isValid__P66420_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_isValid__P2201, depth: s.depth + 1, + parent: s, fn: game_Hitbox_isValid__P66420, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10266,7 +10280,7 @@ function game_Hitbox_isValid__P2201_mk(s) { -function Sprite_calcDimensionalHash__P2372(s) { +function Sprite_calcDimensionalHash__P66591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10281,7 +10295,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.revision(s.tmp_2); @@ -10304,12 +10318,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_calcDimensionalHash__P2372.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} +Sprite_calcDimensionalHash__P66591.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} -function Sprite_calcDimensionalHash__P2372_mk(s) { +function Sprite_calcDimensionalHash__P66591_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_calcDimensionalHash__P2372, depth: s.depth + 1, + parent: s, fn: Sprite_calcDimensionalHash__P66591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10327,7 +10341,7 @@ function Sprite_calcDimensionalHash__P2372_mk(s) { -function Fx_toIntShifted__P156(s) { +function Fx_toIntShifted__P64375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10349,12 +10363,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P156.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +Fx_toIntShifted__P64375.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} -function Fx_toIntShifted__P156_mk(s) { +function Fx_toIntShifted__P64375_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P156, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P64375, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10366,7 +10380,7 @@ function Fx_toIntShifted__P156_mk(s) { -function game_Hitbox_constructor__P2196(s) { +function game_Hitbox_constructor__P66415(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10386,9 +10400,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_calcDimensionalHash__P2372_mk(s); + s.tmp_2 = Sprite_calcDimensionalHash__P66591_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 341; s.pc = 1; return s.tmp_2; case 1: @@ -10404,12 +10418,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P2196.info = {"start":173,"length":288,"line":9,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} +game_Hitbox_constructor__P66415.info = {"start":173,"length":288,"line":9,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} -function game_Hitbox_constructor__P2196_mk(s) { +function game_Hitbox_constructor__P66415_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P2196, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P66415, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10426,7 +10440,7 @@ function game_Hitbox_constructor__P2196_mk(s) { -function Fx_floor__P168(s) { +function Fx_floor__P64387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10444,12 +10458,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_floor__P168.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} +Fx_floor__P64387.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} -function Fx_floor__P168_mk(s) { +function Fx_floor__P64387_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_floor__P168, depth: s.depth + 1, + parent: s, fn: Fx_floor__P64387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -10458,7 +10472,7 @@ function Fx_floor__P168_mk(s) { -function Fx_max__P167(s) { +function Fx_max__P64386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10489,12 +10503,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_max__P167.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +Fx_max__P64386.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} -function Fx_max__P167_mk(s) { +function Fx_max__P64386_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P167, depth: s.depth + 1, + parent: s, fn: Fx_max__P64386, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10505,7 +10519,7 @@ function Fx_max__P167_mk(s) { -function Fx_min__P166(s) { +function Fx_min__P64385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10536,12 +10550,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_min__P166.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +Fx_min__P64385.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} -function Fx_min__P166_mk(s) { +function Fx_min__P64385_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P166, depth: s.depth + 1, + parent: s, fn: Fx_min__P64385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10552,7 +10566,7 @@ function Fx_min__P166_mk(s) { -function Fx_mul__P160(s) { +function Fx_mul__P64379(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10573,12 +10587,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_mul__P160.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +Fx_mul__P64379.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} -function Fx_mul__P160_mk(s) { +function Fx_mul__P64379_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P160, depth: s.depth + 1, + parent: s, fn: Fx_mul__P64379, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10589,7 +10603,7 @@ function Fx_mul__P160_mk(s) { -function Fx_sub__P159(s) { +function Fx_sub__P64378(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10608,12 +10622,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_sub__P159.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +Fx_sub__P64378.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} -function Fx_sub__P159_mk(s) { +function Fx_sub__P64378_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P159, depth: s.depth + 1, + parent: s, fn: Fx_sub__P64378, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -10623,7 +10637,7 @@ function Fx_sub__P159_mk(s) { -function Fx_add__P157(s) { +function Fx_add__P64376(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10642,12 +10656,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_add__P157.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +Fx_add__P64376.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} -function Fx_add__P157_mk(s) { +function Fx_add__P64376_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P157, depth: s.depth + 1, + parent: s, fn: Fx_add__P64376, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -10657,7 +10671,7 @@ function Fx_add__P157_mk(s) { -function game_Hitbox_updateIfInvalid__P2203(s) { +function game_Hitbox_updateIfInvalid__P66422(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10667,24 +10681,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___9924 = undefined; - s.oMinX___9929 = undefined; - s.oMinY___9932 = undefined; - s.oMaxX___9935 = undefined; - s.oMaxY___9941 = undefined; - s.nMinX___9947 = undefined; - s.nMinY___9950 = undefined; - s.nMaxX___9953 = undefined; - s.nMaxY___9959 = undefined; - s.xDiff___9965 = undefined; - s.yDiff___9976 = undefined; + s.newHitBox___74145 = undefined; + s.oMinX___74150 = undefined; + s.oMinY___74153 = undefined; + s.oMaxX___74156 = undefined; + s.oMaxY___74162 = undefined; + s.nMinX___74168 = undefined; + s.nMinY___74171 = undefined; + s.nMaxX___74174 = undefined; + s.nMaxY___74180 = undefined; + s.xDiff___74186 = undefined; + s.yDiff___74197 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - s.tmp_1 = game_Hitbox_isValid__P2201_mk(s); + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_isValid__P66420_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 355; s.pc = 8; return s.tmp_1; case 8: @@ -10695,90 +10709,90 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.tmp_2 = game_calculateHitBox__P2205_mk(s); + s.tmp_2 = game_calculateHitBox__P66424_mk(s); r0 = s.arg0.fields["parent"]; s.tmp_2.arg0 = r0; s.callLocIdx = 356; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; - s.newHitBox___9924 = (r0); + s.newHitBox___74145 = (r0); r0 = s.arg0.fields["ox"]; - s.oMinX___9929 = (r0); + s.oMinX___74150 = (r0); r0 = s.arg0.fields["oy"]; - s.oMinY___9932 = (r0); + s.oMinY___74153 = (r0); r0 = s.arg0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___9929 + s.tmp_0); - s.oMaxX___9935 = (r0); + r0 = (s.oMinX___74150 + s.tmp_0); + s.oMaxX___74156 = (r0); r0 = s.arg0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___9932 + s.tmp_0); - s.oMaxY___9941 = (r0); - r0 = s.newHitBox___9924.fields["ox"]; - s.nMinX___9947 = (r0); - r0 = s.newHitBox___9924.fields["oy"]; - s.nMinY___9950 = (r0); - r0 = s.newHitBox___9924.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___9947 + s.tmp_0); - s.nMaxX___9953 = (r0); - r0 = s.newHitBox___9924.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___9950 + s.tmp_0); - s.nMaxY___9959 = (r0); - s.tmp_1 = Fx_abs__P165_mk(s); - r0 = (s.oMinX___9929 - s.nMinX___9947); + r0 = (s.oMinY___74153 + s.tmp_0); + s.oMaxY___74162 = (r0); + r0 = s.newHitBox___74145.fields["ox"]; + s.nMinX___74168 = (r0); + r0 = s.newHitBox___74145.fields["oy"]; + s.nMinY___74171 = (r0); + r0 = s.newHitBox___74145.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___74168 + s.tmp_0); + s.nMaxX___74174 = (r0); + r0 = s.newHitBox___74145.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___74171 + s.tmp_0); + s.nMaxY___74180 = (r0); + s.tmp_1 = Fx_abs__P64384_mk(s); + r0 = (s.oMinX___74150 - s.nMinX___74168); s.tmp_1.arg0 = r0; s.callLocIdx = 362; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P165_mk(s); - r0 = (s.oMaxX___9935 - s.nMaxX___9953); + s.tmp_3 = Fx_abs__P64384_mk(s); + r0 = (s.oMaxX___74156 - s.nMaxX___74174); s.tmp_3.arg0 = r0; s.callLocIdx = 364; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___9965 = (r0); - s.tmp_1 = Fx_abs__P165_mk(s); - r0 = (s.oMinY___9932 - s.nMinY___9950); + s.xDiff___74186 = (r0); + s.tmp_1 = Fx_abs__P64384_mk(s); + r0 = (s.oMinY___74153 - s.nMinY___74171); s.tmp_1.arg0 = r0; s.callLocIdx = 367; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P165_mk(s); - r0 = (s.oMaxY___9941 - s.nMaxY___9959); + s.tmp_3 = Fx_abs__P64384_mk(s); + r0 = (s.oMaxY___74162 - s.nMaxY___74180); s.tmp_3.arg0 = r0; s.callLocIdx = 369; s.pc = 13; return s.tmp_3; case 13: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___9976 = (r0); - r0 = (s.xDiff___9965 > 512); + s.yDiff___74197 = (r0); + r0 = (s.xDiff___74186 > 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["ox"] = (s.nMinX___9947); - r0 = s.newHitBox___9924.fields["width"]; + r0 = (s.arg0).fields["ox"] = (s.nMinX___74168); + r0 = s.newHitBox___74145.fields["width"]; s.tmp_0 = r0; r0 = (s.arg0).fields["width"] = (s.tmp_0); case 3: case 4: - r0 = (s.yDiff___9976 > 512); + r0 = (s.yDiff___74197 > 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["oy"] = (s.nMinY___9950); - r0 = s.newHitBox___9924.fields["height"]; + r0 = (s.arg0).fields["oy"] = (s.nMinY___74171); + r0 = s.newHitBox___74145.fields["height"]; s.tmp_0 = r0; r0 = (s.arg0).fields["height"] = (s.tmp_0); case 5: case 6: - r0 = s.newHitBox___9924.fields["hash"]; + r0 = s.newHitBox___74145.fields["hash"]; s.tmp_0 = r0; r0 = (s.arg0).fields["hash"] = (s.tmp_0); case 7: @@ -10786,28 +10800,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_updateIfInvalid__P2203.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} +game_Hitbox_updateIfInvalid__P66422.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} -function game_Hitbox_updateIfInvalid__P2203_mk(s) { +function game_Hitbox_updateIfInvalid__P66422_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_updateIfInvalid__P2203, depth: s.depth + 1, + parent: s, fn: game_Hitbox_updateIfInvalid__P66422, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - newHitBox___9924: undefined, - oMinX___9929: undefined, - oMinY___9932: undefined, - oMaxX___9935: undefined, - oMaxY___9941: undefined, - nMinX___9947: undefined, - nMinY___9950: undefined, - nMaxX___9953: undefined, - nMaxY___9959: undefined, - xDiff___9965: undefined, - yDiff___9976: undefined, + newHitBox___74145: undefined, + oMinX___74150: undefined, + oMinY___74153: undefined, + oMaxX___74156: undefined, + oMaxY___74162: undefined, + nMinX___74168: undefined, + nMinY___74171: undefined, + nMaxX___74174: undefined, + nMaxY___74180: undefined, + xDiff___74186: undefined, + yDiff___74197: undefined, arg0: undefined, } } @@ -10815,7 +10829,7 @@ function game_Hitbox_updateIfInvalid__P2203_mk(s) { -function Fx_abs__P165(s) { +function Fx_abs__P64384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10845,12 +10859,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_abs__P165.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +Fx_abs__P64384.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function Fx_abs__P165_mk(s) { +function Fx_abs__P64384_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P165, depth: s.depth + 1, + parent: s, fn: Fx_abs__P64384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10860,7 +10874,7 @@ function Fx_abs__P165_mk(s) { -function Sprite_sy__P2352(s) { +function Sprite_sy__P66571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10875,20 +10889,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["_sy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_sy__P2352.info = {"start":5719,"length":61,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this"]} -Sprite_sy__P2352.isGetter = true; +Sprite_sy__P66571.info = {"start":5719,"length":61,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this"]} +Sprite_sy__P66571.isGetter = true; -function Sprite_sy__P2352_mk(s) { +function Sprite_sy__P66571_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sy__P2352, depth: s.depth + 1, + parent: s, fn: Sprite_sy__P66571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10898,7 +10912,7 @@ function Sprite_sy__P2352_mk(s) { -function Fx_toFloat__P173(s) { +function Fx_toFloat__P64392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10916,12 +10930,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toFloat__P173.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +Fx_toFloat__P64392.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function Fx_toFloat__P173_mk(s) { +function Fx_toFloat__P64392_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P173, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P64392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -10930,7 +10944,7 @@ function Fx_toFloat__P173_mk(s) { -function Sprite_sx__P2350(s) { +function Sprite_sx__P66569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10945,20 +10959,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["_sx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_sx__P2350.info = {"start":5287,"length":61,"line":196,"column":4,"endLine":198,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this"]} -Sprite_sx__P2350.isGetter = true; +Sprite_sx__P66569.info = {"start":5287,"length":61,"line":196,"column":4,"endLine":198,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this"]} +Sprite_sx__P66569.isGetter = true; -function Sprite_sx__P2350_mk(s) { +function Sprite_sx__P66569_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sx__P2350, depth: s.depth + 1, + parent: s, fn: Sprite_sx__P66569, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10968,7 +10982,7 @@ function Sprite_sx__P2350_mk(s) { -function hud_forest_hud_healthy__P4394(s) { +function hud_forest_hud_healthy__P68613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10982,11 +10996,11 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.healthyColor___7102 = (s.arg0); - s.tmp_0 = StatusBarSprite_setColor__P4336_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = globals.healthyColor___7102; - s.tmp_0.arg2 = globals.burnedColor___7100; + globals.healthyColor___71321 = (s.arg0); + s.tmp_0 = StatusBarSprite_setColor__P68555_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = globals.healthyColor___71321; + s.tmp_0.arg2 = globals.burnedColor___71319; s.tmp_0.arg3 = undefined; s.callLocIdx = 2257; s.pc = 1; return s.tmp_0; case 1: @@ -10995,12 +11009,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -hud_forest_hud_healthy__P4394.info = {"start":3212,"length":146,"line":108,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_healthy","argumentNames":["color"]} +hud_forest_hud_healthy__P68613.info = {"start":3212,"length":146,"line":108,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"forest_hud_healthy","argumentNames":["color"]} -function hud_forest_hud_healthy__P4394_mk(s) { +function hud_forest_hud_healthy__P68613_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_forest_hud_healthy__P4394, depth: s.depth + 1, + parent: s, fn: hud_forest_hud_healthy__P68613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -11010,7 +11024,7 @@ function hud_forest_hud_healthy__P4394_mk(s) { -function sprites_create_spreading_fire__P4416(s) { +function sprites_create_spreading_fire__P68635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11025,7 +11039,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_createFireAtRandomLocation__P4420_mk(s); + s.tmp_0 = forestFire_createFireAtRandomLocation__P68639_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 2284; s.pc = 1; return s.tmp_0; @@ -11035,12 +11049,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_create_spreading_fire__P4416.info = {"start":4366,"length":148,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"create_spreading_fire","argumentNames":["onTile","burningTile"]} +sprites_create_spreading_fire__P68635.info = {"start":4366,"length":148,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"create_spreading_fire","argumentNames":["onTile","burningTile"]} -function sprites_create_spreading_fire__P4416_mk(s) { +function sprites_create_spreading_fire__P68635_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create_spreading_fire__P4416, depth: s.depth + 1, + parent: s, fn: sprites_create_spreading_fire__P68635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -11051,7 +11065,7 @@ function sprites_create_spreading_fire__P4416_mk(s) { -function forestFire_createFireAtRandomLocation__P4420(s) { +function forestFire_createFireAtRandomLocation__P68639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11066,8 +11080,8 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_FireState_createFireAtRandomLocation__P7135_mk(s); - s.tmp_0.arg0 = globals.state___7146; + s.tmp_0 = forestFire_FireState_createFireAtRandomLocation__P71354_mk(s); + s.tmp_0.arg0 = globals.state___71365; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 2347; s.pc = 1; return s.tmp_0; @@ -11077,12 +11091,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forestFire_createFireAtRandomLocation__P4420.info = {"start":10814,"length":130,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtRandomLocation","argumentNames":["tile","fire"]} +forestFire_createFireAtRandomLocation__P68639.info = {"start":10814,"length":130,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtRandomLocation","argumentNames":["tile","fire"]} -function forestFire_createFireAtRandomLocation__P4420_mk(s) { +function forestFire_createFireAtRandomLocation__P68639_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_createFireAtRandomLocation__P4420, depth: s.depth + 1, + parent: s, fn: forestFire_createFireAtRandomLocation__P68639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -11093,7 +11107,7 @@ function forestFire_createFireAtRandomLocation__P4420_mk(s) { -function forestFire_FireState_createFireAtRandomLocation__P7135(s) { +function forestFire_FireState_createFireAtRandomLocation__P71354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11110,11 +11124,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); r0 = (s.arg0).fields["fireImage"] = (s.arg2); - s.tmp_0 = forestFire_FireState_createFireAtLocation__P7136_mk(s); + s.tmp_0 = forestFire_FireState_createFireAtLocation__P71355_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = tiles_getRandomTileByType__P2756_mk(s); + s.tmp_1 = tiles_getRandomTileByType__P66975_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 2304; s.pc = 2; return s.tmp_1; case 2: @@ -11129,12 +11143,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forestFire_FireState_createFireAtRandomLocation__P7135.info = {"start":3881,"length":183,"line":113,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtRandomLocation","argumentNames":["this","tile","fire"]} +forestFire_FireState_createFireAtRandomLocation__P71354.info = {"start":3881,"length":183,"line":113,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"createFireAtRandomLocation","argumentNames":["this","tile","fire"]} -function forestFire_FireState_createFireAtRandomLocation__P7135_mk(s) { +function forestFire_FireState_createFireAtRandomLocation__P71354_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_createFireAtRandomLocation__P7135, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_createFireAtRandomLocation__P71354, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11147,7 +11161,7 @@ function forestFire_FireState_createFireAtRandomLocation__P7135_mk(s) { -function tiles_getRandomTileByType__P2756(s) { +function tiles_getRandomTileByType__P66975(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11157,18 +11171,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___8857 = undefined; - s.index___8867 = undefined; - s.sample___8873 = undefined; + s.scene___73078 = undefined; + s.index___73088 = undefined; + s.sample___73094 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); + s.tmp_0 = game_currentScene__P67198_mk(s); s.callLocIdx = 1313; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___8857 = (r0); + s.scene___73078 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -11178,7 +11192,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___8857.fields["tileMap"]; + r0 = s.scene___73078.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -11192,34 +11206,34 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getImageType__P2732_mk(s); - r0 = s.scene___8857.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getImageType__P66951_mk(s); + r0 = s.scene___73078.fields["tileMap"]; s.tmp_5.arg0 = r0; s.tmp_5.arg1 = s.arg0; s.callLocIdx = 1314; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; - s.index___8867 = (r0); - s.tmp_0 = tiles_TileMap_sampleTilesByType__P2735_mk(s); - r0 = s.scene___8857.fields["tileMap"]; + s.index___73088 = (r0); + s.tmp_0 = tiles_TileMap_sampleTilesByType__P66954_mk(s); + r0 = s.scene___73078.fields["tileMap"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___8867; + s.tmp_0.arg1 = s.index___73088; s.tmp_0.arg2 = 1; s.callLocIdx = 1315; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.sample___8873 = (r0); - r0 = pxsim_Array__getAt(s.sample___8873, 0); + s.sample___73094 = (r0); + r0 = pxsim_Array__getAt(s.sample___73094, 0); case 5: return leave(s, r0) default: oops() } } } -tiles_getRandomTileByType__P2756.info = {"start":26360,"length":324,"line":791,"column":4,"endLine":798,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getRandomTileByType","argumentNames":["tile"]} +tiles_getRandomTileByType__P66975.info = {"start":26360,"length":324,"line":791,"column":4,"endLine":798,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getRandomTileByType","argumentNames":["tile"]} -function tiles_getRandomTileByType__P2756_mk(s) { +function tiles_getRandomTileByType__P66975_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getRandomTileByType__P2756, depth: s.depth + 1, + parent: s, fn: tiles_getRandomTileByType__P66975, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11227,9 +11241,9 @@ function tiles_getRandomTileByType__P2756_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___8857: undefined, - index___8867: undefined, - sample___8873: undefined, + scene___73078: undefined, + index___73088: undefined, + sample___73094: undefined, arg0: undefined, } } @@ -11237,7 +11251,7 @@ function tiles_getRandomTileByType__P2756_mk(s) { -function tiles_TileMap_sampleTilesByType__P2735(s) { +function tiles_TileMap_sampleTilesByType__P66954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11247,12 +11261,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.count___8893 = undefined; - s.reservoir___8894 = undefined; - s.col___8896 = undefined; - s.row___8903 = undefined; - s.currTile___8910 = undefined; - s.potentialIndex___8929 = undefined; + s.count___73114 = undefined; + s.reservoir___73115 = undefined; + s.col___73117 = undefined; + s.row___73124 = undefined; + s.currTile___73131 = undefined; + s.potentialIndex___73150 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -11260,8 +11274,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMap_isInvalidIndex__P4935_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMap_isInvalidIndex__P69154_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 1244; s.pc = 18; return s.tmp_1; @@ -11304,12 +11318,12 @@ switch (step) { { step = 17; continue; } case 5: case 6: - s.count___8893 = (0); + s.count___73114 = (0); r0 = pxsim_Array__mk(); - s.reservoir___8894 = (r0); - s.col___8896 = (0); + s.reservoir___73115 = (r0); + s.col___73117 = (0); case 7: - s.tmp_1 = r0 = s.col___8896; + s.tmp_1 = r0 = s.col___73117; r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_width"]; @@ -11318,9 +11332,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - s.row___8903 = (0); + s.row___73124 = (0); case 8: - s.tmp_1 = r0 = s.row___8903; + s.tmp_1 = r0 = s.row___73124; r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_height"]; @@ -11329,79 +11343,79 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_4 = tiles_TileMapData_getTile__P2703_mk(s); + s.tmp_4 = tiles_TileMapData_getTile__P66922_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.col___8896; - s.tmp_4.arg2 = s.row___8903; + s.tmp_4.arg1 = s.col___73117; + s.tmp_4.arg2 = s.row___73124; s.callLocIdx = 1248; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; - s.currTile___8910 = (r0); - r0 = (s.currTile___8910 === s.arg1); + s.currTile___73131 = (r0); + r0 = (s.currTile___73131 === s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (s.count___8893 < s.arg2); + r0 = (s.count___73114 < s.arg2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2673_VT); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C66892_VT); s.tmp_2 = r0; - s.tmp_3 = tiles_Location_constructor__P2674_mk(s); + s.tmp_3 = tiles_Location_constructor__P66893_mk(s); s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.col___8896; - s.tmp_3.arg2 = s.row___8903; + s.tmp_3.arg1 = s.col___73117; + s.tmp_3.arg2 = s.row___73124; s.tmp_3.arg3 = s.arg0; s.callLocIdx = 1249; s.pc = 20; return s.tmp_3; case 20: r0 = s.retval; - r0 = pxsim_Array__push(s.reservoir___8894, s.tmp_2); + r0 = pxsim_Array__push(s.reservoir___73115, s.tmp_2); { step = 12; continue; } case 9: - r0 = pxsim.Math_.randomRange(0, s.count___8893); - s.potentialIndex___8929 = (r0); - r0 = (s.potentialIndex___8929 < s.arg2); + r0 = pxsim.Math_.randomRange(0, s.count___73114); + s.potentialIndex___73150 = (r0); + r0 = (s.potentialIndex___73150 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2673_VT); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C66892_VT); s.tmp_1 = r0; - s.tmp_2 = tiles_Location_constructor__P2674_mk(s); + s.tmp_2 = tiles_Location_constructor__P66893_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = s.col___8896; - s.tmp_2.arg2 = s.row___8903; + s.tmp_2.arg1 = s.col___73117; + s.tmp_2.arg2 = s.row___73124; s.tmp_2.arg3 = s.arg0; s.callLocIdx = 1250; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; - r0 = pxsim_Array_.setAt(s.reservoir___8894, s.potentialIndex___8929, s.tmp_1); + r0 = pxsim_Array_.setAt(s.reservoir___73115, s.potentialIndex___73150, s.tmp_1); case 10: case 11: case 12: - r0 = (s.count___8893 + 1); - s.count___8893 = (r0); + r0 = (s.count___73114 + 1); + s.count___73114 = (r0); case 13: case 14: - r0 = (s.row___8903 + 1); - s.row___8903 = (r0); + r0 = (s.row___73124 + 1); + s.row___73124 = (r0); { step = 8; continue; } case 15: - r0 = (s.col___8896 + 1); - s.col___8896 = (r0); + r0 = (s.col___73117 + 1); + s.col___73117 = (r0); { step = 7; continue; } case 16: - r0 = s.reservoir___8894; + r0 = s.reservoir___73115; case 17: return leave(s, r0) default: oops() } } } -tiles_TileMap_sampleTilesByType__P2735.info = {"start":12771,"length":1101,"line":428,"column":8,"endLine":452,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"sampleTilesByType","argumentNames":["this","index","maxCount"]} +tiles_TileMap_sampleTilesByType__P66954.info = {"start":12771,"length":1101,"line":428,"column":8,"endLine":452,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"sampleTilesByType","argumentNames":["this","index","maxCount"]} -function tiles_TileMap_sampleTilesByType__P2735_mk(s) { +function tiles_TileMap_sampleTilesByType__P66954_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_sampleTilesByType__P2735, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_sampleTilesByType__P66954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11413,12 +11427,12 @@ function tiles_TileMap_sampleTilesByType__P2735_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - count___8893: undefined, - reservoir___8894: undefined, - col___8896: undefined, - row___8903: undefined, - currTile___8910: undefined, - potentialIndex___8929: undefined, + count___73114: undefined, + reservoir___73115: undefined, + col___73117: undefined, + row___73124: undefined, + currTile___73131: undefined, + potentialIndex___73150: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -11428,7 +11442,7 @@ function tiles_TileMap_sampleTilesByType__P2735_mk(s) { -function tiles_TileMap_isInvalidIndex__P4935(s) { +function tiles_TileMap_isInvalidIndex__P69154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11444,7 +11458,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -11460,12 +11474,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isInvalidIndex__P4935.info = {"start":13882,"length":106,"line":454,"column":8,"endLine":456,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +tiles_TileMap_isInvalidIndex__P69154.info = {"start":13882,"length":106,"line":454,"column":8,"endLine":456,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} -function tiles_TileMap_isInvalidIndex__P4935_mk(s) { +function tiles_TileMap_isInvalidIndex__P69154_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isInvalidIndex__P4935, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isInvalidIndex__P69154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11477,7 +11491,7 @@ function tiles_TileMap_isInvalidIndex__P4935_mk(s) { -function tiles_TileMap_enabled__P2727(s) { +function tiles_TileMap_enabled__P66946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11492,7 +11506,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -11505,13 +11519,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_enabled__P2727.info = {"start":10177,"length":66,"line":351,"column":8,"endLine":353,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_TileMap_enabled__P2727.isGetter = true; +tiles_TileMap_enabled__P66946.info = {"start":10177,"length":66,"line":351,"column":8,"endLine":353,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} +tiles_TileMap_enabled__P66946.isGetter = true; -function tiles_TileMap_enabled__P2727_mk(s) { +function tiles_TileMap_enabled__P66946_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P2727, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P66946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11524,7 +11538,7 @@ function tiles_TileMap_enabled__P2727_mk(s) { -function tiles_TileMap_getImageType__P2732(s) { +function tiles_TileMap_getImageType__P66951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11534,48 +11548,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileset___8967 = undefined; - s.i___8972 = undefined; - s.newIndex___8986 = undefined; + s.tileset___73188 = undefined; + s.i___73193 = undefined; + s.newIndex___73207 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["tileset"]; - s.tileset___8967 = (r0); - s.i___8972 = (0); + s.tileset___73188 = (r0); + s.i___73193 = (0); case 1: - s.tmp_1 = r0 = s.i___8972; - r0 = pxsim_Array__length(s.tileset___8967); + s.tmp_1 = r0 = s.i___73193; + r0 = pxsim_Array__length(s.tileset___73188); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.tileset___8967, s.i___8972); + r0 = pxsim_Array__getAt(s.tileset___73188, s.i___73193); s.tmp_4 = r0; r0 = pxsim_ImageMethods.equals(s.tmp_4, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } - r0 = s.i___8972; + r0 = s.i___73193; { step = 7; continue; } case 2: case 3: - r0 = (s.i___8972 + 1); - s.i___8972 = (r0); + r0 = (s.i___73193 + 1); + s.i___73193 = (r0); { step = 1; continue; } case 4: - r0 = pxsim_Array__length(s.tileset___8967); - s.newIndex___8986 = (r0); - s.tmp_3 = tiles_TileMap_isInvalidIndex__P4935_mk(s); + r0 = pxsim_Array__length(s.tileset___73188); + s.newIndex___73207 = (r0); + s.tmp_3 = tiles_TileMap_isInvalidIndex__P69154_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.newIndex___8986; + s.tmp_3.arg1 = s.newIndex___73207; s.callLocIdx = 1237; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; @@ -11586,8 +11600,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_Array__push(s.tileset___8967, s.arg1); - r0 = s.newIndex___8986; + r0 = pxsim_Array__push(s.tileset___73188, s.arg1); + r0 = s.newIndex___73207; { step = 7; continue; } case 5: case 6: @@ -11596,21 +11610,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getImageType__P2732.info = {"start":11525,"length":482,"line":393,"column":8,"endLine":406,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} +tiles_TileMap_getImageType__P66951.info = {"start":11525,"length":482,"line":393,"column":8,"endLine":406,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} -function tiles_TileMap_getImageType__P2732_mk(s) { +function tiles_TileMap_getImageType__P66951_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getImageType__P2732, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getImageType__P66951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tileset___8967: undefined, - i___8972: undefined, - newIndex___8986: undefined, + tileset___73188: undefined, + i___73193: undefined, + newIndex___73207: undefined, arg0: undefined, arg1: undefined, } } @@ -11619,7 +11633,7 @@ function tiles_TileMap_getImageType__P2732_mk(s) { -function tiles_TileMapData_getTileset__P2705(s) { +function tiles_TileMapData_getTileset__P66924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11634,257 +11648,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); r0 = s.arg0.fields["tileset"]; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileset__P2705.info = {"start":7287,"length":57,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} - -function tiles_TileMapData_getTileset__P2705_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_getTileset__P2705, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_cameraFollowSprite__P2870(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.scene___9004 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1381; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___9004 = (r0); - r0 = s.scene___9004.fields["camera"]; - s.tmp_0 = r0; - r0 = (s.tmp_0).fields["sprite"] = (s.arg0); - s.tmp_0 = scene_Camera_update__P2778_mk(s); - r0 = s.scene___9004.fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1382; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_cameraFollowSprite__P2870.info = {"start":4010,"length":170,"line":143,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} - -function scene_cameraFollowSprite__P2870_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_cameraFollowSprite__P2870, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - scene___9004: undefined, - arg0: undefined, -} } - - - - - -function scene_Camera_update__P2778(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.elapsed___9056 = undefined; - s.percentComplete___9070 = undefined; - s.damp___9077 = undefined; - s.f___9086 = undefined; - s.x___9092 = undefined; - s.y___9099 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = Sprite_x__P2334_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 1328; s.pc = 9; return s.tmp_3; - case 9: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_lastUpdatedSpriteX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1329; s.pc = 10; return s.tmp_2; - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_lastUpdatedSpriteY"] = (s.tmp_1); - s.tmp_0 = scene_Camera_offsetX__P2767_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_x__P2334_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1330; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1331; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P2769_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1332; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1333; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetX"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetY"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - r0 = s.arg0.fields["shakeStartTime"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = s.arg0.fields["shakeStartTime"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___9056 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___9056 >= s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["shakeStartTime"] = (undefined); - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_0 = r0; - r0 = (s.elapsed___9056 / s.tmp_0); - s.percentComplete___9070 = (r0); - s.damp___9077 = (1); - r0 = (s.percentComplete___9070 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___9070); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1336; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___9077 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___9077); - s.f___9086 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___9086); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___9092 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___9086); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___9099 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___9092); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetY"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___9099); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Camera_update__P2778.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +tiles_TileMapData_getTileset__P66924.info = {"start":7287,"length":57,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} -function scene_Camera_update__P2778_mk(s) { +function tiles_TileMapData_getTileset__P66924_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P2778, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileset__P66924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - elapsed___9056: undefined, - percentComplete___9070: undefined, - damp___9077: undefined, - f___9086: undefined, - x___9092: undefined, - y___9099: undefined, arg0: undefined, } } @@ -11892,103 +11667,7 @@ function scene_Camera_update__P2778_mk(s) { -function scene_Camera_offsetY__P2769(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.scene___9118 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1319; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___9118 = (r0); - r0 = s.scene___9118.fields["tileMap"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.scene___9118.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_10 = tiles_TileMap_offsetY__P2722_mk(s); - r0 = s.scene___9118.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 1321; s.pc = 6; return s.tmp_10; - case 6: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim.Math_.floor(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); - { step = 4; continue; } - case 3: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.Math_.floor(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_offsetY"] = (s.tmp_1); - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Camera_offsetY__P2769.info = {"start":1152,"length":291,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} - -function scene_Camera_offsetY__P2769_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_offsetY__P2769, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - scene___9118: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tiles_TileMap_offsetY__P2722(s) { +function game_showLongText__P67159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11998,50 +11677,262 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.width___74753 = undefined; + s.height___74754 = undefined; + s.top___74755 = undefined; + s.left___74756 = undefined; + s.dialog___74867 = undefined; + s.s___74875 = undefined; + s.pressed___74891 = undefined; + s.done___74892 = undefined; + s.upPressed___74893 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P2724_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1220; s.pc = 3; return s.tmp_3; - case 3: + s.tmp_0 = console_inspect__P64601_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1518; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.arg0 = (r0); + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1519; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = game_pushScene__P67202_mk(s); + s.callLocIdx = 1520; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1521; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 2); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1221; s.pc = 2; return s.tmp_1; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 1: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 4); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.height___74754 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.height___74754); + s.top___74755 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___74753); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.left___74756 = (r0); + { step = 7; continue; } case 2: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 4); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.height___74754 = (r0); + s.top___74755 = (0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___74753); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.left___74756 = (r0); + { step = 7; continue; } + case 3: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.height___74754 = (r0); + s.top___74755 = (0); + s.left___74756 = (0); + { step = 7; continue; } + case 4: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.height___74754 = (r0); + s.top___74755 = (0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.width___74753); + s.left___74756 = (r0); + { step = 7; continue; } + case 5: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 << 1); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, 3); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 << 1); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, 3); + s.height___74754 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.height___74754); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.top___74755 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___74753); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.left___74756 = (r0); + { step = 7; continue; } + case 6: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.width___74753 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.height___74754 = (r0); + s.top___74755 = (0); + s.left___74756 = (0); + case 7: + r0 = pxsim_pxtcore_mkClassInstance(game_Dialog__C67120_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Dialog_constructor__P67123_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.width___74753; + s.tmp_1.arg2 = s.height___74754; + s.tmp_1.arg3 = undefined; + s.tmp_1.arg4 = undefined; + s.tmp_1.arg5 = undefined; + s.callLocIdx = 1522; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1222; s.pc = 1; return s.tmp_0; - case 1: + s.dialog___74867 = (s.tmp_0); + s.tmp_0 = sprites_create__P66475_mk(s); + r0 = s.dialog___74867.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 1523; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.s___74875 = (r0); + s.tmp_0 = Sprite_top__P66603_mk(s); + s.tmp_0.arg0 = s.s___74875; + s.tmp_0.arg1 = s.top___74755; + s.callLocIdx = 1524; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = Sprite_left__P66599_mk(s); + s.tmp_0.arg0 = s.s___74875; + s.tmp_0.arg1 = s.left___74756; + s.callLocIdx = 1525; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = game_Dialog__C67120_v1_2_mk(s); + s.tmp_0.arg0 = s.dialog___74867; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_Dialog__C67120_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setText; + s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + r0 = pxsim_pxtrt.mklocRef(); + s.pressed___74891 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pressed___74891, true); + r0 = pxsim_pxtrt.mklocRef(); + s.done___74892 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.done___74892, false); + r0 = pxsim_pxtrt.mklocRef(); + s.upPressed___74893 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.upPressed___74893, true); + r0 = pxsim_pxtcore_mkAction(4, game_showLongText_inline__P74895); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___74867); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___74891); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___74892); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.upPressed___74893); + s.tmp_1 = game_onUpdate__P67222_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1532; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, game_showLongText_inline__P74943); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___74892); + s.tmp_1 = pauseUntil__P64586_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1533; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1534; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P2722.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +game_showLongText__P67159.info = {"start":24237,"length":3072,"line":649,"column":4,"endLine":742,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"showLongText","argumentNames":["str","layout"]} -function tiles_TileMap_offsetY__P2722_mk(s) { +function game_showLongText__P67159_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P2722, depth: s.depth + 1, + parent: s, fn: game_showLongText__P67159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + width___74753: undefined, + height___74754: undefined, + top___74755: undefined, + left___74756: undefined, + dialog___74867: undefined, + s___74875: undefined, + pressed___74891: undefined, + done___74892: undefined, + upPressed___74893: undefined, arg0: undefined, arg1: undefined, } } @@ -12050,7 +11941,7 @@ function tiles_TileMap_offsetY__P2722_mk(s) { -function scene_Camera_offsetY__P2768(s) { +function game_showLongText_inline__P74895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12060,32 +11951,188 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + s.currentState___74898 = undefined; + s.moveBack___74923 = undefined; + s.tmp_0 = game_BaseDialog__C67102_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C67102_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.A___66313; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 24; return s.tmp_1; + case 24: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = controller_Button__C66389_v0_1_mk(s); + s.tmp_2.arg0 = globals.down___66318; + if (!checkSubtype(s.tmp_2.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isPressed; + s.pc = 25; return s.tmp_2; + case 25: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.currentState___74898 = (s.tmp_3); + s.tmp_0 = r0 = s.currentState___74898; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], true); + s.tmp_1 = game_Dialog_hasNext__P67124_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 1526; s.pc = 26; return s.tmp_1; + case 26: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = game_Dialog_nextPage__P67126_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 1527; s.pc = 27; return s.tmp_2; + case 27: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_setBackgroundImage__P67084_mk(s); + s.tmp_0.arg0 = null; + s.callLocIdx = 1528; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.tmp_0 = game_popScene__P67203_mk(s); + s.callLocIdx = 1529; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.caps[2], true); + case 6: + { step = 12; continue; } + case 7: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + r0 = pxsim_numops_toBoolDecr(s.currentState___74898); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 9: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 10; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], false); + case 10: + case 11: + case 12: + s.tmp_0 = controller_Button__C66389_v0_1_mk(s); + s.tmp_0.arg0 = globals.up___66316; + if (!checkSubtype(s.tmp_0.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; + s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + s.moveBack___74923 = (r0); + s.tmp_0 = r0 = s.moveBack___74923; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 14: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 17; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[3], true); + s.tmp_1 = game_Dialog_hasPrev__P67125_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 1530; s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_2 = game_Dialog_prevPage__P67127_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 1531; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + case 15: + case 16: + { step = 22; continue; } + case 17: + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = pxsim_numops_toBoolDecr(s.moveBack___74923); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 19: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 20; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[3], false); + case 20: + case 21: + case 22: + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P2768.info = {"start":1084,"length":59,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} -scene_Camera_offsetY__P2768.isGetter = true; +game_showLongText_inline__P74895.info = {"start":26290,"length":931,"line":710,"column":22,"endLine":738,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function scene_Camera_offsetY__P2768_mk(s) { +function game_showLongText_inline__P74895_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P2768, depth: s.depth + 1, + parent: s, fn: game_showLongText_inline__P74895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + currentState___74898: undefined, + moveBack___74923: undefined, } } -function scene_Camera_offsetX__P2767(s) { +function game_showLongText_inline__P74943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12095,93 +12142,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___9156 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1316; s.pc = 5; return s.tmp_0; - case 5: + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + return leave(s, r0) + default: oops() +} } } +game_showLongText_inline__P74943.info = {"start":27243,"length":10,"line":740,"column":19,"endLine":740,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} + +function game_showLongText_inline__P74943_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_showLongText_inline__P74943, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function game_popScene__P67203(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.oldScene___74963 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1581; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.scene___9156 = (r0); - r0 = s.scene___9156.fields["tileMap"]; - s.tmp_0 = r0; + s.oldScene___74963 = (r0); + s.tmp_0 = r0 = globals._sceneStack___69227; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___9156.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_Array__length(globals._sceneStack___69227); case 2: // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_10 = tiles_TileMap_offsetX__P2721_mk(s); - r0 = s.scene___9156.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 1318; s.pc = 6; return s.tmp_10; - case 6: + r0 = pxsim_Array_.pop(globals._sceneStack___69227); + globals._scene___69226 = (r0); + s.tmp_0 = control_popEventContext__P64629_mk(s); + s.callLocIdx = 1582; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim.Math_.floor(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); - { step = 4; continue; } + { step = 6; continue; } case 3: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.Math_.floor(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_offsetX"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(globals._scene___69226); + if (!r0) { step = 4; continue; } + s.tmp_0 = control_popEventContext__P64629_mk(s); + s.callLocIdx = 1583; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___69226 = (undefined); case 4: + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals._scene___69226); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P67382_mk(s); + s.callLocIdx = 1584; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___69229); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P74984); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___74963); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___69229; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1586; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P2767.info = {"start":784,"length":291,"line":28,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +game_popScene__P67203.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function scene_Camera_offsetX__P2767_mk(s) { +function game_popScene__P67203_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P2767, depth: s.depth + 1, + parent: s, fn: game_popScene__P67203, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - scene___9156: undefined, - arg0: undefined, - arg1: undefined, + oldScene___74963: undefined, } } -function tiles_TileMap_offsetX__P2721(s) { +function game_popScene_inline__P74984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12193,57 +12258,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P2723_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1217; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1218; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1585; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P2721.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +game_popScene_inline__P74984.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function tiles_TileMap_offsetX__P2721_mk(s) { +function game_popScene_inline__P74984_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P2721, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P74984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Camera_offsetX__P2766(s) { +function particles_enableAll__P67382(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12253,32 +12296,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + s.sources___74988 = undefined; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1863; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___74988 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___74988); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_0.arg0 = s.sources___74988; + s.tmp_0.arg1 = particles_enableAll_inline__P74994; + s.callLocIdx = 1865; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P69572_mk(s); + s.callLocIdx = 1866; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P2766.info = {"start":716,"length":59,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} -scene_Camera_offsetX__P2766.isGetter = true; +particles_enableAll__P67382.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function scene_Camera_offsetX__P2766_mk(s) { +function particles_enableAll__P67382_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P2766, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P67382, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + sources___74988: undefined, } } -function Sprite_y__P2336(s) { +function particles_enableAll_inline__P74994(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12292,35 +12349,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_height"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_4 = r0; - r0 = pxsim.Math_.idiv(s.tmp_4, 512); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = particles_ParticleSource_enabled__P67363_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1864; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = true; + return leave(s, r0) default: oops() } } } -Sprite_y__P2336.info = {"start":2893,"length":100,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P2336.isGetter = true; +particles_enableAll_inline__P74994.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function Sprite_y__P2336_mk(s) { +function particles_enableAll_inline__P74994_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2336, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P74994, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, } } @@ -12328,7 +12374,7 @@ function Sprite_y__P2336_mk(s) { -function Fx_div__P162(s) { +function particles_particleSources__P69576(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12338,34 +12384,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 << 8); - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + s.sources___75162 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1867; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["particleSources"]; + s.sources___75162 = (r0); + r0 = s.sources___75162; return leave(s, r0) default: oops() } } } -Fx_div__P162.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +particles_particleSources__P69576.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function Fx_div__P162_mk(s) { +function particles_particleSources__P69576_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P162, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P69576, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + sources___75162: undefined, } } -function Sprite_x__P2334(s) { +function particles_pruneParticles__P69572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12375,47 +12420,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_4 = r0; - r0 = pxsim.Math_.idiv(s.tmp_4, 512); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.sources___74999 = undefined; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1845; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___74999 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___74999); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1 = helpers_arraySlice__P64334_mk(s); + s.tmp_1.arg0 = s.sources___74999; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___74999); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1846; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P75008; + s.callLocIdx = 1848; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_x__P2334.info = {"start":2537,"length":99,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P2334.isGetter = true; +particles_pruneParticles__P69572.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function Sprite_x__P2334_mk(s) { +function particles_pruneParticles__P69572_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P2334, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P69572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, + sources___74999: undefined, } } -function controller_moveSprite__P2148(s) { +function particles_pruneParticles_inline__P75008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12427,45 +12476,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller__moveSpriteInternal__P2133_mk(s); - s.tmp_1 = controller__player1__P2109_mk(s); - s.callLocIdx = 316; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = s.arg2; - s.callLocIdx = 317; s.pc = 1; return s.tmp_0; + s.tmp_0 = particles_ParticleSource__prune__P67358_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1847; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_moveSprite__P2148.info = {"start":14763,"length":142,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} +particles_pruneParticles_inline__P75008.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function controller_moveSprite__P2148_mk(s) { +function particles_pruneParticles_inline__P75008_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_moveSprite__P2148, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles_inline__P75008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function controller_Controller__moveSpriteInternal__P2133(s) { +function particles_ParticleSource__prune__P67358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12475,144 +12512,137 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cp___9342 = undefined; + s.scene___75038 = undefined; + s.sources___75046 = undefined; + s.current___75060 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 15; continue; } + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); case 1: + r0 = s.arg0.fields["head"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } case 2: - s.tmp_5 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 277; s.pc = 16; return s.tmp_5; - case 16: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); + case 3: + // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_6 = controller_Controller__controlledSprites__P2121_mk(s); - s.tmp_6.arg0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_6.arg1 = r0; - s.callLocIdx = 278; s.pc = 17; return s.tmp_6; - case 17: - r0 = s.retval; - case 3: + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["head"]; + r0 = r0.fields["next"]; + s.tmp_3 = r0; + r0 = (s.arg0).fields["head"] = (s.tmp_3); + { step = 1; continue; } case 4: - r0 = pxsim_pxtcore_mkAction(1, cp_inline__P9345); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFind__P111_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 279; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 280; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.cp___9342 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cp___9342); + r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C2111_VT); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["head"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - s.tmp_3 = controller_ControlledSprite_constructor__P2113_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.tmp_3.arg3 = s.arg3; - s.callLocIdx = 281; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.cp___9342 = (s.tmp_2); - s.tmp_1 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 282; s.pc = 21; return s.tmp_1; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 13; continue; } + s.tmp_5 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1820; s.pc = 21; return s.tmp_5; case 21: r0 = s.retval; + s.scene___75038 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___75038); + if (!r0) { step = 7; continue; } + r0 = s.scene___75038.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.cp___9342); - case 5: - case 6: - r0 = s.cp___9342.fields["vx"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: - r0 = (s.arg2 == 0); case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - s.tmp_2 = Sprite_vx__P2339_mk(s); - r0 = s.cp___9342.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 283; s.pc = 22; return s.tmp_2; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1821; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - case 9: - case 10: - r0 = s.cp___9342.fields["vy"]; - s.tmp_0 = r0; + s.sources___75046 = (r0); + s.tmp_0 = r0 = s.sources___75046; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } + if (r0) { step = 9; continue; } r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = (s.arg3 == 0); - case 12: + { step = 10; continue; } + case 9: + r0 = pxsim_Array__length(s.sources___75046); + case 10: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - s.tmp_2 = Sprite_vy__P2341_mk(s); - r0 = s.cp___9342.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 284; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; + if (!r0) { step = 11; continue; } + r0 = pxsim_Array_.removeElement(s.sources___75046, s.arg0); + case 11: + case 12: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == undefined); case 13: case 14: - r0 = (s.cp___9342).fields["vx"] = (s.arg2); - r0 = (s.cp___9342).fields["vy"] = (s.arg3); + r0 = s.arg0.fields["head"]; + s.current___75060 = (r0); case 15: + s.tmp_0 = r0 = s.current___75060; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___75060.fields["next"]; + case 17: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = s.current___75060.fields["next"]; + r0 = r0.fields["lifespan"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 <= 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 18; continue; } + r0 = s.current___75060.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___75060).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___75060.fields["next"]; + s.current___75060 = (r0); + case 19: + { step = 15; continue; } + case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__moveSpriteInternal__P2133.info = {"start":6039,"length":617,"line":202,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSpriteInternal","argumentNames":["this","sprite","vx","vy"]} +particles_ParticleSource__prune__P67358.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function controller_Controller__moveSpriteInternal__P2133_mk(s) { +function particles_ParticleSource__prune__P67358_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__moveSpriteInternal__P2133, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P67358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12620,19 +12650,17 @@ function controller_Controller__moveSpriteInternal__P2133_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - cp___9342: undefined, + scene___75038: undefined, + sources___75046: undefined, + current___75060: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function cp_inline__P9345(s) { +function helpers_arraySlice__P64334(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12642,36 +12670,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___75083 = undefined; + s.len___75085 = undefined; + s.i___75119 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["id"]; + r0 = pxsim_Array__mk(); + s.res___75083 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___75085 = (r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - r0 = s.caps[0].fields["id"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg1 = (0); + { step = 4; continue; } + case 1: + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_max__P64349_mk(s); + r0 = (s.len___75085 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 10; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.arg1 = (r0); + case 2: + case 3: + case 4: + r0 = (s.arg1 > s.len___75085); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___75083; + { step = 15; continue; } + case 5: + case 6: + r0 = (s.arg2 === undefined); s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.arg2 = (s.len___75085); + { step = 10; continue; } + case 7: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.len___75085 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___75085); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___75085); + case 11: + case 12: + s.i___75119 = (s.arg1); + case 13: + r0 = (s.i___75119 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___75083; + r0 = pxsim_Array__getAt(s.arg0, s.i___75119); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___75119 + 1); + s.i___75119 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___75083; + case 15: return leave(s, r0) default: oops() } } } -cp_inline__P9345.info = {"start":6268,"length":26,"line":205,"column":50,"endLine":205,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} +helpers_arraySlice__P64334.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function cp_inline__P9345_mk(s) { +function helpers_arraySlice__P64334_mk(s) { checkStack(s.depth); return { - parent: s, fn: cp_inline__P9345, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P64334, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + res___75083: undefined, + len___75085: undefined, + i___75119: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_vy__P2341(s) { +function particles_ParticleSource_enabled__P67363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12687,27 +12793,53 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P67362_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1824; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 1); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 ^ 1); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); + r0 = (s.arg0).fields["timer"] = (0); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vy__P2341.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +particles_ParticleSource_enabled__P67363.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} -function Sprite_vy__P2341_mk(s) { +function particles_ParticleSource_enabled__P67363_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P2341, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P67363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, } } @@ -12716,7 +12848,7 @@ function Sprite_vy__P2341_mk(s) { -function Sprite_vy__P2340(s) { +function particles_ParticleSource_enabled__P67362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12731,22 +12863,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_vy"]; + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); + r0 = pxsim_Boolean__bang(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vy__P2340.info = {"start":3595,"length":60,"line":143,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P2340.isGetter = true; +particles_ParticleSource_enabled__P67362.info = {"start":6622,"length":76,"line":216,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} +particles_ParticleSource_enabled__P67362.isGetter = true; -function Sprite_vy__P2340_mk(s) { +function particles_ParticleSource_enabled__P67362_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P2340, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P67362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -12754,7 +12898,7 @@ function Sprite_vy__P2340_mk(s) { -function Sprite_vx__P2339(s) { +function control_popEventContext__P64629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12764,42 +12908,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.ctx___75169 = undefined; + s.context___75177 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___68747); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + r0 = pxsim_Array_.pop(globals.eventContexts___68747); + s.ctx___75169 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___75169); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + s.tmp_2 = control_EventContext_unregister__P64621_mk(s); + s.tmp_2.arg0 = s.ctx___75169; + s.callLocIdx = 75; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___68747; + r0 = pxsim_Array__length(globals.eventContexts___68747); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + s.context___75177 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___75177); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P64620_mk(s); + s.tmp_0.arg0 = s.context___75177; + s.callLocIdx = 76; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + { step = 6; continue; } + case 5: + globals.eventContexts___68747 = (undefined); + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P2339.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +control_popEventContext__P64629.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function Sprite_vx__P2339_mk(s) { +function control_popEventContext__P64629_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2339, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P64629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, + ctx___75169: undefined, + context___75177: undefined, } } -function Sprite_vx__P2338(s) { +function control_EventContext_unregister__P64621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12809,27 +12986,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___75198 = undefined; + s.unnamed352___U1 = undefined; + s.unnamed353___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); + s.h___75198 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed352___U1 = (r0); + s.unnamed353___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed353___U2; + r0 = pxsim_Array__length(s.unnamed352___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed352___U1, s.unnamed353___U2); + s.h___75198 = (r0); + s.tmp_2 = control_EventHandler_unregister__P68741_mk(s); + s.tmp_2.arg0 = s.h___75198; + s.callLocIdx = 68; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed353___U2 + 1); + s.unnamed353___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed352___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_vx__P2338.info = {"start":3264,"length":60,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P2338.isGetter = true; +control_EventContext_unregister__P64621.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function Sprite_vx__P2338_mk(s) { +function control_EventContext_unregister__P64621_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2338, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P64621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___75198: undefined, + unnamed352___U1: undefined, + unnamed353___U2: undefined, arg0: undefined, } } @@ -12837,7 +13047,7 @@ function Sprite_vx__P2338_mk(s) { -function controller_Controller__controlledSprites__P2121(s) { +function control_EventHandler_unregister__P68741(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12849,43 +13059,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 272; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + if (!checkSubtype(r0, control_EventHandler__C68739_VT)) failedCast(r0); + r0 = s.arg0.fields["src"]; s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; + r0 = s.arg0.fields["value"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P68743, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P2121.info = {"start":3300,"length":134,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +control_EventHandler_unregister__P68741.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function controller_Controller__controlledSprites__P2121_mk(s) { +function control_EventHandler_unregister__P68741_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P2121, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P68741, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller__controlledSprites__P2120(s) { +function control_doNothing__P68743(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12895,43 +13101,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 271; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P2120.info = {"start":3158,"length":132,"line":101,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} -controller_Controller__controlledSprites__P2120.isGetter = true; +control_doNothing__P68743.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function controller_Controller__controlledSprites__P2120_mk(s) { +function control_doNothing__P68743_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P2120, depth: s.depth + 1, + parent: s, fn: control_doNothing__P68743, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, } } -function controller_ControlledSprite_constructor__P2113(s) { +function control_EventContext_register__P64620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12941,40 +13128,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___75190 = undefined; + s.unnamed350___U1 = undefined; + s.unnamed351___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ControlledSprite__C2111_VT)) failedCast(r0); - r0 = (s.arg0).fields["s"] = (s.arg1); - r0 = (s.arg0).fields["vx"] = (s.arg2); - r0 = (s.arg0).fields["vy"] = (s.arg3); + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); + s.h___75190 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed350___U1 = (r0); + s.unnamed351___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed351___U2; + r0 = pxsim_Array__length(s.unnamed350___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed350___U1, s.unnamed351___U2); + s.h___75190 = (r0); + s.tmp_2 = control_EventHandler_register__P68740_mk(s); + s.tmp_2.arg0 = s.h___75190; + s.callLocIdx = 66; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed351___U2 + 1); + s.unnamed351___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed350___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P68745_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 67; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ControlledSprite_constructor__P2113.info = {"start":1876,"length":117,"line":60,"column":8,"endLine":64,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} +control_EventContext_register__P64620.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function controller_ControlledSprite_constructor__P2113_mk(s) { +function control_EventContext_register__P64620_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ControlledSprite_constructor__P2113, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P64620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___75190: undefined, + unnamed350___U1: undefined, + unnamed351___U2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function helpers_arrayFind__P111(s) { +function helpers_arrayForEach__P64328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12984,60 +13198,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___9413 = undefined; - s.i___9416 = undefined; - s.v___9421 = undefined; + s.len___73704 = undefined; + s.i___73707 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___9413 = (r0); - s.i___9416 = (0); + s.len___73704 = (r0); + s.i___73707 = (0); case 1: - r0 = (s.i___9416 < s.len___9413); + r0 = (s.i___73707 < s.len___73704); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___9416); - s.v___9421 = (r0); + if (!r0) { step = 2; continue; } s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___9421; - s.tmp_1.arg1 = s.i___9416; + r0 = pxsim_Array__getAt(s.arg0, s.i___73707); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___73707; setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 8; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.v___9421; - { step = 5; continue; } - case 2: + s.callLocIdx = 6; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.i___9416 + 1); - s.i___9416 = (r0); + r0 = s.retval; + r0 = (s.i___73707 + 1); + s.i___73707 = (r0); { step = 1; continue; } - case 4: + case 2: r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -helpers_arrayFind__P111.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} +helpers_arrayForEach__P64328.info = {"start":7439,"length":250,"line":254,"column":4,"endLine":259,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayForEach","argumentNames":["arr","callbackfn"]} -function helpers_arrayFind__P111_mk(s) { +function helpers_arrayForEach__P64328_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P111, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P64328, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___9413: undefined, - i___9416: undefined, - v___9421: undefined, + len___73704: undefined, + i___73707: undefined, arg0: undefined, arg1: undefined, } } @@ -13046,7 +13249,7 @@ function helpers_arrayFind__P111_mk(s) { -function controller__player1__P2109(s) { +function game_pushScene__P67202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13056,71 +13259,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___4723); + s.oldScene___76089 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1575; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.oldScene___76089 = (r0); + s.tmp_0 = particles_clearAll__P67380_mk(s); + s.callLocIdx = 1576; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_disableAll__P67381_mk(s); + s.callLocIdx = 1577; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___69227); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + globals._sceneStack___69227 = (r0); case 1: - r0 = pxsim_Array__getAt(globals._players___4723, 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = pxsim_Array__push(globals._sceneStack___69227, globals._scene___69226); + s.tmp_0 = game_init__P69234_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1578; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___69228); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2115_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___2096); - r0 = pxsim_Array__push(s.tmp_6, globals.up___2097); - r0 = pxsim_Array__push(s.tmp_6, globals.right___2098); - r0 = pxsim_Array__push(s.tmp_6, globals.down___2099); - r0 = pxsim_Array__push(s.tmp_6, globals.A___2094); - r0 = pxsim_Array__push(s.tmp_6, globals.B___2095); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___2100); - s.tmp_7 = controller_Controller_constructor__P2119_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 263; s.pc = 5; return s.tmp_7; - case 5: + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P76106); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___76089); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___69228; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1580; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; case 3: case 4: - r0 = pxsim_Array__getAt(globals._players___4723, 0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P2109.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +game_pushScene__P67202.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function controller__player1__P2109_mk(s) { +function game_pushScene__P67202_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P2109, depth: s.depth + 1, + parent: s, fn: game_pushScene__P67202, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + oldScene___76089: undefined, } } -function controller_Controller_constructor__P2119(s) { +function game_pushScene_inline__P76106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13130,120 +13332,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___9279 = undefined; - s.i___9287 = undefined; - s.i___9305 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1579; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); - s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___9279 = (r0); - s.i___9287 = (0); - case 2: - r0 = (s.i___9287 < 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2170_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P2176_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___9279 + s.i___9287); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 269; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = s.arg0.fields["buttons"]; - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_3, s.tmp_1); - r0 = (s.i___9287 + 1); - s.i___9287 = (r0); - { step = 2; continue; } - case 3: - case 4: - s.i___9305 = (0); - case 5: - s.tmp_1 = r0 = s.i___9305; - r0 = s.arg0.fields["buttons"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___9305); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___9305 + 1); - s.i___9305 = (r0); - { step = 5; continue; } - case 6: - s.tmp_0 = controller_addController__P4787_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 270; s.pc = 8; return s.tmp_0; - case 8: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P2119.info = {"start":2452,"length":696,"line":82,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} +game_pushScene_inline__P76106.info = {"start":5091,"length":18,"line":157,"column":39,"endLine":157,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function controller_Controller_constructor__P2119_mk(s) { +function game_pushScene_inline__P76106_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P2119, depth: s.depth + 1, + parent: s, fn: game_pushScene_inline__P76106, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - leftId___9279: undefined, - i___9287: undefined, - i___9305: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function controller_addController__P4787(s) { +function game_init__P69234(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13257,36 +13376,59 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___4723); + r0 = pxsim_numops_toBoolDecr(globals._scene___69226); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._players___4723 = (r0); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0; case 2: - s.tmp_0 = r0 = globals._players___4723; - r0 = s.arg0.fields["playerIndex"]; + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C67042_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P67065_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P64628_mk(s); + s.callLocIdx = 1572; s.pc = 6; return s.tmp_5; + case 6: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___69226; + s.callLocIdx = 1573; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + globals._scene___69226 = (s.tmp_3); + case 3: + case 4: + s.tmp_0 = scene_Scene_init__P67066_mk(s); + s.tmp_0.arg0 = globals._scene___69226; + s.callLocIdx = 1574; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_addController__P4787.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +game_init__P69234.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function controller_addController__P4787_mk(s) { +function game_init__P69234_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P4787, depth: s.depth + 1, + parent: s, fn: game_init__P69234, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, } } @@ -13294,7 +13436,7 @@ function controller_addController__P4787_mk(s) { -function sprites_create__P2256(s) { +function scene_Scene_init__P67066(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13304,87 +13446,184 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___9449 = undefined; - s.sprite___9452 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 555; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: + case 2: + s.tmp_1 = power_poke__P66133_mk(s); + s.callLocIdx = 1344; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); + r0 = (s.arg0).fields["spriteNextId"] = (0); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76135); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 8; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1347; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P66333; + s.callLocIdx = 1348; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.scene___9449 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2321_VT); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76159); s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P2368_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 556; s.pc = 2; return s.tmp_1; - case 2: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 15; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1350; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - s.sprite___9452 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P2388_mk(s); - s.tmp_0.arg0 = s.sprite___9452; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 557; s.pc = 3; return s.tmp_0; - case 3: + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76172); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 55; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1354; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76193); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 90; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1356; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76201); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 150; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1360; s.pc = 10; return s.tmp_1; + case 10: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C2491_v0_2_mk(s); - r0 = s.scene___9449.fields["physicsEngine"]; + s.tmp_0 = control_EventContext_registerFrameHandler__P64622_mk(s); + r0 = s.arg0.fields["eventContext"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___9452; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P66193; + s.callLocIdx = 1361; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = multiplayer_initServer__P67587_mk(s); + s.callLocIdx = 1362; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P9467); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P76231); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P9474); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___9452); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.scene___9449.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 558; s.pc = 6; return s.tmp_3; - case 6: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___67064; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1364; s.pc = 13; return s.tmp_1; + case 13: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 560; s.pc = 5; return s.tmp_2; - case 5: + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Scene_init__P67066.info = {"start":4432,"length":2515,"line":127,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} + +function scene_Scene_init__P67066_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_init__P67066, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function scene_Scene_init_inline__P76135(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; + s.tmp_2 = r0; + r0 = s.caps[0].fields["eventContext"]; + r0 = r0.fields["deltaTimeMillis"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P66365_mk(s); + r0 = s.caps[0].fields["eventContext"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1346; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = s.sprite___9452; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create__P2256.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +scene_Scene_init_inline__P76135.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function sprites_create__P2256_mk(s) { +function scene_Scene_init_inline__P76135_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P2256, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - scene___9449: undefined, - sprite___9452: undefined, - arg0: undefined, - arg1: undefined, } } -function forEach_inline__P9467(s) { +function scene_Scene_init_inline__P76159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13394,32 +13633,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + s.tmp_0 = PhysicsEngine__C66710_v4_2_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + r0 = s.caps[0].fields["eventContext"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg1 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P9467.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +scene_Scene_init_inline__P76159.info = {"start":5234,"length":159,"line":143,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function forEach_inline__P9467_mk(s) { +function scene_Scene_init_inline__P76159_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P9467, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function sprites_create_inline__P9474(s) { +function scene_Scene_init_inline__P76172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13429,44 +13677,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 559; s.pc = 1; return s.tmp_0; + s.dt___76173 = undefined; + s.s___76181 = undefined; + s.unnamed386___U2 = undefined; + s.unnamed387___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["deltaTimeMillis"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 / 1000); + s.dt___76173 = (r0); + s.tmp_0 = scene_Camera_update__P66997_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1352; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___76181 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed386___U2 = (r0); + s.unnamed387___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed387___U3; + r0 = pxsim_Array__length(s.unnamed386___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed386___U2, s.unnamed387___U3); + s.s___76181 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___76181; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___76173; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 559; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 559; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 559; s.pc = 1; return s.tmp_0; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__update"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__update"], 3); s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1353; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; } } - case 1: + case 4: r0 = s.retval; + r0 = (s.unnamed387___U3 + 1); + s.unnamed387___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed386___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create_inline__P9474.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +scene_Scene_init_inline__P76172.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function sprites_create_inline__P9474_mk(s) { +function scene_Scene_init_inline__P76172_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create_inline__P9474, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76172, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + dt___76173: undefined, + s___76181: undefined, + unnamed386___U2: undefined, + unnamed387___U3: undefined, } } -function PhysicsEngine_addSprite__P2493(s) { +function scene_Scene_init_inline__P76193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13476,33 +13760,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); + s.tmp_0 = scene_Scene_render__P67071_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1355; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P2493.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +scene_Scene_init_inline__P76193.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function PhysicsEngine_addSprite__P2493_mk(s) { +function scene_Scene_init_inline__P76193_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P2493, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, } } -function Sprite_setKind__P2388(s) { +function scene_Scene_init_inline__P76201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13512,135 +13793,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___9510 = undefined; - s.overlapMap___9539 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); - s.tmp_0 = r0; + s.tmp_0 = r0 = globals.stats___67167; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); + r0 = globals.control_EventContext_onStats___64617; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - { step = 15; continue; } - case 3: - case 4: - s.tmp_3 = game_currentScene__P2979_mk(s); - s.callLocIdx = 641; s.pc = 16; return s.tmp_3; - case 16: + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = globals.control_EventContext_onStats___64617; + if ((globals.control_EventContext_lastStats___64616) && (globals.control_EventContext_lastStats___64616).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___64616); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___64616) + ""; } + case 8: r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___9510 = (r0); - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["_kind"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9510, s.tmp_2); - case 6: - // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - s.tmp_4 = sprites_SpriteSet_remove__P2450_mk(s); - r0 = s.arg0.fields["_kind"]; + r0 = s.caps[0].fields["allSprites"]; + s.tmp_8 = r0; + r0 = pxsim_Array__length(s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 9); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 9: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(" sprites:", s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9510, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 642; s.pc = 17; return s.tmp_4; - case 17: + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 10: r0 = s.retval; - case 7: - case 8: - r0 = (s.arg1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9510, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C2443_VT); s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P2445_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 643; s.pc = 18; return s.tmp_5; - case 18: + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2.arg0 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 1357; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___9510, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P2448_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9510, s.arg1); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___67166); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C66710_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 644; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; + s.pc = 11; return s.tmp_0; case 11: + r0 = s.retval; + case 5: + case 6: + s.tmp_0 = game_consoleOverlay_draw__P67326_mk(s); + s.callLocIdx = 1358; s.pc = 12; return s.tmp_0; case 12: - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 645; s.pc = 20; return s.tmp_0; - case 20: r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___9539 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___9539, s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___9539; - s.tmp_4 = r0 = s.arg1; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); + s.tmp_0 = power_checkDeepSleep__P66134_mk(s); + s.callLocIdx = 1359; s.pc = 13; return s.tmp_0; case 13: - case 14: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___9539, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); - r0 = (s.arg0).fields["_kind"] = (s.arg1); - case 15: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setKind__P2388.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +scene_Scene_init_inline__P76201.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function Sprite_setKind__P2388_mk(s) { +function scene_Scene_init_inline__P76201_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P2388, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13648,17 +13885,16 @@ function Sprite_setKind__P2388_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___9510: undefined, - overlapMap___9539: undefined, - arg0: undefined, - arg1: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function sprites_SpriteSet_remove__P2450(s) { +function scene_Scene_init_inline__P76231(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13668,58 +13904,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___9587 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___9587 = (r0); - r0 = (s.i___9587 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P100_mk(s); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___9587; - s.tmp_1.arg2 = 1; - s.callLocIdx = 799; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - r0 = true; - { step = 3; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1363; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = false; - case 3: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P2450.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +scene_Scene_init_inline__P76231.info = {"start":6923,"length":12,"line":185,"column":39,"endLine":185,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function sprites_SpriteSet_remove__P2450_mk(s) { +function scene_Scene_init_inline__P76231_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P2450, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P76231, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - i___9587: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_add__P2448(s) { +function multiplayer_initServer__P67587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13729,65 +13944,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + s.p___76247 = undefined; + r0 = pxsim.multiplayer.getOrigin(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 === "server"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } + if (!r0) { step = 3; continue; } + s.tmp_2 = control_EventContext_registerFrameHandler__P64622_mk(s); + s.tmp_3 = game_eventContext__P67201_mk(s); + s.callLocIdx = 2085; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 210; + s.tmp_2.arg2 = multiplayer_initServer_inline__P76240; + s.callLocIdx = 2086; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + s.p___76247 = (1); case 1: + r0 = (s.p___76247 <= 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P69682_mk(s); + s.tmp_1.arg0 = s.p___76247; + s.callLocIdx = 2087; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = (s.p___76247 + 1); + s.p___76247 = (r0); + { step = 1; continue; } case 2: - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); - s.tmp_3 = r0; - r0 = (s.tmp_3 > -1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = false; - { step = 5; continue; } case 3: case 4: - r0 = s.arg0.fields["_sprites"]; - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.arg1); - r0 = true; - case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P2448.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +multiplayer_initServer__P67587.info = {"start":1011,"length":419,"line":29,"column":4,"endLine":41,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} -function sprites_SpriteSet_add__P2448_mk(s) { +function multiplayer_initServer__P67587_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P2448, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer__P67587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, - arg1: undefined, + p___76247: undefined, } } -function sprites_SpriteSet_contains__P2451(s) { +function multiplayer_initServer_inline__P76240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13797,39 +14011,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; + r0 = pxsim.multiplayer.getOrigin(); s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + r0 = (s.tmp_1 === "server"); s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.multiplayer.postImage(globals.screen___66232); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P2451.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +multiplayer_initServer_inline__P76240.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function sprites_SpriteSet_contains__P2451_mk(s) { +function multiplayer_initServer_inline__P76240_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P2451, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer_inline__P76240, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_constructor__P2445(s) { +function multiplayer_registerPlayerConnectionListeners__P69682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13843,22 +14053,38 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P76259); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P64610_mk(s); + s.tmp_1.arg0 = 3241; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.tmp_0; + s.tmp_1.arg3 = 16; + s.callLocIdx = 2089; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P76265); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P64610_mk(s); + s.tmp_1.arg0 = 3242; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.tmp_0; + s.tmp_1.arg3 = 16; + s.callLocIdx = 2091; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P2445.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +multiplayer_registerPlayerConnectionListeners__P69682.info = {"start":1436,"length":415,"line":43,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} -function sprites_SpriteSet_constructor__P2445_mk(s) { +function multiplayer_registerPlayerConnectionListeners__P69682_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P2445, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners__P69682, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13869,7 +14095,7 @@ function sprites_SpriteSet_constructor__P2445_mk(s) { -function Sprite_constructor__P2368(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P76259(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13879,141 +14105,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P2077_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 603; s.pc = 1; return s.tmp_0; + s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P69683_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = true; + s.callLocIdx = 2088; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P2339_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 606; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2341_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 607; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P2343_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 608; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_ay__P2345_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 609; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = Sprite_fx__P2347_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 610; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_fy__P2349_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 611; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.arg0).fields["_sx"] = (256); - r0 = (s.arg0).fields["_sy"] = (256); - r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P2371_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 612; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P2388_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 613; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = (s.arg0).fields["layer"] = (1); - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_constructor__P2368.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +multiplayer_registerPlayerConnectionListeners_inline__P76259.info = {"start":1608,"length":55,"line":47,"column":12,"endLine":47,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function Sprite_constructor__P2368_mk(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P76259_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P2368, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P76259, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - arg0: undefined, - arg1: undefined, } } -function Sprite_fy__P2349(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P76265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14023,51 +14139,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 599; s.pc = 1; return s.tmp_3; + s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P69683_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = false; + s.callLocIdx = 2090; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_fy__P2349.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +multiplayer_registerPlayerConnectionListeners_inline__P76265.info = {"start":1778,"length":56,"line":52,"column":12,"endLine":52,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function Sprite_fy__P2349_mk(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P76265_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2349, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P76265, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, } } -function Sprite_fy__P2348(s) { +function multiplayer_receiveConnectionChangedEvent__P69683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14077,35 +14173,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.c___76270 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 1: + s.c___76270 = (globals.player1___66323); + { step = 5; continue; } + case 2: + s.c___76270 = (globals.player2___66320); + { step = 5; continue; } + case 3: + s.c___76270 = (globals.player3___66321); + { step = 5; continue; } + case 4: + s.c___76270 = (globals.player4___66322); + case 5: + r0 = pxsim_numops_toBoolDecr(s.c___76270); + if (!r0) { step = 6; continue; } + s.tmp_0 = controller_Controller_connected__P66356_mk(s); + s.tmp_0.arg0 = s.c___76270; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2092; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 6: + case 7: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fy__P2348.info = {"start":4947,"length":60,"line":186,"column":4,"endLine":188,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P2348.isGetter = true; +multiplayer_receiveConnectionChangedEvent__P69683.info = {"start":1857,"length":552,"line":56,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} -function Sprite_fy__P2348_mk(s) { +function multiplayer_receiveConnectionChangedEvent__P69683_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2348, depth: s.depth + 1, + parent: s, fn: multiplayer_receiveConnectionChangedEvent__P69683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + c___76270: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_fx__P2347(s) { +function controller_Controller_connected__P66356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14121,36 +14249,44 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 596; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + s.tmp_1 = r0; + r0 = (s.arg1 != s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_connected"] = (s.arg1); + r0 = s.arg0.fields["_connected"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = 2; + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_fx__P2347.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +controller_Controller_connected__P66356.info = {"start":7796,"length":261,"line":254,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} -function Sprite_fx__P2347_mk(s) { +function controller_Controller_connected__P66356_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2347, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P66356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, } } @@ -14159,7 +14295,7 @@ function Sprite_fx__P2347_mk(s) { -function Sprite_fx__P2346(s) { +function controller__player1__P66328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14169,35 +14305,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + r0 = pxsim_numops_toBoolDecr(globals._players___68942); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals._players___68942, 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C66334_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___66315); + r0 = pxsim_Array__push(s.tmp_6, globals.up___66316); + r0 = pxsim_Array__push(s.tmp_6, globals.right___66317); + r0 = pxsim_Array__push(s.tmp_6, globals.down___66318); + r0 = pxsim_Array__push(s.tmp_6, globals.A___66313); + r0 = pxsim_Array__push(s.tmp_6, globals.B___66314); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___66319); + s.tmp_7 = controller_Controller_constructor__P66338_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 263; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___68942, 0); + return leave(s, r0) default: oops() } } } -Sprite_fx__P2346.info = {"start":4604,"length":60,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P2346.isGetter = true; +controller__player1__P66328.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function Sprite_fx__P2346_mk(s) { +function controller__player1__P66328_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2346, depth: s.depth + 1, + parent: s, fn: controller__player1__P66328, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, } } -function Sprite_ay__P2345(s) { +function controller_Controller_constructor__P66338(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14207,42 +14379,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.leftId___73500 = undefined; + s.i___73508 = undefined; + s.i___73526 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); + r0 = (s.arg0).fields["_connected"] = (false); + r0 = (s.arg0).fields["playerIndex"] = (s.arg1); + r0 = (s.arg0).fields["analog"] = (false); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); + r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = (s.tmp_1 * 7); + s.tmp_0 = r0; + r0 = (1 + s.tmp_0); + s.leftId___73500 = (r0); + s.i___73508 = (0); + case 2: + r0 = (s.i___73508 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C66389_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P66395_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___73500 + s.i___73508); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 269; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, s.tmp_1); + r0 = (s.i___73508 + 1); + s.i___73508 = (r0); + { step = 2; continue; } + case 3: + case 4: + s.i___73526 = (0); + case 5: + s.tmp_1 = r0 = s.i___73526; + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___73526); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___73526 + 1); + s.i___73526 = (r0); + { step = 5; continue; } + case 6: + s.tmp_0 = controller_addController__P69006_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 270; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ay__P2345.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +controller_Controller_constructor__P66338.info = {"start":2452,"length":696,"line":82,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} -function Sprite_ay__P2345_mk(s) { +function controller_Controller_constructor__P66338_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2345, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P66338, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + leftId___73500: undefined, + i___73508: undefined, + i___73526: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_ay__P2344(s) { +function controller_addController__P69006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14256,23 +14506,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; + r0 = pxsim_numops_toBoolDecr(globals._players___68942); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._players___68942 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___68942; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ay__P2344.info = {"start":4269,"length":60,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P2344.isGetter = true; +controller_addController__P69006.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function Sprite_ay__P2344_mk(s) { +function controller_addController__P69006_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2344, depth: s.depth + 1, + parent: s, fn: controller_addController__P69006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -14280,7 +14543,7 @@ function Sprite_ay__P2344_mk(s) { -function Sprite_ax__P2343(s) { +function game_consoleOverlay_draw__P67326(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14290,42 +14553,216 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.height___76354 = undefined; + s.top___76359 = undefined; + s.i___76365 = undefined; + s.t___76378 = undefined; + s.tOff___76385 = undefined; + s.tab___76387 = undefined; + s.unnamed390___U6 = undefined; + s.unnamed391___U7 = undefined; + s.padding___76389 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(globals.instance___69479); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + { step = 13; continue; } + case 3: + case 4: + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___69533; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 1793; s.pc = 14; return s.tmp_7; } } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___76354 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___67167); + if (!r0) { step = 5; continue; } + r0 = s.height___76354; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___76359 = (r0); + s.i___76365 = (0); + case 7: + s.tmp_1 = r0 = s.i___76365; + r0 = pxsim_Array__length(globals.consoleStrings___69525); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = pxsim_Array__getAt(globals.consoleStrings___69525, s.i___76365); + s.tmp_5 = r0; + r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); + s.tmp_4 = r0; + r0 = (s.tmp_4 >= 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_6 = helpers_stringSplit__P64341_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___69525, s.i___76365); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1794; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___76378 = (r0); + s.tOff___76385 = (0); + s.tab___76387 = (undefined); + s.unnamed390___U6 = (s.t___76378); + s.unnamed391___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed391___U7; + r0 = pxsim_Array__length(s.unnamed390___U6); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed390___U6, s.unnamed391___U7); + s.tab___76387 = (r0); + s.tmp_2 = r0 = globals.tabSize___69527; + s.tmp_5 = r0 = s.tOff___76385; + r0 = pxsim_String_.length(s.tab___76387); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___69527); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___76389 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.tab___76387; + s.tmp_2 = r0 = s.tOff___76385; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___69533; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1795; s.pc = 17; return s.tmp_4; } + } + case 17: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (4 + s.tmp_1); + s.tmp_0.arg2 = r0; + s.tmp_5 = r0 = s.top___76359; + r0 = (s.i___76365 * s.height___76354); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___69524; + s.tmp_0.arg5 = globals.consoleFont___69533; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1796; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___76385; + r0 = pxsim_String_.length(s.tab___76387); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___76389); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___76385 = (r0); + r0 = (s.unnamed391___U7 + 1); + s.unnamed391___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed390___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = pxsim_Array__getAt(globals.consoleStrings___69525, s.i___76365); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___76359; + r0 = (s.i___76365 * s.height___76354); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___69524; + s.tmp_0.arg5 = globals.consoleFont___69533; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1797; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___76365 + 1); + s.i___76365 = (r0); + { step = 7; continue; } + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P2343.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +game_consoleOverlay_draw__P67326.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function Sprite_ax__P2343_mk(s) { +function game_consoleOverlay_draw__P67326_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2343, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P67326, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___76354: undefined, + top___76359: undefined, + i___76365: undefined, + t___76378: undefined, + tOff___76385: undefined, + tab___76387: undefined, + unnamed390___U6: undefined, + unnamed391___U7: undefined, + padding___76389: undefined, } } -function Sprite_ax__P2342(s) { +function scene_systemMenu_isVisible__P67307(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14335,35 +14772,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; + r0 = pxsim_numops_toBoolDecr(globals.instance___69479); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -Sprite_ax__P2342.info = {"start":3930,"length":60,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P2342.isGetter = true; +scene_systemMenu_isVisible__P67307.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function Sprite_ax__P2342_mk(s) { +function scene_systemMenu_isVisible__P67307_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2342, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P67307, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function sprites_BaseSprite_constructor__P2077(s) { +function scene_Scene_render__P67071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14373,113 +14808,147 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___76799 = undefined; + s.unnamed388___U1 = undefined; + s.unnamed389___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P2080_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 241; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P2850_mk(s); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 242; s.pc = 3; return s.tmp_1; + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 4); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: + r0 = s.arg0.fields["previousScene"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = scene_Scene_render__P67071_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1366; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P66877_mk(s); + r0 = s.arg0.fields["background"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 243; s.pc = 2; return s.tmp_0; - case 2: + s.callLocIdx = 1367; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -sprites_BaseSprite_constructor__P2077.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} - -function sprites_BaseSprite_constructor__P2077_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_constructor__P2077, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_Scene_addSprite__P2850(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + case 6: + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 1); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = helpers_arraySort__P64324_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scene_Scene_render_inline__P76776; + s.callLocIdx = 1372; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["spriteNextId"]; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = (s.tmp_2 & -2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); - s.tmp_3 = if_id_2_mk(s); - s.tmp_3.arg0 = s.arg1; - s.tmp_3.arg1 = s.tmp_2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 7: + case 8: + s.s___76799 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed388___U1 = (r0); + s.unnamed389___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed389___U2; + r0 = pxsim_Array__length(s.unnamed388___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed388___U1, s.unnamed389___U2); + s.s___76799 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___76799; + r0 = s.arg0.fields["camera"]; + s.tmp_2.arg1 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__draw"), 2); + s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 1365; s.pc = 1; return s.tmp_3; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__draw"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1373; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; } } - case 1: + case 15: r0 = s.retval; + r0 = (s.unnamed389___U2 + 1); + s.unnamed389___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed388___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P2850.info = {"start":7161,"length":128,"line":199,"column":8,"endLine":202,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +scene_Scene_render__P67071.info = {"start":8146,"length":917,"line":227,"column":8,"endLine":251,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_Scene_addSprite__P2850_mk(s) { +function scene_Scene_render__P67071_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P2850, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P67071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + s___76799: undefined, + unnamed388___U1: undefined, + unnamed389___U2: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_BaseSprite_z__P2080(s) { +function scene_Scene_render_inline__P76776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14494,42 +14963,90 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 244; s.pc = 3; return s.tmp_1; + s.tmp_2 = if_z_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1368; s.pc = 3; return s.tmp_2; } + } case 3: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; + s.tmp_1 = r0; + s.tmp_4 = if_z_1_mk(s); + s.tmp_4.arg0 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1369; s.pc = 4; return s.tmp_4; } + } + case 4: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); - s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_6 = if_id_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1370; s.pc = 5; return s.tmp_6; } + } + case 5: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = if_id_1_mk(s); + s.tmp_8.arg0 = s.arg1; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1371; s.pc = 6; return s.tmp_8; } + } + case 6: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P2080.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +scene_Scene_render_inline__P76776.info = {"start":8724,"length":52,"line":241,"column":37,"endLine":241,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function sprites_BaseSprite_z__P2080_mk(s) { +function scene_Scene_render_inline__P76776_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P2080, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P76776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, arg1: undefined, } } @@ -14538,7 +15055,7 @@ function sprites_BaseSprite_z__P2080_mk(s) { -function sprites_BaseSprite_z__P2079(s) { +function scene_Background_draw__P66877(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14553,19 +15070,49 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, scene_Background__C66868_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___66232, s.tmp_0); + r0 = s.arg0.fields["_image"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_image"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___66232, s.tmp_1, 0, 0); + case 1: + case 2: + r0 = s.arg0.fields["_layers"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P76947); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1189; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P2079.info = {"start":591,"length":55,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this"]} -sprites_BaseSprite_z__P2079.isGetter = true; +scene_Background_draw__P66877.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function sprites_BaseSprite_z__P2079_mk(s) { +function scene_Background_draw__P66877_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P2079, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P66877, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -14573,7 +15120,7 @@ function sprites_BaseSprite_z__P2079_mk(s) { -function helpers_arrayForEach__P109(s) { +function scene_Background_draw_inline__P76947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14583,58 +15130,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___9483 = undefined; - s.i___9486 = undefined; + s.ox___76949 = undefined; + s.oy___76960 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.len___9483 = (r0); - s.i___9486 = (0); - case 1: - r0 = (s.i___9486 < s.len___9483); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___9486); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___9486; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 3; return s.tmp_1; - case 3: + r0 = pxsim.Math_.round(s.tmp_0); + s.ox___76949 = (r0); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.oy___76960 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P66886_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___76949; + s.tmp_0.arg2 = s.oy___76960; + s.callLocIdx = 1188; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.i___9486 + 1); - s.i___9486 = (r0); - { step = 1; continue; } - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P109.info = {"start":7439,"length":250,"line":254,"column":4,"endLine":259,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayForEach","argumentNames":["arr","callbackfn"]} +scene_Background_draw_inline__P76947.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function helpers_arrayForEach__P109_mk(s) { +function scene_Background_draw_inline__P76947_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P109, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P76947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___9483: undefined, - i___9486: undefined, + tmp_2: undefined, + tmp_3: undefined, + ox___76949: undefined, + oy___76960: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_getTilemapByName__P3315(s) { +function scene_BackgroundLayer_draw__P66886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14644,35 +15199,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___76978 = undefined; + s.h___76981 = undefined; + s.pw___76984 = undefined; + s.ph___76988 = undefined; + s.rx___76997 = undefined; + s.ry___77000 = undefined; + s.y___77069 = undefined; + s.py___77070 = undefined; + s.dh___77079 = undefined; + s.x___77087 = undefined; + s.rxl___77088 = undefined; + s.px___77094 = undefined; + s.dw___77098 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P3313_mk(s); - s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2012; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_BackgroundLayer__C66878_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.w___76978 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.h___76981 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___76984 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___76988 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___76984); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_numops_toBoolDecr(s.ph___76988); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 23; continue; } + case 3: + case 4: + r0 = (0 - s.arg1); + s.rx___76997 = (r0); + r0 = (0 - s.arg2); + s.ry___77000 = (r0); + r0 = s.arg0.fields["alignX"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 5: + s.tmp_1 = r0 = s.rx___76997; + r0 = (s.w___76978 + s.pw___76984); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___76997 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___76997; + r0 = (s.w___76978 + s.pw___76984); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___76997 = (r0); + case 7: + r0 = s.arg0.fields["alignY"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 8: + s.tmp_1 = r0 = s.ry___77000; + r0 = (s.h___76981 + s.ph___76988); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___77000 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___77000; + r0 = (s.h___76981 + s.ph___76988); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___77000 = (r0); + case 10: + r0 = (s.rx___76997 % s.w___76978); + s.rx___76997 = (r0); + r0 = (s.rx___76997 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___76997 + s.w___76978); + s.rx___76997 = (r0); + case 11: + case 12: + r0 = (s.ry___77000 % s.h___76981); + s.ry___77000 = (r0); + r0 = (s.ry___77000 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___77000 + s.h___76981); + s.ry___77000 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___76997); + s.rx___76997 = (r0); + r0 = pxsim.Math_.floor(s.ry___77000); + s.ry___77000 = (r0); + s.y___77069 = (0); + s.py___77070 = (0); + case 15: + r0 = (s.y___77069 < s.h___76981); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___77069 % s.ph___76988); + s.py___77070 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + r0 = (s.ph___76988 - s.py___77070); + s.tmp_0.arg0 = r0; + r0 = (s.h___76981 - s.ry___77000); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1191; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___77079 = (r0); + s.x___77087 = (0); + s.rxl___77088 = (s.rx___76997); + case 16: + r0 = (s.x___77087 < s.w___76978); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___77087 % s.pw___76984); + s.px___77094 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + r0 = (s.pw___76984 - s.px___77094); + s.tmp_0.arg0 = r0; + r0 = (s.w___76978 - s.rxl___77088); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1192; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; + s.dw___77098 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___66232, s.tmp_0, s.rxl___77088, s.ry___77000); + r0 = (s.rxl___77088 + s.dw___77098); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___76978); + s.rxl___77088 = (r0); + r0 = s.arg0.fields["repeatX"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = s.dw___77098; + { step = 18; continue; } + case 17: + r0 = s.w___76978; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___77087 + s.tmp_1); + s.x___77087 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___77000 + s.dh___77079); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___76981); + s.ry___77000 = (r0); + r0 = s.arg0.fields["repeatY"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = s.dh___77079; + { step = 21; continue; } + case 20: + r0 = s.h___76981; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___77069 + s.tmp_1); + s.y___77069 = (r0); + { step = 15; continue; } + case 22: + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_getTilemapByName__P3315.info = {"start":2768,"length":107,"line":83,"column":4,"endLine":85,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} +scene_BackgroundLayer_draw__P66886.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} -function helpers_getTilemapByName__P3315_mk(s) { +function scene_BackgroundLayer_draw__P66886_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_getTilemapByName__P3315, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P66886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + w___76978: undefined, + h___76981: undefined, + pw___76984: undefined, + ph___76988: undefined, + rx___76997: undefined, + ry___77000: undefined, + y___77069: undefined, + py___77070: undefined, + dh___77079: undefined, + x___77087: undefined, + rxl___77088: undefined, + px___77094: undefined, + dw___77098: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function helpers__getFactoryInstance__P3313(s) { +function helpers_arraySort__P64324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14682,97 +15453,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___10114 = undefined; - s.unnamed120___U1 = undefined; - s.unnamed121___U2 = undefined; - s.data___10121 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___5426); - if (!r0) { step = 7; continue; } - s.factory___10114 = (undefined); - s.unnamed120___U1 = (globals.factories___5426); - s.unnamed121___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed121___U2; - r0 = pxsim_Array__length(s.unnamed120___U1); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed120___U1, s.unnamed121___U2); - s.factory___10114 = (r0); - s.tmp_4 = if_kind_1_mk(s); - s.tmp_4.arg0 = s.factory___10114; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 2010; s.pc = 10; return s.tmp_4; } - } - case 10: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 === s.arg0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(s.arg0); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_5 = if_factory_2_mk(s); - s.tmp_5.arg0 = s.factory___10114; - s.tmp_5.arg1 = s.arg1; - if (!s.tmp_5.arg0.vtable.iface) { - setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); - s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 2011; s.pc = 11; return s.tmp_5;; } - else { s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; } - } - case 11: - r0 = s.retval; - s.data___10121 = (r0); - r0 = pxsim_numops_toBoolDecr(s.data___10121); - if (!r0) { step = 2; continue; } - r0 = s.data___10121; - { step = 9; continue; } + r0 = (s.tmp_2 > 1); case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.arg1 = (helpers_arraySort_inline__P76821); case 3: case 4: + s.tmp_0 = helpers_sortHelper__P68668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 3; s.pc = 5; return s.tmp_0; case 5: - r0 = (s.unnamed121___U2 + 1); - s.unnamed121___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed120___U1 = (undefined); - case 7: - case 8: - r0 = null; - case 9: + r0 = s.retval; return leave(s, r0) default: oops() } } } -helpers__getFactoryInstance__P3313.info = {"start":2226,"length":348,"line":66,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} +helpers_arraySort__P64324.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} -function helpers__getFactoryInstance__P3313_mk(s) { +function helpers_arraySort__P64324_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers__getFactoryInstance__P3313, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P64324, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - factory___10114: undefined, - unnamed120___U1: undefined, - unnamed121___U2: undefined, - data___10121: undefined, arg0: undefined, arg1: undefined, } } @@ -14781,7 +15506,7 @@ function helpers__getFactoryInstance__P3313_mk(s) { -function tilemap__P3301(s) { +function helpers_arraySort_inline__P76821(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14791,22 +15516,133 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.aIsUndef___76824 = undefined; + s.bIsUndef___76828 = undefined; + s.aIsNull___76839 = undefined; + s.bIsNull___76843 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = null; + r0 = (s.arg0 === undefined); + s.aIsUndef___76824 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___76828 = (r0); + s.tmp_0 = r0 = s.aIsUndef___76824; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.bIsUndef___76828; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___76824); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } + case 4: + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___76828); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0 === null); + s.aIsNull___76839 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___76843 = (r0); + s.tmp_0 = r0 = s.aIsNull___76839; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.bIsNull___76843; + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + r0 = 0; + { step = 17; continue; } + { step = 16; continue; } + case 11: + r0 = pxsim_numops_toBoolDecr(s.aIsNull___76839); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___76843); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: + case 14: + case 15: + case 16: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 19: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: return leave(s, r0) default: oops() } } } -tilemap__P3301.info = {"start":99,"length":78,"line":3,"column":0,"endLine":3,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} +helpers_arraySort_inline__P76821.info = {"start":5826,"length":636,"line":209,"column":25,"endLine":224,"endColumn":13,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"inline","argumentNames":["a","b"]} -function tilemap__P3301_mk(s) { +function helpers_arraySort_inline__P76821_mk(s) { checkStack(s.depth); return { - parent: s, fn: tilemap__P3301, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P76821, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + aIsUndef___76824: undefined, + bIsUndef___76828: undefined, + aIsNull___76839: undefined, + bIsNull___76843: undefined, arg0: undefined, arg1: undefined, } } @@ -14815,7 +15651,7 @@ function tilemap__P3301_mk(s) { -function tiles_setTilemap__P2743(s) { +function helpers_sortHelper__P68668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14825,35 +15661,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___76878 = undefined; + s.i___76881 = undefined; + s.j___76887 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_setCurrentTilemap__P2744_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1297; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array__length(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.arg0; + { step = 11; continue; } + case 3: + case 4: + r0 = pxsim_Array__length(s.arg0); + s.len___76878 = (r0); + s.i___76881 = (0); + case 5: + s.tmp_1 = r0 = s.i___76881; + r0 = (s.len___76878 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = (s.i___76881 + 1); + s.j___76887 = (r0); + case 6: + r0 = (s.j___76887 < s.len___76878); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___76881); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___76887); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.tmp_4 = helpers_swap__P68667_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___76881; + s.tmp_4.arg2 = s.j___76887; + s.callLocIdx = 2; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = (s.j___76887 + 1); + s.j___76887 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___76881 + 1); + s.i___76881 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -tiles_setTilemap__P2743.info = {"start":19264,"length":92,"line":600,"column":4,"endLine":602,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} +helpers_sortHelper__P68668.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} -function tiles_setTilemap__P2743_mk(s) { +function helpers_sortHelper__P68668_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTilemap__P2743, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P68668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + len___76878: undefined, + i___76881: undefined, + j___76887: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_setCurrentTilemap__P2744(s) { +function helpers_swap__P68667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14863,35 +15778,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___76916 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTileMapLevel__P2868_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1298; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___76916 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___76916); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_setCurrentTilemap__P2744.info = {"start":19775,"length":103,"line":614,"column":4,"endLine":616,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setCurrentTilemap","argumentNames":["tilemap"]} +helpers_swap__P68667.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} -function tiles_setCurrentTilemap__P2744_mk(s) { +function helpers_swap__P68667_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setCurrentTilemap__P2744, depth: s.depth + 1, + parent: s, fn: helpers_swap__P68667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + temp___76916: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_setTileMapLevel__P2868(s) { +function scene_Camera_update__P66997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14901,59 +15827,179 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___10139 = undefined; + s.elapsed___73277 = undefined; + s.percentComplete___73291 = undefined; + s.damp___73298 = undefined; + s.f___73307 = undefined; + s.x___73313 = undefined; + s.y___73320 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1378; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.scene___10139 = (r0); - r0 = s.scene___10139.fields["tileMap"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C2715_VT); + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = Sprite_x__P66553_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1328; s.pc = 9; return s.tmp_3; + case 9: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_lastUpdatedSpriteX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1329; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_lastUpdatedSpriteY"] = (s.tmp_1); + s.tmp_0 = scene_Camera_offsetX__P66986_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_x__P66553_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1330; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); s.tmp_3 = r0; - s.tmp_4 = tiles_TileMap_constructor__P2717_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_4.arg1 = 4; - s.callLocIdx = 1379; s.pc = 4; return s.tmp_4; - case 4: + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1331; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P66988_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1332; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1333; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - r0 = (s.scene___10139).fields["tileMap"] = (s.tmp_3); case 1: case 2: - s.tmp_0 = tiles_TileMap_setData__P2728_mk(s); - r0 = s.scene___10139.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1380; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetX"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetY"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.elapsed___73277 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___73277 >= s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["shakeStartTime"] = (undefined); + { step = 6; continue; } + case 3: + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_0 = r0; + r0 = (s.elapsed___73277 / s.tmp_0); + s.percentComplete___73291 = (r0); + s.damp___73298 = (1); + r0 = (s.percentComplete___73291 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___73291); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1336; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; + s.damp___73298 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___73298); + s.f___73307 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___73307); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___73313 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___73307); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___73320 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___73313); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetY"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.y___73320); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + case 6: + case 7: + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTileMapLevel__P2868.info = {"start":3018,"length":219,"line":113,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} +scene_Camera_update__P66997.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function scene_setTileMapLevel__P2868_mk(s) { +function scene_Camera_update__P66997_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMapLevel__P2868, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P66997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - scene___10139: undefined, + elapsed___73277: undefined, + percentComplete___73291: undefined, + damp___73298: undefined, + f___73307: undefined, + x___73313: undefined, + y___73320: undefined, arg0: undefined, } } @@ -14961,7 +16007,7 @@ function scene_setTileMapLevel__P2868_mk(s) { -function tiles_TileMap_setData__P2728(s) { +function scene_Camera_offsetY__P66988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14971,180 +16017,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.previous___10156 = undefined; - s.eventHandler___10169 = undefined; - s.unnamed110___U2 = undefined; - s.unnamed111___U3 = undefined; - s.eventHandler___10198 = undefined; - s.unnamed112___U5 = undefined; - s.unnamed113___U6 = undefined; + s.scene___73339 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.previous___10156 = (r0); - r0 = s.arg0.fields["handlerState"]; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1319; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___73339 = (r0); + r0 = s.scene___73339.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.previous___10156 !== s.arg1); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } - case 3: - r0 = s.previous___10156; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 9; continue; } - s.eventHandler___10169 = (undefined); - r0 = s.arg0.fields["handlerState"]; - s.unnamed110___U2 = (r0); - s.unnamed111___U3 = (0); - case 5: - s.tmp_0 = r0 = s.unnamed111___U3; - r0 = pxsim_Array__length(s.unnamed110___U2); + r0 = s.scene___73339.fields["tileMap"]; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed110___U2, s.unnamed111___U3); - s.eventHandler___10169 = (r0); - r0 = s.eventHandler___10169.fields["event"]; + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 === 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - s.tmp_4 = if_callback_2_mk(s); - s.tmp_4.arg0 = s.eventHandler___10169; - s.tmp_4.arg1 = s.previous___10156; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); - s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1227; s.pc = 23; return s.tmp_4;; } - else { s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; } - } - case 23: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 3; continue; } + s.tmp_7 = r0 = s.arg0; + s.tmp_10 = tiles_TileMap_offsetY__P66941_mk(s); + r0 = s.scene___73339.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 1321; s.pc = 6; return s.tmp_10; case 6: - case 7: - r0 = (s.unnamed111___U3 + 1); - s.unnamed111___U3 = (r0); - { step = 5; continue; } - case 8: - s.unnamed110___U2 = (undefined); - case 9: - case 10: - r0 = (s.arg0).fields["_map"] = (s.arg1); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 11; continue; } + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim.Math_.floor(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); + { step = 4; continue; } + case 3: s.tmp_0 = r0 = s.arg0; - r0 = s.arg1.fields["_scale"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_scale"] = (s.tmp_1); - case 11: - case 12: - r0 = s.arg0.fields["handlerState"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } - case 13: - r0 = (s.previous___10156 !== s.arg1); - case 14: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 15; continue; } - r0 = s.tmp_1; - { step = 16; continue; } - case 15: - r0 = s.arg1; - case 16: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 21; continue; } - s.eventHandler___10198 = (undefined); - r0 = s.arg0.fields["handlerState"]; - s.unnamed112___U5 = (r0); - s.unnamed113___U6 = (0); - case 17: - s.tmp_0 = r0 = s.unnamed113___U6; - r0 = pxsim_Array__length(s.unnamed112___U5); + r0 = pxsim.Math_.floor(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed112___U5, s.unnamed113___U6); - s.eventHandler___10198 = (r0); - r0 = s.eventHandler___10198.fields["event"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 === 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 18; continue; } - s.tmp_4 = if_callback_2_mk(s); - s.tmp_4.arg0 = s.eventHandler___10198; - s.tmp_4.arg1 = s.arg1; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); - s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1229; s.pc = 24; return s.tmp_4;; } - else { s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; } - } - case 24: - r0 = s.retval; - case 18: - case 19: - r0 = (s.unnamed113___U6 + 1); - s.unnamed113___U6 = (r0); - { step = 17; continue; } - case 20: - s.unnamed112___U5 = (undefined); - case 21: - case 22: + r0 = (s.tmp_0).fields["_offsetY"] = (s.tmp_1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_setData__P2728.info = {"start":10253,"length":807,"line":355,"column":8,"endLine":378,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} +scene_Camera_offsetY__P66988.info = {"start":1152,"length":291,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} -function tiles_TileMap_setData__P2728_mk(s) { +function scene_Camera_offsetY__P66988_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setData__P2728, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P66988, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - previous___10156: undefined, - eventHandler___10169: undefined, - unnamed110___U2: undefined, - unnamed111___U3: undefined, - eventHandler___10198: undefined, - unnamed112___U5: undefined, - unnamed113___U6: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + scene___73339: undefined, arg0: undefined, arg1: undefined, } } @@ -15153,7 +16103,7 @@ function tiles_TileMap_setData__P2728_mk(s) { -function tiles_TileMap_constructor__P2717(s) { +function tiles_TileMap_offsetY__P66941(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15169,42 +16119,44 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P2719_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1213; s.pc = 1; return s.tmp_0; - case 1: + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P64346_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P66943_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1220; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P10220); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = scene_createRenderable__P2785_mk(s); - s.tmp_3.arg0 = -1; - s.tmp_3.arg1 = s.tmp_0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 1215; s.pc = 2; return s.tmp_3; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1221; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["renderable"] = (s.tmp_2); - r0 = undefined; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1222; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P2717.info = {"start":8927,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_offsetY__P66941.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function tiles_TileMap_constructor__P2717_mk(s) { +function tiles_TileMap_offsetY__P66941_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P2717, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P66941, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, } } @@ -15213,7 +16165,42 @@ function tiles_TileMap_constructor__P2717_mk(s) { -function tiles_TileMap_inline__P10220(s) { +function scene_Camera_offsetY__P66987(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_offsetY__P66987.info = {"start":1084,"length":59,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} +scene_Camera_offsetY__P66987.isGetter = true; + +function scene_Camera_offsetY__P66987_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetY__P66987, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetX__P66986(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15223,30 +16210,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___73377 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P4936_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1214; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1316; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___73377 = (r0); + r0 = s.scene___73377.fields["tileMap"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.scene___73377.fields["tileMap"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 3; continue; } + s.tmp_7 = r0 = s.arg0; + s.tmp_10 = tiles_TileMap_offsetX__P66940_mk(s); + r0 = s.scene___73377.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 1318; s.pc = 6; return s.tmp_10; + case 6: r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim.Math_.floor(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); + { step = 4; continue; } + case 3: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.Math_.floor(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_offsetX"] = (s.tmp_1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_inline__P10220.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +scene_Camera_offsetX__P66986.info = {"start":784,"length":291,"line":28,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} -function tiles_TileMap_inline__P10220_mk(s) { +function scene_Camera_offsetX__P66986_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_inline__P10220, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P66986, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + scene___73377: undefined, arg0: undefined, arg1: undefined, } } @@ -15255,7 +16296,7 @@ function tiles_TileMap_inline__P10220_mk(s) { -function tiles_TileMap_draw__P4936(s) { +function tiles_TileMap_offsetX__P66940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15265,333 +16306,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___10231 = undefined; - s.offsetX___10237 = undefined; - s.offsetY___10242 = undefined; - s.x0___10247 = undefined; - s.xn___10254 = undefined; - s.y0___10271 = undefined; - s.yn___10278 = undefined; - s.x___10295 = undefined; - s.y___10301 = undefined; - s.index___10307 = undefined; - s.tile___10314 = undefined; - s.x___10350 = undefined; - s.xLine___10356 = undefined; - s.y___10382 = undefined; - s.yLine___10388 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 23; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_scale"]; - s.tmp_8 = r0; - r0 = (1 << s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 1); - s.bitmask___10231 = (r0); - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___10231); - s.offsetX___10237 = (r0); - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___10231); - s.offsetY___10242 = (r0); - s.tmp_0 = Math_max__P130_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P64346_mk(s); s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1254; s.pc = 24; return s.tmp_0; - case 24: + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P66942_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1217; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - s.x0___10247 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_width"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1218; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1257; s.pc = 25; return s.tmp_0; - case 25: + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.xn___10254 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1259; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - s.y0___10271 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_height"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1262; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.yn___10278 = (r0); - s.x___10295 = (s.x0___10247); - case 3: - r0 = (s.x___10295 <= s.xn___10254); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___10301 = (s.y0___10271); - case 4: - r0 = (s.y___10301 <= s.yn___10278); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P2703_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___10295; - s.tmp_1.arg2 = s.y___10301; - s.callLocIdx = 1263; s.pc = 28; return s.tmp_1; - case 28: - r0 = s.retval; - s.index___10307 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P2706_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___10307; - s.callLocIdx = 1264; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tile___10314 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___10314); - if (!r0) { step = 5; continue; } - s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___10314; - r0 = (s.x___10295 - s.x0___10247); - s.tmp_4 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 << s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.offsetX___10237); - s.tmp_2 = r0; - r0 = (s.y___10301 - s.y0___10271); - s.tmp_8 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_9 = r0; - r0 = (s.tmp_8 << s.tmp_9); - s.tmp_7 = r0; - r0 = (s.tmp_7 - s.offsetY___10242); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); - case 5: - case 6: - r0 = (s.y___10301 + 1); - s.y___10301 = (r0); - { step = 4; continue; } - case 7: - r0 = (s.x___10295 + 1); - s.x___10295 = (r0); - { step = 3; continue; } - case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___2947); - if (!r0) { step = 21; continue; } - s.x___10350 = (s.x0___10247); - case 9: - r0 = (s.x___10350 <= s.xn___10254); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.x___10350 - s.x0___10247); - s.tmp_2 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.offsetX___10237); - s.xLine___10356 = (r0); - r0 = (s.xLine___10356 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 10: - s.tmp_1 = r0 = s.xLine___10356; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P1941_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___10356; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___10356; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_4.arg4 = r0; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1268; s.pc = 30; return s.tmp_4; - case 30: - r0 = s.retval; - case 12: - case 13: - r0 = (s.x___10350 + 1); - s.x___10350 = (r0); - { step = 9; continue; } - case 14: - s.y___10382 = (s.y0___10271); - case 15: - r0 = (s.y___10382 <= s.yn___10278); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.y___10382 - s.y0___10271); - s.tmp_2 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.offsetY___10242); - s.yLine___10388 = (r0); - r0 = (s.yLine___10388 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - s.tmp_1 = r0 = s.yLine___10388; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 17: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P1941_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___10388; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___10388; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1270; s.pc = 31; return s.tmp_4; - case 31: - r0 = s.retval; - case 18: - case 19: - r0 = (s.y___10382 + 1); - s.y___10382 = (r0); - { step = 15; continue; } - case 20: - case 21: - case 22: - case 23: - r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P4936.info = {"start":13998,"length":2224,"line":458,"column":8,"endLine":513,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +tiles_TileMap_offsetX__P66940.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function tiles_TileMap_draw__P4936_mk(s) { +function tiles_TileMap_offsetX__P66940_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P4936, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P66940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - bitmask___10231: undefined, - offsetX___10237: undefined, - offsetY___10242: undefined, - x0___10247: undefined, - xn___10254: undefined, - y0___10271: undefined, - yn___10278: undefined, - x___10295: undefined, - y___10301: undefined, - index___10307: undefined, - tile___10314: undefined, - x___10350: undefined, - xLine___10356: undefined, - y___10382: undefined, - yLine___10388: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_imageDrawLine__P1941(s) { +function scene_Camera_offsetX__P66985(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15603,58 +16370,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P4644_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 191; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P4644_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 192; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -helpers_imageDrawLine__P1941.info = {"start":5161,"length":159,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +scene_Camera_offsetX__P66985.info = {"start":716,"length":59,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} +scene_Camera_offsetX__P66985.isGetter = true; -function helpers_imageDrawLine__P1941_mk(s) { +function scene_Camera_offsetX__P66985_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P1941, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P66985, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function scene_createRenderable__P2785(s) { +function Sprite_y__P66555(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15664,60 +16403,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___10451 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C2780_VT); - s.tmp_0 = r0; - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 1; continue; } - r0 = s.tmp_1; - { step = 2; continue; } - case 1: - r0 = renderable_inline__P10457; - case 2: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_height"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P2781_mk(s); - s.tmp_3.arg0 = s.tmp_0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.tmp_2; - s.tmp_3.arg3 = s.arg0; - s.callLocIdx = 1340; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.renderable___10451 = (s.tmp_0); - r0 = s.renderable___10451; - return leave(s, r0) + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_createRenderable__P2785.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} +Sprite_y__P66555.info = {"start":2893,"length":100,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P66555.isGetter = true; -function scene_createRenderable__P2785_mk(s) { +function Sprite_y__P66555_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P2785, depth: s.depth + 1, + parent: s, fn: Sprite_y__P66555, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - renderable___10451: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function renderable_inline__P10457(s) { +function Fx_div__P64381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15727,24 +16453,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = true; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); return leave(s, r0) default: oops() } } } -renderable_inline__P10457.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +Fx_div__P64381.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} -function renderable_inline__P10457_mk(s) { +function Fx_div__P64381_mk(s) { checkStack(s.depth); return { - parent: s, fn: renderable_inline__P10457, depth: s.depth + 1, + parent: s, fn: Fx_div__P64381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Renderable_constructor__P2781(s) { +function Sprite_x__P66553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15756,44 +16492,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2780_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); - r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P2077_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 1337; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_Renderable_constructor__P2781.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} +Sprite_x__P66553.info = {"start":2537,"length":99,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P66553.isGetter = true; -function scene_Renderable_constructor__P2781_mk(s) { +function Sprite_x__P66553_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P2781, depth: s.depth + 1, + parent: s, fn: Sprite_x__P66553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMap_scale__P2719(s) { +function PhysicsEngine_move__P66716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15809,34 +16546,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = tiles_TileMapData_scale__P2702_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1216; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - case 1: - case 2: + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P2719.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +PhysicsEngine_move__P66716.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function tiles_TileMap_scale__P2719_mk(s) { +function PhysicsEngine_move__P66716_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2719, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P66716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -15845,7 +16566,7 @@ function tiles_TileMap_scale__P2719_mk(s) { -function tiles_TileMapData_scale__P2702(s) { +function PhysicsEngine_draw__P66715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15857,38 +16578,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2702.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +PhysicsEngine_draw__P66715.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function tiles_TileMapData_scale__P2702_mk(s) { +function PhysicsEngine_draw__P66715_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2702, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P66715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function game_set_health_of_trees__P4409(s) { +function controller___update__P66365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15898,35 +16610,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dtms___77344 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_setTreeHealth__P4423_mk(s); - s.tmp_1 = Math_clamp__P127_mk(s); - s.tmp_1.arg0 = 0; - s.tmp_1.arg1 = 10; - s.tmp_1.arg2 = s.arg0; - s.callLocIdx = 2274; s.pc = 2; return s.tmp_1; + r0 = (s.arg0 * 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.dtms___77344 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P77351); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___77344); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_2 = controller_players__P66329_mk(s); + s.callLocIdx = 313; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 2275; s.pc = 1; return s.tmp_0; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 315; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_set_health_of_trees__P4409.info = {"start":617,"length":114,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_health_of_trees","argumentNames":["num"]} +controller___update__P66365.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function game_set_health_of_trees__P4409_mk(s) { +function controller___update__P66365_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_set_health_of_trees__P4409, depth: s.depth + 1, + parent: s, fn: controller___update__P66365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + dtms___77344: undefined, arg0: undefined, } } @@ -15934,7 +16654,7 @@ function game_set_health_of_trees__P4409_mk(s) { -function forestFire_setTreeHealth__P4423(s) { +function controller___update_inline__P77351(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15948,18 +16668,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (globals.state___7146).fields["treeHealth"] = (s.arg0); + s.tmp_0 = controller_Controller___update__P66363_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 314; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_setTreeHealth__P4423.info = {"start":11128,"length":96,"line":297,"column":4,"endLine":299,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setTreeHealth","argumentNames":["treeHealth"]} +controller___update_inline__P77351.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function forestFire_setTreeHealth__P4423_mk(s) { +function controller___update_inline__P77351_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_setTreeHealth__P4423, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P77351, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -15967,7 +16693,7 @@ function forestFire_setTreeHealth__P4423_mk(s) { -function game_set_strength_of_wind__P4408(s) { +function controller_Controller___update__P66363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15979,41 +16705,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_setWindSpeed__P4421_mk(s); - s.tmp_1 = Math_clamp__P127_mk(s); - s.tmp_1.arg0 = 0; - s.tmp_1.arg1 = 10; - s.tmp_1.arg2 = s.arg0; - s.callLocIdx = 2272; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 2273; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + s.tmp_1 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P77364); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 312; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_set_strength_of_wind__P4408.info = {"start":304,"length":114,"line":15,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_strength_of_wind","argumentNames":["num"]} +controller_Controller___update__P66363.info = {"start":13211,"length":124,"line":396,"column":8,"endLine":399,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function game_set_strength_of_wind__P4408_mk(s) { +function controller_Controller___update__P66363_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_set_strength_of_wind__P4408, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P66363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function forestFire_setWindSpeed__P4421(s) { +function controller_Controller___update_inline__P77364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16027,18 +16767,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (globals.state___7146).fields["windSpeed"] = (s.arg0); + s.tmp_0 = controller_Button___update__P66403_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 311; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_setWindSpeed__P4421.info = {"start":10950,"length":84,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setWindSpeed","argumentNames":["speed"]} +controller_Controller___update_inline__P77364.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function forestFire_setWindSpeed__P4421_mk(s) { +function controller_Controller___update_inline__P77364_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_setWindSpeed__P4421, depth: s.depth + 1, + parent: s, fn: controller_Controller___update_inline__P77364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -16046,7 +16793,7 @@ function forestFire_setWindSpeed__P4421_mk(s) { -function game_set_dryness_of_grass__P4410(s) { +function controller_Button___update__P66403(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16056,43 +16803,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.delay___77380 = undefined; + s.interval___77389 = undefined; + s.count___77402 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_setDryGrass__P4422_mk(s); - s.tmp_1 = Math_clamp__P127_mk(s); - s.tmp_1.arg0 = 0; - s.tmp_1.arg1 = 10; - s.tmp_1.arg2 = s.arg0; - s.callLocIdx = 2276; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 2277; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: + case 2: + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = globals.defaultRepeatDelay___69024; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.delay___77380 = (s.tmp_2); + r0 = s.arg0.fields["repeatInterval"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = globals.defaultRepeatInterval___69026; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___77389 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___77380); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 11; continue; } + case 7: + case 8: + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___77380); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___77389); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___77389); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___77402 = (r0); + r0 = s.arg0.fields["_repeatCount"]; + s.tmp_1 = r0; + r0 = (s.count___77402 != s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_2 = controller_Button_raiseButtonRepeat__P69013_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 329; s.pc = 12; return s.tmp_2; + case 12: r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___77402); + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -game_set_dryness_of_grass__P4410.info = {"start":929,"length":113,"line":39,"column":4,"endLine":41,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_dryness_of_grass","argumentNames":["num"]} +controller_Button___update__P66403.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} -function game_set_dryness_of_grass__P4410_mk(s) { +function controller_Button___update__P66403_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_set_dryness_of_grass__P4410, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P66403, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + delay___77380: undefined, + interval___77389: undefined, + count___77402: undefined, arg0: undefined, + arg1: undefined, } } -function forestFire_setDryGrass__P4422(s) { +function controller_Button_raiseButtonRepeat__P69013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16106,18 +16934,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (globals.state___7146).fields["dryGrass"] = (s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___69022); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_setDryGrass__P4422.info = {"start":11040,"length":82,"line":293,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setDryGrass","argumentNames":["grass"]} +controller_Button_raiseButtonRepeat__P69013.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function forestFire_setDryGrass__P4422_mk(s) { +function controller_Button_raiseButtonRepeat__P69013_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_setDryGrass__P4422, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P69013, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -16125,7 +16966,7 @@ function forestFire_setDryGrass__P4422_mk(s) { -function sprites_change_flame_strength_by__P4413(s) { +function controller_players__P66329(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16135,38 +16976,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = forestFire_changeFireHealth__P4425_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2279; s.pc = 1; return s.tmp_0; + s.tmp_0 = controller__player1__P66328_mk(s); + s.callLocIdx = 264; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_0 = helpers_arrayFilter__P64329_mk(s); + s.tmp_0.arg0 = globals._players___68942; + s.tmp_0.arg1 = controller_players_inline__P77334; + s.callLocIdx = 265; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; return leave(s, r0) default: oops() } } } -sprites_change_flame_strength_by__P4413.info = {"start":1652,"length":149,"line":66,"column":4,"endLine":68,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"change_flame_strength_by","argumentNames":["location","changeBy"]} +controller_players__P66329.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function sprites_change_flame_strength_by__P4413_mk(s) { +function controller_players__P66329_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_change_flame_strength_by__P4413, depth: s.depth + 1, + parent: s, fn: controller_players__P66329, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function forestFire_changeFireHealth__P4425(s) { +function controller_players_inline__P77334(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16178,37 +17015,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_FireState_changeFireHealth__P7143_mk(s); - s.tmp_0.arg0 = globals.state___7146; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 2349; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -forestFire_changeFireHealth__P4425.info = {"start":11362,"length":136,"line":305,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"changeFireHealth","argumentNames":["location","changeBy"]} +controller_players_inline__P77334.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function forestFire_changeFireHealth__P4425_mk(s) { +function controller_players_inline__P77334_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_changeFireHealth__P4425, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P77334, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function forestFire_FireState_changeFireHealth__P7143(s) { +function controller__moveSprites__P66333(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16218,61 +17054,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentHealth___13615 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - r0 = s.arg0.fields["healthBuffer"]; - s.tmp_0 = r0; - s.tmp_2 = tiles_Location_col__P2685_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 2343; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg1.fields["_row"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.currentHealth___13615 = (r0); - s.tmp_0 = forestFire_FireState_setFireHealth__P7142_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = (s.currentHealth___13615 + s.arg2); - s.tmp_0.arg2 = r0; - s.callLocIdx = 2345; s.pc = 2; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1 = controller_players__P66329_mk(s); + s.callLocIdx = 266; s.pc = 2; return s.tmp_1; case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = controller__moveSprites_inline__P77149; + s.callLocIdx = 268; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_changeFireHealth__P7143.info = {"start":10536,"length":230,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"changeFireHealth","argumentNames":["this","location","changeBy"]} +controller__moveSprites__P66333.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function forestFire_FireState_changeFireHealth__P7143_mk(s) { +function controller__moveSprites__P66333_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_changeFireHealth__P7143, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P66333, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - currentHealth___13615: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function forestFire_FireState_setFireHealth__P7142(s) { +function controller__moveSprites_inline__P77149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16282,111 +17093,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handler___13656 = undefined; - s.unnamed134___U1 = undefined; - s.unnamed135___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_min__P131_mk(s); - s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = 15; - s.callLocIdx = 2336; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 2337; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0 = controller_Controller___preUpdate__P66362_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 267; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.arg2 = (r0); - r0 = s.arg0.fields["healthBuffer"]; - s.tmp_0 = r0; - s.tmp_2 = tiles_Location_col__P2685_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 2338; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg1.fields["_row"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.arg2); - r0 = (s.arg2 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["timeBuffer"]; - s.tmp_1 = r0; - s.tmp_3 = tiles_Location_col__P2685_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 2340; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.tmp_2 = r0; - r0 = s.arg1.fields["_row"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_1, s.tmp_2, s.tmp_4, 15); - s.handler___13656 = (undefined); - r0 = s.arg0.fields["fireDestroyedHandlers"]; - s.unnamed134___U1 = (r0); - s.unnamed135___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed135___U2; - r0 = pxsim_Array__length(s.unnamed134___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed134___U1, s.unnamed135___U2); - s.handler___13656 = (r0); - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = s.handler___13656; - s.tmp_2.arg0 = s.arg1; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 2342; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - r0 = (s.unnamed135___U2 + 1); - s.unnamed135___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed134___U1 = (undefined); - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_setFireHealth__P7142.info = {"start":9603,"length":923,"line":255,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setFireHealth","argumentNames":["this","location","health"]} +controller__moveSprites_inline__P77149.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function forestFire_FireState_setFireHealth__P7142_mk(s) { +function controller__moveSprites_inline__P77149_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_setFireHealth__P7142, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P77149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - handler___13656: undefined, - unnamed134___U1: undefined, - unnamed135___U2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function ashes_inline__P13663(s) { +function controller_Controller___preUpdate__P66362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16396,119 +17131,334 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___13666 = undefined; - s.src___13671 = undefined; + s.deadSprites___77156 = undefined; + s.svx___77157 = undefined; + s.svy___77158 = undefined; + s.svxInCricle___77193 = undefined; + s.svyInCircle___77195 = undefined; + s.sq___77197 = undefined; + s.scale___77212 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_AshFactory__C3211_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_AshFactory_constructor__P3212_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = undefined; - s.tmp_1.arg3 = 20; - s.callLocIdx = 59; s.pc = 1; return s.tmp_1; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 286; s.pc = 18; return s.tmp_3; + case 18: r0 = s.retval; - s.factory___13666 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C3131_VT); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P3136_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.factory___13666; - s.callLocIdx = 60; s.pc = 2; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 17; continue; } + case 1: case 2: + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___77156 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___77156, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___77157 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___77157, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___77158 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___77158, 0); + r0 = s.arg0.fields["analog"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = r0 = s.svx___77157; + s.tmp_5 = controller_Button_pressureLevel__P66401_mk(s); + s.tmp_6 = controller_Controller_right__P66344_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 287; s.pc = 20; return s.tmp_6; + case 20: r0 = s.retval; - s.src___13671 = (s.tmp_0); - s.tmp_0 = particles_ParticleSource_setAcceleration__P3140_mk(s); - s.tmp_0.arg0 = s.src___13671; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 500; - s.callLocIdx = 61; s.pc = 3; return s.tmp_0; + s.tmp_5.arg0 = r0; + s.callLocIdx = 288; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P66401_mk(s); + s.tmp_9 = controller_Controller_left__P66343_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 289; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 290; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_4 - s.tmp_7); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.svy___77158; + s.tmp_4 = controller_Button_pressureLevel__P66401_mk(s); + s.tmp_5 = controller_Controller_down__P66346_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 291; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 292; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P66401_mk(s); + s.tmp_8 = controller_Controller_up__P66345_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 293; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 294; s.pc = 25; return s.tmp_7; + case 25: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 12; continue; } case 3: + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P66344_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 295; s.pc = 28; return s.tmp_2; + case 28: r0 = s.retval; - r0 = s.src___13671; - return leave(s, r0) - default: oops() -} } } -ashes_inline__P13663.info = {"start":10791,"length":281,"line":274,"column":54,"endLine":279,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} - -function ashes_inline__P13663_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ashes_inline__P13663, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - factory___13666: undefined, - src___13671: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_ParticleSource_setAcceleration__P3140(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = 256; + { step = 5; continue; } + case 4: + r0 = 0; + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C66389_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P66343_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 296; s.pc = 30; return s.tmp_6; + case 30: + r0 = s.retval; + s.tmp_5.arg0 = r0; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 29; return s.tmp_5; + case 29: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = 256; + { step = 7; continue; } + case 6: + r0 = 0; + case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svx___77157; + r0 = (s.tmp_3 - s.tmp_7); + s.tmp_9 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_8, s.tmp_9); + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P66346_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 297; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = 256; + { step = 9; continue; } + case 8: + r0 = 0; + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C66389_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P66345_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 298; s.pc = 34; return s.tmp_6; + case 34: + r0 = s.retval; + s.tmp_5.arg0 = r0; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 33; return s.tmp_5; + case 33: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 10; continue; } + r0 = 256; + { step = 11; continue; } + case 10: + r0 = 0; + case 11: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svy___77158; + r0 = (s.tmp_3 - s.tmp_7); + s.tmp_9 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_8, s.tmp_9); + case 12: + r0 = pxsim_pxtrt.mklocRef(); + s.svxInCricle___77193 = (r0); + s.tmp_0 = r0 = s.svxInCricle___77193; + r0 = pxsim_pxtrt_ldlocRef(s.svx___77157); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___77195 = (r0); + s.tmp_0 = r0 = s.svyInCircle___77195; + r0 = pxsim_pxtrt_ldlocRef(s.svy___77158); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___77157); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___77157); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___77158); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___77158); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___77197 = (r0); + r0 = (s.sq___77197 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___77197); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___77212 = (r0); + s.tmp_0 = r0 = s.svxInCricle___77193; + s.tmp_3 = r0 = s.scale___77212; + r0 = pxsim_pxtrt_ldlocRef(s.svx___77157); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.svyInCircle___77195; + s.tmp_3 = r0 = s.scale___77212; + r0 = pxsim_pxtrt_ldlocRef(s.svy___77158); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 13: + case 14: + r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P77230); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___77156); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___77157); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___77158); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___77193); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___77195); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 299; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 307; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___77156); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P66340_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 308; s.pc = 39; return s.tmp_3; + case 39: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P77287; + s.callLocIdx = 309; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 310; s.pc = 37; return s.tmp_1; + case 37: + r0 = s.retval; + case 15: + case 16: + case 17: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P3140.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} +controller_Controller___preUpdate__P66362.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function particles_ParticleSource_setAcceleration__P3140_mk(s) { +function controller_Controller___preUpdate__P66362_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P3140, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P66362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + deadSprites___77156: undefined, + svx___77157: undefined, + svy___77158: undefined, + svxInCricle___77193: undefined, + svyInCircle___77195: undefined, + sq___77197: undefined, + scale___77212: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_ParticleSource_constructor__P3136(s) { +function controller_Controller___preUpdate_inline__P77230(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16518,166 +17468,175 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___13700 = undefined; - s.removedSource___13709 = undefined; + s.s___77233 = undefined; + s.vx___77234 = undefined; + s.vy___77235 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P2077_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1800; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0 = if_s_1_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 300; s.pc = 22; return s.tmp_0; } + } + case 22: r0 = s.retval; - s.tmp_0 = particles_init__P5351_mk(s); - s.callLocIdx = 1801; s.pc = 6; return s.tmp_0; - case 6: + s.s___77233 = (r0); + s.tmp_2 = if_vx_1_mk(s); + s.tmp_2.arg0 = s.tmp_1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 301; s.pc = 23; return s.tmp_2; } + } + case 23: r0 = s.retval; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1802; s.pc = 7; return s.tmp_0; - case 7: + s.vx___77234 = (r0); + s.tmp_3 = if_vy_1_mk(s); + s.tmp_3.arg0 = s.tmp_1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 302; s.pc = 24; return s.tmp_3; } + } + case 24: r0 = s.retval; - s.sources___13700 = (r0); - r0 = pxsim_Array__length(s.sources___13700); + s.vy___77235 = (r0); + r0 = s.s___77233.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___5343); + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P5354_mk(s); - s.tmp_2.arg0 = s.sources___13700; - s.callLocIdx = 1803; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___13700, 0); - s.removedSource___13709 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P3146_mk(s); - s.tmp_0.arg0 = s.removedSource___13709; - s.callLocIdx = 1805; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P3145_mk(s); - s.tmp_0.arg0 = s.removedSource___13709; - s.callLocIdx = 1806; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } case 1: case 2: - r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P3148_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1807; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P3140_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.callLocIdx = 1808; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P3147_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1809; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = (s.arg0).fields["lifespan"] = (undefined); - r0 = (s.arg0).fields["_dt"] = (0); - r0 = (s.arg0).fields["priority"] = (0); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = s.arg0.fields["_inputLastFrame"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.vx___77234); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = (s.s___77233).fields["_vx"] = (0); case 3: - r0 = globals.defaultFactory___3151; case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___77235); + if (!r0) { step = 5; continue; } + r0 = (s.s___77233).fields["_vy"] = (0); + case 5: + case 6: + case 7: + case 8: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P3150_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1810; s.pc = 14; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___77234; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___77235; + case 12: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 13; continue; } + s.tmp_4 = r0 = s.s___77233; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___77234); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___77233; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___77235); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___77234); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___77233; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___77234); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } case 14: - r0 = s.retval; - r0 = pxsim_Array__push(s.sources___13700, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P3144_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1811; s.pc = 15; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.vy___77235); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___77233; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___77235); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); case 15: - r0 = s.retval; + case 16: + case 17: + case 18: + r0 = (s.arg0).fields["_inputLastFrame"] = (true); + { step = 20; continue; } + case 19: + r0 = (s.arg0).fields["_inputLastFrame"] = (false); + case 20: + case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P3136.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +controller_Controller___preUpdate_inline__P77230.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function particles_ParticleSource_constructor__P3136_mk(s) { +function controller_Controller___preUpdate_inline__P77230_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P3136, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P77230, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___13700: undefined, - removedSource___13709: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + s___77233: undefined, + vx___77234: undefined, + vy___77235: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function particles_particleSources__P5357(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___10941 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1867; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___10941 = (r0); - r0 = s.sources___10941; - return leave(s, r0) - default: oops() -} } } -particles_particleSources__P5357.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} - -function particles_particleSources__P5357_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_particleSources__P5357, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___10941: undefined, } } -function particles_sortSources__P5354(s) { +function controller_Controller___preUpdate_inline__P77287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16691,24 +17650,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P105_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = particles_sortSources_inline__P13907; - s.callLocIdx = 1849; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -particles_sortSources__P5354.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +controller_Controller___preUpdate_inline__P77287.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function particles_sortSources__P5354_mk(s) { +function controller_Controller___preUpdate_inline__P77287_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P5354, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P77287, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -16716,7 +17678,7 @@ function particles_sortSources__P5354_mk(s) { -function particles_sortSources_inline__P13907(s) { +function controller_Button_pressureLevel__P66401(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16728,38 +17690,53 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["priority"]; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = s.arg1.fields["priority"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); + r0 = (s.tmp_1 == "sim"); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = controller_Button__C66389_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = 512; { step = 2; continue; } case 1: - r0 = s.arg0.fields["id"]; - s.tmp_3 = r0; - r0 = s.arg1.fields["id"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + r0 = 0; case 2: // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 5; continue; } + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["id"]; s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } + case 4: + r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -particles_sortSources_inline__P13907.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +controller_Button_pressureLevel__P66401.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function particles_sortSources_inline__P13907_mk(s) { +function controller_Button_pressureLevel__P66401_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources_inline__P13907, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P66401, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16768,14 +17745,13 @@ function particles_sortSources_inline__P13907_mk(s) { tmp_4: undefined, tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arraySort__P105(s) { +function controller_Controller_down__P66346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16787,58 +17763,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 1); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.arg1 = (helpers_arraySort_inline__P12600); - case 3: - case 4: - s.tmp_0 = helpers_sortHelper__P4449_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 3; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - return leave(s, r0) + r0 = (4 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -helpers_arraySort__P105.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} +controller_Controller_down__P66346.info = {"start":4131,"length":77,"line":145,"column":8,"endLine":147,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} +controller_Controller_down__P66346.isGetter = true; -function helpers_arraySort__P105_mk(s) { +function controller_Controller_down__P66346_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P105, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P66346, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arraySort_inline__P12600(s) { +function controller_Controller_button__P69007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16848,133 +17802,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___12603 = undefined; - s.bIsUndef___12607 = undefined; - s.aIsNull___12618 = undefined; - s.bIsNull___12622 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 === undefined); - s.aIsUndef___12603 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___12607 = (r0); - s.tmp_0 = r0 = s.aIsUndef___12603; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.bIsUndef___12607; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 0; - { step = 17; continue; } - { step = 8; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___12603); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } - case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___12607); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = (s.arg0 === null); - s.aIsNull___12618 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___12622 = (r0); - s.tmp_0 = r0 = s.aIsNull___12618; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.bIsNull___12622; - case 10: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (s.arg1 - 1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - r0 = 0; - { step = 17; continue; } - { step = 16; continue; } - case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___12618); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } - case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___12622); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } - case 13: - case 14: - case 15: - case 16: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 19: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); - s.tmp_5 = r0; - r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); - case 17: + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -helpers_arraySort_inline__P12600.info = {"start":5826,"length":636,"line":209,"column":25,"endLine":224,"endColumn":13,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"inline","argumentNames":["a","b"]} +controller_Controller_button__P69007.info = {"start":6666,"length":105,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function helpers_arraySort_inline__P12600_mk(s) { +function controller_Controller_button__P69007_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort_inline__P12600, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P69007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - aIsUndef___12603: undefined, - bIsUndef___12607: undefined, - aIsNull___12618: undefined, - bIsNull___12622: undefined, arg0: undefined, arg1: undefined, } } @@ -16983,7 +17834,7 @@ function helpers_arraySort_inline__P12600_mk(s) { -function helpers_sortHelper__P4449(s) { +function controller_Controller_up__P66345(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16993,114 +17844,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___12657 = undefined; - s.i___12660 = undefined; - s.j___12666 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___12657 = (r0); - s.i___12660 = (0); - case 5: - s.tmp_1 = r0 = s.i___12660; - r0 = (s.len___12657 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = (s.i___12660 + 1); - s.j___12666 = (r0); - case 6: - r0 = (s.j___12666 < s.len___12657); + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_3 = lambda_3_mk(s); - s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___12660); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___12666); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); + r0 = (2 - 1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P4448_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___12660; - s.tmp_4.arg2 = s.j___12666; - s.callLocIdx = 2; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = (s.j___12666 + 1); - s.j___12666 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___12660 + 1); - s.i___12660 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: - return leave(s, r0) + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -helpers_sortHelper__P4449.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} +controller_Controller_up__P66345.info = {"start":3979,"length":73,"line":137,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} +controller_Controller_up__P66345.isGetter = true; -function helpers_sortHelper__P4449_mk(s) { +function controller_Controller_up__P66345_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P4449, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P66345, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - len___12657: undefined, - i___12660: undefined, - j___12666: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_swap__P4448(s) { +function controller_Controller_right__P66344(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17110,46 +17885,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___12695 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___12695 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.arg2); - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); - r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___12695); - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -helpers_swap__P4448.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} +controller_Controller_right__P66344.info = {"start":3823,"length":79,"line":129,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} +controller_Controller_right__P66344.isGetter = true; -function helpers_swap__P4448_mk(s) { +function controller_Controller_right__P66344_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P4448, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P66344, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - temp___12695: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_init__P5351(s) { +function controller_Controller_left__P66343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17159,59 +17926,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___13946 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1839; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.scene___13946 = (r0); - r0 = s.scene___13946.fields["particleSources"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_1 = r0 = s.scene___13946; - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); - r0 = pxsim.control.millis(); - globals.lastUpdate___5346 = (r0); - s.tmp_0 = game_onUpdate__P3003_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P5352; - s.callLocIdx = 1840; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P3004_mk(s); - s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P5353; - s.callLocIdx = 1841; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) + r0 = (1 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -particles_init__P5351.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +controller_Controller_left__P66343.info = {"start":3666,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} +controller_Controller_left__P66343.isGetter = true; -function particles_init__P5351_mk(s) { +function controller_Controller_left__P66343_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P5351, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P66343, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - scene___13946: undefined, + arg0: undefined, } } -function particles_pruneParticles__P5353(s) { +function controller_Controller__controlledSprites__P66340(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17221,51 +17967,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___10778 = undefined; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1845; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___10778 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___10778); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_1 = helpers_arraySlice__P115_mk(s); - s.tmp_1.arg0 = s.sources___10778; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___10778); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1846; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = particles_pruneParticles_inline__P10787; - s.callLocIdx = 1848; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 272; s.pc = 1; return s.tmp_1; case 1: - case 2: + r0 = s.retval; + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles__P5353.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +controller_Controller__controlledSprites__P66340.info = {"start":3300,"length":134,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function particles_pruneParticles__P5353_mk(s) { +function controller_Controller__controlledSprites__P66340_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P5353, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P66340, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___10778: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_pruneParticles_inline__P10787(s) { +function controller_Controller__controlledSprites__P66339(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17279,23 +18019,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P3139_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1847; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 271; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -particles_pruneParticles_inline__P10787.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_Controller__controlledSprites__P66339.info = {"start":3158,"length":132,"line":101,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} +controller_Controller__controlledSprites__P66339.isGetter = true; -function particles_pruneParticles_inline__P10787_mk(s) { +function controller_Controller__controlledSprites__P66339_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles_inline__P10787, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P66339, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -17303,7 +18051,7 @@ function particles_pruneParticles_inline__P10787_mk(s) { -function particles_ParticleSource__prune__P3139(s) { +function Fx_imul__P64380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17313,137 +18061,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___10817 = undefined; - s.sources___10825 = undefined; - s.current___10839 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; - s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_imul__P64380.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} + +function Fx_imul__P64380_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_imul__P64380, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function power_checkDeepSleep__P66134(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___76309 = undefined; + s.to___76312 = undefined; + s.tmp_0 = power_init__P68853_mk(s); + s.callLocIdx = 185; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = r0 = globals._poked___68851; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = 0; case 2: - r0 = s.arg0.fields["head"]; - r0 = r0.fields["lifespan"]; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + s.p___76309 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___68852; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["head"]; - r0 = r0.fields["next"]; - s.tmp_3 = r0; - r0 = (s.arg0).fields["head"] = (s.tmp_3); - { step = 1; continue; } + r0 = 0; case 4: - r0 = s.arg0.fields["pFlags"]; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + s.to___76312 = (s.tmp_1); + r0 = (s.to___76312 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } r0 = s.tmp_0; { step = 6; continue; } case 5: - r0 = s.arg0.fields["head"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim.control.millis(); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 - s.p___76309); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.to___76312); case 6: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1820; s.pc = 21; return s.tmp_5; - case 21: - r0 = s.retval; - s.scene___10817 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___10817); - if (!r0) { step = 7; continue; } - r0 = s.scene___10817.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 7; continue; } + r0 = s.tmp_3; + { step = 8; continue; } case 7: + r0 = pxsim.control.isUSBInitialized(); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 8: - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1821; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - s.sources___10825 = (r0); - s.tmp_0 = r0 = s.sources___10825; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore.deepSleep(); case 9: - r0 = pxsim_Array__length(s.sources___10825); case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - r0 = pxsim_Array_.removeElement(s.sources___10825, s.arg0); - case 11: - case 12: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == undefined); - case 13: - case 14: - r0 = s.arg0.fields["head"]; - s.current___10839 = (r0); - case 15: - s.tmp_0 = r0 = s.current___10839; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___10839.fields["next"]; - case 17: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = s.current___10839.fields["next"]; - r0 = r0.fields["lifespan"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 <= 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 18; continue; } - r0 = s.current___10839.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___10839).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___10839.fields["next"]; - s.current___10839 = (r0); - case 19: - { step = 15; continue; } - case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P3139.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +power_checkDeepSleep__P66134.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function particles_ParticleSource__prune__P3139_mk(s) { +function power_checkDeepSleep__P66134_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P3139, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P66134, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17451,17 +18173,16 @@ function particles_ParticleSource__prune__P3139_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___10817: undefined, - sources___10825: undefined, - current___10839: undefined, - arg0: undefined, + tmp_6: undefined, + p___76309: undefined, + to___76312: undefined, } } -function helpers_arraySlice__P115(s) { +function power_init__P68853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17471,114 +18192,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___10862 = undefined; - s.len___10864 = undefined; - s.i___10898 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.res___10862 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___10864 = (r0); - r0 = (s.arg1 === undefined); + r0 = (globals._timeout___68852 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } + { step = 7; continue; } case 1: - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P130_mk(s); - r0 = (s.len___10864 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 10; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.arg1 = (r0); case 2: + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___68852 = (r0); + r0 = (globals._timeout___68852 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: + r0 = (globals._timeout___68852 < 300000); case 4: - r0 = (s.arg1 > s.len___10864); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - r0 = s.res___10862; - { step = 15; continue; } + globals._timeout___68852 = (300000); case 5: case 6: - r0 = (s.arg2 === undefined); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___10864); - { step = 10; continue; } case 7: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.len___10864 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___10864); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___10864); - case 11: - case 12: - s.i___10898 = (s.arg1); - case 13: - r0 = (s.i___10898 < s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___10862; - r0 = pxsim_Array__getAt(s.arg0, s.i___10898); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___10898 + 1); - s.i___10898 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___10862; - case 15: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySlice__P115.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} +power_init__P68853.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function helpers_arraySlice__P115_mk(s) { +function power_init__P68853_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P115, depth: s.depth + 1, + parent: s, fn: power_init__P68853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - res___10862: undefined, - len___10864: undefined, - i___10898: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_updateParticles__P5352(s) { +function power_poke__P66133(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17588,81 +18249,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___13988 = undefined; - s.time___13995 = undefined; - s.dt___13998 = undefined; - s.i___14004 = undefined; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1842; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sources___13988 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___13988); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } + s.tmp_0 = power_init__P68853_mk(s); + s.callLocIdx = 184; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_2 = particles_sortSources__P5354_mk(s); - s.tmp_2.arg0 = s.sources___13988; - s.callLocIdx = 1843; s.pc = 7; return s.tmp_2; - case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___13995 = (r0); - r0 = (s.time___13995 - globals.lastUpdate___5346); - s.dt___13998 = (r0); - globals.lastUpdate___5346 = (s.time___13995); - s.i___14004 = (0); - case 3: - s.tmp_1 = r0 = s.i___14004; - r0 = pxsim_Array__length(s.sources___13988); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = particles_ParticleSource__update__P3138_mk(s); - r0 = pxsim_Array__getAt(s.sources___13988, s.i___14004); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___13998; - s.callLocIdx = 1844; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - r0 = (s.i___14004 + 1); - s.i___14004 = (r0); - { step = 3; continue; } - case 4: - case 5: + globals._poked___68851 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_updateParticles__P5352.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +power_poke__P66133.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function particles_updateParticles__P5352_mk(s) { +function power_poke__P66133_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P5352, depth: s.depth + 1, + parent: s, fn: power_poke__P66133, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - sources___13988: undefined, - time___13995: undefined, - dt___13998: undefined, - i___14004: undefined, } } -function particles_ParticleSource__update__P3138(s) { +function control_EventContext_deltaTime__P64619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17672,266 +18283,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___14067 = undefined; - s.current___14086 = undefined; - s.fixedDt___14094 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timer"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["lifespan"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P3145_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1815; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 1: - case 2: - { step = 10; continue; } - case 3: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - s.tmp_2 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1816; s.pc = 29; return s.tmp_2; } - } - case 29: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 6; continue; } - r0 = s.tmp_3; - { step = 7; continue; } - case 6: - s.tmp_5 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1817; s.pc = 30; return s.tmp_5; } - } - case 30: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 2); - case 7: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 8; continue; } - r0 = (s.arg0).fields["lifespan"] = (750); - case 8: - case 9: - case 10: - case 11: - r0 = s.arg0.fields["timer"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 12; continue; } - r0 = s.tmp_0; - { step = 13; continue; } - case 12: - s.tmp_2 = particles_ParticleSource_enabled__P3143_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1818; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; - case 13: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 16; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.tmp_4.fields["timer"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["period"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C3167_v0_2_mk(s); - r0 = s.arg0.fields["_factory"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["anchor"]; - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C3167_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.createParticle; - s.pc = 32; return s.tmp_0; - case 32: - r0 = s.retval; - s.p___14067 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___14067); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - { step = 11; continue; } - case 14: - case 15: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = (s.p___14067).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___14067); - { step = 11; continue; } - case 16: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - { step = 27; continue; } - case 17: - case 18: - r0 = s.arg0.fields["head"]; - s.current___14086 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["_dt"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); - r0 = s.arg0.fields["_dt"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.fixedDt___14094 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___14094); - if (!r0) { step = 23; continue; } - case 19: - r0 = s.current___14086.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_2 = r0 = s.current___14086; - r0 = s.tmp_2.fields["lifespan"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - s.tmp_0 = particles_ParticleSource__C3131_v4_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___14086; - s.tmp_0.arg2 = s.fixedDt___14094; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C3131_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; - s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - case 20: - case 21: - r0 = s.current___14086.fields["next"]; - s.tmp_0 = r0; - s.current___14086 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - { step = 19; continue; } - case 22: - r0 = (s.arg0).fields["_dt"] = (0); - { step = 26; continue; } - case 23: - case 24: - s.tmp_0 = r0 = s.current___14086; - r0 = s.tmp_0.fields["lifespan"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - r0 = s.current___14086.fields["next"]; + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; - s.current___14086 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - { step = 24; continue; } - case 25: - case 26: - case 27: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource__update__P3138.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +control_EventContext_deltaTime__P64619.info = {"start":2135,"length":75,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} +control_EventContext_deltaTime__P64619.isGetter = true; -function particles_ParticleSource__update__P3138_mk(s) { +function control_EventContext_deltaTime__P64619_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P3138, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P64619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - p___14067: undefined, - current___14086: undefined, - fixedDt___14094: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_updateParticle__P5348(s) { +function scene_Scene_constructor__P67065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17948,74 +18328,101 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = (s.arg2 >> 10); - s.arg2 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vx"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ax"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = (s.arg0).fields["previousScene"] = (s.arg2); + r0 = (s.arg0).fields["eventContext"] = (s.arg1); + r0 = (s.arg0).fields["flags"] = (0); + r0 = pxsim_pxtcore_mkClassInstance(ArcadePhysicsEngine__C66726_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P66727_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 500; + s.tmp_1.arg2 = 2; + s.tmp_1.arg3 = 4; + s.callLocIdx = 1341; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C66980_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Camera_constructor__P66984_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1342; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["camera"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C66868_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P66872_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1343; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["background"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vy"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ay"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vx"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vy"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); + r0 = (s.arg0).fields["_millis"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P5348.info = {"start":8248,"length":357,"line":277,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +scene_Scene_constructor__P67065.info = {"start":3586,"length":836,"line":106,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function particles_ParticleSource_updateParticle__P5348_mk(s) { +function scene_Scene_constructor__P67065_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P5348, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P67065, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18025,7 +18432,7 @@ function particles_ParticleSource_updateParticle__P5348_mk(s) { -function Fx_rightShift__P171(s) { +function scene_Camera_constructor__P66984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18037,29 +18444,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 >> s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = (s.arg0).fields["_offsetX"] = (0); + r0 = (s.arg0).fields["_offsetY"] = (0); + r0 = (s.arg0).fields["drawOffsetX"] = (0); + r0 = (s.arg0).fields["drawOffsetY"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_rightShift__P171.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +scene_Camera_constructor__P66984.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function Fx_rightShift__P171_mk(s) { +function scene_Camera_constructor__P66984_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P171, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P66984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function particles_ParticleFactory_createParticle__P3169(s) { +function scene_Background_constructor__P66872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18069,74 +18480,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___14177 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C3167_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C3112_VT); - s.p___14177 = (r0); - s.tmp_0 = r0 = s.p___14177; - s.tmp_3 = if_x_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1874; s.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___14177; - s.tmp_3 = if_y_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1876; s.pc = 2; return s.tmp_3; } - } - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + if (!checkSubtype(r0, scene_Background__C66868_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___14177).fields["vx"] = (0); - r0 = (s.p___14177).fields["vy"] = (0); - r0 = (s.p___14177).fields["lifespan"] = (500); - r0 = s.p___14177; + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P3169.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +scene_Background_constructor__P66872.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} -function particles_ParticleFactory_createParticle__P3169_mk(s) { +function scene_Background_constructor__P66872_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P3169, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P66872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - p___14177: undefined, arg0: undefined, arg1: undefined, } } @@ -18145,7 +18514,7 @@ function particles_ParticleFactory_createParticle__P3169_mk(s) { -function game_onUpdateInterval__P3004(s) { +function ArcadePhysicsEngine_constructor__P66727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18155,74 +18524,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___13968 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C66645_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_1 = sprites_SpriteMap_constructor__P66646_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 808; s.pc = 1; return s.tmp_1; case 1: - r0 = (s.arg0 < 0); + r0 = s.retval; + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P66729_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 809; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 5; continue; } + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_maxStep__P66733_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 810; s.pc = 3; return s.tmp_0; case 3: - case 4: - r0 = pxsim_pxtrt.mklocRef(); - s.timer___13968 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___13968, 0); - r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P13972); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___13968); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_2 = game_eventContext__P2982_mk(s); - s.callLocIdx = 1624; s.pc = 7; return s.tmp_2; - case 7: r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 19; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1628; s.pc = 6; return s.tmp_1; - case 6: + s.tmp_0 = ArcadePhysicsEngine_minStep__P66731_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 811; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P3004.info = {"start":813,"length":401,"line":26,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +ArcadePhysicsEngine_constructor__P66727.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function game_onUpdateInterval__P3004_mk(s) { +function ArcadePhysicsEngine_constructor__P66727_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P3004, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P66727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - timer___13968: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_onUpdateInterval_inline__P13972(s) { +function ArcadePhysicsEngine_maxStep__P66733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18232,55 +18597,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___13973 = undefined; - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1625; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___13973 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___13973); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.caps[0]; - r0 = (s.time___13973 + s.caps[1]); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.caps[2]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1627; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 1: - case 2: + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval_inline__P13972.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_maxStep__P66733.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function game_onUpdateInterval_inline__P13972_mk(s) { +function ArcadePhysicsEngine_maxStep__P66733_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval_inline__P13972, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P66733, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - time___13973: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_millis__P2849(s) { +function ArcadePhysicsEngine_maxStep__P66732(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18295,18 +18647,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; - return leave(s, r0) + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_millis__P2849.info = {"start":7090,"length":61,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P66732.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P66732.isGetter = true; -function scene_Scene_millis__P2849_mk(s) { +function ArcadePhysicsEngine_maxStep__P66732_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P2849, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P66732, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -18314,7 +18673,7 @@ function scene_Scene_millis__P2849_mk(s) { -function MAX_SOURCES_inline__P13922(s) { +function Fx_toInt__P64391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18324,54 +18683,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___13923 = undefined; - s.tmp_0 = control_ramSize__P346_mk(s); - s.callLocIdx = 45; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sz___13923 = (r0); - r0 = (s.sz___13923 <= 102400); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 + 128); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 8; - { step = 5; continue; } - { step = 4; continue; } - case 1: - r0 = (s.sz___13923 <= 204800); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = 16; - { step = 5; continue; } - { step = 3; continue; } - case 2: - r0 = 50; - { step = 5; continue; } - case 3: - case 4: - r0 = undefined; - case 5: + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -MAX_SOURCES_inline__P13922.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +Fx_toInt__P64391.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function MAX_SOURCES_inline__P13922_mk(s) { +function Fx_toInt__P64391_mk(s) { checkStack(s.depth); return { - parent: s, fn: MAX_SOURCES_inline__P13922, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P64391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - sz___13923: undefined, + arg0: undefined, } } -function control_ramSize__P346(s) { +function ArcadePhysicsEngine_minStep__P66731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18381,37 +18718,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.getConfig(205, 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 33554432; - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -control_ramSize__P346.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +ArcadePhysicsEngine_minStep__P66731.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function control_ramSize__P346_mk(s) { +function ArcadePhysicsEngine_minStep__P66731_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P346, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P66731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function control__ramSize__P4491(s) { +function ArcadePhysicsEngine_minStep__P66730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18421,24 +18763,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = 33554432; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -control__ramSize__P4491.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +ArcadePhysicsEngine_minStep__P66730.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P66730.isGetter = true; -function control__ramSize__P4491_mk(s) { +function ArcadePhysicsEngine_minStep__P66730_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P4491, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P66730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function particles_SprayFactory_constructor__P3172(s) { +function ArcadePhysicsEngine_maxSpeed__P66729(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18451,53 +18807,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C3171_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P5372_mk(s); - s.callLocIdx = 1881; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P3175_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1882; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P3176_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1883; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P3172.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} +ArcadePhysicsEngine_maxSpeed__P66729.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function particles_SprayFactory_constructor__P3172_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P66729_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P3172, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P66729, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_initTrig__P5372(s) { +function Fx_neg__P64374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18507,47 +18855,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___5358); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = particles_cacheSin__P3165_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1869; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___5358 = (r0); - s.tmp_0 = particles_cacheCos__P3166_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1870; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___5359 = (r0); - case 1: - case 2: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -particles_initTrig__P5372.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +Fx_neg__P64374.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function particles_initTrig__P5372_mk(s) { +function Fx_neg__P64374_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P5372, depth: s.depth + 1, + parent: s, fn: Fx_neg__P64374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, } } -function particles_cacheCos__P3166(s) { +function ArcadePhysicsEngine_maxSpeed__P66728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18557,57 +18887,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___13816 = undefined; - s.anglePerSlice___13818 = undefined; - s.i___13824 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.cos___13816 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___13818 = (r0); - s.i___13824 = (0); - case 1: - r0 = (s.i___13824 < s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___13816; - r0 = (s.i___13824 * s.anglePerSlice___13818); - s.tmp_4 = r0; - r0 = pxsim.Math_.cos(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___13824 + 1); - s.i___13824 = (r0); - { step = 1; continue; } - case 2: - r0 = s.cos___13816; - return leave(s, r0) + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -particles_cacheCos__P3166.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +ArcadePhysicsEngine_maxSpeed__P66728.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P66728.isGetter = true; -function particles_cacheCos__P3166_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P66728_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P3166, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P66728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - cos___13816: undefined, - anglePerSlice___13818: undefined, - i___13824: undefined, arg0: undefined, } } @@ -18615,7 +18918,7 @@ function particles_cacheCos__P3166_mk(s) { -function particles_cacheSin__P3165(s) { +function PhysicsEngine_constructor__P66711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18625,57 +18928,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___13842 = undefined; - s.anglePerSlice___13844 = undefined; - s.i___13850 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.sin___13842 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___13844 = (r0); - s.i___13850 = (0); - case 1: - r0 = (s.i___13850 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___13842; - r0 = (s.i___13850 * s.anglePerSlice___13844); - s.tmp_4 = r0; - r0 = pxsim.Math_.sin(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___13850 + 1); - s.i___13850 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___13842; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheSin__P3165.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +PhysicsEngine_constructor__P66711.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function particles_cacheSin__P3165_mk(s) { +function PhysicsEngine_constructor__P66711_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P3165, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P66711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - sin___13842: undefined, - anglePerSlice___13844: undefined, - i___13850: undefined, arg0: undefined, } } @@ -18683,7 +18952,7 @@ function particles_cacheSin__P3165_mk(s) { -function particles_SprayFactory_setDirection__P3176(s) { +function sprites_SpriteMap_constructor__P66646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18695,68 +18964,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C3171_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P5377_mk(s); - s.tmp_5 = r0 = s.arg1; - r0 = (s.arg2 >> 1); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4.arg0 = r0; - s.callLocIdx = 1891; s.pc = 1; return s.tmp_4; - case 1: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___5371); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P5377_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1892; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___5371); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P3176.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} +sprites_SpriteMap_constructor__P66646.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function particles_SprayFactory_setDirection__P3176_mk(s) { +function sprites_SpriteMap_constructor__P66646_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P3176, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P66646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_toRadians__P5377(s) { +function control_pushEventContext__P64628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18766,52 +19002,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 < 0); + s.ctx___77443 = undefined; + s.n___77449 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___68747); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P128_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1873; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); - s.tmp_1 = r0; - r0 = (360 - s.tmp_1); - s.arg0 = (r0); - { step = 2; continue; } + r0 = pxsim_Array__mk(); + globals.eventContexts___68747 = (r0); case 1: - r0 = (s.arg0 % 360); - s.arg0 = (r0); case 2: - r0 = (s.arg0 * 0.017453292519943295); + s.tmp_0 = control_eventContext__P64627_mk(s); + s.callLocIdx = 72; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.ctx___77443 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___77443); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P64621_mk(s); + s.tmp_0.arg0 = s.ctx___77443; + s.callLocIdx = 73; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C64614_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P64618_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 74; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___77449 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___68747, s.n___77449); + r0 = s.n___77449; return leave(s, r0) default: oops() } } } -particles_toRadians__P5377.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +control_pushEventContext__P64628.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function particles_toRadians__P5377_mk(s) { +function control_pushEventContext__P64628_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P5377, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P64628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, + ctx___77443: undefined, + n___77449: undefined, } } -function Math_abs__P128(s) { +function control_EventContext_constructor__P64618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18825,27 +19072,37 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C64614_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["handlers"] = (s.tmp_1); + r0 = (s.arg0).fields["framesInSample"] = (0); + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["deltaTimeMillis"] = (0); + r0 = (s.arg0).fields["frameWorker"] = (0); + r0 = (s.arg0).fields["idleCallbacks"] = (undefined); + r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___64616); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 2; continue; } + r0 = pxsim_String_.mkEmpty(); + globals.control_EventContext_lastStats___64616 = (r0); case 1: - r0 = s.arg0; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_abs__P128.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +control_EventContext_constructor__P64618.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function Math_abs__P128_mk(s) { +function control_EventContext_constructor__P64618_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P128, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P64618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18856,7 +19113,7 @@ function Math_abs__P128_mk(s) { -function particles_SprayFactory_setSpeed__P3175(s) { +function particles_disableAll__P67381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18866,42 +19123,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C3171_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); + s.sources___77628 = undefined; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1859; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___77628 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___77628); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_0.arg0 = s.sources___77628; + s.tmp_0.arg1 = particles_disableAll_inline__P77634; + s.callLocIdx = 1861; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P69572_mk(s); + s.callLocIdx = 1862; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P3175.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +particles_disableAll__P67381.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function particles_SprayFactory_setSpeed__P3175_mk(s) { +function particles_disableAll__P67381_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P3175, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P67381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, + sources___77628: undefined, } } -function particles_ParticleFactory_constructor__P3168(s) { +function particles_disableAll_inline__P77634(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18915,19 +19176,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C3167_VT)) failedCast(r0); - r0 = undefined; + s.tmp_0 = particles_ParticleSource_enabled__P67363_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1860; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = false; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P3168.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_disableAll_inline__P77634.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_ParticleFactory_constructor__P3168_mk(s) { +function particles_disableAll_inline__P77634_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P3168, depth: s.depth + 1, + parent: s, fn: particles_disableAll_inline__P77634, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -18935,7 +19201,7 @@ function particles_ParticleFactory_constructor__P3168_mk(s) { -function particles_ParticleSource_setFactory__P3150(s) { +function particles_clearAll__P67380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18945,38 +19211,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + s.sources___77639 = undefined; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1855; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___77639 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___77639); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_factory"] = (s.arg1); + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_0.arg0 = s.sources___77639; + s.tmp_0.arg1 = particles_clearAll_inline__P77645; + s.callLocIdx = 1857; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P69572_mk(s); + s.callLocIdx = 1858; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P3150.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +particles_clearAll__P67380.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function particles_ParticleSource_setFactory__P3150_mk(s) { +function particles_clearAll__P67380_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P3150, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P67380, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + sources___77639: undefined, } } -function particles_ParticleSource_setRate__P3148(s) { +function particles_clearAll_inline__P77645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18988,41 +19262,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); - s.tmp_2 = r0; - r0 = pxsim.Math_.ceil(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["period"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (0); + s.tmp_0 = particles_ParticleSource_clear__P67365_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1856; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P3148.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +particles_clearAll_inline__P77645.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_ParticleSource_setRate__P3148_mk(s) { +function particles_clearAll_inline__P77645_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P3148, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P77645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_setAnchor__P3147(s) { +function particles_ParticleSource_clear__P67365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19034,32 +19300,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P3147.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +particles_ParticleSource_clear__P67365.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function particles_ParticleSource_setAnchor__P3147_mk(s) { +function particles_ParticleSource_clear__P67365_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P3147, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P67365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_clear__P3146(s) { +function game_Dialog_setText__P67129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19071,30 +19335,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_setFont__P69196_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = image_getFontForText__P66177_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 1428; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1429; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_Dialog_chunkText__P67128_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 1430; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["chunks"] = (s.tmp_1); + r0 = (s.arg0).fields["chunkIndex"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P3146.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +game_Dialog_setText__P67129.info = {"start":7674,"length":183,"line":241,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} -function particles_ParticleSource_clear__P3146_mk(s) { +function game_Dialog_setText__P67129_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P3146, depth: s.depth + 1, + parent: s, fn: game_Dialog_setText__P67129, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_destroy__P3145(s) { +function game_BaseDialog_setFont__P69196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19106,49 +19395,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P3144_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1825; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P3139_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1826; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = (s.arg0).fields["font"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P3145.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +game_BaseDialog_setFont__P69196.info = {"start":5994,"length":77,"line":190,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setFont","argumentNames":["this","font"]} -function particles_ParticleSource_destroy__P3145_mk(s) { +function game_BaseDialog_setFont__P69196_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P3145, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setFont__P69196, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_enabled__P3144(s) { +function game_Dialog_chunkText__P67128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19158,51 +19430,141 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.charactersPerRow___75514 = undefined; + s.charactersPerCursorRow___75523 = undefined; + s.rowsOfCharacters___75535 = undefined; + s.rowsWithCursor___75542 = undefined; + s.lineLengths___75550 = undefined; + s.i___75552 = undefined; + s.i___75565 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P3143_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1824; s.pc = 5; return s.tmp_3; + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + s.tmp_2 = game_BaseDialog_textAreaWidth__P69194_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1421; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_1 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1422; s.pc = 6; return s.tmp_4; } + } + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["pFlags"]; + r0 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerRow___75514 = (r0); + s.tmp_1 = r0 = s.charactersPerRow___75514; + r0 = s.arg0.fields["cursor"]; s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["pFlags"]; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1423; s.pc = 7; return s.tmp_6; } + } + case 7: + r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 ^ 1); + r0 = (s.tmp_3 / s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerCursorRow___75523 = (r0); + s.tmp_2 = game_BaseDialog_textAreaHeight__P69195_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1424; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = game_BaseDialog_rowHeight__P69193_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1425; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 / s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.rowsOfCharacters___75535 = (r0); + r0 = s.arg0.fields["cursor"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + s.tmp_4 = game_BaseDialog_rowHeight__P69193_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1426; s.pc = 10; return s.tmp_4; + case 10: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 / s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim.Math_.ceil(s.tmp_0); + s.rowsWithCursor___75542 = (r0); + r0 = pxsim_Array__mk(); + s.lineLengths___75550 = (r0); + s.i___75552 = (0); + case 1: + s.tmp_1 = r0 = s.i___75552; + r0 = (s.rowsOfCharacters___75535 - s.rowsWithCursor___75542); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.lineLengths___75550, s.charactersPerRow___75514); + r0 = (s.i___75552 + 1); + s.i___75552 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); - r0 = (s.arg0).fields["timer"] = (0); + s.i___75565 = (0); case 3: + r0 = (s.i___75565 < s.rowsWithCursor___75542); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__push(s.lineLengths___75550, s.charactersPerCursorRow___75523); + r0 = (s.i___75565 + 1); + s.i___75565 = (r0); + { step = 3; continue; } case 4: - r0 = undefined; + s.tmp_0 = game_breakIntoPages__P69214_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.lineLengths___75550; + s.callLocIdx = 1427; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P3144.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +game_Dialog_chunkText__P67128.info = {"start":6929,"length":735,"line":227,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"chunkText","argumentNames":["this","str"]} -function particles_ParticleSource_enabled__P3144_mk(s) { +function game_Dialog_chunkText__P67128_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P3144, depth: s.depth + 1, + parent: s, fn: game_Dialog_chunkText__P67128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19211,6 +19573,13 @@ function particles_ParticleSource_enabled__P3144_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + charactersPerRow___75514: undefined, + charactersPerCursorRow___75523: undefined, + rowsOfCharacters___75535: undefined, + rowsWithCursor___75542: undefined, + lineLengths___75550: undefined, + i___75552: undefined, + i___75565: undefined, arg0: undefined, arg1: undefined, } } @@ -19219,7 +19588,7 @@ function particles_ParticleSource_enabled__P3144_mk(s) { -function particles_ParticleSource_enabled__P3143(s) { +function game_breakIntoPages__P69214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19229,336 +19598,293 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.result___75581 = undefined; + s.currentPage___75583 = undefined; + s.lastBreakLocation___75585 = undefined; + s.lastBreak___75586 = undefined; + s.line___75587 = undefined; + s.lineLength___75588 = undefined; + s.nextLine___75591 = undefined; + s.index___75597 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); + r0 = pxsim_Array__mk(); + s.result___75581 = (r0); + r0 = pxsim_Array__mk(); + s.currentPage___75583 = (r0); + s.lastBreakLocation___75585 = (0); + s.lastBreak___75586 = (0); + r0 = pxsim_pxtrt.mklocRef(); + s.line___75587 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.line___75587, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.lineLength___75588 = (r0); + s.tmp_0 = r0 = s.lineLength___75588; + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.line___75587); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtcore_mkAction(3, nextLine__P75591); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) - default: oops() -} } } -particles_ParticleSource_enabled__P3143.info = {"start":6622,"length":76,"line":216,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} -particles_ParticleSource_enabled__P3143.isGetter = true; - -function particles_ParticleSource_enabled__P3143_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_enabled__P3143, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } - - - - - -function helpers_arrayShift__P102(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array_.removeAt(s.arg0, 0); - return leave(s, r0) - default: oops() -} } } -helpers_arrayShift__P102.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} - -function helpers_arrayShift__P102_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_arrayShift__P102, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function particles_AshFactory_constructor__P3212(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.counts___14222 = undefined; - s.i___14224 = undefined; - s.result___14233 = undefined; - s.x___14238 = undefined; - s.y___14244 = undefined; - s.c___14250 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C3211_VT)) failedCast(r0); - s.tmp_1 = if_width_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "width"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["width"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["width"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1937; s.pc = 20; return s.tmp_1; } - } - case 20: - r0 = s.retval; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.line___75587); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.lineLength___75588); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); + s.nextLine___75591 = (s.tmp_0); + s.index___75597 = (0); + case 1: + s.tmp_1 = r0 = s.index___75597; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = if_width_1_mk(s); - s.tmp_2.arg0 = s.arg1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1938; s.pc = 21; return s.tmp_2; } - } - case 21: - r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = 8; - case 2: - // jmp value (already in r0) + if (!r0) { step = 18; continue; } + r0 = pxsim_String_.charAt(s.arg0, s.index___75597); + s.tmp_4 = r0; + r0 = (s.tmp_4 === "\n"); s.tmp_3 = r0; - s.tmp_5 = if_height_1_mk(s); - s.tmp_5.arg0 = s.arg1; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "height"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["height"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["height"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1939; s.pc = 22; return s.tmp_5; } - } - case 22: + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 2; continue; } + s.tmp_5 = r0 = s.currentPage___75583; + s.tmp_7 = game_formatLine__P69215_mk(s); + s.tmp_8 = helpers_stringSubstr__P64337_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = s.lastBreak___75586; + r0 = (s.index___75597 - s.lastBreak___75586); + s.tmp_8.arg2 = r0; + s.callLocIdx = 1548; s.pc = 24; return s.tmp_8; + case 24: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_7 = if_height_1_mk(s); - s.tmp_7.arg0 = s.arg1; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "height"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["height"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["height"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1940; s.pc = 23; return s.tmp_7; } - } + s.tmp_7.arg0 = r0; + s.callLocIdx = 1549; s.pc = 23; return s.tmp_7; case 23: r0 = s.retval; s.tmp_6 = r0; - r0 = (s.tmp_6 >> 1); + r0 = pxsim_Array__push(s.tmp_5, s.tmp_6); + r0 = (s.index___75597 + 1); + s.index___75597 = (r0); + s.lastBreak___75586 = (s.index___75597); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___75591; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1550; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + { step = 9; continue; } + case 2: + r0 = pxsim_String_.charAt(s.arg0, s.index___75597); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = 8; + s.tmp_3 = r0 = s.arg0; + r0 = (s.index___75597 + 1); + s.tmp_4 = r0; + r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 === "n"); case 4: // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = particles_AreaFactory_constructor__P3182_mk(s); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + s.tmp_6 = r0 = s.currentPage___75583; + s.tmp_8 = game_formatLine__P69215_mk(s); + s.tmp_9 = helpers_stringSubstr__P64337_mk(s); s.tmp_9.arg0 = s.arg0; - s.tmp_9.arg1 = s.tmp_3; - s.tmp_9.arg2 = s.tmp_8; - s.tmp_9.arg3 = 300; - s.tmp_9.arg4 = 700; - s.callLocIdx = 1941; s.pc = 24; return s.tmp_9; - case 24: - r0 = s.retval; - s.tmp_3 = if_image_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "image"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["image"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["image"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1942; s.pc = 25; return s.tmp_3; } - } - case 25: + s.tmp_9.arg1 = s.lastBreak___75586; + r0 = (s.index___75597 - s.lastBreak___75586); + s.tmp_9.arg2 = r0; + s.callLocIdx = 1551; s.pc = 27; return s.tmp_9; + case 27: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C5385_VT); - s.tmp_4 = r0; - s.tmp_5 = particles_ColorCount_constructor__P5386_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.tmp_5.arg1 = 1; - s.tmp_5.arg2 = 20; - s.callLocIdx = 1943; s.pc = 26; return s.tmp_5; + s.tmp_8.arg0 = r0; + s.callLocIdx = 1552; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); - r0 = (s.arg0).fields["colors"] = (s.tmp_6); - r0 = undefined; - { step = 19; continue; } + s.tmp_7 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_7); + r0 = (s.index___75597 + 2); + s.index___75597 = (r0); + s.lastBreak___75586 = (s.index___75597); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___75591; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1553; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + { step = 8; continue; } case 5: - case 6: - r0 = pxsim_Array__mk(); - s.counts___14222 = (r0); - s.i___14224 = (0); - case 7: - r0 = (s.i___14224 <= 15); + s.tmp_1 = game_isBreakCharacter__P69213_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.index___75597); + s.tmp_1.arg0 = r0; + s.callLocIdx = 1554; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array_.setAt(s.counts___14222, s.i___14224, 0); - r0 = (s.i___14224 + 1); - s.i___14224 = (r0); - { step = 7; continue; } + if (!r0) { step = 6; continue; } + s.lastBreakLocation___75585 = (s.index___75597); + case 6: + case 7: case 8: - s.tmp_1 = if_image_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "image"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1944; s.pc = 27; return s.tmp_1; } - } - case 27: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.result___14233 = (r0); - s.x___14238 = (0); case 9: - s.tmp_1 = r0 = s.x___14238; - r0 = pxsim_ImageMethods.width(s.result___14233); + r0 = (s.index___75597 - s.lastBreak___75586); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.lineLength___75588); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.y___14244 = (0); + if (!r0) { step = 14; continue; } + r0 = (s.lastBreakLocation___75585 === s.index___75597); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 10; continue; } + r0 = s.tmp_3; + { step = 11; continue; } case 10: - s.tmp_1 = r0 = s.y___14244; - r0 = pxsim_ImageMethods.height(s.result___14233); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = pxsim_ImageMethods.getPixel(s.result___14233, s.x___14238, s.y___14244); - s.c___14250 = (r0); - s.tmp_0 = r0 = s.c___14250; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } + r0 = (s.lastBreakLocation___75585 < s.lastBreak___75586); case 11: - s.tmp_1 = Math_FastRandom_percentChance__P3046_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg3; - s.callLocIdx = 1945; s.pc = 28; return s.tmp_1; - case 28: - r0 = s.retval; - case 12: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.counts___14222; - s.tmp_4 = r0 = s.c___14250; - r0 = pxsim_Array__getAt(s.tmp_3, s.c___14250); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + s.tmp_5 = r0 = s.currentPage___75583; + s.tmp_7 = game_formatLine__P69215_mk(s); + s.tmp_8 = helpers_stringSubstr__P64337_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = s.lastBreak___75586; + r0 = pxsim_pxtrt_ldlocRef(s.lineLength___75588); + s.tmp_8.arg2 = r0; + s.callLocIdx = 1555; s.pc = 31; return s.tmp_8; + case 31: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 1556; s.pc = 30; return s.tmp_7; + case 30: + r0 = s.retval; s.tmp_6 = r0; - r0 = (s.tmp_6 + 1); - s.tmp_5 = r0; - r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); - r0 = pxsim_ImageMethods.setPixel(s.result___14233, s.x___14238, s.y___14244, 0); + r0 = pxsim_Array__push(s.tmp_5, s.tmp_6); + s.lastBreak___75586 = (s.index___75597); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___75591; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1557; s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + { step = 13; continue; } + case 12: + s.tmp_0 = r0 = s.currentPage___75583; + s.tmp_2 = game_formatLine__P69215_mk(s); + s.tmp_3 = helpers_stringSubstr__P64337_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.lastBreak___75586; + r0 = (s.lastBreakLocation___75585 - s.lastBreak___75586); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1558; s.pc = 34; return s.tmp_3; + case 34: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1559; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.lastBreak___75586 = (s.lastBreakLocation___75585); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___75591; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1560; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; case 13: case 14: - r0 = (s.y___14244 + 1); - s.y___14244 = (r0); - { step = 10; continue; } case 15: - r0 = (s.x___14238 + 1); - s.x___14238 = (r0); - { step = 9; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.line___75587); + s.tmp_1 = r0; + r0 = pxsim_Array__length(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = pxsim_pxtrt_stlocRef(s.line___75587, 0); + s.tmp_0 = r0 = s.lineLength___75588; + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.line___75587); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_Array__push(s.result___75581, s.currentPage___75583); + r0 = pxsim_Array__mk(); + s.currentPage___75583 = (r0); case 16: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 17; continue; } - s.tmp_0 = Sprite_setImage__P2371_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.result___14233; - s.callLocIdx = 1946; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; case 17: + r0 = (s.index___75597 + 1); + s.index___75597 = (r0); + { step = 1; continue; } case 18: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_3 = helpers_arrayMap__P106_mk(s); - s.tmp_3.arg0 = s.counts___14222; - s.tmp_3.arg1 = filter_inline__P14285; - s.callLocIdx = 1948; s.pc = 31; return s.tmp_3; - case 31: + s.tmp_0 = r0 = s.currentPage___75583; + s.tmp_2 = game_formatLine__P69215_mk(s); + s.tmp_3 = helpers_stringSubstr__P64337_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.lastBreak___75586; + r0 = pxsim_String_.length(s.arg0); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.lastBreak___75586); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1561; s.pc = 37; return s.tmp_3; + case 37: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = particles_AshFactory_inline__P14292; - s.callLocIdx = 1949; s.pc = 30; return s.tmp_2; - case 30: + s.callLocIdx = 1562; s.pc = 36; return s.tmp_2; + case 36: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["colors"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim_Array__length(s.currentPage___75583); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } case 19: + r0 = pxsim_Array__getAt(s.currentPage___75583, 0); + s.tmp_2 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3 = r0; + r0 = (s.tmp_2 !== s.tmp_3); + case 20: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 21; continue; } + r0 = pxsim_Array__push(s.result___75581, s.currentPage___75583); + case 21: + case 22: + r0 = s.result___75581; return leave(s, r0) default: oops() } } } -particles_AshFactory_constructor__P3212.info = {"start":11775,"length":1466,"line":385,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","anchor","updateImage","percentKept"]} +game_breakIntoPages__P69214.info = {"start":32043,"length":2187,"line":908,"column":4,"endLine":969,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"breakIntoPages","argumentNames":["text","lineLengths"]} -function particles_AshFactory_constructor__P3212_mk(s) { +function game_breakIntoPages__P69214_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_constructor__P3212, depth: s.depth + 1, + parent: s, fn: game_breakIntoPages__P69214, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19570,23 +19896,23 @@ function particles_AshFactory_constructor__P3212_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - counts___14222: undefined, - i___14224: undefined, - result___14233: undefined, - x___14238: undefined, - y___14244: undefined, - c___14250: undefined, + result___75581: undefined, + currentPage___75583: undefined, + lastBreakLocation___75585: undefined, + lastBreak___75586: undefined, + line___75587: undefined, + lineLength___75588: undefined, + nextLine___75591: undefined, + index___75597: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function filter_inline__P14285(s) { +function nextLine__P75591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19596,42 +19922,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C5385_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ColorCount_constructor__P5386_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg0; - s.callLocIdx = 1947; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[1]; + s.tmp_2 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -filter_inline__P14285.info = {"start":13124,"length":62,"line":421,"column":21,"endLine":421,"endColumn":83,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["value","index"]} +nextLine__P75591.info = {"start":32336,"length":95,"line":918,"column":8,"endLine":921,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"nextLine","argumentNames":[]} -function filter_inline__P14285_mk(s) { +function nextLine__P75591_mk(s) { checkStack(s.depth); return { - parent: s, fn: filter_inline__P14285, depth: s.depth + 1, + parent: s, fn: nextLine__P75591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function particles_AshFactory_inline__P14292(s) { +function game_formatLine__P69215(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19641,24 +19966,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___75785 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["count"]; + s.i___75785 = (0); + case 1: + r0 = pxsim_String_.charAt(s.arg0, s.i___75785); + s.tmp_1 = r0; + r0 = (s.tmp_1 === " "); s.tmp_0 = r0; - r0 = (s.tmp_0 != 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = (s.i___75785 + 1); + s.i___75785 = (r0); + { step = 1; continue; } + case 2: + s.tmp_0 = helpers_stringSubstr__P64337_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.i___75785; + r0 = pxsim_String_.length(s.arg0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1563; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; return leave(s, r0) default: oops() } } } -particles_AshFactory_inline__P14292.info = {"start":13212,"length":17,"line":422,"column":24,"endLine":422,"endColumn":41,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["v"]} +game_formatLine__P69215.info = {"start":34236,"length":148,"line":971,"column":4,"endLine":975,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"formatLine","argumentNames":["text"]} -function particles_AshFactory_inline__P14292_mk(s) { +function game_formatLine__P69215_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_inline__P14292, depth: s.depth + 1, + parent: s, fn: game_formatLine__P69215, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + i___75785: undefined, arg0: undefined, } } @@ -19666,7 +20011,7 @@ function particles_AshFactory_inline__P14292_mk(s) { -function particles_ColorCount_constructor__P5386(s) { +function game_isBreakCharacter__P69213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19678,35 +20023,142 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ColorCount__C5385_VT)) failedCast(r0); - r0 = (s.arg0).fields["color"] = (s.arg1); - r0 = (s.arg0).fields["count"] = (s.arg2); - r0 = undefined; + r0 = (s.arg0 <= 32); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 1: + r0 = (s.arg0 >= 58); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } + case 2: + r0 = (s.arg0 <= 64); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 8; continue; } + case 5: + r0 = (s.arg0 >= 91); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 6; continue; } + r0 = s.tmp_4; + { step = 7; continue; } + case 6: + r0 = (s.arg0 <= 96); + case 7: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = s.tmp_6; + { step = 12; continue; } + case 9: + r0 = (s.arg0 >= 123); + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (r0) { step = 10; continue; } + r0 = s.tmp_7; + { step = 11; continue; } + case 10: + r0 = (s.arg0 <= 126); + case 11: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = s.tmp_8; + case 12: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (!r0) { step = 13; continue; } + r0 = s.tmp_9; + { step = 16; continue; } + case 13: + r0 = (s.arg0 >= 19968); + s.tmp_10 = r0; + r0 = pxsim_numops_toBool(s.tmp_10); + if (r0) { step = 14; continue; } + r0 = s.tmp_10; + { step = 15; continue; } + case 14: + r0 = (s.arg0 <= 40869); + case 15: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + case 16: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = pxsim_numops_toBool(s.tmp_12); + if (!r0) { step = 17; continue; } + r0 = s.tmp_12; + { step = 18; continue; } + case 17: + r0 = (s.arg0 == 12290); + case 18: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBool(s.tmp_13); + if (!r0) { step = 19; continue; } + r0 = s.tmp_13; + { step = 20; continue; } + case 19: + r0 = (s.arg0 == 65292); + case 20: + // jmp value (already in r0) + s.tmp_14 = r0; + r0 = s.tmp_14; return leave(s, r0) default: oops() } } } -particles_ColorCount_constructor__P5386.info = {"start":11603,"length":59,"line":379,"column":8,"endLine":379,"endColumn":67,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","color","count"]} +game_isBreakCharacter__P69213.info = {"start":31679,"length":358,"line":898,"column":4,"endLine":906,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isBreakCharacter","argumentNames":["charCode"]} -function particles_ColorCount_constructor__P5386_mk(s) { +function game_isBreakCharacter__P69213_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ColorCount_constructor__P5386, depth: s.depth + 1, + parent: s, fn: game_isBreakCharacter__P69213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_AreaFactory_constructor__P3182(s) { +function helpers_stringSubstr__P64337(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19720,76 +20172,55 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C3177_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P3172_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 40; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 90; - s.callLocIdx = 1893; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = (s.arg0).fields["xRange"] = (s.arg1); - r0 = (s.arg0).fields["yRange"] = (s.arg2); - r0 = pxsim_numops_toBoolDecr(s.arg3); + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg3; - { step = 2; continue; } + r0 = pxsim_String_.length(s.arg0); + { step = 4; continue; } case 1: - r0 = 150; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - r0 = s.arg4; - { step = 4; continue; } + r0 = 0; case 3: - r0 = 850; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; case 4: // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C3039_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P3041_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1894; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - r0 = undefined; + s.tmp_3 = r0; + s.arg2 = (s.tmp_3); + r0 = pxsim_String_.substr(s.arg0, s.arg1, s.arg2); return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P3182.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} +helpers_stringSubstr__P64337.info = {"start":11286,"length":204,"line":379,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSubstr","argumentNames":["s","start","length"]} -function particles_AreaFactory_constructor__P3182_mk(s) { +function helpers_stringSubstr__P64337_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P3182, depth: s.depth + 1, + parent: s, fn: helpers_stringSubstr__P64337, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function Math_FastRandom_percentChance__P3046(s) { +function game_BaseDialog_textAreaHeight__P69195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19801,89 +20232,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = 100; - s.callLocIdx = 1632; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_5 = r0; + s.tmp_7 = Math_min__P64350_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 1417; s.pc = 1; return s.tmp_7; case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 < s.arg1); - return leave(s, r0) - default: oops() -} } } -Math_FastRandom_percentChance__P3046.info = {"start":2925,"length":106,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["this","percent"]} - -function Math_FastRandom_percentChance__P3046_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_FastRandom_percentChance__P3046, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Math_FastRandom_randomRange__P3043(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); - r0 = (s.arg2 > s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = Math_FastRandom_next__P3042_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1629; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg2 - s.arg1); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); + r0 = (s.tmp_4 << 1); s.tmp_3 = r0; - r0 = (s.tmp_1 % s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P3043.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} +game_BaseDialog_textAreaHeight__P69195.info = {"start":5841,"length":143,"line":186,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} -function Math_FastRandom_randomRange__P3043_mk(s) { +function game_BaseDialog_textAreaHeight__P69195_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P3043, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaHeight__P69195, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19891,16 +20273,16 @@ function Math_FastRandom_randomRange__P3043_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Math_FastRandom_next__P3042(s) { +function game_BaseDialog_textAreaWidth__P69194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19915,33 +20297,37 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; s.tmp_2 = r0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 & 1); - s.tmp_6 = r0; - r0 = (0 - s.tmp_6); + r0 = pxsim_ImageMethods.width(s.tmp_2); + s.tmp_1 = r0; + r0 = s.arg0.fields["innerLeft"]; s.tmp_5 = r0; - r0 = (s.tmp_5 & 46080); + s.tmp_7 = Math_min__P64350_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 1416; s.pc = 1; return s.tmp_7; + case 1: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_2 ^ s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); - r0 = s.tmp_1; + r0 = (s.tmp_4 << 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P3042.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +game_BaseDialog_textAreaWidth__P69194.info = {"start":5689,"length":142,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} -function Math_FastRandom_next__P3042_mk(s) { +function game_BaseDialog_textAreaWidth__P69194_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P3042, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaWidth__P69194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19958,7 +20344,7 @@ function Math_FastRandom_next__P3042_mk(s) { -function helpers_arrayMap__P106(s) { +function game_BaseDialog_rowHeight__P69193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19968,67 +20354,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___14300 = undefined; - s.len___14302 = undefined; - s.i___14305 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___14300 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___14302 = (r0); - s.i___14305 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + s.tmp_1 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1415; s.pc = 1; return s.tmp_1; } + } case 1: - r0 = (s.i___14305 < s.len___14302); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___14300; - s.tmp_3 = lambda_3_mk(s); - s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___14305); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___14305; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 4; s.pc = 3; return s.tmp_3; - case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___14305 + 1); - s.i___14305 = (r0); - { step = 1; continue; } - case 2: - r0 = s.res___14300; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); return leave(s, r0) default: oops() } } } -helpers_arrayMap__P106.info = {"start":6528,"length":299,"line":229,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayMap","argumentNames":["arr","callbackfn"]} +game_BaseDialog_rowHeight__P69193.info = {"start":5601,"length":78,"line":178,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"rowHeight","argumentNames":["this"]} -function helpers_arrayMap__P106_mk(s) { +function game_BaseDialog_rowHeight__P69193_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P106, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_rowHeight__P69193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - res___14300: undefined, - len___14302: undefined, - i___14305: undefined, arg0: undefined, - arg1: undefined, } } -function effects_ParticleEffect_constructor__P3243(s) { +function game_Dialog_prevPage__P67127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20040,38 +20406,50 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C3242_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + s.tmp_1 = game_Dialog_hasPrev__P67125_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1420; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["chunkIndex"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["chunkIndex"] = (s.tmp_3); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P3243.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} +game_Dialog_prevPage__P67127.info = {"start":6814,"length":105,"line":221,"column":8,"endLine":225,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"prevPage","argumentNames":["this"]} -function effects_ParticleEffect_constructor__P3243_mk(s) { +function game_Dialog_prevPage__P67127_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P3243, depth: s.depth + 1, + parent: s, fn: game_Dialog_prevPage__P67127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function Sprite_destroy__P2408(s) { +function game_Dialog_nextPage__P67126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20083,56 +20461,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + s.tmp_1 = game_Dialog_hasNext__P67124_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1419; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; + r0 = s.tmp_2.fields["chunkIndex"]; s.tmp_4 = r0; - r0 = (s.tmp_4 | 2); + r0 = (s.tmp_4 + 1); s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 3; continue; } - s.tmp_0 = effects_ParticleEffect_destroy__P3245_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.callLocIdx = 712; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - s.tmp_0 = Sprite__destroyCore__P2409_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 713; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - case 4: - case 5: + r0 = (s.tmp_2).fields["chunkIndex"] = (s.tmp_3); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_destroy__P2408.info = {"start":26333,"length":293,"line":857,"column":4,"endLine":866,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +game_Dialog_nextPage__P67126.info = {"start":6699,"length":105,"line":215,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"nextPage","argumentNames":["this"]} -function Sprite_destroy__P2408_mk(s) { +function game_Dialog_nextPage__P67126_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P2408, depth: s.depth + 1, + parent: s, fn: game_Dialog_nextPage__P67126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20140,15 +20498,13 @@ function Sprite_destroy__P2408_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function effects_ParticleEffect_destroy__P3245(s) { +function game_Dialog_hasPrev__P67125(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20160,68 +20516,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C3242_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 1964; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P3244_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = null; - r0 = s.arg1.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 512); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0.arg4 = r0; - s.callLocIdx = 1965; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg2; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["defaultLifespan"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 2); + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg1).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = effects_ImageEffect_applyTo__P3272_mk(s); - s.tmp_0.arg0 = globals.dissolve___3275; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1966; s.pc = 5; return s.tmp_0; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 > 0); case 5: - r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P3245.info = {"start":1736,"length":368,"line":41,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"destroy","argumentNames":["this","anchor","duration","particlesPerSecond"]} +game_Dialog_hasPrev__P67125.info = {"start":6556,"length":133,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasPrev","argumentNames":["this"]} -function effects_ParticleEffect_destroy__P3245_mk(s) { +function game_Dialog_hasPrev__P67125_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P3245, depth: s.depth + 1, + parent: s, fn: game_Dialog_hasPrev__P67125, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20229,17 +20565,15 @@ function effects_ParticleEffect_destroy__P3245_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function dissolve_inline__P14501(s) { +function game_Dialog_hasNext__P67124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20249,105 +20583,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___14504 = undefined; - s.x___14515 = undefined; - s.y___14521 = undefined; - s.w___14527 = undefined; - s.h___14531 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.i___14504 = (r0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = (s.i___14504 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1.arg2 = r0; - s.callLocIdx = 63; s.pc = 3; return s.tmp_1; + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } case 3: - r0 = s.retval; - s.x___14515 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 64; s.pc = 4; return s.tmp_0; case 4: - r0 = s.retval; - s.y___14521 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 65; s.pc = 5; return s.tmp_0; + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["chunks"]; + s.tmp_9 = r0; + r0 = pxsim_Array__length(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 - 1); + s.tmp_7 = r0; + r0 = (s.tmp_6 < s.tmp_7); case 5: - r0 = s.retval; - s.w___14527 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 66; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.h___14531 = (r0); - s.tmp_0 = helpers_imageDrawRect__P1942_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___14515; - s.tmp_0.arg2 = s.y___14521; - s.tmp_0.arg3 = s.w___14527; - s.tmp_0.arg4 = s.h___14531; - s.tmp_0.arg5 = 0; - s.callLocIdx = 67; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.i___14504 - 1); - s.i___14504 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; return leave(s, r0) default: oops() } } } -dissolve_inline__P14501.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +game_Dialog_hasNext__P67124.info = {"start":6392,"length":154,"line":205,"column":8,"endLine":208,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasNext","argumentNames":["this"]} -function dissolve_inline__P14501_mk(s) { +function game_Dialog_hasNext__P67124_mk(s) { checkStack(s.depth); return { - parent: s, fn: dissolve_inline__P14501, depth: s.depth + 1, + parent: s, fn: game_Dialog_hasNext__P67124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___14504: undefined, - x___14515: undefined, - y___14521: undefined, - w___14527: undefined, - h___14531: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_imageDrawRect__P1942(s) { +function game_Dialog_constructor__P67123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20366,88 +20670,31 @@ switch (step) { s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg3 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg4 == 0); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = (s.arg3 - 1); - s.arg3 = (r0); - r0 = (s.arg4 - 1); - s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P1941_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 193; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1941_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_constructor__P67114_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 194; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1941_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 195; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1941_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; + s.tmp_0.arg3 = s.arg3; + s.tmp_0.arg4 = s.arg4; s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 196; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 1418; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 5: + r0 = (s.arg0).fields["chunkIndex"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P1942.info = {"start":5325,"length":370,"line":167,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +game_Dialog_constructor__P67123.info = {"start":6189,"length":193,"line":199,"column":8,"endLine":203,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} -function helpers_imageDrawRect__P1942_mk(s) { +function game_Dialog_constructor__P67123_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P1942, depth: s.depth + 1, + parent: s, fn: game_Dialog_constructor__P67123, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -20460,7 +20707,7 @@ function helpers_imageDrawRect__P1942_mk(s) { -function effects_ImageEffect_constructor__P3271(s) { +function game_BaseDialog_constructor__P67114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20474,45 +20721,49 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C3270_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C3039_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P3041_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1990; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = (s.arg0).fields["cursorCount"] = (0); + s.tmp_0 = game_BaseDialog_resize__P67115_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.tmp_0.arg4 = s.arg4; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 1386; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); - r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); - r0 = (s.arg0).fields["times"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P3271.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]} +game_BaseDialog_constructor__P67114.info = {"start":1103,"length":199,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} -function effects_ImageEffect_constructor__P3271_mk(s) { +function game_BaseDialog_constructor__P67114_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P3271, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_constructor__P67114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function effects_ImageEffect_applyTo__P3272(s) { +function game_BaseDialog_resize__P67115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20522,133 +20773,190 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___14632 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C3270_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = globals.dialogFrame___69183; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 3; continue; } - { step = 5; continue; } + r0 = s.tmp_1; + { step = 4; continue; } case 3: - case 4: - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___14632 = (r0); - s.tmp_0 = effects_ImageEffect_change__P3273_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___14632; - s.callLocIdx = 1993; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_setImage__P2371_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___14632; - s.callLocIdx = 1994; s.pc = 7; return s.tmp_0; - case 7: + s.tmp_3 = game_defaultFrame__P69210_mk(s); + s.callLocIdx = 1387; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; - case 5: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -effects_ImageEffect_applyTo__P3272.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} - -function effects_ImageEffect_applyTo__P3272_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: effects_ImageEffect_applyTo__P3272, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - clonedImage___14632: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function effects_ImageEffect_change__P3273(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C3270_VT)) failedCast(r0); - s.tmp_0 = if_effect_3_mk(s); + s.tmp_2 = r0; + globals.dialogFrame___69183 = (r0); + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.arg0).fields["frame"] = (s.tmp_4); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["frame"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 3); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["unit"]; + s.tmp_3 = r0; + r0 = (s.arg1 / s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["columns"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["unit"]; + s.tmp_3 = r0; + r0 = (s.arg2 / s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["rows"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = r0 = s.arg1; + r0 = s.arg0.fields["columns"]; + s.tmp_5 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["innerLeft"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = r0 = s.arg2; + r0 = s.arg0.fields["rows"]; + s.tmp_5 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["innerTop"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(s.arg1, s.arg2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["image"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg4; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = globals.font8___66175; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["font"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg5; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = globals.dialogCursor___69184; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = s.tmp_1; + { step = 10; continue; } + case 9: + s.tmp_3 = game_defaultCursorImage__P69212_mk(s); + s.callLocIdx = 1388; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; + s.tmp_2 = r0; + globals.dialogCursor___69184 = (r0); + r0 = s.tmp_2; + case 10: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.arg0).fields["cursor"] = (s.tmp_4); + r0 = (globals.dialogTextColor___69185 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.dialogTextColor___69185 = (15); + r0 = 15; + { step = 12; continue; } + case 11: + r0 = globals.dialogTextColor___69185; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["textColor"] = (s.tmp_1); + s.tmp_0 = game_BaseDialog_drawBorder__P69188_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = s.arg0.fields["fastRandom"]; - s.tmp_0.arg2 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3); - s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["effect"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["effect"], 3); s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1995; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; } - } - case 1: + s.callLocIdx = 1389; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_clearInterior__P69190_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1390; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P3273.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]} +game_BaseDialog_resize__P67115.info = {"start":1312,"length":849,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"resize","argumentNames":["this","width","height","frame","font","cursor"]} -function effects_ImageEffect_change__P3273_mk(s) { +function game_BaseDialog_resize__P67115_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P3273, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_resize__P67115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function effects_ParticleEffect_start__P3244(s) { +function game_defaultCursorImage__P69212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20658,112 +20966,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___14656 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C3242_VT)) failedCast(r0); - r0 = s.arg0.fields["sourceFactory"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 9; continue; } + r0 = pxsim.image.ofBuffer(_hex76080); + { step = 2; continue; } case 1: + r0 = pxsim.image.ofBuffer(_hex76082); case 2: - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 3; continue; } - r0 = s.arg3; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["defaultRate"]; - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = if_sourceFactory_3_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tmp_3; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "sourceFactory"), 3); - s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["sourceFactory"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1962; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; } - } - case 10: - r0 = s.retval; - s.src___14656 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P3142_mk(s); - s.tmp_0.arg0 = s.src___14656; - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1963; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 7; continue; } - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.arg2; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["defaultLifespan"]; - case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___14656).fields["lifespan"] = (s.tmp_1); - case 7: - case 8: - case 9: - r0 = undefined; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P3244.info = {"start":967,"length":452,"line":26,"column":8,"endLine":32,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"start","argumentNames":["this","anchor","duration","particlesPerSecond","relativeToCamera"]} +game_defaultCursorImage__P69212.info = {"start":28103,"length":690,"line":783,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} -function effects_ParticleEffect_start__P3244_mk(s) { +function game_defaultCursorImage__P69212_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P3244, depth: s.depth + 1, + parent: s, fn: game_defaultCursorImage__P69212, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - src___14656: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } +const _hex76080 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") +const _hex76082 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") -function particles_ParticleSource_setRelativeToCamera__P3142(s) { +function game_defaultFrame__P69210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20773,59 +21008,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex76086); { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 4); - s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex76088); case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P3142.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +game_defaultFrame__P69210.info = {"start":27315,"length":556,"line":744,"column":4,"endLine":766,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} -function particles_ParticleSource_setRelativeToCamera__P3142_mk(s) { +function game_defaultFrame__P69210_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P3142, depth: s.depth + 1, + parent: s, fn: game_defaultFrame__P69210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, } } +const _hex76086 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") +const _hex76088 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function Sprite__destroyCore__P2409(s) { +function game_BaseDialog_clearInterior__P69190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20835,126 +21050,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___14427 = undefined; + s.d___75364 = undefined; + s.s___75371 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 714; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.scene___14427 = (r0); - r0 = s.scene___14427.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - r0 = s.arg0.fields["_kind"]; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["unit"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); + r0 = (s.tmp_1 == 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.scene___14427.fields["spritesByKind"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["_kind"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 4; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 1; + r0 = s.arg0.fields["columns"]; s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); - case 2: - // jmp value (already in r0) + r0 = (s.tmp_3 - 2); + s.tmp_2.arg4 = r0; + r0 = s.arg0.fields["rows"]; s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P2450_mk(s); - r0 = s.scene___14427.fields["spritesByKind"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["_kind"]; - s.tmp_7 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_6, s.tmp_7); - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.callLocIdx = 718; s.pc = 8; return s.tmp_5; + r0 = (s.tmp_4 - 2); + s.tmp_2.arg5 = r0; + s.callLocIdx = 1413; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; + { step = 7; continue; } + case 1: + case 2: + s.d___75364 = (1); case 3: + s.tmp_1 = r0 = s.d___75364; + r0 = s.arg0.fields["columns"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.s___75371 = (1); case 4: - s.tmp_0 = PhysicsEngine__C2491_v1_2_mk(s); - r0 = s.scene___14427.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite; - s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = s.arg0.fields["destroyHandler"]; + s.tmp_1 = r0 = s.s___75371; + r0 = s.arg0.fields["rows"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = if_destroyHandler_1_mk(s); - s.tmp_1.arg0 = s.arg0; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); - s.callLocIdx = 719; s.pc = 10; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 719; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 719; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 719; s.pc = 10; return s.tmp_1; } - } - case 10: + s.tmp_4 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 4; + s.tmp_4.arg2 = s.d___75364; + s.tmp_4.arg3 = s.s___75371; + s.callLocIdx = 1414; s.pc = 9; return s.tmp_4; + case 9: r0 = s.retval; + r0 = (s.s___75371 + 1); + s.s___75371 = (r0); + { step = 4; continue; } case 5: + r0 = (s.d___75364 + 1); + s.d___75364 = (r0); + { step = 3; continue; } case 6: - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P14456); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P14462); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.scene___14427.fields["destroyedHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 721; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 723; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P2409.info = {"start":26632,"length":522,"line":868,"column":4,"endLine":880,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +game_BaseDialog_clearInterior__P69190.info = {"start":4543,"length":342,"line":146,"column":8,"endLine":155,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} -function Sprite__destroyCore__P2409_mk(s) { +function game_BaseDialog_clearInterior__P69190_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P2409, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_clearInterior__P69190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___14427: undefined, + d___75364: undefined, + s___75371: undefined, arg0: undefined, } } @@ -20962,7 +21147,7 @@ function Sprite__destroyCore__P2409_mk(s) { -function forEach_inline__P14456(s) { +function game_BaseDialog_drawPartial__P69191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20972,35 +21157,125 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___75389 = undefined; + s.y0___75397 = undefined; + s.xf___75405 = undefined; + s.yf___75412 = undefined; + s.e___75419 = undefined; + s.t___75425 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["innerLeft"]; s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; + r0 = s.arg0.fields["unit"]; + s.tmp_2 = r0; + r0 = (s.arg2 * s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = (s.tmp_0 + s.tmp_1); + s.x0___75389 = (r0); + r0 = s.arg0.fields["innerTop"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_2 = r0; + r0 = (s.arg3 * s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.y0___75397 = (r0); + r0 = (s.arg1 % 3); + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.xf___75405 = (r0); + r0 = pxsim.Math_.idiv(s.arg1, 3); + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.yf___75412 = (r0); + s.e___75419 = (0); + case 1: + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.e___75419 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.t___75425 = (0); + case 2: + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.t___75425 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = (s.x0___75389 + s.e___75419); + s.tmp_3 = r0; + r0 = (s.y0___75397 + s.t___75425); + s.tmp_4 = r0; + r0 = s.arg0.fields["frame"]; + s.tmp_6 = r0; + r0 = (s.xf___75405 + s.e___75419); + s.tmp_7 = r0; + r0 = (s.yf___75412 + s.t___75425); + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.tmp_7, s.tmp_8); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_2, s.tmp_3, s.tmp_4, s.tmp_5); + r0 = (s.t___75425 + 1); + s.t___75425 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.e___75419 + 1); + s.e___75419 = (r0); + { step = 1; continue; } + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P14456.info = {"start":27077,"length":26,"line":878,"column":20,"endLine":878,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +game_BaseDialog_drawPartial__P69191.info = {"start":4895,"length":604,"line":157,"column":8,"endLine":172,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} -function forEach_inline__P14456_mk(s) { +function game_BaseDialog_drawPartial__P69191_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P14456, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawPartial__P69191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + x0___75389: undefined, + y0___75397: undefined, + xf___75405: undefined, + yf___75412: undefined, + e___75419: undefined, + t___75425: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite__destroyCore_inline__P14462(s) { +function game_BaseDialog_fastFill__P69189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21010,44 +21285,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.color___75461 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 722; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 722; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 722; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 722; s.pc = 1; return s.tmp_0; } - } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["frame"]; + s.tmp_0 = r0; + r0 = (s.arg1 % 3); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.arg1, 3); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_2); + s.color___75461 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["innerLeft"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 + s.arg2); + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg4; + s.tmp_0.arg4 = s.arg5; + s.tmp_0.arg5 = s.color___75461; + s.callLocIdx = 1412; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore_inline__P14462.info = {"start":27126,"length":20,"line":879,"column":21,"endLine":879,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +game_BaseDialog_fastFill__P69189.info = {"start":4284,"length":249,"line":141,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} -function Sprite__destroyCore_inline__P14462_mk(s) { +function game_BaseDialog_fastFill__P69189_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore_inline__P14462, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_fastFill__P69189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + color___75461: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function PhysicsEngine_removeSprite__P2494(s) { +function game_BaseDialog_drawBorder__P69188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21057,59 +21359,323 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.y___76011 = undefined; + s.c___76027 = undefined; + s.r___76061 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_removeSprite__P2494.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} - -function PhysicsEngine_removeSprite__P2494_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_removeSprite__P2494, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_kind__P2387(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 0; + s.tmp_2.arg3 = 0; + s.tmp_2.arg4 = 1; + s.tmp_2.arg5 = 1; + s.callLocIdx = 1396; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = 0; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1397; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1398; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 3; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = 1; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg5 = r0; + s.callLocIdx = 1399; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = 1; + r0 = s.arg0.fields["rows"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 2); + s.tmp_0.arg5 = r0; + s.callLocIdx = 1400; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + r0 = s.arg0.fields["rows"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.y___76011 = (r0); + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.y___76011; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1401; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = s.y___76011; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1402; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P69189_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.y___76011; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1403; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + { step = 11; continue; } + case 1: + case 2: + s.c___76027 = (0); + case 3: + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.c___76027 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.c___76027 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_3 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = 0; + s.tmp_3.arg2 = 0; + s.tmp_3.arg3 = 0; + s.callLocIdx = 1404; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1405; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 7; continue; } + case 4: + s.tmp_1 = r0 = s.c___76027; + r0 = s.arg0.fields["columns"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 2; + s.tmp_4.arg2 = s.c___76027; + s.tmp_4.arg3 = 0; + s.callLocIdx = 1406; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + s.tmp_0.arg2 = s.c___76027; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1407; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = s.c___76027; + s.tmp_0.arg3 = 0; + s.callLocIdx = 1408; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = s.c___76027; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1409; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 6: + case 7: + r0 = (s.c___76027 + 1); + s.c___76027 = (r0); + { step = 3; continue; } + case 8: + s.r___76061 = (1); + case 9: + s.tmp_1 = r0 = s.r___76061; + r0 = s.arg0.fields["rows"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 3; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.r___76061; + s.callLocIdx = 1410; s.pc = 26; return s.tmp_4; + case 26: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P69191_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.r___76061; + s.callLocIdx = 1411; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = (s.r___76061 + 1); + s.r___76061 = (r0); + { step = 9; continue; } + case 10: + case 11: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_drawBorder__P69188.info = {"start":2953,"length":1321,"line":103,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} + +function game_BaseDialog_drawBorder__P69188_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_drawBorder__P69188, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + y___76011: undefined, + c___76027: undefined, + r___76061: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_update__P67116(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_kind"]; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P69190_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1391; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = game_BaseDialog__C67102_v2_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C67102_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; + s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawCursorRow__P67119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1392; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_kind__P2387.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +game_BaseDialog_update__P67116.info = {"start":2171,"length":121,"line":74,"column":8,"endLine":78,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} -function Sprite_kind__P2387_mk(s) { +function game_BaseDialog_update__P67116_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P2387, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_update__P67116, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -21117,7 +21683,7 @@ function Sprite_kind__P2387_mk(s) { -function scene_onOverlapTile__P2440(s) { +function game_BaseDialog_drawCursorRow__P67119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21127,70 +21693,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileOverlapHandlers___14725 = undefined; + s.offset___75269 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg0 == undefined); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + s.offset___75269 = (0); + r0 = s.arg0.fields["cursorCount"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 20); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.offset___75269 = (1); case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); case 2: - // jmp value (already in r0) + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["cursorCount"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } + r0 = (s.tmp_2 % 40); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cursorCount"] = (s.tmp_1); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["cursor"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["innerLeft"]; + s.tmp_6 = r0; + s.tmp_8 = game_BaseDialog_textAreaWidth__P69194_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1393; s.pc = 3; return s.tmp_8; case 3: - r0 = pxsim_numops_toBoolDecr(s.arg2); + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_9 = r0; + r0 = (s.tmp_5 + s.tmp_9); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.offset___75269); s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = s.arg0.fields["cursor"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_11); + s.tmp_10 = r0; + r0 = (s.tmp_3 - s.tmp_10); + s.tmp_2 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_16 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_17 = r0; + r0 = (s.tmp_16 + s.tmp_17); + s.tmp_15 = r0; + s.tmp_19 = game_BaseDialog_textAreaHeight__P69195_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 1394; s.pc = 4; return s.tmp_19; case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - { step = 7; continue; } - case 5: - case 6: - s.tmp_5 = game_currentScene__P2979_mk(s); - s.callLocIdx = 796; s.pc = 8; return s.tmp_5; - case 8: - r0 = s.retval; - r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___14725 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_TileOverlapHandler__C2798_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_TileOverlapHandler_constructor__P2799_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.callLocIdx = 797; s.pc = 9; return s.tmp_1; - case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.tileOverlapHandlers___14725, s.tmp_0); - case 7: + s.tmp_18 = r0; + r0 = (s.tmp_15 + s.tmp_18); + s.tmp_14 = r0; + r0 = (s.tmp_14 + 1); + s.tmp_13 = r0; + r0 = s.arg0.fields["cursor"]; + s.tmp_22 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_22); + s.tmp_21 = r0; + r0 = (s.tmp_21 + 1); + s.tmp_20 = r0; + r0 = (s.tmp_13 - s.tmp_20); + s.tmp_12 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_12); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_onOverlapTile__P2440.info = {"start":2786,"length":432,"line":89,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlapTile","argumentNames":["kind","tile","handler"]} +game_BaseDialog_drawCursorRow__P67119.info = {"start":2464,"length":479,"line":88,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} -function scene_onOverlapTile__P2440_mk(s) { +function game_BaseDialog_drawCursorRow__P67119_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_onOverlapTile__P2440, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawCursorRow__P67119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21198,17 +21786,32 @@ function scene_onOverlapTile__P2440_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tileOverlapHandlers___14725: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + offset___75269: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_TileOverlapHandler_constructor__P2799(s) { +function game_BaseDialog_cursorRowHeight__P69192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21220,38 +21823,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_TileOverlapHandler__C2798_VT)) failedCast(r0); - r0 = (s.arg0).fields["spriteKind"] = (s.arg1); - r0 = (s.arg0).fields["tileKind"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); - r0 = undefined; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = s.arg0.fields["cursor"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); return leave(s, r0) default: oops() } } } -scene_TileOverlapHandler_constructor__P2799.info = {"start":1075,"length":180,"line":37,"column":8,"endLine":41,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","spriteKind","tileKind","handler"]} +game_BaseDialog_cursorRowHeight__P69192.info = {"start":5509,"length":82,"line":174,"column":8,"endLine":176,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} -function scene_TileOverlapHandler_constructor__P2799_mk(s) { +function game_BaseDialog_cursorRowHeight__P69192_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_TileOverlapHandler_constructor__P2799, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_cursorRowHeight__P69192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function music_createSoundEffect__P1778(s) { +function game_BaseDialog_drawTextCore__P67118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21261,63 +21861,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.result___14749 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(music_SoundEffect__C1765_VT); - s.tmp_0 = r0; - s.tmp_1 = music_SoundEffect_constructor__P1774_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 140; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.result___14749 = (s.tmp_0); - r0 = (s.result___14749).fields["waveShape"] = (s.arg0); - r0 = (s.result___14749).fields["startFrequency"] = (s.arg1); - r0 = (s.result___14749).fields["endFrequency"] = (s.arg2); - r0 = (s.result___14749).fields["startVolume"] = (s.arg3); - r0 = (s.result___14749).fields["endVolume"] = (s.arg4); - r0 = (s.result___14749).fields["duration"] = (s.arg5); - r0 = (s.result___14749).fields["effect"] = (s.arg6); - r0 = (s.result___14749).fields["interpolation"] = (s.arg7); - r0 = s.result___14749; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_createSoundEffect__P1778.info = {"start":4915,"length":637,"line":161,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"createSoundEffect","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation"]} +game_BaseDialog_drawTextCore__P67118.info = {"start":2389,"length":65,"line":84,"column":8,"endLine":86,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function music_createSoundEffect__P1778_mk(s) { +function game_BaseDialog_drawTextCore__P67118_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_createSoundEffect__P1778, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawTextCore__P67118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - result___14749: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, } } -function music_SoundEffect_constructor__P1774(s) { +function scene_setBackgroundImage__P67084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21327,32 +21895,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___75217 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_SoundEffect__C1765_VT)) failedCast(r0); - r0 = undefined; - r0 = (s.arg0).fields["waveShape"] = (0); - r0 = (s.arg0).fields["startFrequency"] = (5000); - r0 = (s.arg0).fields["endFrequency"] = (1); - r0 = (s.arg0).fields["startVolume"] = (255); - r0 = (s.arg0).fields["endVolume"] = (0); - r0 = (s.arg0).fields["duration"] = (1000); - r0 = (s.arg0).fields["effect"] = (0); - r0 = (s.arg0).fields["interpolation"] = (0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1374; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___75217 = (r0); + s.tmp_0 = scene_Background_image__P66875_mk(s); + r0 = s.scene___75217.fields["background"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1375; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_SoundEffect_constructor__P1774.info = {"start":998,"length":382,"line":51,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["this"]} +scene_setBackgroundImage__P67084.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} -function music_SoundEffect_constructor__P1774_mk(s) { +function scene_setBackgroundImage__P67084_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_SoundEffect_constructor__P1774, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundImage__P67084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + scene___75217: undefined, arg0: undefined, } } @@ -21360,7 +21932,7 @@ function music_SoundEffect_constructor__P1774_mk(s) { -function music_play__P1907(s) { +function scene_Background_image__P66875(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21375,26 +21947,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = music_Playable__C1896_v0_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - if (!checkSubtype(s.tmp_0.arg0, music_Playable__C1896_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.play; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C66868_VT)) failedCast(r0); + r0 = (s.arg0).fields["_image"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_play__P1907.info = {"start":2835,"length":109,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["toPlay","playbackMode"]} +scene_Background_image__P66875.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} -function music_play__P1907_mk(s) { +function scene_Background_image__P66875_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_play__P1907, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P66875, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -21403,7 +21969,7 @@ function music_play__P1907_mk(s) { -function music_Playable_play__P1899(s) { +function scene_Background_image__P66874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21415,31 +21981,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Playable__C1896_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, scene_Background__C66868_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_6 = r0; + r0 = pxsim.image.create(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) default: oops() } } } -music_Playable_play__P1899.info = {"start":1122,"length":68,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["this","playbackMode"]} +scene_Background_image__P66874.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} +scene_Background_image__P66874.isGetter = true; -function music_Playable_play__P1899_mk(s) { +function scene_Background_image__P66874_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Playable_play__P1899, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P66874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_getImageByName__P3316(s) { +function Sprite_top__P66603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21449,35 +22039,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.physics___75855 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P3313_mk(s); - s.tmp_0.arg0 = "image"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2013; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 634; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___75855 = (r0); + s.tmp_0 = PhysicsEngine__C66710_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___75855; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = 0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_y"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_getImageByName__P3316.info = {"start":2881,"length":103,"line":87,"column":4,"endLine":89,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getImageByName","argumentNames":["name"]} +Sprite_top__P66603.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function helpers_getImageByName__P3316_mk(s) { +function Sprite_top__P66603_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_getImageByName__P3316, depth: s.depth + 1, + parent: s, fn: Sprite_top__P66603, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + physics___75855: undefined, arg0: undefined, + arg1: undefined, } } -function assets_image__P3307(s) { +function PhysicsEngine_moveSprite__P66714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21490,28 +22107,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = null; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -assets_image__P3307.info = {"start":931,"length":71,"line":26,"column":4,"endLine":26,"endColumn":75,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"image","argumentNames":["lits","args"]} +PhysicsEngine_moveSprite__P66714.info = {"start":230,"length":43,"line":13,"column":4,"endLine":13,"endColumn":47,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function assets_image__P3307_mk(s) { +function PhysicsEngine_moveSprite__P66714_mk(s) { checkStack(s.depth); return { - parent: s, fn: assets_image__P3307, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P66714, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function sprites_spray__P4414(s) { +function Sprite_top__P66602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21521,561 +22144,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.waterProj___14889 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.up___2097; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 31; return s.tmp_1; - case 31: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_3 = controller_Button__C2170_v0_1_mk(s); - s.tmp_3.arg0 = globals.left___2096; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 32; return s.tmp_3; - case 32: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - globals.facing___7126 = (225); - { step = 6; continue; } - case 1: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.right___2098; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 33; return s.tmp_1; - case 33: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - globals.facing___7126 = (315); - { step = 5; continue; } - case 2: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.down___2099; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 34; return s.tmp_1; - case 34: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 4; continue; } - case 3: - globals.facing___7126 = (270); - case 4: - case 5: - case 6: - { step = 20; continue; } - case 7: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.left___2096; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_3 = controller_Button__C2170_v0_1_mk(s); - s.tmp_3.arg0 = globals.right___2098; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 36; return s.tmp_3; - case 36: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 8; continue; } - { step = 11; continue; } - case 8: - s.tmp_5 = controller_Button__C2170_v0_1_mk(s); - s.tmp_5.arg0 = globals.down___2099; - if (!checkSubtype(s.tmp_5.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 37; return s.tmp_5; - case 37: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 9; continue; } - globals.facing___7126 = (135); - { step = 10; continue; } - case 9: - globals.facing___7126 = (180); - case 10: - case 11: - { step = 19; continue; } - case 12: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.right___2098; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 38; return s.tmp_1; - case 38: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_3 = controller_Button__C2170_v0_1_mk(s); - s.tmp_3.arg0 = globals.down___2099; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 13; continue; } - globals.facing___7126 = (45); - { step = 14; continue; } - case 13: - globals.facing___7126 = (0); - case 14: - { step = 18; continue; } - case 15: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_1.arg0 = globals.down___2099; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 40; return s.tmp_1; - case 40: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - globals.facing___7126 = (90); - case 16: - case 17: - case 18: - case 19: - case 20: - s.tmp_2 = Math_abs__P128_mk(s); - r0 = (globals.facing___7126 - globals.hoseDirection___7128); - s.tmp_2.arg0 = r0; - s.callLocIdx = 2280; s.pc = 41; return s.tmp_2; - case 41: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 180); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = (globals.facing___7126 < globals.hoseDirection___7128); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 21; continue; } - s.tmp_4 = r0 = globals.hoseDirection___7128; - r0 = (0 - globals.changeRate___7130); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - globals.hoseDirection___7128 = (r0); - { step = 22; continue; } - case 21: - r0 = (globals.hoseDirection___7128 + globals.changeRate___7130); - globals.hoseDirection___7128 = (r0); - case 22: - { step = 30; continue; } - case 23: - r0 = (globals.facing___7126 < globals.hoseDirection___7128); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - r0 = (globals.hoseDirection___7128 + globals.changeRate___7130); - globals.hoseDirection___7128 = (r0); - { step = 25; continue; } - case 24: - s.tmp_0 = r0 = globals.hoseDirection___7128; - r0 = (0 - globals.changeRate___7130); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - globals.hoseDirection___7128 = (r0); - case 25: - r0 = (globals.hoseDirection___7128 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - r0 = (globals.hoseDirection___7128 + 360); - globals.hoseDirection___7128 = (r0); - { step = 29; continue; } - case 26: - r0 = (globals.hoseDirection___7128 > 360); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - r0 = (globals.hoseDirection___7128 + -360); - globals.hoseDirection___7128 = (r0); - case 27: - case 28: - case 29: - r0 = (globals.hoseDirection___7128 % 360); - globals.hoseDirection___7128 = (r0); - case 30: - s.tmp_0 = sprites_createProjectileFromSprite__P2262_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - r0 = (globals.hoseDirection___7128 * 3.141592653589793); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 180); - s.tmp_2 = r0; - r0 = pxsim.Math_.cos(s.tmp_2); - s.tmp_1 = r0; - r0 = (150 * s.tmp_1); - s.tmp_0.arg2 = r0; - r0 = (globals.hoseDirection___7128 * 3.141592653589793); - s.tmp_6 = r0; - r0 = (s.tmp_6 / 180); - s.tmp_5 = r0; - r0 = pxsim.Math_.sin(s.tmp_5); - s.tmp_4 = r0; - r0 = (150 * s.tmp_4); - s.tmp_0.arg3 = r0; - s.callLocIdx = 2281; s.pc = 42; return s.tmp_0; - case 42: - r0 = s.retval; - s.waterProj___14889 = (r0); - s.tmp_0 = Sprite_setKind__P2388_mk(s); - s.tmp_0.arg0 = s.waterProj___14889; - s.tmp_0.arg1 = globals.Water___4406; - s.callLocIdx = 2282; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -sprites_spray__P4414.info = {"start":2073,"length":1753,"line":79,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"spray","argumentNames":["thisSprite","img"]} - -function sprites_spray__P4414_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_spray__P4414, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - waterProj___14889: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function sprites_createProjectileFromSprite__P2262(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - s.tmp_0 = sprites_createProjectile__P2263_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.arg1; - s.callLocIdx = 561; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -sprites_createProjectileFromSprite__P2262.info = {"start":4617,"length":187,"line":129,"column":4,"endLine":131,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectileFromSprite","argumentNames":["img","sprite","vx","vy"]} - -function sprites_createProjectileFromSprite__P2262_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_createProjectileFromSprite__P2262, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function sprites_createProjectile__P2263(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.s___14927 = undefined; - s.sc___14934 = undefined; - s.xOff___14950 = undefined; - s.yOff___14964 = undefined; - s.cam___14978 = undefined; - s.initialX___14982 = undefined; - s.initialY___14985 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.lambdaArgs = null; - } - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 1; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = sprites_create__P2256_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 562; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - s.s___14927 = (r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 563; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.sc___14934 = (r0); - s.tmp_0 = Sprite_vx__P2339_mk(s); - s.tmp_0.arg0 = s.s___14927; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 564; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2341_mk(s); - s.tmp_0.arg0 = s.s___14927; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 565; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - s.tmp_0 = Sprite_setPosition__P2389_mk(s); - s.tmp_0.arg0 = s.s___14927; - s.tmp_1 = Sprite_x__P2334_mk(s); - s.tmp_1.arg0 = s.arg4; - s.callLocIdx = 566; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_y__P2336_mk(s); - s.tmp_2.arg0 = s.arg4; - s.callLocIdx = 567; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.callLocIdx = 568; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - { step = 16; continue; } - case 3: - r0 = s.sc___14934.fields["tileMap"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_width__P2377_mk(s); - s.tmp_3.arg0 = s.s___14927; - s.callLocIdx = 569; s.pc = 24; return s.tmp_3; - case 24: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - { step = 5; continue; } - case 4: - s.tmp_6 = Sprite_width__P2377_mk(s); - s.tmp_6.arg0 = s.s___14927; - s.callLocIdx = 570; s.pc = 25; return s.tmp_6; - case 25: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - case 5: - // jmp value (already in r0) - s.tmp_7 = r0; - s.xOff___14950 = (s.tmp_7); - r0 = s.sc___14934.fields["tileMap"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_3 = Sprite_height__P2378_mk(s); - s.tmp_3.arg0 = s.s___14927; - s.callLocIdx = 571; s.pc = 26; return s.tmp_3; - case 26: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - { step = 7; continue; } - case 6: - s.tmp_6 = Sprite_height__P2378_mk(s); - s.tmp_6.arg0 = s.s___14927; - s.callLocIdx = 572; s.pc = 27; return s.tmp_6; - case 27: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - s.yOff___14964 = (s.tmp_7); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 573; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - r0 = r0.fields["camera"]; - s.cam___14978 = (r0); - r0 = s.cam___14978.fields["_offsetX"]; - s.initialX___14982 = (r0); - r0 = s.cam___14978.fields["_offsetY"]; - s.initialY___14985 = (r0); - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = r0 = s.initialX___14982; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.xOff___14950); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialX___14982 = (r0); - { step = 11; continue; } - case 8: - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = r0 = s.initialX___14982; - r0 = (0 - s.xOff___14950); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialX___14982 = (r0); - case 9: - case 10: - case 11: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_1 = r0 = s.initialY___14985; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.yOff___14964); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialY___14985 = (r0); - { step = 15; continue; } - case 12: - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = r0 = s.initialY___14985; - r0 = (0 - s.yOff___14964); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialY___14985 = (r0); - case 13: - case 14: - case 15: - s.tmp_0 = Sprite_setPosition__P2389_mk(s); - s.tmp_0.arg0 = s.s___14927; - s.tmp_0.arg1 = s.initialX___14982; - s.tmp_0.arg2 = s.initialY___14985; - s.callLocIdx = 576; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - case 16: - s.tmp_0 = r0 = s.s___14927; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 20); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - r0 = s.s___14927; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -sprites_createProjectile__P2263.info = {"start":5436,"length":1265,"line":144,"column":4,"endLine":181,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectile","argumentNames":["img","vx","vy","kind","sprite"]} +Sprite_top__P66602.info = {"start":11544,"length":53,"line":416,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P66602.isGetter = true; -function sprites_createProjectile__P2263_mk(s) { +function Sprite_top__P66602_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_createProjectile__P2263, depth: s.depth + 1, + parent: s, fn: Sprite_top__P66602, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - s___14927: undefined, - sc___14934: undefined, - xOff___14950: undefined, - yOff___14964: undefined, - cam___14978: undefined, - initialX___14982: undefined, - initialY___14985: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function Sprite_setPosition__P2389(s) { +function Sprite_left__P66599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22085,51 +22182,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___15043 = undefined; + s.physics___75833 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 646; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 626; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___15043 = (r0); - s.tmp_0 = PhysicsEngine__C2491_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___15043; + s.physics___75833 = (r0); + s.tmp_0 = PhysicsEngine__C66710_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___75833; s.tmp_0.arg1 = s.arg0; - s.tmp_2 = r0 = s.arg1; - s.tmp_4 = Sprite_x__P2334_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 647; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); + r0 = s.arg0.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg2 = r0; - s.tmp_7 = r0 = s.arg2; - s.tmp_9 = Sprite_y__P2336_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 649; s.pc = 4; return s.tmp_9; - case 4: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_6 * 256); - s.tmp_10 = r0; - r0 = (s.tmp_10 | 0); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg3 = 0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; s.pc = 2; return s.tmp_0; case 2: @@ -22138,75 +22217,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setPosition__P2389.info = {"start":13931,"length":220,"line":496,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} +Sprite_left__P66599.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function Sprite_setPosition__P2389_mk(s) { +function Sprite_left__P66599_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setPosition__P2389, depth: s.depth + 1, + parent: s, fn: Sprite_left__P66599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - physics___15043: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function PhysicsEngine_moveSprite__P2495(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_moveSprite__P2495.info = {"start":230,"length":43,"line":13,"column":4,"endLine":13,"endColumn":47,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} - -function PhysicsEngine_moveSprite__P2495_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_moveSprite__P2495, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + physics___75833: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function Sprite_height__P2378(s) { +function Sprite_left__P66598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22221,20 +22252,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_height__P2378.info = {"start":10541,"length":61,"line":380,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P2378.isGetter = true; +Sprite_left__P66598.info = {"start":10709,"length":53,"line":386,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P66598.isGetter = true; -function Sprite_height__P2378_mk(s) { +function Sprite_left__P66598_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P2378, depth: s.depth + 1, + parent: s, fn: Sprite_left__P66598, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22244,7 +22275,7 @@ function Sprite_height__P2378_mk(s) { -function Sprite_width__P2377(s) { +function controller__setUserEventsEnabled__P66406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22258,23 +22289,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + globals._userEventsEnabled___69022 = (s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_width__P2377.info = {"start":10374,"length":59,"line":375,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P2377.isGetter = true; +controller__setUserEventsEnabled__P66406.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function Sprite_width__P2377_mk(s) { +function controller__setUserEventsEnabled__P66406_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P2377, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P66406, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -22282,7 +22308,7 @@ function Sprite_width__P2377_mk(s) { -function controller_Button_isPressed__P2181(s) { +function controller_Button_isPressed__P66400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22297,17 +22323,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P2181.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} +controller_Button_isPressed__P66400.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_Button_isPressed__P2181_mk(s) { +function controller_Button_isPressed__P66400_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P2181, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P66400, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -22316,7 +22342,7 @@ function controller_Button_isPressed__P2181_mk(s) { -function helpers_getTileByName__P3318(s) { +function console_inspect__P64601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22326,171 +22352,214 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.asArr___77674 = undefined; + s.asString___77692 = undefined; + s.keys___77704 = undefined; + s.snipped___77708 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P3313_mk(s); - s.tmp_0.arg0 = "tile"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2015; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore.typeOf(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 == "string"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 17; continue; } + { step = 16; continue; } case 1: + r0 = pxsim_pxtcore.typeOf(s.arg0); + s.tmp_3 = r0; + r0 = (s.tmp_3 == "number"); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -helpers_getTileByName__P3318.info = {"start":3107,"length":101,"line":95,"column":4,"endLine":97,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTileByName","argumentNames":["name"]} - -function helpers_getTileByName__P3318_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_getTileByName__P3318, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function assets_tile__P3308(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = null; - return leave(s, r0) - default: oops() -} } } -assets_tile__P3308.info = {"start":1108,"length":70,"line":31,"column":4,"endLine":31,"endColumn":74,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tile","argumentNames":["lits","args"]} - -function assets_tile__P3308_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: assets_tile__P3308, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tiles_setTileAt__P2745(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.scene___15069 = undefined; - s.scale___15082 = undefined; - s.index___15086 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1299; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.scene___15069 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + { step = 17; continue; } + { step = 15; continue; } + case 2: + r0 = pxsim_Array_.isArray(s.arg0); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 5; continue; } + s.asArr___77674 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___77674); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 <= s.arg1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.tmp_3; + s.tmp_2 = helpers_arrayJoin__P64322_mk(s); + s.tmp_2.arg0 = s.asArr___77674; + s.tmp_2.arg1 = ","; + s.callLocIdx = 46; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + { step = 17; continue; } { step = 4; continue; } case 3: - r0 = s.scene___15069.fields["tileMap"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 4: - // jmp value (already in r0) + s.tmp_7 = helpers_arrayJoin__P64322_mk(s); + s.tmp_8 = helpers_arraySlice__P64334_mk(s); + s.tmp_8.arg0 = s.asArr___77674; + s.tmp_8.arg1 = 0; + s.tmp_8.arg2 = s.arg1; + s.callLocIdx = 47; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = ","; + s.callLocIdx = 48; s.pc = 20; return s.tmp_7; + case 20: + r0 = s.retval; s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 22: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_3, "..."); + { step = 17; continue; } + case 4: + { step = 14; continue; } case 5: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 23); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 23: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_10 = r0; + r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); + s.asString___77692 = (r0); + r0 = (s.asString___77692 != "[object Object]"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } case 6: - r0 = s.scene___15069.fields["tileMap"]; - s.tmp_7 = r0; - r0 = s.tmp_7.fields["_scale"]; - s.scale___15082 = (r0); - s.tmp_0 = tiles_TileMap_getImageType__P2732_mk(s); - r0 = s.scene___15069.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1301; s.pc = 9; return s.tmp_0; + r0 = (s.asString___77692 != "[Object]"); + case 7: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = s.asString___77692; + { step = 17; continue; } + case 8: case 9: + r0 = pxsim_pxtrt.keysOf(s.arg0); + s.keys___77704 = (r0); + r0 = pxsim_Array__length(s.keys___77704); + s.tmp_0 = r0; + r0 = (s.tmp_0 > s.arg1); + s.snipped___77708 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___77708); + if (!r0) { step = 10; continue; } + s.tmp_0 = helpers_arraySlice__P64334_mk(s); + s.tmp_0.arg0 = s.keys___77704; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 49; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; - s.index___15086 = (r0); - s.tmp_0 = tiles_TileMap_setTileAt__P2731_mk(s); - r0 = s.scene___15069.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_Location_x__P2678_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1302; s.pc = 11; return s.tmp_2; + s.keys___77704 = (r0); + case 10: case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.scale___15082); - s.tmp_0.arg1 = r0; - s.tmp_4 = tiles_Location_y__P2679_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 1303; s.pc = 12; return s.tmp_4; + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P77725); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.snipped___77708); + if (!r0) { step = 12; continue; } + r0 = "\n ..."; + { step = 13; continue; } case 12: + r0 = pxsim_String_.mkEmpty(); + case 13: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_7 = helpers_arrayReduce__P64331_mk(s); + s.tmp_7.arg0 = s.keys___77704; + s.tmp_7.arg1 = s.tmp_0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7.arg2 = r0; + s.callLocIdx = 50; s.pc = 25; return s.tmp_7; + case 25: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> s.scale___15082); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.index___15086; - s.callLocIdx = 1304; s.pc = 10; return s.tmp_0; - case 10: + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 26: r0 = s.retval; - case 7: + s.tmp_5 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 27); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 27: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_8); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 28: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat("{", s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "\n}"); + { step = 17; continue; } + case 14: + case 15: + case 16: r0 = undefined; + case 17: return leave(s, r0) default: oops() } } } -tiles_setTileAt__P2745.info = {"start":20268,"length":339,"line":629,"column":4,"endLine":635,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["loc","tile"]} +console_inspect__P64601.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} -function tiles_setTileAt__P2745_mk(s) { +function console_inspect__P64601_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTileAt__P2745, depth: s.depth + 1, + parent: s, fn: console_inspect__P64601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22500,9 +22569,13 @@ function tiles_setTileAt__P2745_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___15069: undefined, - scale___15082: undefined, - index___15086: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + asArr___77674: undefined, + asString___77692: undefined, + keys___77704: undefined, + snipped___77708: undefined, arg0: undefined, arg1: undefined, } } @@ -22511,7 +22584,7 @@ function tiles_setTileAt__P2745_mk(s) { -function tiles_TileMap_setTileAt__P2731(s) { +function console_inspect_inline__P77725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22524,66 +22597,62 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMapData_isOutsideMap__P2709_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 1233; s.pc = 5; return s.tmp_3; - case 5: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_6 = tiles_TileMap_isInvalidIndex__P4935_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.arg3; - s.callLocIdx = 1234; s.pc = 6; return s.tmp_6; - case 6: + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 2: r0 = s.retval; s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = pxsim_String__concat("\n ", s.tmp_5); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 2: - // jmp value (already in r0) + r0 = pxsim_String__concat(s.tmp_4, ": "); + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg1); s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - s.tmp_8 = tiles_TileMapData_setTile__P2704_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = s.arg1; - s.tmp_8.arg2 = s.arg2; - s.tmp_8.arg3 = s.arg3; - s.callLocIdx = 1235; s.pc = 7; return s.tmp_8; - case 7: - r0 = s.retval; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 3); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } case 3: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_6); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 4: - r0 = undefined; + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -tiles_TileMap_setTileAt__P2731.info = {"start":11306,"length":209,"line":388,"column":8,"endLine":391,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} +console_inspect_inline__P77725.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} -function tiles_TileMap_setTileAt__P2731_mk(s) { +function console_inspect_inline__P77725_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setTileAt__P2731, depth: s.depth + 1, + parent: s, fn: console_inspect_inline__P77725, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22593,18 +22662,15 @@ function tiles_TileMap_setTileAt__P2731_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_setTile__P2704(s) { +function helpers_arrayReduce__P64331(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22614,87 +22680,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___77752 = undefined; + s.i___77755 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2709_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 1208; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + r0 = pxsim_Array__length(s.arg0); + s.len___77752 = (r0); + s.i___77755 = (0); + case 1: + r0 = (s.i___77755 < s.len___77752); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - r0 = s.arg0.fields["data"]; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.arg0.fields["data"]; - s.tmp_6 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["data"] = (s.tmp_5); + if (!r0) { step = 2; continue; } + s.tmp_1 = lambda_4_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.arg2; + r0 = pxsim_Array__getAt(s.arg0, s.i___77755); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.i___77755; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 9; s.pc = 3; return s.tmp_1; case 3: - case 4: - r0 = s.arg0.fields["data"]; - s.tmp_0 = r0; - r0 = (s.arg1 | 0); - s.tmp_3 = r0; - r0 = (4 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.arg2 | 0); - s.tmp_5 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3); - case 5: - r0 = undefined; + r0 = s.retval; + s.arg2 = (r0); + r0 = (s.i___77755 + 1); + s.i___77755 = (r0); + { step = 1; continue; } + case 2: + r0 = s.arg2; return leave(s, r0) default: oops() } } } -tiles_TileMapData_setTile__P2704.info = {"start":6962,"length":315,"line":237,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} +helpers_arrayReduce__P64331.info = {"start":8316,"length":317,"line":280,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayReduce","argumentNames":["arr","callbackfn","initialValue"]} -function tiles_TileMapData_setTile__P2704_mk(s) { +function helpers_arrayReduce__P64331_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_setTile__P2704, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P64331, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, + len___77752: undefined, + i___77755: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function tiles_Location_y__P2679(s) { +function helpers_arrayJoin__P64322(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22704,54 +22745,153 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___15105 = undefined; + s.r___77780 = undefined; + s.len___77781 = undefined; + s.i___77784 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2675_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1196; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___15105 = (r0); - r0 = s.arg0.fields["_row"]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 === null); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___15105); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + s.arg1 = (","); + case 3: + case 4: + r0 = pxsim_String_.mkEmpty(); + s.r___77780 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___77781 = (r0); + s.i___77784 = (0); + case 5: + r0 = (s.i___77784 < s.len___77781); s.tmp_0 = r0; - r0 = (s.scale___15105 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___77784 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 6; continue; } + r0 = s.tmp_1; + { step = 7; continue; } + case 6: + r0 = s.arg1; + case 7: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + if ((s.r___77780) && (s.r___77780).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___77780); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___77780) + ""; } + case 15: + r0 = s.retval; s.tmp_3 = r0; - r0 = (1 << s.tmp_3); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 16: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.r___77780 = (r0); + case 8: + case 9: + r0 = pxsim_Array__getAt(s.arg0, s.i___77784); + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 10: + r0 = pxsim_Array__getAt(s.arg0, s.i___77784); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = (s.tmp_2 === null); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + r0 = pxsim_String_.mkEmpty(); + { step = 13; continue; } + case 12: + r0 = pxsim_Array__getAt(s.arg0, s.i___77784); + case 13: + // jmp value (already in r0) + s.tmp_4 = r0; + if ((s.r___77780) && (s.r___77780).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___77780); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___77780) + ""; } + case 17: + r0 = s.retval; + s.tmp_5 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 18: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); + s.r___77780 = (r0); + r0 = (s.i___77784 + 1); + s.i___77784 = (r0); + { step = 5; continue; } + case 14: + r0 = s.r___77780; + return leave(s, r0) default: oops() } } } -tiles_Location_y__P2679.info = {"start":1315,"length":135,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} -tiles_Location_y__P2679.isGetter = true; +helpers_arrayJoin__P64322.info = {"start":4133,"length":432,"line":157,"column":4,"endLine":170,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayJoin","argumentNames":["arr","sep"]} -function tiles_Location_y__P2679_mk(s) { +function helpers_arrayJoin__P64322_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P2679, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P64322, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - scale___15105: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + r___77780: undefined, + len___77781: undefined, + i___77784: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_Location_x__P2678(s) { +function scene_cameraFollowSprite__P67089(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22761,46 +22901,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___15121 = undefined; + s.scene___73225 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2675_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1194; s.pc = 1; return s.tmp_1; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1381; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + s.scene___73225 = (r0); + r0 = s.scene___73225.fields["camera"]; s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___15121 = (r0); - r0 = s.arg0.fields["_col"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___15121); - s.tmp_0 = r0; - r0 = (s.scale___15121 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = (s.tmp_0).fields["sprite"] = (s.arg0); + s.tmp_0 = scene_Camera_update__P66997_mk(s); + r0 = s.scene___73225.fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1382; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_Location_x__P2678.info = {"start":1054,"length":135,"line":45,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} -tiles_Location_x__P2678.isGetter = true; +scene_cameraFollowSprite__P67089.info = {"start":4010,"length":170,"line":143,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} -function tiles_Location_x__P2678_mk(s) { +function scene_cameraFollowSprite__P67089_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P2678, depth: s.depth + 1, + parent: s, fn: scene_cameraFollowSprite__P67089, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - scale___15121: undefined, + scene___73225: undefined, arg0: undefined, } } @@ -22808,7 +22940,7 @@ function tiles_Location_x__P2678_mk(s) { -function scene_clearParticleEffectsAtLocation__P4404(s) { +function controller_moveSprite__P66367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22818,67 +22950,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___15194 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2263; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___15194 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___15194); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: + s.tmp_0 = controller_Controller__moveSpriteInternal__P66352_mk(s); + s.tmp_1 = controller__player1__P66328_mk(s); + s.callLocIdx = 316; s.pc = 2; return s.tmp_1; case 2: - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P15203); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); - s.tmp_3 = helpers_arrayForEach__P109_mk(s); - s.tmp_4 = helpers_arrayFilter__P110_mk(s); - s.tmp_4.arg0 = s.sources___15194; - s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 2268; s.pc = 6; return s.tmp_4; - case 6: r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = scene_clearParticleEffectsAtLocation_inline__P15218; - s.callLocIdx = 2270; s.pc = 5; return s.tmp_3; - case 5: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.callLocIdx = 317; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_clearParticleEffectsAtLocation__P4404.info = {"start":492,"length":313,"line":12,"column":4,"endLine":18,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"clearParticleEffectsAtLocation","argumentNames":["location"]} +controller_moveSprite__P66367.info = {"start":14763,"length":142,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} -function scene_clearParticleEffectsAtLocation__P4404_mk(s) { +function controller_moveSprite__P66367_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_clearParticleEffectsAtLocation__P4404, depth: s.depth + 1, + parent: s, fn: controller_moveSprite__P66367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - sources___15194: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function forEach_inline__P15203(s) { +function controller_Controller__moveSpriteInternal__P66352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22888,71 +23000,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cp___73563 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_2 = if_x_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "x"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["x"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["x"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 2264; s.pc = 3; return s.tmp_2; } - } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 15; continue; } + case 1: + case 2: + s.tmp_5 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 277; s.pc = 16; return s.tmp_5; + case 16: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_6 = controller_Controller__controlledSprites__P66340_mk(s); + s.tmp_6.arg0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_6.arg1 = r0; + s.callLocIdx = 278; s.pc = 17; return s.tmp_6; + case 17: + r0 = s.retval; case 3: + case 4: + r0 = pxsim_pxtcore_mkAction(1, cp_inline__P73566); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayFind__P64330_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 279; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 280; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; + s.cp___73563 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cp___73563); s.tmp_1 = r0; - s.tmp_4 = tiles_Location_x__P2678_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.callLocIdx = 2265; s.pc = 4; return s.tmp_4; - case 4: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C66330_VT); + s.tmp_2 = r0; + s.tmp_3 = controller_ControlledSprite_constructor__P66332_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.tmp_3.arg3 = s.arg3; + s.callLocIdx = 281; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.cp___73563 = (s.tmp_2); + s.tmp_1 = controller_Controller__controlledSprites__P66339_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 282; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 === s.tmp_3); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_6 = if_y_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "y"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["y"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["y"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 2266; s.pc = 5; return s.tmp_6; } - } + r0 = pxsim_Array__push(s.tmp_0, s.cp___73563); case 5: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = tiles_Location_y__P2679_mk(s); - s.tmp_8.arg0 = s.caps[0]; - s.callLocIdx = 2267; s.pc = 6; return s.tmp_8; case 6: + r0 = s.cp___73563.fields["vx"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = (s.arg2 == 0); + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_2 = Sprite_vx__P66558_mk(s); + r0 = s.cp___73563.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 283; s.pc = 22; return s.tmp_2; + case 22: r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 === s.tmp_7); - case 2: + case 9: + case 10: + r0 = s.cp___73563.fields["vy"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = (s.arg3 == 0); + case 12: // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + s.tmp_2 = Sprite_vy__P66560_mk(s); + r0 = s.cp___73563.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 284; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + case 13: + case 14: + r0 = (s.cp___73563).fields["vx"] = (s.arg2); + r0 = (s.cp___73563).fields["vy"] = (s.arg3); + case 15: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P15203.info = {"start":694,"length":62,"line":16,"column":20,"endLine":16,"endColumn":82,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"inline","argumentNames":["ps"]} +controller_Controller__moveSpriteInternal__P66352.info = {"start":6039,"length":617,"line":202,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSpriteInternal","argumentNames":["this","sprite","vx","vy"]} -function forEach_inline__P15203_mk(s) { +function controller_Controller__moveSpriteInternal__P66352_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P15203, depth: s.depth + 1, + parent: s, fn: controller_Controller__moveSpriteInternal__P66352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22961,17 +23146,18 @@ function forEach_inline__P15203_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, + cp___73563: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_clearParticleEffectsAtLocation_inline__P15218(s) { +function cp_inline__P73566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22985,23 +23171,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_destroy__P3145_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2269; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0.fields["s"]; + r0 = r0.fields["id"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["id"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -scene_clearParticleEffectsAtLocation_inline__P15218.info = {"start":779,"length":18,"line":17,"column":21,"endLine":17,"endColumn":39,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"inline","argumentNames":["ps"]} +cp_inline__P73566.info = {"start":6268,"length":26,"line":205,"column":50,"endLine":205,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} -function scene_clearParticleEffectsAtLocation_inline__P15218_mk(s) { +function cp_inline__P73566_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_clearParticleEffectsAtLocation_inline__P15218, depth: s.depth + 1, + parent: s, fn: cp_inline__P73566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -23009,7 +23196,7 @@ function scene_clearParticleEffectsAtLocation_inline__P15218_mk(s) { -function sprites_on_fire_destroyed__P4417(s) { +function Sprite_vy__P66560(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23021,33 +23208,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_onFireDestroyed__P4427_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2285; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_on_fire_destroyed__P4417.info = {"start":4606,"length":131,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"on_fire_destroyed","argumentNames":["handler"]} +Sprite_vy__P66560.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function sprites_on_fire_destroyed__P4417_mk(s) { +function Sprite_vy__P66560_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_on_fire_destroyed__P4417, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P66560, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function forestFire_onFireDestroyed__P4427(s) { +function Sprite_vy__P66559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23061,22 +23255,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_FireState_onFireDestroyed__P7141_mk(s); - s.tmp_0.arg0 = globals.state___7146; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2351; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -forestFire_onFireDestroyed__P4427.info = {"start":11576,"length":124,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireDestroyed","argumentNames":["handler"]} +Sprite_vy__P66559.info = {"start":3595,"length":60,"line":143,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P66559.isGetter = true; -function forestFire_onFireDestroyed__P4427_mk(s) { +function Sprite_vy__P66559_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_onFireDestroyed__P4427, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P66559, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23086,7 +23279,7 @@ function forestFire_onFireDestroyed__P4427_mk(s) { -function forestFire_FireState_onFireDestroyed__P7141(s) { +function Sprite_vx__P66558(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23102,22 +23295,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - r0 = s.arg0.fields["fireDestroyedHandlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_onFireDestroyed__P7141.info = {"start":9467,"length":126,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireDestroyed","argumentNames":["this","handler"]} +Sprite_vx__P66558.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function forestFire_FireState_onFireDestroyed__P7141_mk(s) { +function Sprite_vx__P66558_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_onFireDestroyed__P7141, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P66558, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, } } @@ -23126,7 +23324,7 @@ function forestFire_FireState_onFireDestroyed__P7141_mk(s) { -function helpers_getAnimationByName__P3317(s) { +function Sprite_vx__P66557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23140,21 +23338,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P3313_mk(s); - s.tmp_0.arg0 = "animation"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2014; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -helpers_getAnimationByName__P3317.info = {"start":2990,"length":111,"line":91,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getAnimationByName","argumentNames":["name"]} +Sprite_vx__P66557.info = {"start":3264,"length":60,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P66557.isGetter = true; -function helpers_getAnimationByName__P3317_mk(s) { +function Sprite_vx__P66557_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_getAnimationByName__P3317, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P66557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23164,7 +23362,7 @@ function helpers_getAnimationByName__P3317_mk(s) { -function assets_animation__P3309(s) { +function controller_ControlledSprite_constructor__P66332(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23177,28 +23375,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = null; + r0 = s.arg0; + if (!checkSubtype(r0, controller_ControlledSprite__C66330_VT)) failedCast(r0); + r0 = (s.arg0).fields["s"] = (s.arg1); + r0 = (s.arg0).fields["vx"] = (s.arg2); + r0 = (s.arg0).fields["vy"] = (s.arg3); + r0 = undefined; return leave(s, r0) default: oops() } } } -assets_animation__P3309.info = {"start":1303,"length":77,"line":36,"column":4,"endLine":36,"endColumn":81,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"animation","argumentNames":["lits","args"]} +controller_ControlledSprite_constructor__P66332.info = {"start":1876,"length":117,"line":60,"column":8,"endLine":64,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} -function assets_animation__P3309_mk(s) { +function controller_ControlledSprite_constructor__P66332_mk(s) { checkStack(s.depth); return { - parent: s, fn: assets_animation__P3309, depth: s.depth + 1, + parent: s, fn: controller_ControlledSprite_constructor__P66332, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function animation_runImageAnimation__P3342(s) { +function helpers_arrayFind__P64330(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23208,78 +23415,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.anim___15694 = undefined; + s.len___73634 = undefined; + s.i___73637 = undefined; + s.v___73642 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(animation_ImageAnimation__C3336_VT); - s.tmp_0 = r0; - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 1; continue; } - r0 = s.tmp_1; - { step = 2; continue; } + r0 = pxsim_Array__length(s.arg0); + s.len___73634 = (r0); + s.i___73637 = (0); case 1: - r0 = 500; + r0 = (s.i___73637 < s.len___73634); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___73637); + s.v___73642 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___73642; + s.tmp_1.arg1 = s.i___73637; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 8; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = s.v___73642; + { step = 5; continue; } case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = animation_ImageAnimation_constructor__P3337_mk(s); - s.tmp_3.arg0 = s.tmp_0; - s.tmp_3.arg1 = s.arg0; - s.tmp_3.arg2 = s.arg1; - s.tmp_3.arg3 = s.tmp_2; - r0 = pxsim_numops_toBoolDecr(s.arg3); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3.arg4 = r0; - s.callLocIdx = 2083; s.pc = 3; return s.tmp_3; case 3: - r0 = s.retval; - s.anim___15694 = (s.tmp_0); - s.tmp_0 = animation_SpriteAnimation_init__P3334_mk(s); - s.tmp_0.arg0 = s.anim___15694; - s.callLocIdx = 2084; s.pc = 4; return s.tmp_0; + r0 = (s.i___73637 + 1); + s.i___73637 = (r0); + { step = 1; continue; } case 4: - r0 = s.retval; r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -animation_runImageAnimation__P3342.info = {"start":21512,"length":222,"line":588,"column":4,"endLine":591,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"runImageAnimation","argumentNames":["sprite","frames","frameInterval","loop"]} +helpers_arrayFind__P64330.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} -function animation_runImageAnimation__P3342_mk(s) { +function helpers_arrayFind__P64330_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_runImageAnimation__P3342, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P64330, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - anim___15694: undefined, + len___73634: undefined, + i___73637: undefined, + v___73642: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function animation_ImageAnimation_constructor__P3337(s) { +function sprites_create__P66475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23289,50 +23487,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___73670 = undefined; + s.sprite___73673 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, animation_ImageAnimation__C3336_VT)) failedCast(r0); - r0 = (s.arg0).fields["frames"] = (s.arg2); - r0 = (s.arg0).fields["frameInterval"] = (s.arg3); - s.tmp_0 = animation_SpriteAnimation_constructor__P3333_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 2071; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 555; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["lastFrame"] = (-1); - r0 = undefined; + s.scene___73670 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C66540_VT); + s.tmp_0 = r0; + s.tmp_1 = Sprite_constructor__P66587_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 556; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.sprite___73673 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P66607_mk(s); + s.tmp_0.arg0 = s.sprite___73673; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 557; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = PhysicsEngine__C66710_v0_2_mk(s); + r0 = s.scene___73670.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___73673; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; + s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P73688); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P73695); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___73673); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_3 = helpers_arrayFilter__P64329_mk(s); + r0 = s.scene___73670.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 558; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 560; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + r0 = s.sprite___73673; return leave(s, r0) default: oops() } } } -animation_ImageAnimation_constructor__P3337.info = {"start":19278,"length":177,"line":527,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","frames","frameInterval","loop"]} +sprites_create__P66475.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} -function animation_ImageAnimation_constructor__P3337_mk(s) { +function sprites_create__P66475_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_ImageAnimation_constructor__P3337, depth: s.depth + 1, + parent: s, fn: sprites_create__P66475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + scene___73670: undefined, + sprite___73673: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function animation_SpriteAnimation_constructor__P3333(s) { +function forEach_inline__P73688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23344,36 +23579,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, animation_SpriteAnimation__C3332_VT)) failedCast(r0); - r0 = (s.arg0).fields["sprite"] = (s.arg1); - r0 = (s.arg0).fields["loop"] = (s.arg2); - r0 = (s.arg0).fields["elapsedTime"] = (0); - r0 = undefined; + r0 = s.arg0.fields["kind"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == s.caps[0]); return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_constructor__P3333.info = {"start":17626,"length":105,"line":486,"column":8,"endLine":488,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","loop"]} +forEach_inline__P73688.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function animation_SpriteAnimation_constructor__P3333_mk(s) { +function forEach_inline__P73688_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_constructor__P3333, depth: s.depth + 1, + parent: s, fn: forEach_inline__P73688, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function animation_SpriteAnimation_init__P3334(s) { +function sprites_create_inline__P73695(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23383,135 +23612,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___15707 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, animation_SpriteAnimation__C3332_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.state___15707 = (r0); - s.tmp_0 = r0 = s.state___15707; - s.tmp_4 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2058; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_data"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, globals.stateNamespace___5427); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.state___15707); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt.mkMap(); - s.tmp_3 = r0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_3, "animations", s.tmp_4); - s.tmp_7 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2060; s.pc = 4; return s.tmp_7; - case 4: - r0 = s.retval; - s.tmp_6 = r0; - r0 = s.tmp_6.fields["_data"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_5, globals.stateNamespace___5427, s.tmp_3); - r0 = pxsim_pxtrt_stlocRef(s.state___15707, s.tmp_3); - r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P15723); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.state___15707); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_2 = game_eventContext__P2982_mk(s); - s.callLocIdx = 2062; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 15; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 2066; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P15747); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = if_animations_2_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___15707); - s.tmp_1.arg0 = r0; - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_3 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___15707); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "animations"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["animations"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["animations"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 2067; s.pc = 9; return s.tmp_3; } - } - case 9: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_0; - s.callLocIdx = 2068; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1.arg1 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_1.arg0, "animations", s.tmp_1.arg1); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["set/animations"]; - if (s.tmp_1.fn === null) { s.tmp_1.arg0.fields["animations"] = s.tmp_1.arg1; } - else if (s.tmp_1.fn === undefined) { failedCast(s.tmp_1.arg0) } - else { s.callLocIdx = 2069; s.pc = 7; return s.tmp_1; } - } - case 7: - r0 = s.retval; - s.tmp_1 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___15707); - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "animations"); + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 559; s.pc = 1; return s.tmp_0; } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["animations"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["animations"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 2070; s.pc = 10; return s.tmp_1; } + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 559; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 559; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 559; s.pc = 1; return s.tmp_0; } } - case 10: + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_init__P3334.info = {"start":17741,"length":1299,"line":490,"column":8,"endLine":516,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"init","argumentNames":["this"]} +sprites_create_inline__P73695.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function animation_SpriteAnimation_init__P3334_mk(s) { +function sprites_create_inline__P73695_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init__P3334, depth: s.depth + 1, + parent: s, fn: sprites_create_inline__P73695, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - state___15707: undefined, arg0: undefined, } } @@ -23519,7 +23649,7 @@ function animation_SpriteAnimation_init__P3334_mk(s) { -function animation_SpriteAnimation_init_inline__P15723(s) { +function PhysicsEngine_addSprite__P66712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23529,60 +23659,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = if_animations_2_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg0 = r0; - s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_2 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "animations"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["animations"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["animations"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 2063; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = animation_SpriteAnimation_init_inline__P15730; - s.callLocIdx = 2064; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "animations", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/animations"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["animations"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 2065; s.pc = 1; return s.tmp_0; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_init_inline__P15723.info = {"start":18173,"length":371,"line":499,"column":90,"endLine":505,"endColumn":17,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":[]} +PhysicsEngine_addSprite__P66712.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function animation_SpriteAnimation_init_inline__P15723_mk(s) { +function PhysicsEngine_addSprite__P66712_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P15723, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P66712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function animation_SpriteAnimation_init_inline__P15730(s) { +function Sprite_setKind__P66607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23592,56 +23695,153 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___73731 = undefined; + s.overlapMap___73760 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["sprite"]; - r0 = r0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = false; - { step = 3; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg1); case 2: - s.tmp_4 = animation_SpriteAnimation__C3332_v0_1_mk(s); - s.tmp_4.arg0 = s.arg0; - if (!checkSubtype(s.tmp_4.arg0, animation_SpriteAnimation__C3332_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.update; - s.pc = 4; return s.tmp_4; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 15; continue; } + case 3: case 4: + s.tmp_3 = game_currentScene__P67198_mk(s); + s.callLocIdx = 641; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___73731 = (r0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["_kind"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___73731, s.tmp_2); + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = sprites_SpriteSet_remove__P66669_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___73731, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 642; s.pc = 17; return s.tmp_4; + case 17: r0 = s.retval; + case 7: + case 8: + r0 = (s.arg1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___73731, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - case 3: - return leave(s, r0) - default: oops() + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C66662_VT); + s.tmp_4 = r0; + s.tmp_5 = sprites_SpriteSet_constructor__P66664_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 643; s.pc = 18; return s.tmp_5; + case 18: + r0 = s.retval; + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___73731, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P66667_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___73731, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 644; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 645; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___73760 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___73760, s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.overlapMap___73760; + s.tmp_4 = r0 = s.arg1; + r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); + case 13: + case 14: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___73760, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); + r0 = (s.arg0).fields["_kind"] = (s.arg1); + case 15: + r0 = undefined; + return leave(s, r0) + default: oops() } } } -animation_SpriteAnimation_init_inline__P15730.info = {"start":18244,"length":280,"line":500,"column":63,"endLine":504,"endColumn":21,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} +Sprite_setKind__P66607.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function animation_SpriteAnimation_init_inline__P15730_mk(s) { +function Sprite_setKind__P66607_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P15730, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P66607, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + spritesByKind___73731: undefined, + overlapMap___73760: undefined, arg0: undefined, + arg1: undefined, } } -function animation_SpriteAnimation_init_inline__P15747(s) { +function sprites_SpriteSet_remove__P66669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23651,72 +23851,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___73808 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["sprite"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["sprite"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 1: r0 = s.arg0; - r0 = checkSubtype(r0, animation_ImageAnimation__C3336_VT); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 2; continue; } - r0 = s.tmp_3; + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); + s.i___73808 = (r0); + r0 = (s.i___73808 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_arraySplice__P64319_mk(s); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___73808; + s.tmp_1.arg2 = 1; + s.callLocIdx = 799; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = true; { step = 3; continue; } + case 1: case 2: - r0 = s.caps[0]; - r0 = checkSubtype(r0, animation_ImageAnimation__C3336_VT); + r0 = false; case 3: - // jmp value (already in r0) + return leave(s, r0) + default: oops() +} } } +sprites_SpriteSet_remove__P66669.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} + +function sprites_SpriteSet_remove__P66669_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_remove__P66669, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + i___73808: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function sprites_SpriteSet_add__P66667(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } + case 1: + case 2: + r0 = s.arg0.fields["_sprites"]; s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = s.tmp_4; - { step = 7; continue; } + r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); + s.tmp_3 = r0; + r0 = (s.tmp_3 > -1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: case 4: - r0 = s.arg0; - r0 = checkSubtype(r0, animation_MovementAnimation__C3339_VT); + r0 = s.arg0.fields["_sprites"]; s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 5; continue; } - r0 = s.tmp_5; - { step = 6; continue; } + r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = true; case 5: - r0 = s.caps[0]; - r0 = checkSubtype(r0, animation_MovementAnimation__C3339_VT); - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 8: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - s.tmp_9 = r0; - r0 = pxsim_Boolean__bang(s.tmp_9); return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_init_inline__P15747.info = {"start":18701,"length":285,"line":509,"column":55,"endLine":513,"endColumn":13,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} +sprites_SpriteSet_add__P66667.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function animation_SpriteAnimation_init_inline__P15747_mk(s) { +function sprites_SpriteSet_add__P66667_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P15747, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P66667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23724,18 +23962,15 @@ function animation_SpriteAnimation_init_inline__P15747_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, arg0: undefined, + arg1: undefined, } } -function animation_SpriteAnimation_update__P3335(s) { +function sprites_SpriteSet_contains__P66670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23747,29 +23982,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_SpriteAnimation__C3332_VT)) failedCast(r0); - r0 = false; + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + s.tmp_0 = r0; + r0 = (s.tmp_0 > -1); return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_update__P3335.info = {"start":19050,"length":118,"line":518,"column":8,"endLine":521,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} +sprites_SpriteSet_contains__P66670.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function animation_SpriteAnimation_update__P3335_mk(s) { +function sprites_SpriteSet_contains__P66670_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_update__P3335, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P66670, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function music_Melody_play__P1633(s) { +function sprites_SpriteSet_constructor__P66664(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23781,39 +24024,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_playCore__P4569_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = false; - s.callLocIdx = 98; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_play__P1633.info = {"start":9416,"length":71,"line":292,"column":8,"endLine":294,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +sprites_SpriteSet_constructor__P66664.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function music_Melody_play__P1633_mk(s) { +function sprites_SpriteSet_constructor__P66664_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_play__P1633, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P66664, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function music_Melody_playCore__P4569(s) { +function Sprite_constructor__P66587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23823,66 +24062,141 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___15808 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_stop__P1631_mk(s); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P66296_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 92; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 603; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C1637_VT); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayer_constructor__P1640_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 93; s.pc = 2; return s.tmp_1; + r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = Sprite_vx__P66558_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 606; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - r0 = (s.arg0).fields["_player"] = (s.tmp_0); - s.p___15808 = (s.tmp_0); - s.tmp_0 = music_Melody_registerMelody__P4567_mk(s); + s.tmp_0 = Sprite_vy__P66560_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 94; s.pc = 3; return s.tmp_0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 607; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(4, music_Melody_playCore_inline__P15818); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___15808); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg2); - r0 = pxsim.control.runInParallel(s.tmp_0); + s.tmp_0 = Sprite_ax__P66562_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 608; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P66564_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 609; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P66566_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 610; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P66568_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 611; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["_sx"] = (256); + r0 = (s.arg0).fields["_sy"] = (256); + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P66590_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 612; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P66607_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 613; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = (s.arg0).fields["layer"] = (1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_playCore__P4569.info = {"start":7809,"length":815,"line":247,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} +Sprite_constructor__P66587.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function music_Melody_playCore__P4569_mk(s) { +function Sprite_constructor__P66587_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playCore__P4569, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P66587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___15808: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function music_Melody_playCore_inline__P15818(s) { +function Sprite_fy__P66568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23892,66 +24206,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 599; s.pc = 1; return s.tmp_3; case 1: - r0 = s.caps[0].fields["_player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.caps[1]); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_2 = music_MelodyPlayer_play__P1642_mk(s); - s.tmp_2.arg0 = s.caps[1]; - s.tmp_2.arg1 = s.caps[2]; - s.callLocIdx = 95; s.pc = 7; return s.tmp_2; - case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.caps[3]); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.caps[0].fields["_player"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == s.caps[1]); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - s.tmp_4 = music_Melody_unregisterMelody__P4568_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.callLocIdx = 96; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - case 2: - case 3: - { step = 6; continue; } - case 4: - case 5: - { step = 1; continue; } - case 6: + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_playCore_inline__P15818.info = {"start":8012,"length":601,"line":251,"column":34,"endLine":265,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +Sprite_fy__P66568.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function music_Melody_playCore_inline__P15818_mk(s) { +function Sprite_fy__P66568_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playCore_inline__P15818, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P66568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + arg0: undefined, + arg1: undefined, } } -function music_Melody_unregisterMelody__P4568(s) { +function Sprite_fy__P66567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23966,23 +24265,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4570); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4570, s.arg0); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -music_Melody_unregisterMelody__P4568.info = {"start":7598,"length":201,"line":240,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} +Sprite_fy__P66567.info = {"start":4947,"length":60,"line":186,"column":4,"endLine":188,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P66567.isGetter = true; -function music_Melody_unregisterMelody__P4568_mk(s) { +function Sprite_fy__P66567_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_unregisterMelody__P4568, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P66567, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -23990,7 +24288,7 @@ function music_Melody_unregisterMelody__P4568_mk(s) { -function music_Melody_registerMelody__P4567(s) { +function Sprite_fx__P66566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24002,66 +24300,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4570); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.music_Melody_playingMelodies___4570 = (r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 596; s.pc = 1; return s.tmp_3; case 1: - case 2: - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4570); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = music_Melody_stop__P1631_mk(s); - s.tmp_3 = r0 = globals.music_Melody_playingMelodies___4570; - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4570); - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.tmp_2.arg0 = r0; - s.callLocIdx = 91; s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4570, s.arg0); - r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___4570, s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_registerMelody__P4567.info = {"start":7016,"length":573,"line":228,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} +Sprite_fx__P66566.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function music_Melody_registerMelody__P4567_mk(s) { +function Sprite_fx__P66566_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_registerMelody__P4567, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P66566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, } } -function music_MelodyPlayer_play__P1642(s) { +function Sprite_fx__P66565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24071,698 +24352,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.notes___15851 = undefined; - s.pos___15855 = undefined; - s.duration___15856 = undefined; - s.octave___15857 = undefined; - s.tempo___15858 = undefined; - s.hz___15859 = undefined; - s.endHz___15860 = undefined; - s.ms___15863 = undefined; - s.timePos___15864 = undefined; - s.startTime___15865 = undefined; - s.now___15868 = undefined; - s.envA___15869 = undefined; - s.envD___15870 = undefined; - s.envS___15871 = undefined; - s.envR___15872 = undefined; - s.soundWave___15873 = undefined; - s.sndInstr___15874 = undefined; - s.sndInstrPtr___15880 = undefined; - s.addForm___15881 = undefined; - s.scanNextWord___15941 = undefined; - s.token___15998 = undefined; - s.tokenKind___15999 = undefined; - s.consumeToken___16002 = undefined; - s.currNote___16078 = undefined; - s.prevNote___16080 = undefined; - s.timeLeft___16083 = undefined; - s.note___16097 = undefined; - s.i___16101 = undefined; - s.noteChar___16107 = undefined; - s.keyNumber___16181 = undefined; - s.currMs___16198 = undefined; - s.beat___16202 = undefined; - s.timeLeft___16259 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1637_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - r0 = s.arg0.fields["melody"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_fx__P66565.info = {"start":4604,"length":60,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P66565.isGetter = true; + +function Sprite_fx__P66565_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_fx__P66565, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_ay__P66564(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - { step = 59; continue; } - case 1: - case 2: - s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_clamp__P127_mk(s); - s.tmp_6.arg0 = 0; - s.tmp_6.arg1 = 255; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_8 = r0; - s.tmp_10 = music_volume__P1621_mk(s); - s.callLocIdx = 104; s.pc = 61; return s.tmp_10; - case 61: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_8 * s.tmp_9); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 8); - s.tmp_6.arg2 = r0; - s.callLocIdx = 105; s.pc = 60; return s.tmp_6; - case 60: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); - r0 = s.arg0.fields["melody"]; - r0 = r0.fields["_text"]; - s.notes___15851 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.pos___15855 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pos___15855, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.duration___15856 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.duration___15856, 4); - r0 = pxsim_pxtrt.mklocRef(); - s.octave___15857 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.octave___15857, 4); - r0 = pxsim_pxtrt.mklocRef(); - s.tempo___15858 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tempo___15858, 120); - r0 = pxsim_pxtrt.mklocRef(); - s.hz___15859 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hz___15859, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.endHz___15860 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.endHz___15860, -1); - r0 = pxsim_pxtrt.mklocRef(); - s.ms___15863 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.ms___15863, 0); - s.timePos___15864 = (0); - r0 = pxsim.control.millis(); - s.startTime___15865 = (r0); - s.now___15868 = (0); - r0 = pxsim_pxtrt.mklocRef(); - s.envA___15869 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envA___15869, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.envD___15870 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envD___15870, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.envS___15871 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envS___15871, 255); - r0 = pxsim_pxtrt.mklocRef(); - s.envR___15872 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envR___15872, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.soundWave___15873 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.soundWave___15873, 1); - r0 = pxsim.control.createBuffer(60); - s.sndInstr___15874 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.sndInstrPtr___15880 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___15880, 0); - r0 = pxsim_pxtcore_mkAction(10, addForm_inline__P15882); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___15859); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___15860); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___15863); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___15856); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___15858); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___15872); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___15880); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___15874); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___15873); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.arg1); - s.addForm___15881 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, scanNextWord_inline__P15942); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___15855); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___15851); - s.scanNextWord___15941 = (s.tmp_0); - r0 = pxsim_pxtrt.mklocRef(); - s.token___15998 = (r0); - s.tmp_0 = r0 = s.token___15998; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.tokenKind___15999 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 0); - r0 = pxsim_pxtcore_mkAction(13, consumeToken_inline__P16003); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___15998); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___15999); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___15857); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___15856); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___15863); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___15858); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___15859); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___15873); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___15869); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___15870); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___15871); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___15872); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___15860); - s.consumeToken___16002 = (s.tmp_0); - case 3: - r0 = pxsim_numops_toBoolDecr(true); - if (!r0) { step = 58; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.scanNextWord___15941; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 113; s.pc = 62; return s.tmp_0; - case 62: - r0 = s.retval; - s.currNote___16078 = (r0); - s.prevNote___16080 = (false); - r0 = pxsim_numops_toBoolDecr(s.currNote___16078); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_ay__P66564.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} + +function Sprite_ay__P66564_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_ay__P66564, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_ay__P66563(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.timePos___15864 - s.now___15868); - s.timeLeft___16083 = (r0); - r0 = (s.timeLeft___16083 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = pause__P413_mk(s); - s.tmp_1.arg0 = s.timeLeft___16083; - s.callLocIdx = 114; s.pc = 63; return s.tmp_1; - case 63: - r0 = s.retval; - case 4: - case 5: - r0 = s.arg0.fields["onPlayFinished"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = if_onPlayFinished_1_mk(s); - s.tmp_1.arg0 = s.arg0; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "onPlayFinished"), 1); - s.callLocIdx = 115; s.pc = 64; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["onPlayFinished"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onPlayFinished"], 1); s.callLocIdx = 115; s.pc = 64; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 115; s.pc = 64; return s.tmp_1;; } - else { s.callLocIdx = 115; s.pc = 64; return s.tmp_1; } + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_ay__P66563.info = {"start":4269,"length":60,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P66563.isGetter = true; + +function Sprite_ay__P66563_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_ay__P66563, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_ax__P66562(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 64: - r0 = s.retval; - case 6: - case 7: - { step = 59; continue; } - case 8: - case 9: - r0 = pxsim_pxtrt_stlocRef(s.hz___15859, -1); - s.note___16097 = (0); - s.tmp_0 = r0 = s.token___15998; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 0); - s.i___16101 = (0); - case 10: - s.tmp_1 = r0 = s.i___16101; - r0 = pxsim_String_.length(s.currNote___16078); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 41; continue; } - r0 = pxsim_String_.charAt(s.currNote___16078, s.i___16101); - s.noteChar___16107 = (r0); - s.tmp_0 = r0 = s.noteChar___16107; - r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq("d", s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq("D", s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq("e", s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("E", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = pxsim_pxtcore.switch_eq("f", s.tmp_0); - if (r0) { step = 17; continue; } - r0 = pxsim_pxtcore.switch_eq("F", s.tmp_0); - if (r0) { step = 18; continue; } - r0 = pxsim_pxtcore.switch_eq("g", s.tmp_0); - if (r0) { step = 19; continue; } - r0 = pxsim_pxtcore.switch_eq("G", s.tmp_0); - if (r0) { step = 20; continue; } - r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); - if (r0) { step = 21; continue; } - r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); - if (r0) { step = 22; continue; } - r0 = pxsim_pxtcore.switch_eq("B", s.tmp_0); - if (r0) { step = 23; continue; } - r0 = pxsim_pxtcore.switch_eq("r", s.tmp_0); - if (r0) { step = 24; continue; } - r0 = pxsim_pxtcore.switch_eq("R", s.tmp_0); - if (r0) { step = 25; continue; } - r0 = pxsim_pxtcore.switch_eq("#", s.tmp_0); - if (r0) { step = 26; continue; } - r0 = pxsim_pxtcore.switch_eq("b", s.tmp_0); - if (r0) { step = 27; continue; } - r0 = pxsim_pxtcore.switch_eq(",", s.tmp_0); - if (r0) { step = 30; continue; } - r0 = pxsim_pxtcore.switch_eq("!", s.tmp_0); - if (r0) { step = 31; continue; } - r0 = pxsim_pxtcore.switch_eq("@", s.tmp_0); - if (r0) { step = 32; continue; } - r0 = pxsim_pxtcore.switch_eq("~", s.tmp_0); - if (r0) { step = 33; continue; } - r0 = pxsim_pxtcore.switch_eq(":", s.tmp_0); - if (r0) { step = 34; continue; } - r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); - if (r0) { step = 35; continue; } - r0 = pxsim_pxtcore.switch_eq("^", s.tmp_0); - if (r0) { step = 36; continue; } - r0 = s.tmp_0; - { step = 37; continue; } - case 11: - case 12: - s.note___16097 = (1); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 13: - case 14: - s.note___16097 = (3); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 15: - case 16: - s.note___16097 = (5); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 17: - case 18: - s.note___16097 = (6); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 19: - case 20: - s.note___16097 = (8); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 21: - case 22: - s.note___16097 = (10); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 23: - s.note___16097 = (12); - s.prevNote___16080 = (true); - { step = 40; continue; } - case 24: - case 25: - r0 = pxsim_pxtrt_stlocRef(s.hz___15859, 0); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 26: - r0 = (s.note___16097 + 1); - s.note___16097 = (r0); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 27: - r0 = pxsim_numops_toBoolDecr(s.prevNote___16080); - if (!r0) { step = 28; continue; } - r0 = (s.note___16097 - 1); - s.note___16097 = (r0); - { step = 29; continue; } - case 28: - s.note___16097 = (12); - s.prevNote___16080 = (true); - case 29: - { step = 40; continue; } - case 30: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 116; s.pc = 65; return s.tmp_0; - case 65: - r0 = s.retval; - s.prevNote___16080 = (false); - { step = 40; continue; } - case 31: - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 4); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 32: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 117; s.pc = 66; return s.tmp_0; - case 66: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 8); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 33: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 118; s.pc = 67; return s.tmp_0; - case 67: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 7); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 34: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 119; s.pc = 68; return s.tmp_0; - case 68: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 2); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 35: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 120; s.pc = 69; return s.tmp_0; - case 69: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 3); - s.prevNote___16080 = (false); - { step = 40; continue; } - case 36: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 121; s.pc = 70; return s.tmp_0; - case 70: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 5); - { step = 40; continue; } - case 37: - r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___15999); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___15999, 1); - case 38: - case 39: - s.tmp_0 = r0 = s.token___15998; - r0 = pxsim_pxtrt_ldlocRef(s.token___15998); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 71); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 71: - r0 = s.retval; - s.tmp_2 = r0; - if ((s.noteChar___16107) && (s.noteChar___16107).vtable) { - setupResume(s, 72); - pxsim_String__stringConv(s.noteChar___16107); - checkResumeConsumed(); - return; - } else { s.retval = (s.noteChar___16107) + ""; } - case 72: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_4); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.prevNote___16080 = (false); - case 40: - r0 = (s.i___16101 + 1); - s.i___16101 = (r0); - { step = 10; continue; } - case 41: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___16002; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 122; s.pc = 73; return s.tmp_0; - case 73: - r0 = s.retval; - s.tmp_0 = r0 = s.note___16097; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 42; continue; } - r0 = s.tmp_0; - { step = 43; continue; } - case 42: - r0 = pxsim_pxtrt_ldlocRef(s.hz___15859); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - case 43: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 46; continue; } - s.tmp_3 = r0 = s.note___16097; - r0 = pxsim_pxtrt_ldlocRef(s.octave___15857); - s.tmp_6 = r0; - r0 = (s.tmp_6 - 1); - s.tmp_5 = r0; - r0 = (12 * s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.keyNumber___16181 = (r0); - s.tmp_1 = r0 = globals.freqs___4555; - r0 = (s.keyNumber___16181 * 2); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 4, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 44; continue; } - r0 = s.tmp_0; - { step = 45; continue; } - case 44: - r0 = 0; - case 45: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.hz___15859, s.tmp_3); - case 46: - case 47: - r0 = pxsim_pxtrt_ldlocRef(s.ms___15863); - s.currMs___16198 = (r0); - r0 = (s.currMs___16198 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 48; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.tempo___15858); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(15000, s.tmp_1); - s.beat___16202 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.duration___15856); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.beat___16202); - s.currMs___16198 = (r0); - case 48: - case 49: - r0 = pxsim_pxtrt_ldlocRef(s.hz___15859); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 50; continue; } - { step = 55; continue; } - case 50: - r0 = pxsim_pxtrt_ldlocRef(s.hz___15859); - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 51; continue; } - r0 = (s.timePos___15864 + s.currMs___16198); - s.timePos___15864 = (r0); - { step = 54; continue; } - case 51: - r0 = pxsim_pxtrt_ldlocRef(s.endHz___15860); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 52; continue; } - s.tmp_2 = r0 = s.endHz___15860; - r0 = pxsim_pxtrt_ldlocRef(s.hz___15859); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - case 52: - case 53: - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___15880, 0); - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___15881; - r0 = pxsim_pxtrt_ldlocRef(s.envA___15869); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 255; - s.tmp_0.arg3 = 0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 123; s.pc = 74; return s.tmp_0; - case 74: - r0 = s.retval; - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___15881; - r0 = pxsim_pxtrt_ldlocRef(s.envD___15870); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 255; - r0 = pxsim_pxtrt_ldlocRef(s.envS___15871); - s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___15869); - s.tmp_0.arg3 = r0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 124; s.pc = 75; return s.tmp_0; - case 75: - r0 = s.retval; - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___15881; - s.tmp_1 = r0 = s.currMs___16198; - r0 = pxsim_pxtrt_ldlocRef(s.envA___15869); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___15870); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___15871); - s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___15871); - s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___15870); - s.tmp_5 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___15869); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 125; s.pc = 76; return s.tmp_0; - case 76: - r0 = s.retval; - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___15881; - r0 = pxsim_pxtrt_ldlocRef(s.envR___15872); - s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___15871); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.currMs___16198; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 126; s.pc = 77; return s.tmp_0; - case 77: - r0 = s.retval; - s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P4571_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.timePos___15864 - s.now___15868); - s.tmp_0.arg1 = r0; - s.tmp_1 = r0 = s.sndInstr___15874; - r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___15880); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_1, 0, s.tmp_2); - s.tmp_0.arg2 = r0; - s.callLocIdx = 127; s.pc = 78; return s.tmp_0; - case 78: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.endHz___15860, -1); - r0 = (s.timePos___15864 + s.currMs___16198); - s.timePos___15864 = (r0); - case 54: - case 55: - r0 = (s.timePos___15864 - s.now___15868); - s.timeLeft___16259 = (r0); - r0 = (s.timeLeft___16259 > 200); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 56; continue; } - s.tmp_1 = pause__P413_mk(s); - r0 = (s.timeLeft___16259 - 100); - s.tmp_1.arg0 = r0; - s.callLocIdx = 128; s.pc = 79; return s.tmp_1; - case 79: - r0 = s.retval; - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.startTime___15865); - s.now___15868 = (r0); - case 56: - case 57: - { step = 3; continue; } - case 58: - case 59: + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_play__P1642.info = {"start":11570,"length":9259,"line":356,"column":8,"endLine":590,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +Sprite_ax__P66562.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function music_MelodyPlayer_play__P1642_mk(s) { +function Sprite_ax__P66562_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_play__P1642, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P66562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - notes___15851: undefined, - pos___15855: undefined, - duration___15856: undefined, - octave___15857: undefined, - tempo___15858: undefined, - hz___15859: undefined, - endHz___15860: undefined, - ms___15863: undefined, - timePos___15864: undefined, - startTime___15865: undefined, - now___15868: undefined, - envA___15869: undefined, - envD___15870: undefined, - envS___15871: undefined, - envR___15872: undefined, - soundWave___15873: undefined, - sndInstr___15874: undefined, - sndInstrPtr___15880: undefined, - addForm___15881: undefined, - scanNextWord___15941: undefined, - token___15998: undefined, - tokenKind___15999: undefined, - consumeToken___16002: undefined, - currNote___16078: undefined, - prevNote___16080: undefined, - timeLeft___16083: undefined, - note___16097: undefined, - i___16101: undefined, - noteChar___16107: undefined, - keyNumber___16181: undefined, - currMs___16198: undefined, - beat___16202: undefined, - timeLeft___16259: undefined, arg0: undefined, arg1: undefined, } } @@ -24771,7 +24508,7 @@ function music_MelodyPlayer_play__P1642_mk(s) { -function addForm_inline__P15882(s) { +function Sprite_ax__P66561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24781,136 +24518,89 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.freqStart___15887 = undefined; - s.freqEnd___15889 = undefined; - s.envelopeWidth___15891 = undefined; - s.slope___15909 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.freqStart___15887 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.freqEnd___15889 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - { step = 2; continue; } + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_ax__P66561.info = {"start":3930,"length":60,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P66561.isGetter = true; + +function Sprite_ax__P66561_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_ax__P66561, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_BaseSprite_constructor__P66296(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P66299_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 241; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(15000, s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[5]); - s.tmp_6 = r0; - r0 = (s.tmp_2 + s.tmp_6); - case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - s.envelopeWidth___15891 = (s.tmp_7); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = s.retval; + s.tmp_0 = scene_Scene_addSprite__P67069_mk(s); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 242; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.envelopeWidth___15891 != 0); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = (s.freqEnd___15889 - s.freqStart___15887); - s.tmp_4 = r0; - r0 = (s.tmp_4 / s.envelopeWidth___15891); - s.slope___15909 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0 = r0; - r0 = (s.slope___15909 * s.arg3); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.freqStart___15887 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0 = r0; - s.tmp_2 = r0 = s.slope___15909; - r0 = (s.arg3 + s.arg0); - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.freqEnd___15889 = (r0); - case 5: - case 6: - s.tmp_0 = r0 = s.caps[6]; - s.tmp_2 = music_addNote__P1636_mk(s); - s.tmp_2.arg0 = s.caps[7]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.arg0; - s.tmp_2.arg3 = s.arg1; - s.tmp_2.arg4 = s.arg2; - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); - s.tmp_2.arg5 = r0; - s.tmp_2.arg6 = s.freqStart___15887; - r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); - s.tmp_2.arg7 = r0; - s.tmp_2.arg8 = s.freqEnd___15889; - s.callLocIdx = 106; s.pc = 7; return s.tmp_2; - case 7: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 243; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -addForm_inline__P15882.info = {"start":12378,"length":643,"line":382,"column":28,"endLine":393,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} +sprites_BaseSprite_constructor__P66296.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} -function addForm_inline__P15882_mk(s) { +function sprites_BaseSprite_constructor__P66296_mk(s) { checkStack(s.depth); return { - parent: s, fn: addForm_inline__P15882, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P66296, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - freqStart___15887: undefined, - freqEnd___15889: undefined, - envelopeWidth___15891: undefined, - slope___15909: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function scanNextWord_inline__P15942(s) { +function scene_Scene_addSprite__P67069(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24920,185 +24610,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___15951 = undefined; - s.note___15968 = undefined; - s.c___15974 = undefined; - r0 = s.caps[0].fields["melody"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["spriteNextId"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.mkEmpty(); - { step = 23; continue; } - case 1: - case 2: - case 3: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.caps[2]); - s.tmp_5 = r0; - r0 = (s.tmp_4 < s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_6 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_7 = r0; - r0 = pxsim_String_.charAt(s.tmp_6, s.tmp_7); - s.c___15951 = (r0); - r0 = (s.c___15951 != " "); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - r0 = (s.c___15951 != "\r"); - case 5: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 6; continue; } - r0 = s.tmp_1; - { step = 7; continue; } - case 6: - r0 = (s.c___15951 != "\n"); - case 7: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 8; continue; } - r0 = s.tmp_2; - { step = 9; continue; } - case 8: - r0 = (s.c___15951 != "\t"); - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - { step = 12; continue; } - case 10: - case 11: - s.tmp_4 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 1); - s.tmp_5 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); - { step = 3; continue; } - case 12: - r0 = pxsim_String_.mkEmpty(); - s.note___15968 = (r0); - case 13: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = pxsim_String_.length(s.caps[2]); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_3 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_4 = r0; - r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); - s.c___15974 = (r0); - r0 = (s.c___15974 == " "); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = s.tmp_0; - { step = 15; continue; } - case 14: - r0 = (s.c___15974 == "\r"); - case 15: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 16; continue; } - r0 = s.tmp_1; - { step = 17; continue; } - case 16: - r0 = (s.c___15974 == "\n"); - case 17: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 18; continue; } - r0 = s.tmp_2; - { step = 19; continue; } - case 18: - r0 = (s.c___15974 == "\t"); - case 19: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 20; continue; } - { step = 22; continue; } - case 20: - case 21: - if ((s.note___15968) && (s.note___15968).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.note___15968); - checkResumeConsumed(); - return; - } else { s.retval = (s.note___15968) + ""; } - case 24: - r0 = s.retval; - s.tmp_4 = r0; - if ((s.c___15974) && (s.c___15974).vtable) { - setupResume(s, 25); - pxsim_String__stringConv(s.c___15974); - checkResumeConsumed(); - return; - } else { s.retval = (s.c___15974) + ""; } - case 25: + r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); + s.tmp_3 = if_id_2_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.tmp_2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 1365; s.pc = 1; return s.tmp_3; } + } + case 1: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - s.note___15968 = (r0); - s.tmp_0 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 13; continue; } - case 22: - r0 = s.note___15968; - case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -scanNextWord_inline__P15942.info = {"start":13056,"length":708,"line":395,"column":33,"endLine":417,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +scene_Scene_addSprite__P67069.info = {"start":7161,"length":128,"line":199,"column":8,"endLine":202,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function scanNextWord_inline__P15942_mk(s) { +function scene_Scene_addSprite__P67069_mk(s) { checkStack(s.depth); return { - parent: s, fn: scanNextWord_inline__P15942, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P67069, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - c___15951: undefined, - note___15968: undefined, - c___15974: undefined, + arg0: undefined, + arg1: undefined, } } -function consumeToken_inline__P16003(s) { +function sprites_BaseSprite_z__P66299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25108,163 +24672,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___16009 = undefined; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; - r0 = (s.tmp_1 != 0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 15; continue; } - s.tmp_3 = parseInt__P97_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = undefined; - s.callLocIdx = 107; s.pc = 17; return s.tmp_3; - case 17: - r0 = s.retval; - s.d___16009 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = (s.tmp_1 !== s.arg1); s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 244; s.pc = 3; return s.tmp_1; case 3: - r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___16009); - { step = 14; continue; } - case 4: - s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_3 = Math_min__P131_mk(s); - s.tmp_3.arg0 = 16; - s.tmp_3.arg1 = s.d___16009; - s.callLocIdx = 108; s.pc = 19; return s.tmp_3; - case 19: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.callLocIdx = 109; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.caps[4], -1); - { step = 14; continue; } - case 5: - s.tmp_0 = r0 = s.caps[5]; - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.d___16009; - s.callLocIdx = 110; s.pc = 20; return s.tmp_2; - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 14; continue; } - case 6: - r0 = pxsim_pxtrt_stlocRef(s.caps[6], s.d___16009); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 6); - { step = 14; continue; } - case 7: - r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___16009); - { step = 14; continue; } - case 8: - s.tmp_0 = r0 = s.caps[7]; - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = 18; - s.tmp_2.arg2 = s.d___16009; - s.callLocIdx = 111; s.pc = 21; return s.tmp_2; - case 21: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 14; continue; } - case 9: - r0 = pxsim_pxtrt_stlocRef(s.caps[8], s.d___16009); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 9); - { step = 14; continue; } - case 10: - r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___16009); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 10); - { step = 14; continue; } - case 11: - s.tmp_0 = r0 = s.caps[10]; - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = 0; - s.tmp_2.arg1 = 255; - s.tmp_2.arg2 = s.d___16009; - s.callLocIdx = 112; s.pc = 22; return s.tmp_2; - case 22: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 11); - { step = 14; continue; } - case 12: - r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___16009); - { step = 14; continue; } - case 13: - r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___16009); - case 14: - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 15: - case 16: + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 1); + s.tmp_2 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -consumeToken_inline__P16003.info = {"start":15050,"length":1189,"line":456,"column":33,"endLine":477,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +sprites_BaseSprite_z__P66299.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} -function consumeToken_inline__P16003_mk(s) { +function sprites_BaseSprite_z__P66299_mk(s) { checkStack(s.depth); return { - parent: s, fn: consumeToken_inline__P16003, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P66299, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - d___16009: undefined, + arg0: undefined, + arg1: undefined, } } -function music_MelodyPlayer_queuePlayInstructions__P4571(s) { +function sprites_BaseSprite_z__P66298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25276,34 +24733,68 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1637_VT)) failedCast(r0); - r0 = pxsim.music.queuePlayInstructions(s.arg1, s.arg2); - r0 = undefined; + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_BaseSprite_z__P66298.info = {"start":591,"length":55,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this"]} +sprites_BaseSprite_z__P66298.isGetter = true; + +function sprites_BaseSprite_z__P66298_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSprite_z__P66298, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function helpers_getTilemapByName__P67534(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = helpers__getFactoryInstance__P67532_mk(s); + s.tmp_0.arg0 = "tilemap"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2012; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_queuePlayInstructions__P4571.info = {"start":11435,"length":125,"line":352,"column":8,"endLine":354,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} +helpers_getTilemapByName__P67534.info = {"start":2768,"length":107,"line":83,"column":4,"endLine":85,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} -function music_MelodyPlayer_queuePlayInstructions__P4571_mk(s) { +function helpers_getTilemapByName__P67534_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P4571, depth: s.depth + 1, + parent: s, fn: helpers_getTilemapByName__P67534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function music_addNote__P1636(s) { +function helpers__getFactoryInstance__P67532(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25313,91 +24804,106 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___74335 = undefined; + s.unnamed392___U1 = undefined; + s.unnamed393___U2 = undefined; + s.data___74342 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); s.lambdaArgs = null; } - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, s.arg5); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 1); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, 0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 2); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg6); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 4); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 6); - s.tmp_1 = r0; - r0 = (s.arg3 * s.arg7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 6); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 8); + r0 = pxsim_numops_toBoolDecr(globals.factories___69645); + if (!r0) { step = 7; continue; } + s.factory___74335 = (undefined); + s.unnamed392___U1 = (globals.factories___69645); + s.unnamed393___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed393___U2; + r0 = pxsim_Array__length(s.unnamed392___U1); s.tmp_1 = r0; - r0 = (s.arg4 * s.arg7); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed392___U1, s.unnamed393___U2); + s.factory___74335 = (r0); + s.tmp_4 = if_kind_1_mk(s); + s.tmp_4.arg0 = s.factory___74335; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 2010; s.pc = 10; return s.tmp_4; } + } + case 10: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 >> 6); + r0 = (s.tmp_3 === s.arg0); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 10); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg8); - r0 = (s.arg1 + 12); - s.arg1 = (r0); - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_5 = if_factory_2_mk(s); + s.tmp_5.arg0 = s.factory___74335; + s.tmp_5.arg1 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); + s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 2011; s.pc = 11; return s.tmp_5;; } + else { s.callLocIdx = 2011; s.pc = 11; return s.tmp_5; } + } + case 11: + r0 = s.retval; + s.data___74342 = (r0); + r0 = pxsim_numops_toBoolDecr(s.data___74342); + if (!r0) { step = 2; continue; } + r0 = s.data___74342; + { step = 9; continue; } case 2: - r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); - r0 = s.arg1; + case 3: + case 4: + case 5: + r0 = (s.unnamed393___U2 + 1); + s.unnamed393___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed392___U1 = (undefined); + case 7: + case 8: + r0 = null; + case 9: return leave(s, r0) default: oops() } } } -music_addNote__P1636.info = {"start":10288,"length":911,"line":323,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +helpers__getFactoryInstance__P67532.info = {"start":2226,"length":348,"line":66,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} -function music_addNote__P1636_mk(s) { +function helpers__getFactoryInstance__P67532_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P1636, depth: s.depth + 1, + parent: s, fn: helpers__getFactoryInstance__P67532, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___74335: undefined, + unnamed392___U1: undefined, + unnamed393___U2: undefined, + data___74342: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, } } -function music_volume__P1621(s) { +function tilemap__P67520(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25407,29 +24913,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P4563_mk(s); - s.callLocIdx = 80; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals.globalVolume___4559; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = null; return leave(s, r0) default: oops() } } } -music_volume__P1621.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +tilemap__P67520.info = {"start":99,"length":78,"line":3,"column":0,"endLine":3,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} -function music_volume__P1621_mk(s) { +function tilemap__P67520_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P1621, depth: s.depth + 1, + parent: s, fn: tilemap__P67520, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function music_initVolume__P4563(s) { +function tiles_setTilemap__P66962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25439,38 +24947,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___4559 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - globals.globalVolume___4559 = (0); - s.tmp_0 = music_setVolume__P1620_mk(s); - r0 = pxsim_pxtcore.getConfig(59, 128); - s.tmp_0.arg0 = r0; - s.callLocIdx = 77; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = tiles_setCurrentTilemap__P66963_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1297; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_initVolume__P4563.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +tiles_setTilemap__P66962.info = {"start":19264,"length":92,"line":600,"column":4,"endLine":602,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} -function music_initVolume__P4563_mk(s) { +function tiles_setTilemap__P66962_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P4563, depth: s.depth + 1, + parent: s, fn: tiles_setTilemap__P66962, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function music_setVolume__P1620(s) { +function tiles_setCurrentTilemap__P66963(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25484,40 +24989,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_0.arg1 = 255; - r0 = (s.arg0 | 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 78; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - globals.globalVolume___4559 = (r0); - r0 = (globals.globalVolume___4559 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } + s.tmp_0 = scene_setTileMapLevel__P67087_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1298; s.pc = 1; return s.tmp_0; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = undefined; + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_setVolume__P1620.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} +tiles_setCurrentTilemap__P66963.info = {"start":19775,"length":103,"line":614,"column":4,"endLine":616,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setCurrentTilemap","argumentNames":["tilemap"]} -function music_setVolume__P1620_mk(s) { +function tiles_setCurrentTilemap__P66963_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P1620, depth: s.depth + 1, + parent: s, fn: tiles_setCurrentTilemap__P66963, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -25525,7 +25013,7 @@ function music_setVolume__P1620_mk(s) { -function music_enableAmp__P4562(s) { +function scene_setTileMapLevel__P67087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25535,21 +25023,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___74360 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1378; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.scene___74360 = (r0); + r0 = s.scene___74360.fields["tileMap"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C66934_VT); + s.tmp_3 = r0; + s.tmp_4 = tiles_TileMap_constructor__P66936_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_4.arg1 = 4; + s.callLocIdx = 1379; s.pc = 4; return s.tmp_4; + case 4: + r0 = s.retval; + r0 = (s.scene___74360).fields["tileMap"] = (s.tmp_3); + case 1: + case 2: + s.tmp_0 = tiles_TileMap_setData__P66947_mk(s); + r0 = s.scene___74360.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1380; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_enableAmp__P4562.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} +scene_setTileMapLevel__P67087.info = {"start":3018,"length":219,"line":113,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} -function music_enableAmp__P4562_mk(s) { +function scene_setTileMapLevel__P67087_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P4562, depth: s.depth + 1, + parent: s, fn: scene_setTileMapLevel__P67087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + scene___74360: undefined, arg0: undefined, } } @@ -25557,7 +25083,7 @@ function music_enableAmp__P4562_mk(s) { -function parseInt__P97(s) { +function tiles_TileMap_setData__P66947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25567,304 +25093,180 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___16296 = undefined; - s.sign___16326 = undefined; - s.output___16371 = undefined; - s.hasDigit___16372 = undefined; - s.i___16373 = undefined; - s.code___16380 = undefined; - s.val___16387 = undefined; + s.previous___74377 = undefined; + s.eventHandler___74390 = undefined; + s.unnamed382___U2 = undefined; + s.unnamed383___U3 = undefined; + s.eventHandler___74419 = undefined; + s.unnamed384___U5 = undefined; + s.unnamed385___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.previous___74377 = (r0); + r0 = s.arg0.fields["handlerState"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 6; continue; } + { step = 2; continue; } case 1: - r0 = (s.arg1 != null); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 5; continue; } + r0 = (s.previous___74377 !== s.arg1); case 2: - r0 = (s.arg1 < 2); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 3; continue; } + r0 = s.tmp_1; { step = 4; continue; } case 3: - r0 = (s.arg1 > 36); + r0 = s.previous___74377; case 4: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 9; continue; } + s.eventHandler___74390 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed382___U2 = (r0); + s.unnamed383___U3 = (0); case 5: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + s.tmp_0 = r0 = s.unnamed383___U3; + r0 = pxsim_Array__length(s.unnamed382___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed382___U2, s.unnamed383___U3); + s.eventHandler___74390 = (r0); + r0 = s.eventHandler___74390.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___74390; + s.tmp_4.arg1 = s.previous___74377; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1227; s.pc = 23; return s.tmp_4;; } + else { s.callLocIdx = 1227; s.pc = 23; return s.tmp_4; } + } + case 23: + r0 = s.retval; case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 7; continue; } - r0 = NaN; - { step = 46; continue; } case 7: + r0 = (s.unnamed383___U3 + 1); + s.unnamed383___U3 = (r0); + { step = 5; continue; } case 8: - s.start___16296 = (0); + s.unnamed382___U2 = (undefined); case 9: - s.tmp_1 = r0 = s.start___16296; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } case 10: - s.tmp_3 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___16296); - s.tmp_3.arg0 = r0; - s.callLocIdx = 0; s.pc = 47; return s.tmp_3; - case 47: - r0 = s.retval; + r0 = (s.arg0).fields["_map"] = (s.arg1); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 11; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.arg1.fields["_scale"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_scale"] = (s.tmp_1); case 11: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 12; continue; } - r0 = (s.start___16296 + 1); - s.start___16296 = (r0); - { step = 9; continue; } case 12: - s.tmp_1 = r0 = s.start___16296; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); + r0 = s.arg0.fields["handlerState"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = NaN; - { step = 46; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } case 13: + r0 = (s.previous___74377 !== s.arg1); case 14: - s.sign___16326 = (1); - r0 = pxsim_String_.charAt(s.arg0, s.start___16296); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } + r0 = s.tmp_1; + { step = 16; continue; } case 15: - s.sign___16326 = (-1); + r0 = s.arg1; case 16: - r0 = (s.start___16296 + 1); - s.start___16296 = (r0); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 21; continue; } + s.eventHandler___74419 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed384___U5 = (r0); + s.unnamed385___U6 = (0); case 17: - r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_0 = r0 = s.unnamed385___U6; + r0 = pxsim_Array__length(s.unnamed384___U5); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = pxsim_Array__getAt(s.unnamed384___U5, s.unnamed385___U6); + s.eventHandler___74419 = (r0); + r0 = s.eventHandler___74419.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___74419; + s.tmp_4.arg1 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1229; s.pc = 24; return s.tmp_4;; } + else { s.callLocIdx = 1229; s.pc = 24; return s.tmp_4; } + } + case 24: + r0 = s.retval; case 18: - r0 = (s.arg1 == 16); case 19: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 20; continue; } - r0 = s.tmp_2; - { step = 21; continue; } + r0 = (s.unnamed385___U6 + 1); + s.unnamed385___U6 = (r0); + { step = 17; continue; } case 20: - r0 = pxsim_String_.charAt(s.arg0, s.start___16296); - s.tmp_3 = r0; - r0 = ("0" === s.tmp_3); + s.unnamed384___U5 = (undefined); case 21: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 22; continue; } - r0 = s.tmp_4; - { step = 25; continue; } case 22: - s.tmp_7 = r0 = s.arg0; - r0 = (s.start___16296 + 1); - s.tmp_8 = r0; - r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); - s.tmp_6 = r0; - r0 = ("x" === s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 23; continue; } - r0 = s.tmp_5; - { step = 24; continue; } - case 23: - s.tmp_10 = r0 = s.arg0; - r0 = (s.start___16296 + 1); - s.tmp_11 = r0; - r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); - s.tmp_9 = r0; - r0 = ("X" === s.tmp_9); - case 24: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = s.tmp_12; - case 25: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_13); - if (!r0) { step = 26; continue; } - s.arg1 = (16); - r0 = (s.start___16296 + 2); - s.start___16296 = (r0); - { step = 29; continue; } - case 26: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - s.arg1 = (10); - case 27: - case 28: - case 29: - s.output___16371 = (0); - s.hasDigit___16372 = (false); - s.i___16373 = (s.start___16296); - case 30: - s.tmp_1 = r0 = s.i___16373; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 45; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___16373); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 32); - s.code___16380 = (r0); - s.val___16387 = (undefined); - r0 = (s.code___16380 >= 48); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 31; continue; } - r0 = s.tmp_0; - { step = 32; continue; } - case 31: - r0 = (s.code___16380 < 58); - case 32: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 33; continue; } - r0 = (s.code___16380 - 48); - s.val___16387 = (r0); - { step = 38; continue; } - case 33: - r0 = (s.code___16380 >= 97); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 34; continue; } - r0 = s.tmp_0; - { step = 35; continue; } - case 34: - r0 = (s.code___16380 < 123); - case 35: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 36; continue; } - r0 = (10 + s.code___16380); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 97); - s.val___16387 = (r0); - case 36: - case 37: - case 38: - r0 = (s.val___16387 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 39; continue; } - r0 = s.tmp_0; - { step = 40; continue; } - case 39: - r0 = (s.val___16387 >= s.arg1); - case 40: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 43; continue; } - r0 = pxsim_numops_toBoolDecr(s.hasDigit___16372); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 41; continue; } - r0 = NaN; - { step = 46; continue; } - case 41: - case 42: - { step = 45; continue; } - case 43: - case 44: - s.hasDigit___16372 = (true); - r0 = (s.output___16371 * s.arg1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.val___16387); - s.output___16371 = (r0); - r0 = (s.i___16373 + 1); - s.i___16373 = (r0); - { step = 30; continue; } - case 45: - r0 = (s.sign___16326 * s.output___16371); - case 46: + r0 = undefined; return leave(s, r0) default: oops() } } } -parseInt__P97.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} +tiles_TileMap_setData__P66947.info = {"start":10253,"length":807,"line":355,"column":8,"endLine":378,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} -function parseInt__P97_mk(s) { +function tiles_TileMap_setData__P66947_mk(s) { checkStack(s.depth); return { - parent: s, fn: parseInt__P97, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setData__P66947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - start___16296: undefined, - sign___16326: undefined, - output___16371: undefined, - hasDigit___16372: undefined, - i___16373: undefined, - code___16380: undefined, - val___16387: undefined, + previous___74377: undefined, + eventHandler___74390: undefined, + unnamed382___U2: undefined, + unnamed383___U3: undefined, + eventHandler___74419: undefined, + unnamed384___U5: undefined, + unnamed385___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -25873,7 +25275,7 @@ function parseInt__P97_mk(s) { -function helpers_isWhitespace__P124(s) { +function tiles_TileMap_constructor__P66936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25885,67 +25287,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = (s.arg0).fields["_layer"] = (1); + s.tmp_0 = tiles_TileMap_scale__P66938_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1213; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P74441); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = scene_createRenderable__P67004_mk(s); + s.tmp_3.arg0 = -1; + s.tmp_3.arg1 = s.tmp_0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 1215; s.pc = 2; return s.tmp_3; case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - r0 = true; - { step = 12; continue; } - case 11: - r0 = false; - { step = 12; continue; } + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["renderable"] = (s.tmp_2); r0 = undefined; - case 12: return leave(s, r0) default: oops() } } } -helpers_isWhitespace__P124.info = {"start":14864,"length":674,"line":503,"column":4,"endLine":520,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} +tiles_TileMap_constructor__P66936.info = {"start":8927,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} -function helpers_isWhitespace__P124_mk(s) { +function tiles_TileMap_constructor__P66936_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_isWhitespace__P124, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P66936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function music_MelodyPlayer_constructor__P1640(s) { +function tiles_TileMap_inline__P74441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25960,20 +25350,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1637_VT)) failedCast(r0); - r0 = (s.arg0).fields["melody"] = (s.arg1); + s.tmp_0 = tiles_TileMap_draw__P69155_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1214; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_constructor__P1640.info = {"start":11304,"length":62,"line":344,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} +tiles_TileMap_inline__P74441.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} -function music_MelodyPlayer_constructor__P1640_mk(s) { +function tiles_TileMap_inline__P74441_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_constructor__P1640, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P74441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -25982,7 +25377,7 @@ function music_MelodyPlayer_constructor__P1640_mk(s) { -function music_Melody_stop__P1631(s) { +function tiles_TileMap_draw__P69155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25992,51 +25387,333 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.bitmask___74452 = undefined; + s.offsetX___74458 = undefined; + s.offsetY___74463 = undefined; + s.x0___74468 = undefined; + s.xn___74475 = undefined; + s.y0___74492 = undefined; + s.yn___74499 = undefined; + s.x___74516 = undefined; + s.y___74522 = undefined; + s.index___74528 = undefined; + s.tile___74535 = undefined; + s.x___74571 = undefined; + s.xLine___74577 = undefined; + s.y___74603 = undefined; + s.yLine___74609 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - r0 = s.arg0.fields["_player"]; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_MelodyPlayer_stop__P1641_mk(s); - r0 = s.arg0.fields["_player"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 89; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["_player"] = (null); + { step = 23; continue; } case 1: case 2: - s.tmp_0 = music_Melody_unregisterMelody__P4568_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 90; s.pc = 4; return s.tmp_0; + r0 = s.arg0.fields["_scale"]; + s.tmp_8 = r0; + r0 = (1 << s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.bitmask___74452 = (r0); + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___74452); + s.offsetX___74458 = (r0); + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___74452); + s.offsetY___74463 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1254; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.x0___74468 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_width"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1257; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.xn___74475 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1259; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.y0___74492 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_height"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1262; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.yn___74499 = (r0); + s.x___74516 = (s.x0___74468); + case 3: + r0 = (s.x___74516 <= s.xn___74475); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___74522 = (s.y0___74492); case 4: + r0 = (s.y___74522 <= s.yn___74499); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = tiles_TileMapData_getTile__P66922_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.x___74516; + s.tmp_1.arg2 = s.y___74522; + s.callLocIdx = 1263; s.pc = 28; return s.tmp_1; + case 28: + r0 = s.retval; + s.index___74528 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P66925_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___74528; + s.callLocIdx = 1264; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tile___74535 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___74535); + if (!r0) { step = 5; continue; } + s.tmp_0 = r0 = s.arg1; + s.tmp_1 = r0 = s.tile___74535; + r0 = (s.x___74516 - s.x0___74468); + s.tmp_4 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 << s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.offsetX___74458); + s.tmp_2 = r0; + r0 = (s.y___74522 - s.y0___74492); + s.tmp_8 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_9 = r0; + r0 = (s.tmp_8 << s.tmp_9); + s.tmp_7 = r0; + r0 = (s.tmp_7 - s.offsetY___74463); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + case 5: + case 6: + r0 = (s.y___74522 + 1); + s.y___74522 = (r0); + { step = 4; continue; } + case 7: + r0 = (s.x___74516 + 1); + s.x___74516 = (r0); + { step = 3; continue; } + case 8: + r0 = pxsim_numops_toBoolDecr(globals.debug___67166); + if (!r0) { step = 21; continue; } + s.x___74571 = (s.x0___74468); + case 9: + r0 = (s.x___74571 <= s.xn___74475); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.x___74571 - s.x0___74468); + s.tmp_2 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.offsetX___74458); + s.xLine___74577 = (r0); + r0 = (s.xLine___74577 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 10: + s.tmp_1 = r0 = s.xLine___74577; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_4 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = s.xLine___74577; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.xLine___74577; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_4.arg4 = r0; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1268; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 12: + case 13: + r0 = (s.x___74571 + 1); + s.x___74571 = (r0); + { step = 9; continue; } + case 14: + s.y___74603 = (s.y0___74492); + case 15: + r0 = (s.y___74603 <= s.yn___74499); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.y___74603 - s.y0___74492); + s.tmp_2 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.offsetY___74463); + s.yLine___74609 = (r0); + r0 = (s.yLine___74609 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + s.tmp_1 = r0 = s.yLine___74609; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 17: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 18; continue; } + s.tmp_4 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.yLine___74609; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_4.arg3 = r0; + s.tmp_4.arg4 = s.yLine___74609; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1270; s.pc = 31; return s.tmp_4; + case 31: r0 = s.retval; + case 18: + case 19: + r0 = (s.y___74603 + 1); + s.y___74603 = (r0); + { step = 15; continue; } + case 20: + case 21: + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_stop__P1631.info = {"start":6833,"length":173,"line":220,"column":8,"endLine":226,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} +tiles_TileMap_draw__P69155.info = {"start":13998,"length":2224,"line":458,"column":8,"endLine":513,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function music_Melody_stop__P1631_mk(s) { +function tiles_TileMap_draw__P69155_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_stop__P1631, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P69155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + bitmask___74452: undefined, + offsetX___74458: undefined, + offsetY___74463: undefined, + x0___74468: undefined, + xn___74475: undefined, + y0___74492: undefined, + yn___74499: undefined, + x___74516: undefined, + y___74522: undefined, + index___74528: undefined, + tile___74535: undefined, + x___74571: undefined, + xLine___74577: undefined, + y___74603: undefined, + yLine___74609: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function music_MelodyPlayer_stop__P1641(s) { +function helpers_imageDrawLine__P66160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26048,30 +25725,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1637_VT)) failedCast(r0); - r0 = (s.arg0).fields["melody"] = (null); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P68863_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 191; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P68863_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 192; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_stop__P1641.info = {"start":11376,"length":49,"line":348,"column":8,"endLine":350,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} +helpers_imageDrawLine__P66160.info = {"start":5161,"length":159,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function music_MelodyPlayer_stop__P1641_mk(s) { +function helpers_imageDrawLine__P66160_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_stop__P1641, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P66160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function sprites_set_flame_strength__P4412(s) { +function scene_createRenderable__P67004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26081,38 +25786,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.renderable___74672 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_setFireHealth__P4424_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2278; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C66999_VT); + s.tmp_0 = r0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } case 1: + r0 = renderable_inline__P74678; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = scene_Renderable_constructor__P67000_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.tmp_2; + s.tmp_3.arg3 = s.arg0; + s.callLocIdx = 1340; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - r0 = undefined; + s.renderable___74672 = (s.tmp_0); + r0 = s.renderable___74672; return leave(s, r0) default: oops() } } } -sprites_set_flame_strength__P4412.info = {"start":1290,"length":135,"line":55,"column":4,"endLine":57,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_flame_strength","argumentNames":["location","health"]} +scene_createRenderable__P67004.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} -function sprites_set_flame_strength__P4412_mk(s) { +function scene_createRenderable__P67004_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_set_flame_strength__P4412, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P67004, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + renderable___74672: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function forestFire_setFireHealth__P4424(s) { +function renderable_inline__P74678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26122,39 +25849,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = forestFire_FireState_setFireHealth__P7142_mk(s); - s.tmp_0.arg0 = globals.state___7146; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 2348; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = true; return leave(s, r0) default: oops() } } } -forestFire_setFireHealth__P4424.info = {"start":11230,"length":126,"line":301,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setFireHealth","argumentNames":["location","health"]} +renderable_inline__P74678.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function forestFire_setFireHealth__P4424_mk(s) { +function renderable_inline__P74678_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_setFireHealth__P4424, depth: s.depth + 1, + parent: s, fn: renderable_inline__P74678, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function fire_inline__P16594(s) { +function scene_Renderable_constructor__P67000(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26164,64 +25876,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___16597 = undefined; - s.src___16600 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_FireFactory__C3200_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_FireFactory_constructor__P3201_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 5; - s.callLocIdx = 55; s.pc = 1; return s.tmp_1; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Renderable__C66999_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); + s.tmp_0 = sprites_BaseSprite_constructor__P66296_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 1337; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.factory___16597 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(particles_FireSource__C3153_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_FireSource_constructor__P3154_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.factory___16597; - s.callLocIdx = 56; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.src___16600 = (s.tmp_0); - s.tmp_0 = particles_ParticleSource_setAcceleration__P3140_mk(s); - s.tmp_0.arg0 = s.src___16600; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = -20; - s.callLocIdx = 57; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = s.src___16600; + r0 = undefined; return leave(s, r0) default: oops() } } } -fire_inline__P16594.info = {"start":9582,"length":273,"line":248,"column":53,"endLine":253,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +scene_Renderable_constructor__P67000.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} -function fire_inline__P16594_mk(s) { +function scene_Renderable_constructor__P67000_mk(s) { checkStack(s.depth); return { - parent: s, fn: fire_inline__P16594, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P67000, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - factory___16597: undefined, - src___16600: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function particles_FireSource_constructor__P3154(s) { +function tiles_TileMap_scale__P66938(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26234,59 +25928,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_FireSource__C3153_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_constructor__P3136_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg3; - s.callLocIdx = 1850; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C3039_VT); + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = (s.arg0).fields["_scale"] = (s.arg1); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P3041_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1851; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - s.tmp_0 = sprites_BaseSprite_z__P2080_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 20; - s.callLocIdx = 1852; s.pc = 3; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = tiles_TileMapData_scale__P66921_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1216; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_FireSource_constructor__P3154.info = {"start":10378,"length":232,"line":342,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +tiles_TileMap_scale__P66938.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function particles_FireSource_constructor__P3154_mk(s) { +function tiles_TileMap_scale__P66938_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireSource_constructor__P3154, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P66938, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_FireFactory_constructor__P3201(s) { +function tiles_TileMapData_scale__P66921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26302,36 +25983,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_FireFactory__C3200_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P5372_mk(s); - s.callLocIdx = 1918; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C3039_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P3041_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1919; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); + r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 >> 1); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minRadius"] = (s.tmp_1); - r0 = (s.arg0).fields["maxRadius"] = (s.arg1); + r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_FireFactory_constructor__P3201.info = {"start":8654,"length":212,"line":282,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius"]} +tiles_TileMapData_scale__P66921.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function particles_FireFactory_constructor__P3201_mk(s) { +function tiles_TileMapData_scale__P66921_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireFactory_constructor__P3201, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P66921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26343,7 +26010,7 @@ function particles_FireFactory_constructor__P3201_mk(s) { -function scene_createParticleEffectAtLocation__P4403(s) { +function game_set_health_of_trees__P68628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26355,41 +26022,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = effects_ParticleEffect_start__P3244_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 5; - s.tmp_0.arg4 = undefined; - s.callLocIdx = 2262; s.pc = 1; return s.tmp_0; + s.tmp_0 = forestFire_setTreeHealth__P68642_mk(s); + s.tmp_1 = Math_clamp__P64346_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_1.arg1 = 10; + s.tmp_1.arg2 = s.arg0; + s.callLocIdx = 2274; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.callLocIdx = 2275; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_createParticleEffectAtLocation__P4403.info = {"start":195,"length":175,"line":5,"column":4,"endLine":7,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"createParticleEffectAtLocation","argumentNames":["location","effect","duration"]} +game_set_health_of_trees__P68628.info = {"start":617,"length":114,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_health_of_trees","argumentNames":["num"]} -function scene_createParticleEffectAtLocation__P4403_mk(s) { +function game_set_health_of_trees__P68628_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createParticleEffectAtLocation__P4403, depth: s.depth + 1, + parent: s, fn: game_set_health_of_trees__P68628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function sprites_on_fire_created__P4418(s) { +function forestFire_setTreeHealth__P68642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26403,23 +26070,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_onFireCreated__P4428_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2286; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = (globals.state___71365).fields["treeHealth"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_on_fire_created__P4418.info = {"start":4828,"length":127,"line":161,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"on_fire_created","argumentNames":["handler"]} +forestFire_setTreeHealth__P68642.info = {"start":11128,"length":96,"line":297,"column":4,"endLine":299,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setTreeHealth","argumentNames":["treeHealth"]} -function sprites_on_fire_created__P4418_mk(s) { +function forestFire_setTreeHealth__P68642_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_on_fire_created__P4418, depth: s.depth + 1, + parent: s, fn: forestFire_setTreeHealth__P68642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -26427,7 +26089,7 @@ function sprites_on_fire_created__P4418_mk(s) { -function forestFire_onFireCreated__P4428(s) { +function game_set_strength_of_wind__P68627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26441,24 +26103,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = forestFire_FireState_onFireCreated__P7140_mk(s); - s.tmp_0.arg0 = globals.state___7146; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2352; s.pc = 1; return s.tmp_0; + s.tmp_0 = forestFire_setWindSpeed__P68640_mk(s); + s.tmp_1 = Math_clamp__P64346_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_1.arg1 = 10; + s.tmp_1.arg2 = s.arg0; + s.callLocIdx = 2272; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.callLocIdx = 2273; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_onFireCreated__P4428.info = {"start":11706,"length":120,"line":317,"column":4,"endLine":319,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireCreated","argumentNames":["handler"]} +game_set_strength_of_wind__P68627.info = {"start":304,"length":114,"line":15,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_strength_of_wind","argumentNames":["num"]} -function forestFire_onFireCreated__P4428_mk(s) { +function game_set_strength_of_wind__P68627_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_onFireCreated__P4428, depth: s.depth + 1, + parent: s, fn: game_set_strength_of_wind__P68627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -26466,7 +26135,7 @@ function forestFire_onFireCreated__P4428_mk(s) { -function forestFire_FireState_onFireCreated__P7140(s) { +function forestFire_setWindSpeed__P68640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26478,35 +26147,28 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - r0 = s.arg0.fields["fireCreatedHandlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); + r0 = (globals.state___71365).fields["windSpeed"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -forestFire_FireState_onFireCreated__P7140.info = {"start":9335,"length":122,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireCreated","argumentNames":["this","handler"]} +forestFire_setWindSpeed__P68640.info = {"start":10950,"length":84,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setWindSpeed","argumentNames":["speed"]} -function forestFire_FireState_onFireCreated__P7140_mk(s) { +function forestFire_setWindSpeed__P68640_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_onFireCreated__P7140, depth: s.depth + 1, + parent: s, fn: forestFire_setWindSpeed__P68640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_sayText__P2392(s) { +function game_set_dryness_of_grass__P68629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26518,137 +26180,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = (s.arg1 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg1 === undefined); + s.tmp_0 = forestFire_setDryGrass__P68641_mk(s); + s.tmp_1 = Math_clamp__P64346_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_1.arg1 = 10; + s.tmp_1.arg2 = s.arg0; + s.callLocIdx = 2276; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } - case 3: - s.tmp_2 = r0 = s.arg1; - r0 = pxsim_String_.mkEmpty(); - s.tmp_3 = r0; - r0 = (s.tmp_2 === s.tmp_3); - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["sayRenderer"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 5; continue; } - s.tmp_6 = sprites_BaseSpriteSayRenderer__C2240_v2_1_mk(s); - r0 = s.arg0.fields["sayRenderer"]; - s.tmp_6.arg0 = r0; - if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_6.arg0); - s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.destroy; - s.pc = 14; return s.tmp_6; - case 14: - r0 = s.retval; - case 5: - case 6: - r0 = (s.arg0).fields["sayRenderer"] = (undefined); - { step = 13; continue; } - case 7: - case 8: - r0 = s.arg0.fields["sayRenderer"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = sprites_BaseSpriteSayRenderer__C2240_v2_1_mk(s); - r0 = s.arg0.fields["sayRenderer"]; - s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.destroy; - s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - case 9: - case 10: - r0 = (s.arg0).fields["sayRenderer"] = (undefined); - r0 = (s.arg2 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = pxsim.control.millis(); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.arg2); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["sayEndTime"] = (s.tmp_2); - case 11: - case 12: - s.tmp_0 = console_inspect__P382_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 20; - s.callLocIdx = 651; s.pc = 16; return s.tmp_0; - case 16: r0 = s.retval; - s.arg1 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSayRenderer__C2245_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteSayRenderer_constructor__P2247_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg4; - s.tmp_1.arg3 = s.arg5; - s.tmp_1.arg4 = s.arg3; - s.tmp_1.arg5 = s.arg2; - s.callLocIdx = 652; s.pc = 17; return s.tmp_1; - case 17: + s.tmp_0.arg0 = r0; + s.callLocIdx = 2277; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["sayRenderer"] = (s.tmp_0); - case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_sayText__P2392.info = {"start":16644,"length":634,"line":574,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sayText","argumentNames":["this","text","timeOnScreen","animated","textColor","textBoxColor"]} +game_set_dryness_of_grass__P68629.info = {"start":929,"length":113,"line":39,"column":4,"endLine":41,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_dryness_of_grass","argumentNames":["num"]} -function Sprite_sayText__P2392_mk(s) { +function game_set_dryness_of_grass__P68629_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sayText__P2392, depth: s.depth + 1, + parent: s, fn: game_set_dryness_of_grass__P68629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function sprites_SpriteSayRenderer_constructor__P2247(s) { +function forestFire_setDryGrass__P68641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26658,148 +26224,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.numberOfPauses___16747 = undefined; - s.pauseTime___16754 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSayRenderer__C2245_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSpriteSayRenderer_constructor__P2241_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg3; - s.callLocIdx = 536; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(sprites_RenderText__C2207_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_RenderText_constructor__P2212_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = 100; - s.callLocIdx = 537; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = (s.arg0).fields["renderText"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_RenderTextAnimation__C2225_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_RenderTextAnimation_constructor__P2226_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["renderText"]; - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 40; - s.callLocIdx = 538; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = (s.arg0).fields["animation"] = (s.tmp_0); - r0 = (s.arg5 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_RenderTextAnimation_numPages__P2228_mk(s); - r0 = s.arg0.fields["animation"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 539; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.numberOfPauses___16747 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - s.tmp_2 = r0 = s.arg5; - r0 = (2 * s.numberOfPauses___16747); - s.tmp_3 = r0; - r0 = (s.tmp_2 / s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1000; - s.callLocIdx = 540; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.pauseTime___16754 = (r0); - s.tmp_0 = sprites_RenderTextAnimation_setPauseLength__P2229_mk(s); - r0 = s.arg0.fields["animation"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.pauseTime___16754; - s.callLocIdx = 541; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.tmp_0 = sprites_RenderTextAnimation_setTextSpeed__P2230_mk(s); - r0 = s.arg0.fields["animation"]; - s.tmp_0.arg0 = r0; - s.tmp_3 = sprites_RenderText_printableCharacters__P2220_mk(s); - r0 = s.arg0.fields["renderText"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 542; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 1000); - s.tmp_1 = r0; - s.tmp_5 = r0 = s.arg5; - r0 = (s.pauseTime___16754 * s.numberOfPauses___16747); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_1 / s.tmp_4); - s.tmp_0.arg1 = r0; - s.callLocIdx = 543; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = sprites_RenderTextAnimation_start__P2227_mk(s); - r0 = s.arg0.fields["animation"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 544; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - case 3: - case 4: + r0 = (globals.state___71365).fields["dryGrass"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSayRenderer_constructor__P2247.info = {"start":8293,"length":803,"line":222,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fg","bg","animated","timeOnScreen"]} +forestFire_setDryGrass__P68641.info = {"start":11040,"length":82,"line":293,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setDryGrass","argumentNames":["grass"]} -function sprites_SpriteSayRenderer_constructor__P2247_mk(s) { +function forestFire_setDryGrass__P68641_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSayRenderer_constructor__P2247, depth: s.depth + 1, + parent: s, fn: forestFire_setDryGrass__P68641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - numberOfPauses___16747: undefined, - pauseTime___16754: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function sprites_BaseSpriteSayRenderer_constructor__P2241(s) { +function sprites_change_flame_strength_by__P68632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26812,37 +26260,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - r0 = (s.arg0).fields["fgColor"] = (s.arg2); - r0 = (s.arg0).fields["bgColor"] = (s.arg3); + s.tmp_0 = forestFire_changeFireHealth__P68644_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2279; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_constructor__P2241.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} +sprites_change_flame_strength_by__P68632.info = {"start":1652,"length":149,"line":66,"column":4,"endLine":68,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"change_flame_strength_by","argumentNames":["location","changeBy"]} -function sprites_BaseSpriteSayRenderer_constructor__P2241_mk(s) { +function sprites_change_flame_strength_by__P68632_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P2241, depth: s.depth + 1, + parent: s, fn: sprites_change_flame_strength_by__P68632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function sprites_RenderTextAnimation_setTextSpeed__P2230(s) { +function forestFire_changeFireHealth__P68644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26857,25 +26303,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tickPeriod"] = (s.tmp_1); + s.tmp_0 = forestFire_FireState_changeFireHealth__P71362_mk(s); + s.tmp_0.arg0 = globals.state___71365; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 2349; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_setTextSpeed__P2230.info = {"start":9174,"length":110,"line":257,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setTextSpeed","argumentNames":["this","charactersPerSecond"]} +forestFire_changeFireHealth__P68644.info = {"start":11362,"length":136,"line":305,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"changeFireHealth","argumentNames":["location","changeBy"]} -function sprites_RenderTextAnimation_setTextSpeed__P2230_mk(s) { +function forestFire_changeFireHealth__P68644_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_setTextSpeed__P2230, depth: s.depth + 1, + parent: s, fn: forestFire_changeFireHealth__P68644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -26884,7 +26330,7 @@ function sprites_RenderTextAnimation_setTextSpeed__P2230_mk(s) { -function sprites_RenderTextAnimation_setPauseLength__P2229(s) { +function forestFire_FireState_changeFireHealth__P71362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26894,34 +26340,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.currentHealth___77836 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - r0 = (s.arg0).fields["pauseMillis"] = (s.arg1); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + r0 = s.arg0.fields["healthBuffer"]; + s.tmp_0 = r0; + s.tmp_2 = tiles_Location_col__P66904_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 2343; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg1.fields["_row"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); + s.currentHealth___77836 = (r0); + s.tmp_0 = forestFire_FireState_setFireHealth__P71361_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + r0 = (s.currentHealth___77836 + s.arg2); + s.tmp_0.arg2 = r0; + s.callLocIdx = 2345; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_setPauseLength__P2229.info = {"start":9083,"length":81,"line":253,"column":8,"endLine":255,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setPauseLength","argumentNames":["this","millis"]} +forestFire_FireState_changeFireHealth__P71362.info = {"start":10536,"length":230,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"changeFireHealth","argumentNames":["this","location","changeBy"]} -function sprites_RenderTextAnimation_setPauseLength__P2229_mk(s) { +function forestFire_FireState_changeFireHealth__P71362_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_setPauseLength__P2229, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_changeFireHealth__P71362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + currentHealth___77836: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function sprites_RenderTextAnimation_numPages__P2228(s) { +function forestFire_FireState_setFireHealth__P71361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26931,59 +26404,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxLinesPerPage___16950 = undefined; + s.handler___77877 = undefined; + s.unnamed406___U1 = undefined; + s.unnamed407___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - r0 = s.arg0.fields["height"]; - s.tmp_1 = r0; - s.tmp_3 = sprites_RenderText_lineHeight__P2218_mk(s); - r0 = s.arg0.fields["text"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 468; s.pc = 1; return s.tmp_3; - case 1: + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_min__P64350_mk(s); + s.tmp_1.arg0 = s.arg2; + s.tmp_1.arg1 = 15; + s.callLocIdx = 2336; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 2337; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.arg2 = (r0); + r0 = s.arg0.fields["healthBuffer"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.maxLinesPerPage___16950 = (r0); - r0 = s.arg0.fields["text"]; - r0 = r0.fields["linebreaks"]; + s.tmp_2 = tiles_Location_col__P66904_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 2338; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg1.fields["_row"]; s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.arg2); + r0 = (s.arg2 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["timeBuffer"]; + s.tmp_1 = r0; + s.tmp_3 = tiles_Location_col__P66904_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 2340; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = s.arg1.fields["_row"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_1, s.tmp_2, s.tmp_4, 15); + s.handler___77877 = (undefined); + r0 = s.arg0.fields["fireDestroyedHandlers"]; + s.unnamed406___U1 = (r0); + s.unnamed407___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed407___U2; + r0 = pxsim_Array__length(s.unnamed406___U1); s.tmp_1 = r0; - r0 = (s.tmp_1 / s.maxLinesPerPage___16950); - s.tmp_0 = r0; - r0 = pxsim.Math_.floor(s.tmp_0); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed406___U1, s.unnamed407___U2); + s.handler___77877 = (r0); + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = s.handler___77877; + s.tmp_2.arg0 = s.arg1; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 2342; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + r0 = (s.unnamed407___U2 + 1); + s.unnamed407___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed406___U1 = (undefined); + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_numPages__P2228.info = {"start":8878,"length":195,"line":248,"column":8,"endLine":251,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"numPages","argumentNames":["this"]} +forestFire_FireState_setFireHealth__P71361.info = {"start":9603,"length":923,"line":255,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setFireHealth","argumentNames":["this","location","health"]} -function sprites_RenderTextAnimation_numPages__P2228_mk(s) { +function forestFire_FireState_setFireHealth__P71361_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_numPages__P2228, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_setFireHealth__P71361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - maxLinesPerPage___16950: undefined, + tmp_4: undefined, + handler___77877: undefined, + unnamed406___U1: undefined, + unnamed407___U2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function sprites_RenderText_lineHeight__P2218(s) { +function ashes_inline__P77884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26993,44 +26518,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___77887 = undefined; + s.src___77892 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - s.tmp_0 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "charHeight"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["charHeight"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["charHeight"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 436; s.pc = 1; return s.tmp_0; } - } + r0 = pxsim_pxtcore_mkClassInstance(particles_AshFactory__C67430_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_AshFactory_constructor__P67431_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = undefined; + s.tmp_1.arg3 = 20; + s.callLocIdx = 59; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; + s.factory___77887 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C67350_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P67355_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.factory___77887; + s.callLocIdx = 60; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.src___77892 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P67359_mk(s); + s.tmp_0.arg0 = s.src___77892; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 500; + s.callLocIdx = 61; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = s.src___77892; return leave(s, r0) default: oops() } } } -sprites_RenderText_lineHeight__P2218.info = {"start":2904,"length":65,"line":74,"column":8,"endLine":76,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineHeight","argumentNames":["this"]} +ashes_inline__P77884.info = {"start":10791,"length":281,"line":274,"column":54,"endLine":279,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function sprites_RenderText_lineHeight__P2218_mk(s) { +function ashes_inline__P77884_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_lineHeight__P2218, depth: s.depth + 1, + parent: s, fn: ashes_inline__P77884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + factory___77887: undefined, + src___77892: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_RenderTextAnimation_start__P2227(s) { +function particles_ParticleSource_setAcceleration__P67359(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27042,36 +26589,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - r0 = (s.arg0).fields["state"] = (1); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.millis(); + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); + r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_start__P2227.info = {"start":8746,"length":122,"line":243,"column":8,"endLine":246,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"start","argumentNames":["this"]} +particles_ParticleSource_setAcceleration__P67359.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function sprites_RenderTextAnimation_start__P2227_mk(s) { +function particles_ParticleSource_setAcceleration__P67359_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_start__P2227, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P67359, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function sprites_RenderTextAnimation_constructor__P2226(s) { +function particles_ParticleSource_constructor__P67355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27081,53 +26640,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sources___77921 = undefined; + s.removedSource___77930 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - r0 = (s.arg0).fields["height"] = (s.arg2); - r0 = (s.arg0).fields["state"] = (0); - r0 = (s.arg0).fields["timer"] = (-1); - r0 = (s.arg0).fields["pageLine"] = (0); - s.tmp_0 = sprites_RenderTextAnimation_setPauseLength__P2229_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P66296_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1000; - s.callLocIdx = 466; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1800; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = particles_init__P69570_mk(s); + s.callLocIdx = 1801; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1802; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.sources___77921 = (r0); + r0 = pxsim_Array__length(s.sources___77921); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= globals.MAX_SOURCES___69562); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_sortSources__P69573_mk(s); + s.tmp_2.arg0 = s.sources___77921; + s.callLocIdx = 1803; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.sources___77921, 0); + s.removedSource___77930 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P67365_mk(s); + s.tmp_0.arg0 = s.removedSource___77930; + s.callLocIdx = 1805; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_destroy__P67364_mk(s); + s.tmp_0.arg0 = s.removedSource___77930; + s.callLocIdx = 1806; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; case 1: + case 2: + r0 = (s.arg0).fields["pFlags"] = (0); + s.tmp_0 = particles_ParticleSource_setRate__P67367_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1807; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.tmp_0 = sprites_RenderTextAnimation_setTextSpeed__P2230_mk(s); + s.tmp_0 = particles_ParticleSource_setAcceleration__P67359_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 30; - s.callLocIdx = 467; s.pc = 2; return s.tmp_0; - case 2: + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 1808; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAnchor__P67366_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1809; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = (s.arg0).fields["lifespan"] = (undefined); + r0 = (s.arg0).fields["_dt"] = (0); + r0 = (s.arg0).fields["priority"] = (0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = globals.defaultFactory___67370; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = particles_ParticleSource_setFactory__P67369_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1810; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.sources___77921, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P67363_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1811; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_constructor__P2226.info = {"start":8474,"length":262,"line":234,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"inline","argumentNames":["this","text","height"]} +particles_ParticleSource_constructor__P67355.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function sprites_RenderTextAnimation_constructor__P2226_mk(s) { +function particles_ParticleSource_constructor__P67355_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_constructor__P2226, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P67355, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + sources___77921: undefined, + removedSource___77930: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function sprites_RenderText_printableCharacters__P2220(s) { +function particles_sortSources__P69573(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27137,75 +26773,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.total___16797 = undefined; - s.i___16798 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - s.total___16797 = (0); - s.i___16798 = (0); + s.tmp_0 = helpers_arraySort__P64324_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = particles_sortSources_inline__P78128; + s.callLocIdx = 1849; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___16798; - r0 = s.arg0.fields["linebreaks"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_5 = r0 = s.total___16797; - s.tmp_8 = sprites_RenderText_lineEnd__P2221_mk(s); - s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = s.i___16798; - s.callLocIdx = 444; s.pc = 3; return s.tmp_8; - case 3: - r0 = s.retval; - s.tmp_7 = r0; - s.tmp_10 = sprites_RenderText_lineStart__P2222_mk(s); - s.tmp_10.arg0 = s.arg0; - s.tmp_10.arg1 = s.i___16798; - s.callLocIdx = 445; s.pc = 4; return s.tmp_10; - case 4: r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_7 - s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.total___16797 = (r0); - r0 = (s.i___16798 + 1); - s.i___16798 = (r0); - { step = 1; continue; } - case 2: - r0 = s.total___16797; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_printableCharacters__P2220.info = {"start":3454,"length":229,"line":89,"column":8,"endLine":95,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"printableCharacters","argumentNames":["this"]} +particles_sortSources__P69573.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function sprites_RenderText_printableCharacters__P2220_mk(s) { +function particles_sortSources__P69573_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_printableCharacters__P2220, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P69573, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - total___16797: undefined, - i___16798: undefined, arg0: undefined, } } @@ -27213,7 +26802,7 @@ function sprites_RenderText_printableCharacters__P2220_mk(s) { -function sprites_RenderText_lineStart__P2222(s) { +function particles_sortSources_inline__P78128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27223,109 +26812,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___16821 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["linebreaks"]; + r0 = s.arg0.fields["priority"]; s.tmp_1 = r0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.start___16821 = (s.tmp_3); - case 3: - s.tmp_1 = r0 = s.start___16821; - r0 = s.arg0.fields["text"]; - s.tmp_3 = r0; - r0 = pxsim_String_.length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = s.arg0.fields["text"]; - s.tmp_6 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_6, s.start___16821); - s.tmp_5 = r0; - r0 = (s.tmp_5 <= 32); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = (s.start___16821 + 1); - s.start___16821 = (r0); - { step = 11; continue; } - case 4: - r0 = s.arg0.fields["text"]; + r0 = s.arg1.fields["priority"]; s.tmp_2 = r0; - r0 = pxsim_String_.charAt(s.tmp_2, s.start___16821); - s.tmp_1 = r0; - r0 = (s.tmp_1 === "\\"); + r0 = (s.tmp_1 - s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["text"]; - s.tmp_4 = r0; - r0 = (s.start___16821 + 1); - s.tmp_5 = r0; - r0 = pxsim_String_.charAt(s.tmp_4, s.tmp_5); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; s.tmp_3 = r0; - r0 = (s.tmp_3 === "n"); - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 7; continue; } - r0 = s.tmp_6; - { step = 8; continue; } - case 7: - r0 = (s.start___16821 + 1); - s.tmp_7 = r0; - r0 = s.arg0.fields["text"]; - s.tmp_9 = r0; - r0 = pxsim_String_.length(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7 < s.tmp_8); - case 8: + r0 = s.arg1.fields["id"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + case 2: // jmp value (already in r0) - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 9; continue; } - r0 = (s.start___16821 + 2); - s.start___16821 = (r0); - { step = 10; continue; } - case 9: - { step = 12; continue; } - case 10: - case 11: - { step = 3; continue; } - case 12: - r0 = s.start___16821; + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -sprites_RenderText_lineStart__P2222.info = {"start":4498,"length":599,"line":119,"column":8,"endLine":136,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineStart","argumentNames":["this","lineIndex"]} +particles_sortSources_inline__P78128.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} -function sprites_RenderText_lineStart__P2222_mk(s) { +function particles_sortSources_inline__P78128_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_lineStart__P2222, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P78128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27333,12 +26853,6 @@ function sprites_RenderText_lineStart__P2222_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - start___16821: undefined, arg0: undefined, arg1: undefined, } } @@ -27347,7 +26861,7 @@ function sprites_RenderText_lineStart__P2222_mk(s) { -function sprites_RenderText_lineEnd__P2221(s) { +function particles_init__P69570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27357,157 +26871,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.prevEnd___16873 = undefined; - s.end___16881 = undefined; - s.didMove___16893 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - r0 = (s.arg1 > 0); + s.scene___78167 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1839; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.scene___78167 = (r0); + r0 = s.scene___78167.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["linebreaks"]; - s.tmp_1 = r0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.prevEnd___16873 = (s.tmp_3); - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["linebreaks"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + s.tmp_1 = r0 = s.scene___78167; + r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["linebreaks"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.arg1); - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["text"]; - s.tmp_5 = r0; - r0 = pxsim_String_.length(s.tmp_5); - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - s.end___16881 = (s.tmp_6); - s.didMove___16893 = (false); + r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); + r0 = pxsim.control.millis(); + globals.lastUpdate___69565 = (r0); + s.tmp_0 = game_onUpdate__P67222_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P69571; + s.callLocIdx = 1840; s.pc = 5; return s.tmp_0; case 5: - r0 = (s.end___16881 > s.prevEnd___16873); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = s.arg0.fields["text"]; - s.tmp_3 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_3, s.end___16881); - s.tmp_2 = r0; - r0 = (s.tmp_2 <= 32); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = (s.end___16881 - 1); - s.end___16881 = (r0); - s.didMove___16893 = (true); - { step = 13; continue; } + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P67223_mk(s); + s.tmp_0.arg0 = 250; + s.tmp_0.arg1 = particles_pruneParticles__P69572; + s.callLocIdx = 1841; s.pc = 6; return s.tmp_0; case 6: - r0 = s.arg0.fields["text"]; - s.tmp_2 = r0; - r0 = pxsim_String_.charAt(s.tmp_2, s.end___16881); - s.tmp_1 = r0; - r0 = (s.tmp_1 === "n"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = s.arg0.fields["text"]; - s.tmp_4 = r0; - r0 = (s.end___16881 - 1); - s.tmp_5 = r0; - r0 = pxsim_String_.charAt(s.tmp_4, s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 === "\\"); - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 9; continue; } - r0 = s.tmp_6; - { step = 10; continue; } - case 9: - r0 = (s.end___16881 - 1); - s.tmp_7 = r0; - r0 = (s.tmp_7 > s.prevEnd___16873); - case 10: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 11; continue; } - r0 = (s.end___16881 - 2); - s.end___16881 = (r0); - s.didMove___16893 = (true); - { step = 12; continue; } - case 11: - { step = 14; continue; } - case 12: - case 13: - { step = 5; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.didMove___16893); - if (!r0) { step = 15; continue; } - r0 = (s.end___16881 + 1); - { step = 16; continue; } - case 15: - r0 = s.end___16881; - case 16: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = s.tmp_0; + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_lineEnd__P2221.info = {"start":3693,"length":795,"line":97,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineEnd","argumentNames":["this","lineIndex"]} +particles_init__P69570.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function sprites_RenderText_lineEnd__P2221_mk(s) { +function particles_init__P69570_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_lineEnd__P2221, depth: s.depth + 1, + parent: s, fn: particles_init__P69570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - prevEnd___16873: undefined, - end___16881: undefined, - didMove___16893: undefined, - arg0: undefined, - arg1: undefined, + scene___78167: undefined, } } -function sprites_RenderText_constructor__P2212(s) { +function particles_updateParticles__P69571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27517,53 +26933,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = image_getFontForText__P1958_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 418; s.pc = 1; return s.tmp_2; - case 1: + s.sources___78209 = undefined; + s.time___78216 = undefined; + s.dt___78219 = undefined; + s.i___78225 = undefined; + s.tmp_0 = particles_particleSources__P69576_mk(s); + s.callLocIdx = 1842; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; + s.sources___78209 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___78209); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["font"] = (s.tmp_1); - s.tmp_0 = sprites_RenderText_setMaxWidth__P2219_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 419; s.pc = 2; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: case 2: + s.tmp_2 = particles_sortSources__P69573_mk(s); + s.tmp_2.arg0 = s.sources___78209; + s.callLocIdx = 1843; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.time___78216 = (r0); + r0 = (s.time___78216 - globals.lastUpdate___69565); + s.dt___78219 = (r0); + globals.lastUpdate___69565 = (s.time___78216); + s.i___78225 = (0); + case 3: + s.tmp_1 = r0 = s.i___78225; + r0 = pxsim_Array__length(s.sources___78209); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = particles_ParticleSource__update__P67357_mk(s); + r0 = pxsim_Array__getAt(s.sources___78209, s.i___78225); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.dt___78219; + s.callLocIdx = 1844; s.pc = 8; return s.tmp_3; + case 8: r0 = s.retval; + r0 = (s.i___78225 + 1); + s.i___78225 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_constructor__P2212.info = {"start":162,"length":155,"line":7,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"inline","argumentNames":["this","text","maxWidth"]} +particles_updateParticles__P69571.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function sprites_RenderText_constructor__P2212_mk(s) { +function particles_updateParticles__P69571_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_constructor__P2212, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P69571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_3: undefined, + sources___78209: undefined, + time___78216: undefined, + dt___78219: undefined, + i___78225: undefined, } } -function sprites_RenderText_setMaxWidth__P2219(s) { +function particles_ParticleSource__update__P67357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27573,141 +27017,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___17027 = undefined; + s.p___78288 = undefined; + s.current___78307 = undefined; + s.fixedDt___78315 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - s.tmp_2 = r0 = s.arg1; - s.tmp_4 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 437; s.pc = 3; return s.tmp_4; } - } - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim.Math_.idiv(s.tmp_2, s.tmp_3); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.tmp_5 = r0 = s.arg0; - s.tmp_7 = sprites_getLineBreaks__P4811_mk(s); - r0 = s.arg0.fields["text"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = s.tmp_0; - s.callLocIdx = 438; s.pc = 4; return s.tmp_7; - case 4: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5).fields["linebreaks"] = (s.tmp_6); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["linebreaks"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); + r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; - s.tmp_6 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 439; s.pc = 5; return s.tmp_6; } - } - case 5: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_2 * s.tmp_5); + r0 = (s.tmp_2 - s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - r0 = (s.arg0).fields["width"] = (0); - s.i___17027 = (0); - case 1: - s.tmp_1 = r0 = s.i___17027; - r0 = s.arg0.fields["linebreaks"]; + r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["lifespan"]; s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); + r0 = (s.tmp_4 - s.arg1); s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_5 = r0 = s.arg0; - s.tmp_7 = Math_max__P130_mk(s); - s.tmp_9 = sprites_RenderText_lineEnd__P2221_mk(s); - s.tmp_9.arg0 = s.arg0; - s.tmp_9.arg1 = s.i___17027; - s.callLocIdx = 440; s.pc = 7; return s.tmp_9; - case 7: - r0 = s.retval; - s.tmp_8 = r0; - s.tmp_11 = sprites_RenderText_lineStart__P2222_mk(s); - s.tmp_11.arg0 = s.arg0; - s.tmp_11.arg1 = s.i___17027; - s.callLocIdx = 441; s.pc = 8; return s.tmp_11; - case 8: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_8 - s.tmp_10); - s.tmp_7.arg0 = r0; - r0 = s.arg0.fields["width"]; - s.tmp_7.arg1 = r0; - s.callLocIdx = 442; s.pc = 6; return s.tmp_7; - case 6: + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = particles_ParticleSource_destroy__P67364_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1815; s.pc = 28; return s.tmp_0; + case 28: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5).fields["width"] = (s.tmp_6); - r0 = (s.i___17027 + 1); - s.i___17027 = (r0); - { step = 1; continue; } + case 1: case 2: - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["width"]; - s.tmp_2 = r0; - s.tmp_4 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + { step = 10; continue; } + case 3: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + s.tmp_2 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 443; s.pc = 9; return s.tmp_4; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1816; s.pc = 29; return s.tmp_2; } + } + case 29: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 6; continue; } + r0 = s.tmp_3; + { step = 7; continue; } + case 6: + s.tmp_5 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1817; s.pc = 30; return s.tmp_5; } } + case 30: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 2); + case 7: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 8; continue; } + r0 = (s.arg0).fields["lifespan"] = (750); + case 8: case 9: + case 10: + case 11: + r0 = s.arg0.fields["timer"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 12; continue; } + r0 = s.tmp_0; + { step = 13; continue; } + case 12: + s.tmp_2 = particles_ParticleSource_enabled__P67362_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1818; s.pc = 31; return s.tmp_2; + case 31: r0 = s.retval; + case 13: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 16; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.tmp_4.fields["timer"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["period"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); + s.tmp_0 = particles_ParticleFactory__C67386_v0_2_mk(s); + r0 = s.arg0.fields["_factory"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["anchor"]; + s.tmp_0.arg1 = r0; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C67386_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.createParticle; + s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + s.p___78288 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___78288); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["width"] = (s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + { step = 11; continue; } + case 14: + case 15: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = (s.p___78288).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___78288); + { step = 11; continue; } + case 16: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + { step = 27; continue; } + case 17: + case 18: + r0 = s.arg0.fields["head"]; + s.current___78307 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["_dt"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); + r0 = s.arg0.fields["_dt"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.fixedDt___78315 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___78315); + if (!r0) { step = 23; continue; } + case 19: + r0 = s.current___78307.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_2 = r0 = s.current___78307; + r0 = s.tmp_2.fields["lifespan"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); + s.tmp_0 = particles_ParticleSource__C67350_v4_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.current___78307; + s.tmp_0.arg2 = s.fixedDt___78315; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C67350_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; + s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + case 20: + case 21: + r0 = s.current___78307.fields["next"]; + s.tmp_0 = r0; + s.current___78307 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + { step = 19; continue; } + case 22: + r0 = (s.arg0).fields["_dt"] = (0); + { step = 26; continue; } + case 23: + case 24: + s.tmp_0 = r0 = s.current___78307; + r0 = s.tmp_0.fields["lifespan"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); + r0 = s.current___78307.fields["next"]; + s.tmp_0 = r0; + s.current___78307 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + { step = 24; continue; } + case 25: + case 26: + case 27: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_setMaxWidth__P2219.info = {"start":2979,"length":465,"line":78,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setMaxWidth","argumentNames":["this","maxWidth"]} +particles_ParticleSource__update__P67357.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function sprites_RenderText_setMaxWidth__P2219_mk(s) { +function particles_ParticleSource__update__P67357_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_setMaxWidth__P2219, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P67357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27717,11 +27265,9 @@ function sprites_RenderText_setMaxWidth__P2219_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - i___17027: undefined, + p___78288: undefined, + current___78307: undefined, + fixedDt___78315: undefined, arg0: undefined, arg1: undefined, } } @@ -27730,7 +27276,7 @@ function sprites_RenderText_setMaxWidth__P2219_mk(s) { -function sprites_getLineBreaks__P4811(s) { +function particles_ParticleSource_updateParticle__P69567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27740,169 +27286,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.result___17058 = undefined; - s.lastBreakLocation___17060 = undefined; - s.lastBreak___17061 = undefined; - s.line___17062 = undefined; - s.lineLength___17063 = undefined; - s.nextLine___17066 = undefined; - s.index___17075 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.result___17058 = (r0); - s.lastBreakLocation___17060 = (0); - s.lastBreak___17061 = (0); - r0 = pxsim_pxtrt.mklocRef(); - s.line___17062 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.line___17062, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.lineLength___17063 = (r0); - s.tmp_0 = r0 = s.lineLength___17063; - s.tmp_2 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.line___17062); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = (s.arg2 >> 10); + s.arg2 = (r0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vx"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["ax"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtcore_mkAction(3, nextLine__P17066); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.line___17062); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.lineLength___17063); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); - s.nextLine___17066 = (s.tmp_0); - s.index___17075 = (0); - case 1: - s.tmp_1 = r0 = s.index___17075; - r0 = pxsim_String_.length(s.arg0); + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vy"]; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = pxsim_String_.charAt(s.arg0, s.index___17075); + r0 = s.arg0.fields["ay"]; s.tmp_4 = r0; - r0 = (s.tmp_4 === "\n"); + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.result___17058, s.index___17075); - r0 = (s.index___17075 + 1); - s.index___17075 = (r0); - s.lastBreak___17061 = (s.index___17075); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.nextLine___17066; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 461; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - { step = 9; continue; } - case 2: - r0 = pxsim_String_.charAt(s.arg0, s.index___17075); + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_1 === "\\"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_3 = r0 = s.arg0; - r0 = (s.index___17075 + 1); - s.tmp_4 = r0; - r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 === "n"); - case 4: - // jmp value (already in r0) + r0 = s.arg1.fields["vx"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array__push(s.result___17058, s.index___17075); - s.lastBreak___17061 = (s.index___17075); - r0 = (s.index___17075 + 2); - s.index___17075 = (r0); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.nextLine___17066; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 462; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - { step = 8; continue; } - case 5: - s.tmp_1 = sprites_isBreakCharacter__P4810_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.index___17075); - s.tmp_1.arg0 = r0; - s.callLocIdx = 463; s.pc = 19; return s.tmp_1; - case 19: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.lastBreakLocation___17060 = (s.index___17075); - case 6: - case 7: - case 8: - case 9: - r0 = (s.index___17075 - s.lastBreak___17061); + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.lineLength___17063); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.lastBreakLocation___17060 === s.index___17075); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 10; continue; } - r0 = s.tmp_3; - { step = 11; continue; } - case 10: - r0 = (s.lastBreakLocation___17060 <= s.lastBreak___17061); - case 11: - // jmp value (already in r0) + r0 = s.arg1.fields["vy"]; s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 12; continue; } - r0 = pxsim_Array__push(s.result___17058, s.index___17075); - s.lastBreak___17061 = (s.index___17075); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.nextLine___17066; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 464; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - { step = 13; continue; } - case 12: - r0 = pxsim_Array__push(s.result___17058, s.lastBreakLocation___17060); - s.lastBreak___17061 = (s.lastBreakLocation___17060); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.nextLine___17066; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 465; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - case 13: - case 14: - case 15: - r0 = (s.index___17075 + 1); - s.index___17075 = (r0); - { step = 1; continue; } - case 16: - r0 = s.result___17058; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_getLineBreaks__P4811.info = {"start":6471,"length":1548,"line":170,"column":4,"endLine":216,"endColumn":5,"fileName":"pxt_modules/game/renderText.ts","functionName":"getLineBreaks","argumentNames":["text","lineLengths"]} +particles_ParticleSource_updateParticle__P69567.info = {"start":8248,"length":357,"line":277,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} -function sprites_getLineBreaks__P4811_mk(s) { +function particles_ParticleSource_updateParticle__P69567_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_getLineBreaks__P4811, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P69567, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27910,22 +27361,16 @@ function sprites_getLineBreaks__P4811_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - result___17058: undefined, - lastBreakLocation___17060: undefined, - lastBreak___17061: undefined, - line___17062: undefined, - lineLength___17063: undefined, - nextLine___17066: undefined, - index___17075: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function nextLine__P17066(s) { +function Fx_rightShift__P64390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27935,47 +27380,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 >> s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_rightShift__P64390.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} + +function Fx_rightShift__P64390_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_rightShift__P64390, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_ParticleFactory_createParticle__P67388(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___78398 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleFactory__C67386_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C67331_VT); + s.p___78398 = (r0); + s.tmp_0 = r0 = s.p___78398; + s.tmp_3 = if_x_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1874; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[1]; - s.tmp_2 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___78398; + s.tmp_3 = if_y_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1876; s.pc = 2; return s.tmp_3; } + } + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); s.tmp_4 = r0; - r0 = pxsim_Array__length(s.caps[2]); - s.tmp_5 = r0; - r0 = (s.tmp_4 % s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.p___78398).fields["vx"] = (0); + r0 = (s.p___78398).fields["vy"] = (0); + r0 = (s.p___78398).fields["lifespan"] = (500); + r0 = s.p___78398; return leave(s, r0) default: oops() } } } -nextLine__P17066.info = {"start":6718,"length":116,"line":178,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"nextLine","argumentNames":[]} +particles_ParticleFactory_createParticle__P67388.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function nextLine__P17066_mk(s) { +function particles_ParticleFactory_createParticle__P67388_mk(s) { checkStack(s.depth); return { - parent: s, fn: nextLine__P17066, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P67388, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, + p___78398: undefined, + arg0: undefined, + arg1: undefined, } } -function sprites_isBreakCharacter__P4810(s) { +function game_onUpdateInterval__P67223(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27985,101 +27500,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.timer___78189 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 <= 32); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 4; continue; } + { step = 2; continue; } case 1: - r0 = (s.arg0 >= 58); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 2; continue; } - r0 = s.tmp_1; - { step = 3; continue; } + r0 = (s.arg0 < 0); case 2: - r0 = (s.arg0 <= 64); - case 3: // jmp value (already in r0) s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 8; continue; } - case 5: - r0 = (s.arg0 >= 91); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 6; continue; } - r0 = s.tmp_4; - { step = 7; continue; } - case 6: - r0 = (s.arg0 <= 96); + r0 = pxsim_pxtrt.mklocRef(); + s.timer___78189 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___78189, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P78193); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___78189); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + s.tmp_2 = game_eventContext__P67201_mk(s); + s.callLocIdx = 1624; s.pc = 7; return s.tmp_2; case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (!r0) { step = 9; continue; } - r0 = s.tmp_6; - { step = 12; continue; } - case 9: - r0 = (s.arg0 >= 123); - s.tmp_7 = r0; - r0 = pxsim_numops_toBool(s.tmp_7); - if (r0) { step = 10; continue; } - r0 = s.tmp_7; - { step = 11; continue; } - case 10: - r0 = (s.arg0 <= 126); - case 11: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = s.tmp_8; - case 12: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 19; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1628; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_isBreakCharacter__P4810.info = {"start":6231,"length":234,"line":163,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/game/renderText.ts","functionName":"isBreakCharacter","argumentNames":["charCode"]} +game_onUpdateInterval__P67223.info = {"start":813,"length":401,"line":26,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function sprites_isBreakCharacter__P4810_mk(s) { +function game_onUpdateInterval__P67223_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_isBreakCharacter__P4810, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P67223, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, + timer___78189: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_BaseSpriteSayRenderer_destroy__P2244(s) { +function game_onUpdateInterval_inline__P78193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28089,31 +27577,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(r0); + s.time___78194 = undefined; + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1625; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.time___78194 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.time___78194); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.caps[0]; + r0 = (s.time___78194 + s.caps[1]); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.caps[2]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1627; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_destroy__P2244.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} +game_onUpdateInterval_inline__P78193.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} -function sprites_BaseSpriteSayRenderer_destroy__P2244_mk(s) { +function game_onUpdateInterval_inline__P78193_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P2244, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval_inline__P78193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + time___78194: undefined, } } -function console_inspect__P382(s) { +function scene_Scene_millis__P67068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28123,239 +27635,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___13453 = undefined; - s.asString___13471 = undefined; - s.keys___13483 = undefined; - s.snipped___13487 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore.typeOf(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 == "string"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } r0 = s.arg0; - { step = 17; continue; } - { step = 16; continue; } - case 1: - r0 = pxsim_pxtcore.typeOf(s.arg0); - s.tmp_3 = r0; - r0 = (s.tmp_3 == "number"); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; + return leave(s, r0) + default: oops() +} } } +scene_Scene_millis__P67068.info = {"start":7090,"length":61,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} + +function scene_Scene_millis__P67068_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_millis__P67068, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function MAX_SOURCES_inline__P78143(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.sz___78144 = undefined; + s.tmp_0 = control_ramSize__P64565_mk(s); + s.callLocIdx = 45; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - { step = 17; continue; } - { step = 15; continue; } - case 2: - r0 = pxsim_Array_.isArray(s.arg0); - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 5; continue; } - s.asArr___13453 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___13453); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.arg1); + s.sz___78144 = (r0); + r0 = (s.sz___78144 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayJoin__P103_mk(s); - s.tmp_2.arg0 = s.asArr___13453; - s.tmp_2.arg1 = ","; - s.callLocIdx = 46; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - { step = 17; continue; } + if (!r0) { step = 1; continue; } + r0 = 8; + { step = 5; continue; } { step = 4; continue; } + case 1: + r0 = (s.sz___78144 <= 204800); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 16; + { step = 5; continue; } + { step = 3; continue; } + case 2: + r0 = 50; + { step = 5; continue; } case 3: - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P103_mk(s); - s.tmp_8 = helpers_arraySlice__P115_mk(s); - s.tmp_8.arg0 = s.asArr___13453; - s.tmp_8.arg1 = 0; - s.tmp_8.arg2 = s.arg1; - s.callLocIdx = 47; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = ","; - s.callLocIdx = 48; s.pc = 20; return s.tmp_7; - case 20: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 22: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, "..."); - { step = 17; continue; } case 4: - { step = 14; continue; } + r0 = undefined; case 5: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 23); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 23: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_10 = r0; - r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___13471 = (r0); - r0 = (s.asString___13471 != "[object Object]"); + return leave(s, r0) + default: oops() +} } } +MAX_SOURCES_inline__P78143.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} + +function MAX_SOURCES_inline__P78143_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: MAX_SOURCES_inline__P78143, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + sz___78144: undefined, +} } + + + + + +function control_ramSize__P64565(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_pxtcore.getConfig(205, 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = (s.asString___13471 != "[Object]"); - case 7: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = s.asString___13471; - { step = 17; continue; } - case 8: - case 9: - r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___13483 = (r0); - r0 = pxsim_Array__length(s.keys___13483); - s.tmp_0 = r0; - r0 = (s.tmp_0 > s.arg1); - s.snipped___13487 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___13487); - if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P115_mk(s); - s.tmp_0.arg0 = s.keys___13483; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 49; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.keys___13483 = (r0); - case 10: - case 11: - r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P13504); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___13487); - if (!r0) { step = 12; continue; } - r0 = "\n ..."; - { step = 13; continue; } - case 12: - r0 = pxsim_String_.mkEmpty(); - case 13: + { step = 2; continue; } + case 1: + r0 = 33554432; + case 2: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P112_mk(s); - s.tmp_7.arg0 = s.keys___13483; - s.tmp_7.arg1 = s.tmp_0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7.arg2 = r0; - s.callLocIdx = 50; s.pc = 25; return s.tmp_7; - case 25: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 26: - r0 = s.retval; - s.tmp_5 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 27); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 27: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_8); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 28: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat("{", s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "\n}"); - { step = 17; continue; } - case 14: - case 15: - case 16: - r0 = undefined; - case 17: + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -console_inspect__P382.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +control_ramSize__P64565.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} -function console_inspect__P382_mk(s) { +function control_ramSize__P64565_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P382, depth: s.depth + 1, + parent: s, fn: control_ramSize__P64565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - asArr___13453: undefined, - asString___13471: undefined, - keys___13483: undefined, - snipped___13487: undefined, - arg0: undefined, - arg1: undefined, } } -function console_inspect_inline__P13504(s) { +function control__ramSize__P68710(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = 33554432; + return leave(s, r0) + default: oops() +} } } +control__ramSize__P68710.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} + +function control__ramSize__P68710_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control__ramSize__P68710, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function particles_SprayFactory_constructor__P67391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28368,80 +27796,103 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C67390_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P69591_mk(s); + s.callLocIdx = 1881; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } + s.tmp_0 = particles_SprayFactory_setSpeed__P67394_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1882; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat("\n ", s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ": "); - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg1); - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } + s.tmp_0 = particles_SprayFactory_setDirection__P67395_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 1883; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_6); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_SprayFactory_constructor__P67391.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} + +function particles_SprayFactory_constructor__P67391_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_SprayFactory_constructor__P67391, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function particles_initTrig__P69591(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___69577); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_cacheSin__P67384_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1869; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + globals.cachedSin___69577 = (r0); + s.tmp_0 = particles_cacheCos__P67385_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1870; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + globals.cachedCos___69578 = (r0); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -console_inspect_inline__P13504.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +particles_initTrig__P69591.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function console_inspect_inline__P13504_mk(s) { +function particles_initTrig__P69591_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect_inline__P13504, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P69591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - arg0: undefined, - arg1: undefined, } } -function helpers_arrayReduce__P112(s) { +function particles_cacheCos__P67385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28451,62 +27902,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___13531 = undefined; - s.i___13534 = undefined; + s.cos___78037 = undefined; + s.anglePerSlice___78039 = undefined; + s.i___78045 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.len___13531 = (r0); - s.i___13534 = (0); + r0 = pxsim_Array__mk(); + s.cos___78037 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___78039 = (r0); + s.i___78045 = (0); case 1: - r0 = (s.i___13534 < s.len___13531); + r0 = (s.i___78045 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = lambda_4_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.arg2; - r0 = pxsim_Array__getAt(s.arg0, s.i___13534); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___13534; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 9; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.arg2 = (r0); - r0 = (s.i___13534 + 1); - s.i___13534 = (r0); + s.tmp_1 = r0 = s.cos___78037; + r0 = (s.i___78045 * s.anglePerSlice___78039); + s.tmp_4 = r0; + r0 = pxsim.Math_.cos(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___78045 + 1); + s.i___78045 = (r0); { step = 1; continue; } case 2: - r0 = s.arg2; + r0 = s.cos___78037; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P112.info = {"start":8316,"length":317,"line":280,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayReduce","argumentNames":["arr","callbackfn","initialValue"]} +particles_cacheCos__P67385.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function helpers_arrayReduce__P112_mk(s) { +function particles_cacheCos__P67385_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P112, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P67385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___13531: undefined, - i___13534: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + cos___78037: undefined, + anglePerSlice___78039: undefined, + i___78045: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arrayJoin__P103(s) { +function particles_cacheSin__P67384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28516,133 +27970,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___13559 = undefined; - s.len___13560 = undefined; - s.i___13563 = undefined; + s.sin___78063 = undefined; + s.anglePerSlice___78065 = undefined; + s.i___78071 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + s.sin___78063 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___78065 = (r0); + s.i___78071 = (0); case 1: - r0 = (s.arg1 === null); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - s.arg1 = (","); - case 3: - case 4: - r0 = pxsim_String_.mkEmpty(); - s.r___13559 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___13560 = (r0); - s.i___13563 = (0); - case 5: - r0 = (s.i___13563 < s.len___13560); + r0 = (s.i___78071 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.i___13563 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 6; continue; } - r0 = s.tmp_1; - { step = 7; continue; } - case 6: - r0 = s.arg1; - case 7: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 8; continue; } - if ((s.r___13559) && (s.r___13559).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___13559); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___13559) + ""; } - case 15: - r0 = s.retval; - s.tmp_3 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 16: - r0 = s.retval; + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___78063; + r0 = (s.i___78071 * s.anglePerSlice___78065); s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___13559 = (r0); - case 8: - case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___13563); - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___13563); - s.tmp_2 = r0; - r0 = (s.tmp_2 === null); - case 11: - // jmp value (already in r0) + r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - r0 = pxsim_String_.mkEmpty(); - { step = 13; continue; } - case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___13563); - case 13: - // jmp value (already in r0) - s.tmp_4 = r0; - if ((s.r___13559) && (s.r___13559).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___13559); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___13559) + ""; } - case 17: - r0 = s.retval; + r0 = (s.tmp_3 * 256); s.tmp_5 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 18: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___13559 = (r0); - r0 = (s.i___13563 + 1); - s.i___13563 = (r0); - { step = 5; continue; } - case 14: - r0 = s.r___13559; + r0 = (s.tmp_5 | 0); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___78071 + 1); + s.i___78071 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___78063; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P103.info = {"start":4133,"length":432,"line":157,"column":4,"endLine":170,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayJoin","argumentNames":["arr","sep"]} +particles_cacheSin__P67384.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function helpers_arrayJoin__P103_mk(s) { +function particles_cacheSin__P67384_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P103, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P67384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28650,19 +28018,17 @@ function helpers_arrayJoin__P103_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - r___13559: undefined, - len___13560: undefined, - i___13563: undefined, + sin___78063: undefined, + anglePerSlice___78065: undefined, + i___78071: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_onEvent__P2177(s) { +function particles_SprayFactory_setDirection__P67395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28672,7 +28038,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.eventHandler___17187 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28680,28 +28045,53 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P4796_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 324; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, particles_SprayFactory__C67390_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P69596_mk(s); + s.tmp_5 = r0 = s.arg1; + r0 = (s.arg2 >> 1); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4.arg0 = r0; + s.callLocIdx = 1891; s.pc = 1; return s.tmp_4; case 1: r0 = s.retval; - s.eventHandler___17187 = (r0); - r0 = (s.eventHandler___17187).fields["callback"] = (s.arg2); + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___69590); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P69596_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1892; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___69590); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P2177.info = {"start":3784,"length":188,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} +particles_SprayFactory_setDirection__P67395.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} -function controller_Button_onEvent__P2177_mk(s) { +function particles_SprayFactory_setDirection__P67395_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P2177, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P67395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - eventHandler___17187: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28711,7 +28101,7 @@ function controller_Button_onEvent__P2177_mk(s) { -function controller_Button_getOrCreateHandlerForEvent__P4796(s) { +function particles_toRadians__P69596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28721,189 +28111,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___17208 = undefined; - s.eventHandler___17217 = undefined; - s.unnamed90___U2 = undefined; - s.unnamed91___U3 = undefined; - s.newHandler___17233 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - s.tmp_3 = controller_Button_handlerState__P4791_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 334; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C2166_VT); - s.tmp_4 = r0; - s.tmp_5 = controller_ButtonEventHandlerState_constructor__P2167_mk(s); - s.tmp_5.arg0 = s.tmp_4; - r0 = s.arg0.fields["id"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 336; s.pc = 11; return s.tmp_5; - case 11: - r0 = s.retval; - s.tmp_7 = game_currentScene__P2979_mk(s); - s.callLocIdx = 335; s.pc = 12; return s.tmp_7; - case 12: - r0 = s.retval; - r0 = r0.fields["buttonEventHandlers"]; - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); - case 1: - case 2: - s.tmp_0 = controller_Button_handlerState__P4791_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 337; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_3 = Math_abs__P64347_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1873; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - s.handlerState___17208 = (r0); - r0 = s.handlerState___17208.fields["user"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.handlerState___17208; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["user"] = (s.tmp_4); - case 3: - case 4: - s.eventHandler___17217 = (undefined); - r0 = s.handlerState___17208.fields["user"]; - s.unnamed90___U2 = (r0); - s.unnamed91___U3 = (0); - case 5: - s.tmp_0 = r0 = s.unnamed91___U3; - r0 = pxsim_Array__length(s.unnamed90___U2); + r0 = (s.tmp_2 % 360); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed90___U2, s.unnamed91___U3); - s.eventHandler___17217 = (r0); - r0 = s.eventHandler___17217.fields["event"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 === s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = s.eventHandler___17217; - { step = 9; continue; } - case 6: - case 7: - r0 = (s.unnamed91___U3 + 1); - s.unnamed91___U3 = (r0); - { step = 5; continue; } - case 8: - s.unnamed90___U2 = (undefined); - r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P17230); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.arg1); - s.tmp_5 = control_onEvent__P391_mk(s); - s.tmp_5.arg0 = s.arg1; - r0 = s.arg0.fields["id"]; - s.tmp_5.arg1 = r0; - s.tmp_5.arg2 = s.tmp_4; - s.tmp_5.arg3 = 16; - s.callLocIdx = 339; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C2164_VT); - s.tmp_0 = r0; - s.tmp_1 = controller_ButtonHandler_constructor__P2165_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 340; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.newHandler___17233 = (s.tmp_0); - r0 = s.handlerState___17208.fields["user"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.newHandler___17233); - r0 = s.newHandler___17233; - case 9: + r0 = (360 - s.tmp_1); + s.arg0 = (r0); + { step = 2; continue; } + case 1: + r0 = (s.arg0 % 360); + s.arg0 = (r0); + case 2: + r0 = (s.arg0 * 0.017453292519943295); return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent__P4796.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} +particles_toRadians__P69596.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function controller_Button_getOrCreateHandlerForEvent__P4796_mk(s) { +function particles_toRadians__P69596_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P4796, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P69596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - handlerState___17208: undefined, - eventHandler___17217: undefined, - unnamed90___U2: undefined, - unnamed91___U3: undefined, - newHandler___17233: undefined, arg0: undefined, - arg1: undefined, -} } - - - - - -function controller_Button_getOrCreateHandlerForEvent_inline__P17230(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = controller_Button_runButtonEvents__P4795_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.caps[1]; - s.callLocIdx = 338; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_Button_getOrCreateHandlerForEvent_inline__P17230.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} - -function controller_Button_getOrCreateHandlerForEvent_inline__P17230_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P17230, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, } } -function controller_Button_runButtonEvents__P4795(s) { +function Math_abs__P64347(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28913,144 +28166,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___17247 = undefined; - s.userHandler___17251 = undefined; - s.eventHandler___17262 = undefined; - s.unnamed88___U3 = undefined; - s.unnamed89___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - s.tmp_0 = controller_Button_handlerState__P4791_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 330; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.handlerState___17247 = (r0); - r0 = pxsim_numops_toBoolDecr(s.handlerState___17247); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 13; continue; } + r0 = (0 - s.arg0); + { step = 2; continue; } case 1: + r0 = s.arg0; case 2: - s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P4796_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 331; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - s.userHandler___17251 = (r0); - r0 = s.userHandler___17251.fields["callback"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = if_callback_1_mk(s); - s.tmp_1.arg0 = s.userHandler___17251; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); - s.callLocIdx = 332; s.pc = 16; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["callback"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 332; s.pc = 16; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 332; s.pc = 16; return s.tmp_1;; } - else { s.callLocIdx = 332; s.pc = 16; return s.tmp_1; } - } - case 16: - r0 = s.retval; - case 3: - case 4: - r0 = s.handlerState___17247.fields["system"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.eventHandler___17262 = (undefined); - r0 = s.handlerState___17247.fields["system"]; - s.unnamed88___U3 = (r0); - s.unnamed89___U4 = (0); - case 5: - s.tmp_0 = r0 = s.unnamed89___U4; - r0 = pxsim_Array__length(s.unnamed88___U3); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed88___U3, s.unnamed89___U4); - s.eventHandler___17262 = (r0); - r0 = s.eventHandler___17262.fields["event"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 === s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 6; continue; } - r0 = s.tmp_2; - { step = 7; continue; } - case 6: - r0 = s.eventHandler___17262.fields["callback"]; - case 7: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 8; continue; } - s.tmp_5 = if_callback_1_mk(s); - s.tmp_5.arg0 = s.eventHandler___17262; - if (!s.tmp_5.arg0.vtable.iface) { - setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); - s.callLocIdx = 333; s.pc = 17; return s.tmp_5; - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["callback"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 333; s.pc = 17; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 333; s.pc = 17; return s.tmp_5;; } - else { s.callLocIdx = 333; s.pc = 17; return s.tmp_5; } - } - case 17: - r0 = s.retval; - case 8: - case 9: - r0 = (s.unnamed89___U4 + 1); - s.unnamed89___U4 = (r0); - { step = 5; continue; } - case 10: - s.unnamed88___U3 = (undefined); - case 11: - case 12: - case 13: - r0 = undefined; + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -controller_Button_runButtonEvents__P4795.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} +Math_abs__P64347.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function controller_Button_runButtonEvents__P4795_mk(s) { +function Math_abs__P64347_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_runButtonEvents__P4795, depth: s.depth + 1, + parent: s, fn: Math_abs__P64347, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - handlerState___17247: undefined, - userHandler___17251: undefined, - eventHandler___17262: undefined, - unnamed88___U3: undefined, - unnamed89___U4: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_handlerState__P4791(s) { +function particles_SprayFactory_setSpeed__P67394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29060,77 +28211,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___17278 = undefined; - s.unnamed86___U1 = undefined; - s.unnamed87___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - s.state___17278 = (undefined); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 320; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = r0.fields["buttonEventHandlers"]; - s.unnamed86___U1 = (r0); - s.unnamed87___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed87___U2; - r0 = pxsim_Array__length(s.unnamed86___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed86___U1, s.unnamed87___U2); - s.state___17278 = (r0); - r0 = s.state___17278.fields["id"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["id"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 === s.tmp_4); + if (!checkSubtype(r0, particles_SprayFactory__C67390_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = s.state___17278; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.unnamed87___U2 + 1); - s.unnamed87___U2 = (r0); - { step = 1; continue; } - case 4: - s.unnamed86___U1 = (undefined); + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); r0 = undefined; - case 5: - return leaveAccessor(s, r0) + return leave(s, r0) default: oops() } } } -controller_Button_handlerState__P4791.info = {"start":1644,"length":240,"line":66,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"handlerState","argumentNames":["this"]} -controller_Button_handlerState__P4791.isGetter = true; +particles_SprayFactory_setSpeed__P67394.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} -function controller_Button_handlerState__P4791_mk(s) { +function particles_SprayFactory_setSpeed__P67394_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_handlerState__P4791, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P67394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - state___17278: undefined, - unnamed86___U1: undefined, - unnamed87___U2: undefined, arg0: undefined, + arg1: undefined, } } -function controller_ButtonEventHandlerState_constructor__P2167(s) { +function particles_ParticleFactory_constructor__P67387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29142,32 +28258,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonEventHandlerState__C2166_VT)) failedCast(r0); - r0 = (s.arg0).fields["id"] = (s.arg1); + if (!checkSubtype(r0, particles_ParticleFactory__C67386_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ButtonEventHandlerState_constructor__P2167.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} +particles_ParticleFactory_constructor__P67387.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function controller_ButtonEventHandlerState_constructor__P2167_mk(s) { +function particles_ParticleFactory_constructor__P67387_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonEventHandlerState_constructor__P2167, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P67387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function controller_ButtonHandler_constructor__P2165(s) { +function particles_ParticleSource_setFactory__P67369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29180,34 +28293,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonHandler__C2164_VT)) failedCast(r0); - r0 = (s.arg0).fields["event"] = (s.arg1); - r0 = (s.arg0).fields["callback"] = (s.arg2); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_factory"] = (s.arg1); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ButtonHandler_constructor__P2165.info = {"start":997,"length":66,"line":44,"column":8,"endLine":44,"endColumn":74,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","event","callback"]} +particles_ParticleSource_setFactory__P67369.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function controller_ButtonHandler_constructor__P2165_mk(s) { +function particles_ParticleSource_setFactory__P67369_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonHandler_constructor__P2165, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P67369, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_createTilemap__P2742(s) { +function particles_ParticleSource_setRate__P67367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29220,45 +28334,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C2697_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_TileMapData_constructor__P2698_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.tmp_1.arg4 = s.arg3; - s.callLocIdx = 1296; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); + s.tmp_2 = r0; + r0 = pxsim.Math_.ceil(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_createTilemap__P2742.info = {"start":18693,"length":170,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} +particles_ParticleSource_setRate__P67367.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function tiles_createTilemap__P2742_mk(s) { +function particles_ParticleSource_setRate__P67367_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_createTilemap__P2742, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P67367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_constructor__P2698(s) { +function particles_ParticleSource_setAnchor__P67366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29271,55 +28380,31 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); - r0 = (s.arg0).fields["data"] = (s.arg1); - r0 = (s.arg0).fields["layers"] = (s.arg2); - r0 = (s.arg0).fields["tileset"] = (s.arg3); - s.tmp_0 = tiles_TileMapData_scale__P2702_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 1205; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P2698.info = {"start":6048,"length":358,"line":204,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +particles_ParticleSource_setAnchor__P67366.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function tiles_TileMapData_constructor__P2698_mk(s) { +function particles_ParticleSource_setAnchor__P67366_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P2698, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P67366, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function helpers_stringTrim__P123(s) { +function particles_ParticleSource_destroy__P67364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29329,86 +28414,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___17329 = undefined; - s.end___17330 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.start___17329 = (0); - r0 = pxsim_String_.length(s.arg0); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.end___17330 = (r0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P67363_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1825; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.start___17329 <= s.end___17330); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - s.tmp_1 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___17329); - s.tmp_1.arg0 = r0; - s.callLocIdx = 23; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = (s.start___17329 + 1); - s.start___17329 = (r0); - { step = 1; continue; } - case 4: - case 5: - r0 = (s.end___17330 > s.start___17329); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - s.tmp_1 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.end___17330); - s.tmp_1.arg0 = r0; - s.callLocIdx = 24; s.pc = 10; return s.tmp_1; - case 10: r0 = s.retval; - case 7: - // jmp value (already in r0) + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 8; continue; } - r0 = (s.end___17330 - 1); - s.end___17330 = (r0); - { step = 5; continue; } - case 8: - s.tmp_0 = helpers_stringSlice__P119_mk(s); + r0 = (s.tmp_2 | 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_0 = particles_ParticleSource__prune__P67358_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.start___17329; - r0 = (s.end___17330 + 1); - s.tmp_0.arg2 = r0; - s.callLocIdx = 25; s.pc = 11; return s.tmp_0; - case 11: + s.callLocIdx = 1826; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_stringTrim__P123.info = {"start":14539,"length":319,"line":491,"column":4,"endLine":501,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringTrim","argumentNames":["s"]} +particles_ParticleSource_destroy__P67364.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function helpers_stringTrim__P123_mk(s) { +function particles_ParticleSource_destroy__P67364_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringTrim__P123, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P67364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - start___17329: undefined, - end___17330: undefined, arg0: undefined, } } @@ -29416,7 +28458,7 @@ function helpers_stringTrim__P123_mk(s) { -function helpers__registerFactory__P3312(s) { +function helpers_arrayShift__P64321(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29428,46 +28470,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___5426); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.factories___5426 = (r0); - case 1: - case 2: - r0 = pxsim_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "kind", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "factory", s.arg1); - r0 = pxsim_Array__push(globals.factories___5426, s.tmp_0); - r0 = undefined; + r0 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -helpers__registerFactory__P3312.info = {"start":2019,"length":201,"line":58,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_registerFactory","argumentNames":["kind","factory"]} +helpers_arrayShift__P64321.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} -function helpers__registerFactory__P3312_mk(s) { +function helpers_arrayShift__P64321_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers__registerFactory__P3312, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P64321, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function forestFire_FireState_constructor__P7144(s) { +function particles_AshFactory_constructor__P67431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29477,345 +28500,254 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.counts___78443 = undefined; + s.i___78445 = undefined; + s.result___78454 = undefined; + s.x___78459 = undefined; + s.y___78465 = undefined; + s.c___78471 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, forestFire_FireState__C7131_VT)) failedCast(r0); - r0 = (s.arg0).fields["period"] = (300); - r0 = s.arg0.fields["period"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["timer"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(16, 16); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeBuffer"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(16, 16); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["healthBuffer"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tileCache"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["unburntTileCache"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["fireCreatedHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["fireDestroyedHandlers"] = (s.tmp_1); - r0 = (s.arg0).fields["windSpeed"] = (5); - r0 = (s.arg0).fields["treeHealth"] = (4); - r0 = (s.arg0).fields["dryGrass"] = (5); - r0 = (s.arg0).fields["fireHasStarted"] = (false); - r0 = (s.arg0).fields["updateHasBeenCalled"] = (false); - r0 = pxsim_pxtcore_mkAction(1, forestFire_FireState_inline__P17415); + if (!checkSubtype(r0, particles_AshFactory__C67430_VT)) failedCast(r0); + s.tmp_1 = if_width_1_mk(s); + s.tmp_1.arg0 = s.arg1; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "width"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["width"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["width"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1937; s.pc = 20; return s.tmp_1; } + } + case 20: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onUpdate__P3003_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 2300; s.pc = 1; return s.tmp_1; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1938; s.pc = 21; return s.tmp_2; } + } + case 21: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -forestFire_FireState_constructor__P7144.info = {"start":544,"length":2929,"line":23,"column":8,"endLine":98,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"inline","argumentNames":["this"]} - -function forestFire_FireState_constructor__P7144_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: forestFire_FireState_constructor__P7144, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function forestFire_FireState_inline__P17415(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.burntTrees___17416 = undefined; - s.unburntTrees___17417 = undefined; - s.activeFires___17418 = undefined; - s.tile___17420 = undefined; - s.unnamed126___U4 = undefined; - s.unnamed127___U5 = undefined; - s.x___17429 = undefined; - s.y___17436 = undefined; - s.totalTrees___17474 = undefined; - s.score___17501 = undefined; - s.burntTrees___17416 = (0); - s.unburntTrees___17417 = (0); - s.activeFires___17418 = (0); - s.tile___17420 = (undefined); - r0 = s.caps[0].fields["unburntTileCache"]; - s.unnamed126___U4 = (r0); - s.unnamed127___U5 = (0); + { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.unnamed127___U5; - r0 = pxsim_Array__length(s.unnamed126___U4); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed126___U4, s.unnamed127___U5); - s.tile___17420 = (r0); - s.tmp_2 = r0 = s.unburntTrees___17417; - s.tmp_5 = tiles_getTilesByType__P2755_mk(s); - s.tmp_5.arg0 = s.tile___17420; - s.callLocIdx = 2287; s.pc = 26; return s.tmp_5; - case 26: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.unburntTrees___17417 = (r0); - r0 = (s.unnamed127___U5 + 1); - s.unnamed127___U5 = (r0); - { step = 1; continue; } + r0 = 8; case 2: - s.unnamed126___U4 = (undefined); - s.x___17429 = (0); - case 3: - s.tmp_1 = r0 = s.x___17429; - r0 = s.caps[0].fields["timeBuffer"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.y___17436 = (0); - case 4: - s.tmp_1 = r0 = s.y___17436; - r0 = s.caps[0].fields["timeBuffer"]; + // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = s.caps[0].fields["timeBuffer"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.x___17429, s.y___17436); - s.tmp_5 = r0; - r0 = (s.tmp_5 === 0); + s.tmp_5 = if_height_1_mk(s); + s.tmp_5.arg0 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "height"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["height"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["height"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1939; s.pc = 22; return s.tmp_5; } + } + case 22: + r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - { step = 11; continue; } - { step = 10; continue; } - case 5: - r0 = s.caps[0].fields["timeBuffer"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_9, s.x___17429, s.y___17436); - s.tmp_8 = r0; - r0 = (s.tmp_8 < 15); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 6; continue; } - r0 = (s.activeFires___17418 + 1); - s.activeFires___17418 = (r0); - r0 = (s.burntTrees___17416 + 1); - s.burntTrees___17416 = (r0); - { step = 9; continue; } - case 6: - r0 = s.caps[0].fields["timeBuffer"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___17429, s.y___17436); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 15); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.burntTrees___17416 + 1); - s.burntTrees___17416 = (r0); - case 7: - case 8: - case 9: - case 10: - case 11: - r0 = (s.y___17436 + 1); - s.y___17436 = (r0); - { step = 4; continue; } - case 12: - r0 = (s.x___17429 + 1); - s.x___17429 = (r0); - { step = 3; continue; } - case 13: - r0 = (s.unburntTrees___17417 + s.burntTrees___17416); - s.totalTrees___17474 = (r0); - s.tmp_0 = hud_updateForestHealth__P4399_mk(s); - s.tmp_0.arg0 = s.totalTrees___17474; - s.tmp_0.arg1 = s.unburntTrees___17417; - s.callLocIdx = 2288; s.pc = 27; return s.tmp_0; - case 27: + if (!r0) { step = 3; continue; } + s.tmp_7 = if_height_1_mk(s); + s.tmp_7.arg0 = s.arg1; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "height"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["height"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["height"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 1940; s.pc = 23; return s.tmp_7; } + } + case 23: r0 = s.retval; - s.tmp_0 = hud_updateFireNumber__P4401_mk(s); - s.tmp_0.arg0 = s.activeFires___17418; - s.callLocIdx = 2289; s.pc = 28; return s.tmp_0; - case 28: + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + { step = 4; continue; } + case 3: + r0 = 8; + case 4: + // jmp value (already in r0) + s.tmp_8 = r0; + s.tmp_9 = particles_AreaFactory_constructor__P67401_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_9.arg1 = s.tmp_3; + s.tmp_9.arg2 = s.tmp_8; + s.tmp_9.arg3 = 300; + s.tmp_9.arg4 = 700; + s.callLocIdx = 1941; s.pc = 24; return s.tmp_9; + case 24: r0 = s.retval; - s.tmp_2 = forestFire_FireState_danger__P7132_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 2290; s.pc = 29; return s.tmp_2; - case 29: + s.tmp_3 = if_image_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "image"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["image"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["image"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1942; s.pc = 25; return s.tmp_3; } + } + case 25: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 < 2.5); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_3 = hud_updateDangerBarColors__P4400_mk(s); - s.tmp_3.arg0 = 7; - s.callLocIdx = 2291; s.pc = 30; return s.tmp_3; - case 30: + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C69604_VT); + s.tmp_4 = r0; + s.tmp_5 = particles_ColorCount_constructor__P69605_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.tmp_5.arg1 = 1; + s.tmp_5.arg2 = 20; + s.callLocIdx = 1943; s.pc = 26; return s.tmp_5; + case 26: r0 = s.retval; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); + r0 = (s.arg0).fields["colors"] = (s.tmp_6); + r0 = undefined; { step = 19; continue; } - case 14: - s.tmp_2 = forestFire_FireState_danger__P7132_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 2292; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 5); + case 5: + case 6: + r0 = pxsim_Array__mk(); + s.counts___78443 = (r0); + s.i___78445 = (0); + case 7: + r0 = (s.i___78445 <= 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_3 = hud_updateDangerBarColors__P4400_mk(s); - s.tmp_3.arg0 = 5; - s.callLocIdx = 2293; s.pc = 32; return s.tmp_3; - case 32: - r0 = s.retval; - { step = 18; continue; } - case 15: - s.tmp_2 = forestFire_FireState_danger__P7132_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 2294; s.pc = 33; return s.tmp_2; - case 33: + if (!r0) { step = 8; continue; } + r0 = pxsim_Array_.setAt(s.counts___78443, s.i___78445, 0); + r0 = (s.i___78445 + 1); + s.i___78445 = (r0); + { step = 7; continue; } + case 8: + s.tmp_1 = if_image_1_mk(s); + s.tmp_1.arg0 = s.arg1; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "image"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1944; s.pc = 27; return s.tmp_1; } + } + case 27: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 7.5); + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.result___78454 = (r0); + s.x___78459 = (0); + case 9: + s.tmp_1 = r0 = s.x___78459; + r0 = pxsim_ImageMethods.width(s.result___78454); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - s.tmp_3 = hud_updateDangerBarColors__P4400_mk(s); - s.tmp_3.arg0 = 4; - s.callLocIdx = 2295; s.pc = 34; return s.tmp_3; - case 34: - r0 = s.retval; - { step = 17; continue; } - case 16: - s.tmp_0 = hud_updateDangerBarColors__P4400_mk(s); - s.tmp_0.arg0 = 2; - s.callLocIdx = 2296; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - case 17: - case 18: - case 19: - r0 = s.caps[0].fields["updateHasBeenCalled"]; + s.y___78465 = (0); + case 10: + s.tmp_1 = r0 = s.y___78465; + r0 = pxsim_ImageMethods.height(s.result___78454); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = pxsim_ImageMethods.getPixel(s.result___78454, s.x___78459, s.y___78465); + s.c___78471 = (r0); + s.tmp_0 = r0 = s.c___78471; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 20; continue; } + if (r0) { step = 11; continue; } r0 = s.tmp_0; - { step = 21; continue; } - case 20: - r0 = s.caps[0].fields["fireHasStarted"]; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 22; continue; } - r0 = s.tmp_1; - { step = 23; continue; } - case 22: - r0 = (s.activeFires___17418 == 0); - case 23: + { step = 12; continue; } + case 11: + s.tmp_1 = Math_FastRandom_percentChance__P67265_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg3; + s.callLocIdx = 1945; s.pc = 28; return s.tmp_1; + case 28: + r0 = s.retval; + case 12: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 24; continue; } - r0 = (s.unburntTrees___17417 / s.totalTrees___17474); - s.tmp_4 = r0; - r0 = (s.tmp_4 * 100); - s.tmp_3 = r0; - r0 = pxsim.Math_.round(s.tmp_3); - s.score___17501 = (r0); - s.tmp_0 = info_setScore__P2552_mk(s); - s.tmp_0.arg0 = s.score___17501; - s.callLocIdx = 2297; s.pc = 36; return s.tmp_0; - case 36: + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.counts___78443; + s.tmp_4 = r0 = s.c___78471; + r0 = pxsim_Array__getAt(s.tmp_3, s.c___78471); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); + r0 = pxsim_ImageMethods.setPixel(s.result___78454, s.x___78459, s.y___78465, 0); + case 13: + case 14: + r0 = (s.y___78465 + 1); + s.y___78465 = (r0); + { step = 10; continue; } + case 15: + r0 = (s.x___78459 + 1); + s.x___78459 = (r0); + { step = 9; continue; } + case 16: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 17; continue; } + s.tmp_0 = Sprite_setImage__P66590_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.result___78454; + s.callLocIdx = 1946; s.pc = 29; return s.tmp_0; + case 29: r0 = s.retval; - s.tmp_0 = game_splash__P2945_mk(s); - if ((s.score___17501) && (s.score___17501).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.score___17501); - checkResumeConsumed(); - return; - } else { s.retval = (s.score___17501) + ""; } - case 38: + case 17: + case 18: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + s.tmp_3 = helpers_arrayMap__P64325_mk(s); + s.tmp_3.arg0 = s.counts___78443; + s.tmp_3.arg1 = filter_inline__P78506; + s.callLocIdx = 1948; s.pc = 31; return s.tmp_3; + case 31: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat("You saved ", s.tmp_3); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 39); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 39: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = particles_AshFactory_inline__P78513; + s.callLocIdx = 1949; s.pc = 30; return s.tmp_2; + case 30: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "% of the forest!"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 2298; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = game_over__P2992_mk(s); - r0 = (s.score___17501 > 0); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 2299; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - case 24: - case 25: + r0 = (s.tmp_0).fields["colors"] = (s.tmp_1); r0 = undefined; + case 19: return leave(s, r0) default: oops() } } } -forestFire_FireState_inline__P17415.info = {"start":1694,"length":1768,"line":53,"column":26,"endLine":97,"endColumn":13,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"inline","argumentNames":[]} +particles_AshFactory_constructor__P67431.info = {"start":11775,"length":1466,"line":385,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","anchor","updateImage","percentKept"]} -function forestFire_FireState_inline__P17415_mk(s) { +function particles_AshFactory_constructor__P67431_mk(s) { checkStack(s.depth); return { - parent: s, fn: forestFire_FireState_inline__P17415, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_constructor__P67431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29827,23 +28759,23 @@ function forestFire_FireState_inline__P17415_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - burntTrees___17416: undefined, - unburntTrees___17417: undefined, - activeFires___17418: undefined, - tile___17420: undefined, - unnamed126___U4: undefined, - unnamed127___U5: undefined, - x___17429: undefined, - y___17436: undefined, - totalTrees___17474: undefined, - score___17501: undefined, + counts___78443: undefined, + i___78445: undefined, + result___78454: undefined, + x___78459: undefined, + y___78465: undefined, + c___78471: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function hud_updateFireNumber__P4401(s) { +function filter_inline__P78506(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29855,28 +28787,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - globals.fireNumber___7112 = (s.arg0); - r0 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C69604_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ColorCount_constructor__P69605_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg0; + s.callLocIdx = 1947; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -hud_updateFireNumber__P4401.info = {"start":4626,"length":83,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateFireNumber","argumentNames":["fires"]} +filter_inline__P78506.info = {"start":13124,"length":62,"line":421,"column":21,"endLine":421,"endColumn":83,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["value","index"]} -function hud_updateFireNumber__P4401_mk(s) { +function filter_inline__P78506_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_updateFireNumber__P4401, depth: s.depth + 1, + parent: s, fn: filter_inline__P78506, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function hud_updateDangerBarColors__P4400(s) { +function particles_AshFactory_inline__P78513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29890,18 +28834,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.fireDangerColor___7115 = (s.arg0); - r0 = undefined; + r0 = s.arg0.fields["count"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 != 0); return leave(s, r0) default: oops() } } } -hud_updateDangerBarColors__P4400.info = {"start":4527,"length":93,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateDangerBarColors","argumentNames":["color"]} +particles_AshFactory_inline__P78513.info = {"start":13212,"length":17,"line":422,"column":24,"endLine":422,"endColumn":41,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["v"]} -function hud_updateDangerBarColors__P4400_mk(s) { +function particles_AshFactory_inline__P78513_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_updateDangerBarColors__P4400, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_inline__P78513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -29909,7 +28855,7 @@ function hud_updateDangerBarColors__P4400_mk(s) { -function hud_updateForestHealth__P4399(s) { +function particles_ColorCount_constructor__P69605(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29922,41 +28868,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = StatusBarSprite_max__P4333_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 2259; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = StatusBarSprite_value__P4331_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2260; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ColorCount__C69604_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (s.arg1); + r0 = (s.arg0).fields["count"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_updateForestHealth__P4399.info = {"start":4377,"length":144,"line":155,"column":4,"endLine":158,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateForestHealth","argumentNames":["max","value"]} +particles_ColorCount_constructor__P69605.info = {"start":11603,"length":59,"line":379,"column":8,"endLine":379,"endColumn":67,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","color","count"]} -function hud_updateForestHealth__P4399_mk(s) { +function particles_ColorCount_constructor__P69605_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_updateForestHealth__P4399, depth: s.depth + 1, + parent: s, fn: particles_ColorCount_constructor__P69605, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function StatusBarSprite_max__P4333(s) { +function particles_AreaFactory_constructor__P67401(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29969,41 +28908,77 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_max_inline__P21008); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = StatusBarSprite_applyChange__P7057_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 2109; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, particles_AreaFactory__C67396_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P67391_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 40; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 90; + s.callLocIdx = 1893; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = (s.arg0).fields["xRange"] = (s.arg1); + r0 = (s.arg0).fields["yRange"] = (s.arg2); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 1; continue; } + r0 = s.arg3; + { step = 2; continue; } case 1: + r0 = 150; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + r0 = s.arg4; + { step = 4; continue; } + case 3: + r0 = 850; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C67258_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P67260_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1894; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_max__P4333.info = {"start":3194,"length":95,"line":102,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} +particles_AreaFactory_constructor__P67401.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} -function StatusBarSprite_max__P4333_mk(s) { +function particles_AreaFactory_constructor__P67401_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max__P4333, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P67401, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function StatusBarSprite_max_inline__P21008(s) { +function Math_FastRandom_percentChance__P67265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30015,34 +28990,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = statusbars_StatusBar_max__P4366_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 2108; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = 100; + s.callLocIdx = 1632; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_0 = r0; + r0 = (s.tmp_0 < s.arg1); return leave(s, r0) default: oops() } } } -StatusBarSprite_max_inline__P21008.info = {"start":3240,"length":41,"line":103,"column":25,"endLine":105,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +Math_FastRandom_percentChance__P67265.info = {"start":2925,"length":106,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["this","percent"]} -function StatusBarSprite_max_inline__P21008_mk(s) { +function Math_FastRandom_percentChance__P67265_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max_inline__P21008, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_percentChance__P67265, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_StatusBar_max__P4366(s) { +function Math_FastRandom_randomRange__P67262(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30055,44 +29037,59 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - s.tmp_0 = statusbars_StatusBar_changeValue__P7084_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["target"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 2134; s.pc = 1; return s.tmp_0; - case 1: + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); + r0 = (s.arg2 > s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = Math_FastRandom_next__P67261_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1629; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - s.tmp_0 = statusbars_StatusBar_updateState__P4372_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2135; s.pc = 2; return s.tmp_0; + s.tmp_1 = r0; + r0 = (s.arg2 - s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 % s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; case 2: - r0 = s.retval; - r0 = undefined; + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -statusbars_StatusBar_max__P4366.info = {"start":15827,"length":109,"line":456,"column":8,"endLine":459,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} +Math_FastRandom_randomRange__P67262.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} -function statusbars_StatusBar_max__P4366_mk(s) { +function Math_FastRandom_randomRange__P67262_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_max__P4366, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P67262, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function statusbars_StatusBar_changeValue__P7084(s) { +function Math_FastRandom_next__P67261(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30102,192 +29099,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.statusHandlers___20849 = undefined; - s.toRun___20852 = undefined; - s.handler___20905 = undefined; - s.h___20929 = undefined; - s.unnamed124___U4 = undefined; - s.unnamed125___U5 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - s.tmp_0 = statusbars_getStatusHandlers__P7096_mk(s); - s.callLocIdx = 2139; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.statusHandlers___20849 = (r0); - s.tmp_0 = r0 = s.statusHandlers___20849; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_pxtcore_mkAction(3, toRun_inline__P20857); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg2); - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_2.arg0 = s.statusHandlers___20849; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 2144; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - case 2: - // jmp value (already in r0) + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; - s.toRun___20852 = (s.tmp_3); - r0 = (s.arg0).fields["target"] = (s.arg1); - r0 = (s.arg0).fields["_max"] = (s.arg2); - r0 = (s.arg1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["hasHitZero"]; + r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["flags"]; + r0 = s.arg0.fields["lfsr"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 & 1); s.tmp_6 = r0; - r0 = (s.tmp_6 & 64); + r0 = (0 - s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = (s.tmp_5 & 46080); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 6: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 13; continue; } - r0 = (s.arg0).fields["hasHitZero"] = (true); - s.tmp_1 = statusbars_getZeroHandlers__P7095_mk(s); - s.callLocIdx = 2145; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = pxsim_Array__mk(); - case 8: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.arg0.fields["kind"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - s.handler___20905 = (r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.handler___20905; - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = s.handler___20905; - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 2146; s.pc = 26; return s.tmp_2; - case 26: - r0 = s.retval; - case 11: - case 12: - { step = 18; continue; } - case 13: - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 14; continue; } - r0 = s.tmp_0; - { step = 15; continue; } - case 14: - r0 = s.arg0.fields["hasHitZero"]; - case 15: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 16; continue; } - r0 = (s.arg0).fields["hasHitZero"] = (false); - case 16: - case 17: - case 18: - s.h___20929 = (undefined); - s.tmp_0 = r0 = s.toRun___20852; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = s.tmp_0; - { step = 20; continue; } - case 19: - r0 = pxsim_Array__mk(); - case 20: - // jmp value (already in r0) - s.tmp_1 = r0; - s.unnamed124___U4 = (s.tmp_1); - s.unnamed125___U5 = (0); - case 21: - s.tmp_0 = r0 = s.unnamed125___U5; - r0 = pxsim_Array__length(s.unnamed124___U4); + r0 = (s.tmp_2 ^ s.tmp_4); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 22; continue; } - r0 = pxsim_Array__getAt(s.unnamed124___U4, s.unnamed125___U5); - s.h___20929 = (r0); - s.tmp_2 = if_handler_2_mk(s); - s.tmp_2.arg0 = s.h___20929; - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg1 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 2); - s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 2); s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 2147; s.pc = 27; return s.tmp_2;; } - else { s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; } - } - case 27: - r0 = s.retval; - r0 = (s.unnamed125___U5 + 1); - s.unnamed125___U5 = (r0); - { step = 21; continue; } - case 22: - s.unnamed124___U4 = (undefined); - r0 = undefined; + r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_changeValue__P7084.info = {"start":16237,"length":1086,"line":474,"column":8,"endLine":499,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"changeValue","argumentNames":["this","current","max"]} +Math_FastRandom_next__P67261.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function statusbars_StatusBar_changeValue__P7084_mk(s) { +function Math_FastRandom_next__P67261_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_changeValue__P7084, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P67261, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30297,22 +29140,14 @@ function statusbars_StatusBar_changeValue__P7084_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - statusHandlers___20849: undefined, - toRun___20852: undefined, - handler___20905: undefined, - h___20929: undefined, - unnamed124___U4: undefined, - unnamed125___U5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function toRun_inline__P20857(s) { +function helpers_arrayMap__P64325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30322,99 +29157,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___78521 = undefined; + s.len___78523 = undefined; + s.i___78526 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["kind"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + s.res___78521 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___78523 = (r0); + s.i___78526 = (0); case 1: - r0 = s.caps[0].fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 64); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 3; continue; } - r0 = s.tmp_6; - { step = 4; continue; } + r0 = (s.i___78526 < s.len___78523); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.res___78521; + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___78526); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.i___78526; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 4; s.pc = 3; return s.tmp_3; case 3: - s.tmp_7 = statusbars_StatusHandler_conditionMet__P7089_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.caps[1]; - s.tmp_7.arg2 = s.caps[2]; - s.callLocIdx = 2140; s.pc = 7; return s.tmp_7; - case 7: - r0 = s.retval; - case 4: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (r0) { step = 5; continue; } - r0 = s.tmp_8; - { step = 6; continue; } - case 5: - s.tmp_11 = statusbars_StatusHandler_conditionMet__P7089_mk(s); - s.tmp_11.arg0 = s.arg0; - r0 = s.caps[0].fields["target"]; - s.tmp_11.arg1 = r0; - r0 = s.caps[0].fields["_max"]; - s.tmp_11.arg2 = r0; - s.callLocIdx = 2143; s.pc = 8; return s.tmp_11; - case 8: r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_Boolean__bang(s.tmp_9); - case 6: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = s.tmp_12; + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___78526 + 1); + s.i___78526 = (r0); + { step = 1; continue; } + case 2: + r0 = s.res___78521; return leave(s, r0) default: oops() } } } -toRun_inline__P20857.info = {"start":16413,"length":227,"line":476,"column":66,"endLine":480,"endColumn":62,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +helpers_arrayMap__P64325.info = {"start":6528,"length":299,"line":229,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayMap","argumentNames":["arr","callbackfn"]} -function toRun_inline__P20857_mk(s) { +function helpers_arrayMap__P64325_mk(s) { checkStack(s.depth); return { - parent: s, fn: toRun_inline__P20857, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P64325, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, + res___78521: undefined, + len___78523: undefined, + i___78526: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_getStatusHandlers__P7096(s) { +function effects_ParticleEffect_constructor__P67462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30424,29 +29227,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P7093_mk(s); - s.tmp_0.arg0 = globals.STATUS_HANDLERS_KEY___7074; - s.callLocIdx = 2225; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, effects_ParticleEffect__C67461_VT)) failedCast(r0); + r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); + r0 = (s.arg0).fields["defaultRate"] = (s.arg1); + r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_getStatusHandlers__P7096.info = {"start":33463,"length":105,"line":955,"column":4,"endLine":957,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getStatusHandlers","argumentNames":[]} +effects_ParticleEffect_constructor__P67462.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} -function statusbars_getStatusHandlers__P7096_mk(s) { +function effects_ParticleEffect_constructor__P67462_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getStatusHandlers__P7096, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P67462, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function statusbars_getZeroHandlers__P7095(s) { +function Sprite_destroy__P66627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30456,29 +29270,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P7093_mk(s); - s.tmp_0.arg0 = globals.ZERO_HANDLERS_KEY___7068; - s.callLocIdx = 2224; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } case 1: + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 2); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 3; continue; } + s.tmp_0 = effects_ParticleEffect_destroy__P67464_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 712; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } + case 3: + s.tmp_0 = Sprite__destroyCore__P66628_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 713; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_getZeroHandlers__P7095.info = {"start":33343,"length":114,"line":951,"column":4,"endLine":953,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getZeroHandlers","argumentNames":[]} +Sprite_destroy__P66627.info = {"start":26333,"length":293,"line":857,"column":4,"endLine":866,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function statusbars_getZeroHandlers__P7095_mk(s) { +function Sprite_destroy__P66627_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getZeroHandlers__P7095, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P66627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function statusbars_StatusHandler_conditionMet__P7089(s) { +function effects_ParticleEffect_destroy__P67464(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30488,91 +29347,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.value___20944 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusHandler__C7088_VT)) failedCast(r0); - r0 = s.arg0.fields["comparisonType"]; + if (!checkSubtype(r0, effects_ParticleEffect__C67461_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 7168; + s.tmp_0.arg2 = true; + s.callLocIdx = 1964; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = effects_ParticleEffect_start__P67463_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = null; + r0 = s.arg1.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 512); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0.arg4 = r0; + s.callLocIdx = 1965; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } - r0 = (s.arg1 / s.arg2); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 100); + r0 = s.arg2; { step = 2; continue; } case 1: - r0 = s.arg1; + r0 = s.arg0.fields["defaultLifespan"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 2); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - s.value___20944 = (s.tmp_3); - r0 = s.arg0.fields["comparison"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } - case 3: - r0 = s.arg0.fields["percent"]; s.tmp_1 = r0; - r0 = (s.value___20944 === s.tmp_1); - { step = 10; continue; } - case 4: - r0 = s.arg0.fields["percent"]; - s.tmp_2 = r0; - r0 = (s.value___20944 !== s.tmp_2); - { step = 10; continue; } + r0 = (s.arg1).fields["lifespan"] = (s.tmp_1); + s.tmp_0 = effects_ImageEffect_applyTo__P67491_mk(s); + s.tmp_0.arg0 = globals.dissolve___67494; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1966; s.pc = 5; return s.tmp_0; case 5: - r0 = s.arg0.fields["percent"]; - s.tmp_3 = r0; - r0 = (s.value___20944 > s.tmp_3); - { step = 10; continue; } - case 6: - r0 = s.arg0.fields["percent"]; - s.tmp_4 = r0; - r0 = (s.value___20944 >= s.tmp_4); - { step = 10; continue; } - case 7: - r0 = s.arg0.fields["percent"]; - s.tmp_5 = r0; - r0 = (s.value___20944 < s.tmp_5); - { step = 10; continue; } - case 8: - r0 = s.arg0.fields["percent"]; - s.tmp_6 = r0; - r0 = (s.value___20944 <= s.tmp_6); - { step = 10; continue; } - case 9: - r0 = false; - { step = 10; continue; } + r0 = s.retval; r0 = undefined; - case 10: return leave(s, r0) default: oops() } } } -statusbars_StatusHandler_conditionMet__P7089.info = {"start":24789,"length":962,"line":710,"column":8,"endLine":731,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"conditionMet","argumentNames":["this","current","max"]} +effects_ParticleEffect_destroy__P67464.info = {"start":1736,"length":368,"line":41,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"destroy","argumentNames":["this","anchor","duration","particlesPerSecond"]} -function statusbars_StatusHandler_conditionMet__P7089_mk(s) { +function effects_ParticleEffect_destroy__P67464_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusHandler_conditionMet__P7089, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P67464, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30580,18 +29418,17 @@ function statusbars_StatusHandler_conditionMet__P7089_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - value___20944: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function statusbars_StatusBar_updateState__P4372(s) { +function dissolve_inline__P78722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30601,210 +29438,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.target___20762 = undefined; - s.displayValue___20763 = undefined; - s.currTime___20778 = undefined; - s.change___20793 = undefined; + s.i___78725 = undefined; + s.x___78736 = undefined; + s.y___78742 = undefined; + s.w___78748 = undefined; + s.h___78752 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - s.tmp_0 = if_target_1_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "target"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["target"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["target"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 2160; s.pc = 12; return s.tmp_0; } - } - case 12: - r0 = s.retval; - s.target___20762 = (r0); - s.tmp_2 = if_displayValue_1_mk(s); - s.tmp_2.arg0 = s.tmp_1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "displayValue"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["displayValue"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["displayValue"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 2161; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - s.displayValue___20763 = (r0); - r0 = s.arg0.fields["flags"]; + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.arg0; - s.tmp_4 = Math_constrain__P284_mk(s); - s.tmp_4.arg0 = s.target___20762; - s.tmp_4.arg1 = 0; - r0 = s.arg0.fields["_max"]; - s.tmp_4.arg2 = r0; - s.callLocIdx = 2163; s.pc = 14; return s.tmp_4; - case 14: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["target"] = (s.tmp_3); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_constrain__P284_mk(s); - s.tmp_2.arg0 = s.displayValue___20763; - s.tmp_2.arg1 = 0; - r0 = s.arg0.fields["_max"]; - s.tmp_2.arg2 = r0; - s.callLocIdx = 2165; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["displayValue"] = (s.tmp_1); + r0 = (s.tmp_0 >> 5); + s.i___78725 = (r0); case 1: - case 2: - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2166; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.currTime___20778 = (r0); - s.tmp_2 = Math_abs__P128_mk(s); - r0 = s.arg0.fields["lastUpdate"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.currTime___20778); - s.tmp_2.arg0 = r0; - s.callLocIdx = 2168; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg0.fields["throttleAmount"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 < s.tmp_4); + r0 = (s.i___78725 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 11; continue; } + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1.arg2 = r0; + s.callLocIdx = 63; s.pc = 3; return s.tmp_1; case 3: - case 4: - r0 = s.arg0.fields["_max"]; - s.tmp_5 = r0; - s.tmp_8 = Math_max__P130_mk(s); - r0 = s.arg0.fields["_barWidth"]; - s.tmp_8.arg0 = r0; - r0 = s.arg0.fields["_barHeight"]; - s.tmp_8.arg1 = r0; - s.callLocIdx = 2170; s.pc = 18; return s.tmp_8; - case 18: r0 = s.retval; - s.tmp_7 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 * 2); - s.tmp_9 = r0; - r0 = (s.tmp_7 - s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_5 / s.tmp_6); - s.change___20793 = (r0); - r0 = s.arg0.fields["target"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["displayValue"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = Math_min__P131_mk(s); - r0 = (s.displayValue___20763 + s.change___20793); - s.tmp_5.arg0 = r0; - r0 = s.arg0.fields["target"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 2171; s.pc = 19; return s.tmp_5; - case 19: + s.x___78736 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 64; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); - r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___20778); - { step = 8; continue; } + s.y___78742 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 65; s.pc = 5; return s.tmp_0; case 5: - r0 = s.arg0.fields["target"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["displayValue"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = Math_max__P130_mk(s); - r0 = (s.displayValue___20763 - s.change___20793); - s.tmp_5.arg0 = r0; - r0 = s.arg0.fields["target"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 2172; s.pc = 20; return s.tmp_5; - case 20: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); - r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___20778); + s.w___78748 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 66; s.pc = 6; return s.tmp_0; case 6: + r0 = s.retval; + s.h___78752 = (r0); + s.tmp_0 = helpers_imageDrawRect__P66161_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.x___78736; + s.tmp_0.arg2 = s.y___78742; + s.tmp_0.arg3 = s.w___78748; + s.tmp_0.arg4 = s.h___78752; + s.tmp_0.arg5 = 0; + s.callLocIdx = 67; s.pc = 7; return s.tmp_0; case 7: - case 8: - r0 = s.arg0.fields["displayValue"]; - s.tmp_1 = r0; - r0 = (s.displayValue___20763 !== s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_2 = statusbars_StatusBar_updateDisplay__P4373_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 2173; s.pc = 21; return s.tmp_2; - case 21: r0 = s.retval; - case 9: - case 10: - case 11: + r0 = (s.i___78725 - 1); + s.i___78725 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_updateState__P4372.info = {"start":18795,"length":1067,"line":549,"column":8,"endLine":573,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateState","argumentNames":["this"]} +dissolve_inline__P78722.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} -function statusbars_StatusBar_updateState__P4372_mk(s) { +function dissolve_inline__P78722_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_updateState__P4372, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P78722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - target___20762: undefined, - displayValue___20763: undefined, - currTime___20778: undefined, - change___20793: undefined, + i___78725: undefined, + x___78736: undefined, + y___78742: undefined, + w___78748: undefined, + h___78752: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_StatusBar_current__P4367(s) { +function helpers_imageDrawRect__P66161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30816,30 +29548,108 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - r0 = s.arg0.fields["target"]; - return leaveAccessor(s, r0) + r0 = (s.arg3 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg4 == 0); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = (s.arg3 - 1); + s.arg3 = (r0); + r0 = (s.arg4 - 1); + s.arg4 = (r0); + s.tmp_0 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 193; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 194; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 195; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P66160_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 196; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -statusbars_StatusBar_current__P4367.info = {"start":15946,"length":57,"line":461,"column":8,"endLine":463,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this"]} -statusbars_StatusBar_current__P4367.isGetter = true; +helpers_imageDrawRect__P66161.info = {"start":5325,"length":370,"line":167,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function statusbars_StatusBar_current__P4367_mk(s) { +function helpers_imageDrawRect__P66161_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_current__P4367, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P66161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function statusbars_StatusBar_max__P4365(s) { +function effects_ImageEffect_constructor__P67490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30851,30 +29661,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - r0 = s.arg0.fields["_max"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, effects_ImageEffect__C67489_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C67258_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P67260_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1990; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); + r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); + r0 = (s.arg0).fields["times"] = (undefined); + r0 = undefined; + return leave(s, r0) default: oops() } } } -statusbars_StatusBar_max__P4365.info = {"start":15766,"length":51,"line":452,"column":8,"endLine":454,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} -statusbars_StatusBar_max__P4365.isGetter = true; +effects_ImageEffect_constructor__P67490.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]} -function statusbars_StatusBar_max__P4365_mk(s) { +function effects_ImageEffect_constructor__P67490_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_max__P4365, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P67490, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function StatusBarSprite_max__P4332(s) { +function effects_ImageEffect_applyTo__P67491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30884,51 +29711,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.clonedImage___78853 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - s.tmp_1 = StatusBarSprite_applyChange__P7057_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = StatusBarSprite_max_inline__P21022; - s.callLocIdx = 2107; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + if (!checkSubtype(r0, effects_ImageEffect__C67489_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 0; + r0 = s.arg1.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - return leaveAccessor(s, r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg1.fields["_image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_5); + s.clonedImage___78853 = (r0); + s.tmp_0 = effects_ImageEffect_change__P67492_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.clonedImage___78853; + s.callLocIdx = 1993; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_setImage__P66590_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.clonedImage___78853; + s.callLocIdx = 1994; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -StatusBarSprite_max__P4332.info = {"start":3111,"length":77,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} -StatusBarSprite_max__P4332.isGetter = true; +effects_ImageEffect_applyTo__P67491.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} -function StatusBarSprite_max__P4332_mk(s) { +function effects_ImageEffect_applyTo__P67491_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max__P4332, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P67491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + clonedImage___78853: undefined, arg0: undefined, + arg1: undefined, } } -function StatusBarSprite_max_inline__P21022(s) { +function effects_ImageEffect_change__P67492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30940,27 +29796,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["_max"]; + r0 = s.arg0; + if (!checkSubtype(r0, effects_ImageEffect__C67489_VT)) failedCast(r0); + s.tmp_0 = if_effect_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + r0 = s.arg0.fields["fastRandom"]; + s.tmp_0.arg2 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3); + s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["effect"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["effect"], 3); s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1995; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1995; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_max_inline__P21022.info = {"start":3163,"length":12,"line":99,"column":32,"endLine":99,"endColumn":44,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +effects_ImageEffect_change__P67492.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]} -function StatusBarSprite_max_inline__P21022_mk(s) { +function effects_ImageEffect_change__P67492_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max_inline__P21022, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P67492, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function StatusBarSprite_value__P4331(s) { +function effects_ParticleEffect_start__P67463(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30970,44 +29847,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.src___78877 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_value_inline__P20740); + if (!checkSubtype(r0, effects_ParticleEffect__C67461_VT)) failedCast(r0); + r0 = s.arg0.fields["sourceFactory"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = StatusBarSprite_applyChange__P7057_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 2105; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 9; continue; } case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 3; continue; } + r0 = s.arg3; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["defaultRate"]; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_4 = if_sourceFactory_3_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.tmp_3; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "sourceFactory"), 3); + s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["sourceFactory"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1962; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1962; s.pc = 10; return s.tmp_4; } + } + case 10: + r0 = s.retval; + s.src___78877 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P67361_mk(s); + s.tmp_0.arg0 = s.src___78877; + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1963; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 7; continue; } + r0 = (s.arg2 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.arg2; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["defaultLifespan"]; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.src___78877).fields["lifespan"] = (s.tmp_1); + case 7: + case 8: + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_value__P4331.info = {"start":2861,"length":101,"line":89,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this","v"]} +effects_ParticleEffect_start__P67463.info = {"start":967,"length":452,"line":26,"column":8,"endLine":32,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"start","argumentNames":["this","anchor","duration","particlesPerSecond","relativeToCamera"]} -function StatusBarSprite_value__P4331_mk(s) { +function effects_ParticleEffect_start__P67463_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value__P4331, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P67463, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + src___78877: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function StatusBarSprite_value_inline__P20740(s) { +function particles_ParticleSource_setRelativeToCamera__P67361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31019,34 +29964,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = statusbars_StatusBar_current__P4368_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 2104; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + { step = 2; continue; } case 1: - r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 4); + s.tmp_2 = r0; + r0 = (~ s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_value_inline__P20740.info = {"start":2909,"length":45,"line":90,"column":25,"endLine":92,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +particles_ParticleSource_setRelativeToCamera__P67361.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} -function StatusBarSprite_value_inline__P20740_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P67361_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value_inline__P20740, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P67361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_StatusBar_current__P4368(s) { +function Sprite__destroyCore__P66628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31056,63 +30024,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___78648 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - s.tmp_0 = statusbars_StatusBar_changeValue__P7084_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = s.arg0.fields["_max"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 2137; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = s.arg0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 1); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 | 2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 714; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.scene___78648 = (r0); + r0 = s.scene___78648.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["displayValue"] = (s.arg1); + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.scene___78648.fields["spritesByKind"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["_kind"]; + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); case 2: - s.tmp_0 = statusbars_StatusBar_updateState__P4372_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2138; s.pc = 4; return s.tmp_0; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + s.tmp_5 = sprites_SpriteSet_remove__P66669_mk(s); + r0 = s.scene___78648.fields["spritesByKind"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["_kind"]; + s.tmp_7 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.callLocIdx = 718; s.pc = 8; return s.tmp_5; + case 8: + r0 = s.retval; + case 3: case 4: + s.tmp_0 = PhysicsEngine__C66710_v1_2_mk(s); + r0 = s.scene___78648.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite; + s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = s.arg0.fields["destroyHandler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = if_destroyHandler_1_mk(s); + s.tmp_1.arg0 = s.arg0; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); + s.callLocIdx = 719; s.pc = 10; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 719; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 719; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 719; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + case 5: + case 6: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P78677); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P78683); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_3 = helpers_arrayFilter__P64329_mk(s); + r0 = s.scene___78648.fields["destroyedHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 721; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 723; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_current__P4368.info = {"start":16013,"length":214,"line":465,"column":8,"endLine":472,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this","v"]} +Sprite__destroyCore__P66628.info = {"start":26632,"length":522,"line":868,"column":4,"endLine":880,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function statusbars_StatusBar_current__P4368_mk(s) { +function Sprite__destroyCore__P66628_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_current__P4368, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P66628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + scene___78648: undefined, arg0: undefined, - arg1: undefined, } } -function StatusBarSprite_value__P4330(s) { +function forEach_inline__P78677(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31126,39 +30165,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - s.tmp_1 = StatusBarSprite_applyChange__P7057_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = StatusBarSprite_value_inline__P21000; - s.callLocIdx = 2103; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - return leaveAccessor(s, r0) + r0 = s.caps[0].fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); + return leave(s, r0) default: oops() } } } -StatusBarSprite_value__P4330.info = {"start":2772,"length":83,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this"]} -StatusBarSprite_value__P4330.isGetter = true; +forEach_inline__P78677.info = {"start":27077,"length":26,"line":878,"column":20,"endLine":878,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function StatusBarSprite_value__P4330_mk(s) { +function forEach_inline__P78677_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value__P4330, depth: s.depth + 1, + parent: s, fn: forEach_inline__P78677, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -31166,7 +30189,7 @@ function StatusBarSprite_value__P4330_mk(s) { -function StatusBarSprite_value_inline__P21000(s) { +function Sprite__destroyCore_inline__P78683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31180,17 +30203,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["target"]; + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 722; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 722; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 722; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 722; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_value_inline__P21000.info = {"start":2826,"length":16,"line":86,"column":32,"endLine":86,"endColumn":48,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +Sprite__destroyCore_inline__P78683.info = {"start":27126,"length":20,"line":879,"column":21,"endLine":879,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function StatusBarSprite_value_inline__P21000_mk(s) { +function Sprite__destroyCore_inline__P78683_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value_inline__P21000, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P78683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -31198,7 +30236,7 @@ function StatusBarSprite_value_inline__P21000_mk(s) { -function game_over__P2992(s) { +function PhysicsEngine_removeSprite__P66713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31208,46 +30246,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.goc___17528 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1587; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.goc___17528 = (r0); - s.tmp_0 = game_GameOverConfig_setEffect__P2971_mk(s); - s.tmp_0.arg0 = s.goc___17528; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = false; - s.callLocIdx = 1588; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = game__gameOverImpl__P5017_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1589; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C66710_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_over__P2992.info = {"start":10625,"length":262,"line":328,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} +PhysicsEngine_removeSprite__P66713.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function game_over__P2992_mk(s) { +function PhysicsEngine_removeSprite__P66713_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_over__P2992, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P66713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - goc___17528: undefined, arg0: undefined, arg1: undefined, } } @@ -31256,7 +30272,41 @@ function game_over__P2992_mk(s) { -function game__gameOverImpl__P5017(s) { +function Sprite_kind__P66606(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_kind"]; + return leave(s, r0) + default: oops() +} } } +Sprite_kind__P66606.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} + +function Sprite_kind__P66606_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_kind__P66606, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_onOverlapTile__P66659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31266,366 +30316,197 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.goc___17547 = undefined; - s.judged___17550 = undefined; - s.playersWithScores___17558 = undefined; - s.prevBestScore___17561 = undefined; - s.winner___17565 = undefined; - s.scores___17571 = undefined; - s.preferMultiplayer___17592 = undefined; - s.message___17600 = undefined; - s.effect___17606 = undefined; - s.sound___17611 = undefined; - s.looping___17616 = undefined; - s.playbackMode___17621 = undefined; - s.overDialog___17647 = undefined; + s.tileOverlapHandlers___78946 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P5015_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 1591; s.pc = 32; return s.tmp_0; - case 32: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__isOver___5014); + r0 = (s.arg0 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 31; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - case 2: - globals.__isOver___5014 = (true); - r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___5012); - if (!r0) { step = 3; continue; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = globals.__gameOverHandler___5012; - s.tmp_0.arg0 = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1592; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - { step = 30; continue; } - case 3: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1593; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - s.goc___17547 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - r0 = s.goc___17547.fields["scoringType"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 !== 2); - case 5: + case 2: // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.tmp_2; + { step = 4; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.arg2); s.tmp_3 = r0; - s.judged___17550 = (s.tmp_3); - s.tmp_0 = info_playersWithScores__P2544_mk(s); - s.callLocIdx = 1594; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.playersWithScores___17558 = (r0); - s.tmp_0 = r0 = s.judged___17550; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_3); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } { step = 7; continue; } + case 5: case 6: - s.tmp_1 = info_highScore__P2551_mk(s); - s.callLocIdx = 1595; s.pc = 36; return s.tmp_1; - case 36: - r0 = s.retval; - case 7: - // jmp value (already in r0) - s.tmp_2 = r0; - s.prevBestScore___17561 = (s.tmp_2); - s.tmp_0 = r0 = s.judged___17550; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } + s.tmp_5 = game_currentScene__P67198_mk(s); + s.callLocIdx = 796; s.pc = 8; return s.tmp_5; case 8: - r0 = s.arg0; + r0 = s.retval; + r0 = r0.fields["tileOverlapHandlers"]; + s.tileOverlapHandlers___78946 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_TileOverlapHandler__C67017_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_TileOverlapHandler_constructor__P67018_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.arg2; + s.callLocIdx = 797; s.pc = 9; return s.tmp_1; case 9: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 10; continue; } - r0 = s.tmp_1; - { step = 11; continue; } - case 10: - s.tmp_2 = info_winningPlayer__P2546_mk(s); - s.callLocIdx = 1596; s.pc = 37; return s.tmp_2; - case 37: r0 = s.retval; - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - s.winner___17565 = (s.tmp_3); - r0 = pxsim_pxtcore_mkAction(1, scores_inline__P17573); + r0 = pxsim_Array__push(s.tileOverlapHandlers___78946, s.tmp_0); + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_onOverlapTile__P66659.info = {"start":2786,"length":432,"line":89,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlapTile","argumentNames":["kind","tile","handler"]} + +function scene_onOverlapTile__P66659_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_onOverlapTile__P66659, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tileOverlapHandlers___78946: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function scene_TileOverlapHandler_constructor__P67018(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_TileOverlapHandler__C67017_VT)) failedCast(r0); + r0 = (s.arg0).fields["spriteKind"] = (s.arg1); + r0 = (s.arg0).fields["tileKind"] = (s.arg2); + r0 = (s.arg0).fields["handler"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_TileOverlapHandler_constructor__P67018.info = {"start":1075,"length":180,"line":37,"column":8,"endLine":41,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","spriteKind","tileKind","handler"]} + +function scene_TileOverlapHandler_constructor__P67018_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_TileOverlapHandler_constructor__P67018, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function music_createSoundEffect__P65997(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.result___78970 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(music_SoundEffect__C65984_VT); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.winner___17565); - s.tmp_1 = helpers_arrayMap__P106_mk(s); - s.tmp_1.arg0 = s.playersWithScores___17558; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1600; s.pc = 38; return s.tmp_1; - case 38: + s.tmp_1 = music_SoundEffect_constructor__P65993_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 140; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.scores___17571 = (r0); - s.tmp_0 = r0 = s.judged___17550; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 12; continue; } - r0 = s.tmp_0; - { step = 13; continue; } - case 12: - r0 = s.winner___17565; - case 13: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 14; continue; } - s.tmp_2 = info_saveAllScores__P2545_mk(s); - s.callLocIdx = 1601; s.pc = 39; return s.tmp_2; - case 39: - r0 = s.retval; - s.tmp_0 = info_saveHighScore__P2548_mk(s); - s.callLocIdx = 1602; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - case 14: - case 15: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 16: - s.tmp_4 = r0 = s.judged___17550; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 17; continue; } - r0 = s.tmp_4; - { step = 18; continue; } - case 17: - s.tmp_5 = info_multiplayerScoring__P2543_mk(s); - s.callLocIdx = 1603; s.pc = 41; return s.tmp_5; - case 41: - r0 = s.retval; - case 18: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; - case 19: - // jmp value (already in r0) - s.tmp_7 = r0; - s.preferMultiplayer___17592 = (s.tmp_7); - s.tmp_0 = game_GameOverConfig_getMessage__P2977_mk(s); - s.tmp_0.arg0 = s.goc___17547; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.preferMultiplayer___17592; - s.callLocIdx = 1604; s.pc = 42; return s.tmp_0; - case 42: - r0 = s.retval; - s.message___17600 = (r0); - s.tmp_0 = game_GameOverConfig_getEffect__P2972_mk(s); - s.tmp_0.arg0 = s.goc___17547; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1605; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.effect___17606 = (r0); - s.tmp_0 = game_GameOverConfig_getSound__P2974_mk(s); - s.tmp_0.arg0 = s.goc___17547; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1606; s.pc = 44; return s.tmp_0; - case 44: - r0 = s.retval; - s.sound___17611 = (r0); - s.tmp_0 = game_GameOverConfig_getSoundLooping__P2975_mk(s); - s.tmp_0.arg0 = s.goc___17547; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1607; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.looping___17616 = (r0); - r0 = pxsim_numops_toBoolDecr(s.looping___17616); - if (!r0) { step = 20; continue; } - r0 = 2; - { step = 21; continue; } - case 20: - r0 = 1; - case 21: - // jmp value (already in r0) - s.tmp_0 = r0; - s.playbackMode___17621 = (s.tmp_0); - case 22: - s.tmp_0 = r0 = globals._sceneStack___5008; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 23; continue; } - r0 = s.tmp_0; - { step = 24; continue; } - case 23: - r0 = pxsim_Array__length(globals._sceneStack___5008); - case 24: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 25; continue; } - s.tmp_2 = scene_Scene_destroy__P2851_mk(s); - s.tmp_2.arg0 = globals._scene___5007; - s.callLocIdx = 1608; s.pc = 46; return s.tmp_2; - case 46: - r0 = s.retval; - s.tmp_0 = game_popScene__P2984_mk(s); - s.callLocIdx = 1609; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - { step = 22; continue; } - case 25: - s.tmp_0 = game_pushScene__P2983_mk(s); - s.callLocIdx = 1610; s.pc = 48; return s.tmp_0; - case 48: - r0 = s.retval; - s.tmp_0 = scene_setBackgroundImage__P2865_mk(s); - r0 = pxsim_ImageMethods.clone(globals.screen___2013); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1611; s.pc = 49; return s.tmp_0; - case 49: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.sound___17611); - if (!r0) { step = 26; continue; } - s.tmp_0 = music_play__P1907_mk(s); - s.tmp_0.arg0 = s.sound___17611; - s.tmp_0.arg1 = s.playbackMode___17621; - s.callLocIdx = 1612; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - case 26: - case 27: - r0 = pxsim_numops_toBoolDecr(s.effect___17606); - if (!r0) { step = 28; continue; } - s.tmp_0 = if_startScreenEffect_1_mk(s); - s.tmp_0.arg0 = s.effect___17606; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "startScreenEffect"), 1); - s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["startScreenEffect"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["startScreenEffect"], 1); s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1613; s.pc = 51; return s.tmp_0;; } - else { s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; } - } - case 51: - r0 = s.retval; - case 28: - case 29: - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 400; - s.callLocIdx = 1614; s.pc = 52; return s.tmp_0; - case 52: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C2926_VT); - s.tmp_0 = r0; - s.tmp_1 = game_GameOverDialog_constructor__P2933_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.message___17600; - s.tmp_1.arg3 = s.judged___17550; - s.tmp_1.arg4 = s.scores___17571; - s.tmp_1.arg5 = s.prevBestScore___17561; - s.tmp_1.arg6 = s.arg1; - s.callLocIdx = 1615; s.pc = 53; return s.tmp_1; - case 53: - r0 = s.retval; - s.overDialog___17647 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(1, game__gameOverImpl_inline__P17659); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___17647); - s.tmp_1 = scene_createRenderable__P2785_mk(s); - s.tmp_1.arg0 = 100; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 1616; s.pc = 54; return s.tmp_1; - case 54: - r0 = s.retval; - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 500; - s.callLocIdx = 1617; s.pc = 55; return s.tmp_0; - case 55: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog_displayCursor__P2934_mk(s); - s.tmp_0.arg0 = s.overDialog___17647; - s.callLocIdx = 1618; s.pc = 56; return s.tmp_0; - case 56: - r0 = s.retval; - s.tmp_0 = game_waitAnyButton__P2981_mk(s); - s.callLocIdx = 1619; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - setupResume(s, 58); - pxsim.control.reset(); - checkResumeConsumed(); - return; - case 58: - r0 = s.retval; - case 30: - case 31: - r0 = undefined; + s.result___78970 = (s.tmp_0); + r0 = (s.result___78970).fields["waveShape"] = (s.arg0); + r0 = (s.result___78970).fields["startFrequency"] = (s.arg1); + r0 = (s.result___78970).fields["endFrequency"] = (s.arg2); + r0 = (s.result___78970).fields["startVolume"] = (s.arg3); + r0 = (s.result___78970).fields["endVolume"] = (s.arg4); + r0 = (s.result___78970).fields["duration"] = (s.arg5); + r0 = (s.result___78970).fields["effect"] = (s.arg6); + r0 = (s.result___78970).fields["interpolation"] = (s.arg7); + r0 = s.result___78970; return leave(s, r0) default: oops() } } } -game__gameOverImpl__P5017.info = {"start":11264,"length":2533,"line":350,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"_gameOverImpl","argumentNames":["win","winnerOverride"]} +music_createSoundEffect__P65997.info = {"start":4915,"length":637,"line":161,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"createSoundEffect","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation"]} -function game__gameOverImpl__P5017_mk(s) { +function music_createSoundEffect__P65997_mk(s) { checkStack(s.depth); return { - parent: s, fn: game__gameOverImpl__P5017, depth: s.depth + 1, + parent: s, fn: music_createSoundEffect__P65997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - goc___17547: undefined, - judged___17550: undefined, - playersWithScores___17558: undefined, - prevBestScore___17561: undefined, - winner___17565: undefined, - scores___17571: undefined, - preferMultiplayer___17592: undefined, - message___17600: undefined, - effect___17606: undefined, - sound___17611: undefined, - looping___17616: undefined, - playbackMode___17621: undefined, - overDialog___17647: undefined, + result___78970: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, } } -function scores_inline__P17573(s) { +function music_SoundEffect_constructor__P65993(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31639,38 +30520,28 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverPlayerScore__C2923_VT); - s.tmp_0 = r0; - s.tmp_1 = game_GameOverPlayerScore_constructor__P2925_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["_player"]; - s.tmp_1.arg1 = r0; - s.tmp_2 = info_PlayerInfoImpl_score__P2586_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1598; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg2 = r0; - r0 = (s.arg0 === s.caps[0]); - s.tmp_1.arg3 = r0; - s.callLocIdx = 1599; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, music_SoundEffect__C65984_VT)) failedCast(r0); + r0 = undefined; + r0 = (s.arg0).fields["waveShape"] = (0); + r0 = (s.arg0).fields["startFrequency"] = (5000); + r0 = (s.arg0).fields["endFrequency"] = (1); + r0 = (s.arg0).fields["startVolume"] = (255); + r0 = (s.arg0).fields["endVolume"] = (0); + r0 = (s.arg0).fields["duration"] = (1000); + r0 = (s.arg0).fields["effect"] = (0); + r0 = (s.arg0).fields["interpolation"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -scores_inline__P17573.info = {"start":11859,"length":88,"line":364,"column":49,"endLine":364,"endColumn":137,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["player"]} +music_SoundEffect_constructor__P65993.info = {"start":998,"length":382,"line":51,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["this"]} -function scores_inline__P17573_mk(s) { +function music_SoundEffect_constructor__P65993_mk(s) { checkStack(s.depth); return { - parent: s, fn: scores_inline__P17573, depth: s.depth + 1, + parent: s, fn: music_SoundEffect_constructor__P65993, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -31678,7 +30549,7 @@ function scores_inline__P17573_mk(s) { -function game__gameOverImpl_inline__P17659(s) { +function music_play__P66126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31690,55 +30561,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_GameOverDialog__C2926_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2926_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.tmp_0 = music_Playable__C66115_v0_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + if (!checkSubtype(s.tmp_0.arg0, music_Playable__C66115_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.play; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.caps[0].fields["image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_4 = r0; - r0 = s.caps[0].fields["image"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, 0, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -game__gameOverImpl_inline__P17659.info = {"start":13362,"length":254,"line":394,"column":48,"endLine":401,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} +music_play__P66126.info = {"start":2835,"length":109,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["toPlay","playbackMode"]} -function game__gameOverImpl_inline__P17659_mk(s) { +function music_play__P66126_mk(s) { checkStack(s.depth); return { - parent: s, fn: game__gameOverImpl_inline__P17659, depth: s.depth + 1, + parent: s, fn: music_play__P66126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, + arg1: undefined, } } -function game_init__P5015(s) { +function music_Playable_play__P66118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31750,69 +30604,31 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___5007); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: r0 = s.arg0; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C2823_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P2846_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P409_mk(s); - s.callLocIdx = 1572; s.pc = 6; return s.tmp_5; - case 6: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___5007; - s.callLocIdx = 1573; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - globals._scene___5007 = (s.tmp_3); - case 3: - case 4: - s.tmp_0 = scene_Scene_init__P2847_mk(s); - s.tmp_0.arg0 = globals._scene___5007; - s.callLocIdx = 1574; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; + if (!checkSubtype(r0, music_Playable__C66115_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P5015.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +music_Playable_play__P66118.info = {"start":1122,"length":68,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["this","playbackMode"]} -function game_init__P5015_mk(s) { +function music_Playable_play__P66118_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P5015, depth: s.depth + 1, + parent: s, fn: music_Playable_play__P66118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Scene_init__P2847(s) { +function helpers_getImageByName__P67535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31826,122 +30642,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = helpers__getFactoryInstance__P67532_mk(s); + s.tmp_0.arg0 = "image"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2013; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_1 = power_poke__P1914_mk(s); - s.callLocIdx = 1344; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); - r0 = (s.arg0).fields["spriteNextId"] = (0); - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P11914); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 8; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1347; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P2114; - s.callLocIdx = 1348; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P11938); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 15; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1350; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P11951); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 55; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1354; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P11972); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 90; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1356; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P11980); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 150; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1360; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P1974; - s.callLocIdx = 1361; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = multiplayer_initServer__P3368_mk(s); - s.callLocIdx = 1362; s.pc = 12; return s.tmp_0; - case 12: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P12010); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___2845; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1364; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; - case 3: - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init__P2847.info = {"start":4432,"length":2515,"line":127,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +helpers_getImageByName__P67535.info = {"start":2881,"length":103,"line":87,"column":4,"endLine":89,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getImageByName","argumentNames":["name"]} -function scene_Scene_init__P2847_mk(s) { +function helpers_getImageByName__P67535_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P2847, depth: s.depth + 1, + parent: s, fn: helpers_getImageByName__P67535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -31949,7 +30666,7 @@ function scene_Scene_init__P2847_mk(s) { -function scene_Scene_init_inline__P11914(s) { +function assets_image__P67526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31959,47 +30676,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; - s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P2146_mk(s); - r0 = s.caps[0].fields["eventContext"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1346; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = null; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P11914.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +assets_image__P67526.info = {"start":931,"length":71,"line":26,"column":4,"endLine":26,"endColumn":75,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"image","argumentNames":["lits","args"]} -function scene_Scene_init_inline__P11914_mk(s) { +function assets_image__P67526_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P11914, depth: s.depth + 1, + parent: s, fn: assets_image__P67526, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_init_inline__P11938(s) { +function sprites_spray__P68633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32009,251 +30710,249 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C2491_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; - case 1: + s.waterProj___79110 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.up___66316; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 31; return s.tmp_1; + case 31: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_init_inline__P11938.info = {"start":5234,"length":159,"line":143,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function scene_Scene_init_inline__P11938_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_init_inline__P11938, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function scene_Scene_init_inline__P11951(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.dt___11952 = undefined; - s.s___11960 = undefined; - s.unnamed114___U2 = undefined; - s.unnamed115___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___11952 = (r0); - s.tmp_0 = scene_Camera_update__P2778_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1352; s.pc = 3; return s.tmp_0; - case 3: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_3 = controller_Button__C66389_v0_1_mk(s); + s.tmp_3.arg0 = globals.left___66315; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 32; return s.tmp_3; + case 32: r0 = s.retval; - s.s___11960 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed114___U2 = (r0); - s.unnamed115___U3 = (0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + globals.facing___71345 = (225); + { step = 6; continue; } case 1: - s.tmp_0 = r0 = s.unnamed115___U3; - r0 = pxsim_Array__length(s.unnamed114___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.right___66317; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 33; return s.tmp_1; + case 33: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed114___U2, s.unnamed115___U3); - s.s___11960 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___11960; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___11952; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__update"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__update"], 3); s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1353; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 1353; s.pc = 4; return s.tmp_2; } - } + globals.facing___71345 = (315); + { step = 5; continue; } + case 2: + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.down___66318; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 34; return s.tmp_1; + case 34: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 4; continue; } + case 3: + globals.facing___71345 = (270); case 4: + case 5: + case 6: + { step = 20; continue; } + case 7: + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.left___66315; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 35; return s.tmp_1; + case 35: r0 = s.retval; - r0 = (s.unnamed115___U3 + 1); - s.unnamed115___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed114___U2 = (undefined); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_init_inline__P11951.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function scene_Scene_init_inline__P11951_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_init_inline__P11951, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - dt___11952: undefined, - s___11960: undefined, - unnamed114___U2: undefined, - unnamed115___U3: undefined, -} } - - - - - -function scene_Scene_init_inline__P11972(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = scene_Scene_render__P2852_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1355; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_3 = controller_Button__C66389_v0_1_mk(s); + s.tmp_3.arg0 = globals.right___66317; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 36; return s.tmp_3; + case 36: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_init_inline__P11972.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function scene_Scene_init_inline__P11972_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_init_inline__P11972, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function scene_Scene_init_inline__P11980(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = r0 = globals.stats___2948; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = globals.control_EventContext_onStats___398; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = globals.control_EventContext_onStats___398; - if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___397); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + { step = 11; continue; } case 8: + s.tmp_5 = controller_Button__C66389_v0_1_mk(s); + s.tmp_5.arg0 = globals.down___66318; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 37; return s.tmp_5; + case 37: r0 = s.retval; - s.tmp_3 = r0; - r0 = s.caps[0].fields["allSprites"]; - s.tmp_8 = r0; - r0 = pxsim_Array__length(s.tmp_8); - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 9; continue; } + globals.facing___71345 = (135); + { step = 10; continue; } case 9: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(" sprites:", s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } + globals.facing___71345 = (180); case 10: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 1357; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___2947); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C2491_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; - s.pc = 11; return s.tmp_0; case 11: - r0 = s.retval; - case 5: - case 6: - s.tmp_0 = game_consoleOverlay_draw__P3107_mk(s); - s.callLocIdx = 1358; s.pc = 12; return s.tmp_0; + { step = 19; continue; } case 12: + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.right___66317; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 38; return s.tmp_1; + case 38: r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P1915_mk(s); - s.callLocIdx = 1359; s.pc = 13; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_3 = controller_Button__C66389_v0_1_mk(s); + s.tmp_3.arg0 = globals.down___66318; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 39; return s.tmp_3; + case 39: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 13; continue; } + globals.facing___71345 = (45); + { step = 14; continue; } case 13: + globals.facing___71345 = (0); + case 14: + { step = 18; continue; } + case 15: + s.tmp_1 = controller_Button__C66389_v0_1_mk(s); + s.tmp_1.arg0 = globals.down___66318; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 40; return s.tmp_1; + case 40: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + globals.facing___71345 = (90); + case 16: + case 17: + case 18: + case 19: + case 20: + s.tmp_2 = Math_abs__P64347_mk(s); + r0 = (globals.facing___71345 - globals.hoseDirection___71347); + s.tmp_2.arg0 = r0; + s.callLocIdx = 2280; s.pc = 41; return s.tmp_2; + case 41: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 180); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + r0 = (globals.facing___71345 < globals.hoseDirection___71347); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 21; continue; } + s.tmp_4 = r0 = globals.hoseDirection___71347; + r0 = (0 - globals.changeRate___71349); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + globals.hoseDirection___71347 = (r0); + { step = 22; continue; } + case 21: + r0 = (globals.hoseDirection___71347 + globals.changeRate___71349); + globals.hoseDirection___71347 = (r0); + case 22: + { step = 30; continue; } + case 23: + r0 = (globals.facing___71345 < globals.hoseDirection___71347); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + r0 = (globals.hoseDirection___71347 + globals.changeRate___71349); + globals.hoseDirection___71347 = (r0); + { step = 25; continue; } + case 24: + s.tmp_0 = r0 = globals.hoseDirection___71347; + r0 = (0 - globals.changeRate___71349); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + globals.hoseDirection___71347 = (r0); + case 25: + r0 = (globals.hoseDirection___71347 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + r0 = (globals.hoseDirection___71347 + 360); + globals.hoseDirection___71347 = (r0); + { step = 29; continue; } + case 26: + r0 = (globals.hoseDirection___71347 > 360); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + r0 = (globals.hoseDirection___71347 + -360); + globals.hoseDirection___71347 = (r0); + case 27: + case 28: + case 29: + r0 = (globals.hoseDirection___71347 % 360); + globals.hoseDirection___71347 = (r0); + case 30: + s.tmp_0 = sprites_createProjectileFromSprite__P66481_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + r0 = (globals.hoseDirection___71347 * 3.141592653589793); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 180); + s.tmp_2 = r0; + r0 = pxsim.Math_.cos(s.tmp_2); + s.tmp_1 = r0; + r0 = (150 * s.tmp_1); + s.tmp_0.arg2 = r0; + r0 = (globals.hoseDirection___71347 * 3.141592653589793); + s.tmp_6 = r0; + r0 = (s.tmp_6 / 180); + s.tmp_5 = r0; + r0 = pxsim.Math_.sin(s.tmp_5); + s.tmp_4 = r0; + r0 = (150 * s.tmp_4); + s.tmp_0.arg3 = r0; + s.callLocIdx = 2281; s.pc = 42; return s.tmp_0; + case 42: + r0 = s.retval; + s.waterProj___79110 = (r0); + s.tmp_0 = Sprite_setKind__P66607_mk(s); + s.tmp_0.arg0 = s.waterProj___79110; + s.tmp_0.arg1 = globals.Water___68625; + s.callLocIdx = 2282; s.pc = 43; return s.tmp_0; + case 43: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P11980.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +sprites_spray__P68633.info = {"start":2073,"length":1753,"line":79,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"spray","argumentNames":["thisSprite","img"]} -function scene_Scene_init_inline__P11980_mk(s) { +function sprites_spray__P68633_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P11980, depth: s.depth + 1, + parent: s, fn: sprites_spray__P68633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32262,15 +30961,16 @@ function scene_Scene_init_inline__P11980_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + waterProj___79110: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_init_inline__P12010(s) { +function sprites_createProjectileFromSprite__P66481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32282,35 +30982,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1363; s.pc = 1; return s.tmp_0; + s.tmp_0 = sprites_createProjectile__P66482_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.arg1; + s.callLocIdx = 561; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P12010.info = {"start":6923,"length":12,"line":185,"column":39,"endLine":185,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +sprites_createProjectileFromSprite__P66481.info = {"start":4617,"length":187,"line":129,"column":4,"endLine":131,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectileFromSprite","argumentNames":["img","sprite","vx","vy"]} -function scene_Scene_init_inline__P12010_mk(s) { +function sprites_createProjectileFromSprite__P66481_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P12010, depth: s.depth + 1, + parent: s, fn: sprites_createProjectileFromSprite__P66481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function multiplayer_initServer__P3368(s) { +function sprites_createProjectile__P66482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32320,64 +31027,244 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___12026 = undefined; - r0 = pxsim.multiplayer.getOrigin(); + s.s___79148 = undefined; + s.sc___79155 = undefined; + s.xOff___79171 = undefined; + s.yOff___79185 = undefined; + s.cam___79199 = undefined; + s.initialX___79203 = undefined; + s.initialY___79206 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 1; + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 === "server"); + s.tmp_2 = sprites_create__P66475_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 562; s.pc = 17; return s.tmp_2; + case 17: + r0 = s.retval; + s.s___79148 = (r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 563; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.sc___79155 = (r0); + s.tmp_0 = Sprite_vx__P66558_mk(s); + s.tmp_0.arg0 = s.s___79148; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 564; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P66560_mk(s); + s.tmp_0.arg0 = s.s___79148; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 565; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + s.tmp_0 = Sprite_setPosition__P66608_mk(s); + s.tmp_0.arg0 = s.s___79148; + s.tmp_1 = Sprite_x__P66553_mk(s); + s.tmp_1.arg0 = s.arg4; + s.callLocIdx = 566; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_y__P66555_mk(s); + s.tmp_2.arg0 = s.arg4; + s.callLocIdx = 567; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.callLocIdx = 568; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 16; continue; } + case 3: + r0 = s.sc___79155.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_3 = game_eventContext__P2982_mk(s); - s.callLocIdx = 2085; s.pc = 6; return s.tmp_3; - case 6: + if (!r0) { step = 4; continue; } + s.tmp_3 = Sprite_width__P66596_mk(s); + s.tmp_3.arg0 = s.s___79148; + s.callLocIdx = 569; s.pc = 24; return s.tmp_3; + case 24: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 210; - s.tmp_2.arg2 = multiplayer_initServer_inline__P12019; - s.callLocIdx = 2086; s.pc = 5; return s.tmp_2; - case 5: + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (0 - s.tmp_1); + { step = 5; continue; } + case 4: + s.tmp_6 = Sprite_width__P66596_mk(s); + s.tmp_6.arg0 = s.s___79148; + s.callLocIdx = 570; s.pc = 25; return s.tmp_6; + case 25: r0 = s.retval; - s.p___12026 = (1); - case 1: - r0 = (s.p___12026 <= 4); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + case 5: + // jmp value (already in r0) + s.tmp_7 = r0; + s.xOff___79171 = (s.tmp_7); + r0 = s.sc___79155.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P5463_mk(s); - s.tmp_1.arg0 = s.p___12026; - s.callLocIdx = 2087; s.pc = 7; return s.tmp_1; + if (!r0) { step = 6; continue; } + s.tmp_3 = Sprite_height__P66597_mk(s); + s.tmp_3.arg0 = s.s___79148; + s.callLocIdx = 571; s.pc = 26; return s.tmp_3; + case 26: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (0 - s.tmp_1); + { step = 7; continue; } + case 6: + s.tmp_6 = Sprite_height__P66597_mk(s); + s.tmp_6.arg0 = s.s___79148; + s.callLocIdx = 572; s.pc = 27; return s.tmp_6; + case 27: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + s.yOff___79185 = (s.tmp_7); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 573; s.pc = 28; return s.tmp_0; + case 28: r0 = s.retval; - r0 = (s.p___12026 + 1); - s.p___12026 = (r0); - { step = 1; continue; } - case 2: - case 3: - case 4: - r0 = undefined; + r0 = r0.fields["camera"]; + s.cam___79199 = (r0); + r0 = s.cam___79199.fields["_offsetX"]; + s.initialX___79203 = (r0); + r0 = s.cam___79199.fields["_offsetY"]; + s.initialY___79206 = (r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = s.initialX___79203; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.xOff___79171); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialX___79203 = (r0); + { step = 11; continue; } + case 8: + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = r0 = s.initialX___79203; + r0 = (0 - s.xOff___79171); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialX___79203 = (r0); + case 9: + case 10: + case 11: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_1 = r0 = s.initialY___79206; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.yOff___79185); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialY___79206 = (r0); + { step = 15; continue; } + case 12: + r0 = (s.arg2 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = r0 = s.initialY___79206; + r0 = (0 - s.yOff___79185); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialY___79206 = (r0); + case 13: + case 14: + case 15: + s.tmp_0 = Sprite_setPosition__P66608_mk(s); + s.tmp_0.arg0 = s.s___79148; + s.tmp_0.arg1 = s.initialX___79203; + s.tmp_0.arg2 = s.initialY___79206; + s.callLocIdx = 576; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + case 16: + s.tmp_0 = r0 = s.s___79148; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 20); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + r0 = s.s___79148; return leave(s, r0) default: oops() } } } -multiplayer_initServer__P3368.info = {"start":1011,"length":419,"line":29,"column":4,"endLine":41,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} +sprites_createProjectile__P66482.info = {"start":5436,"length":1265,"line":144,"column":4,"endLine":181,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectile","argumentNames":["img","vx","vy","kind","sprite"]} -function multiplayer_initServer__P3368_mk(s) { +function sprites_createProjectile__P66482_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer__P3368, depth: s.depth + 1, + parent: s, fn: sprites_createProjectile__P66482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - p___12026: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + s___79148: undefined, + sc___79155: undefined, + xOff___79171: undefined, + yOff___79185: undefined, + cam___79199: undefined, + initialX___79203: undefined, + initialY___79206: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function multiplayer_initServer_inline__P12019(s) { +function Sprite_setPosition__P66608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32387,35 +31274,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim.multiplayer.getOrigin(); - s.tmp_1 = r0; - r0 = (s.tmp_1 === "server"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.multiplayer.postImage(globals.screen___2013); + s.physics___79264 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 646; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___79264 = (r0); + s.tmp_0 = PhysicsEngine__C66710_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___79264; + s.tmp_0.arg1 = s.arg0; + s.tmp_2 = r0 = s.arg1; + s.tmp_4 = Sprite_x__P66553_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 647; s.pc = 3; return s.tmp_4; + case 3: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_0.arg2 = r0; + s.tmp_7 = r0 = s.arg2; + s.tmp_9 = Sprite_y__P66555_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 649; s.pc = 4; return s.tmp_9; + case 4: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_6 * 256); + s.tmp_10 = r0; + r0 = (s.tmp_10 | 0); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_initServer_inline__P12019.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +Sprite_setPosition__P66608.info = {"start":13931,"length":220,"line":496,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} -function multiplayer_initServer_inline__P12019_mk(s) { +function Sprite_setPosition__P66608_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer_inline__P12019, depth: s.depth + 1, + parent: s, fn: Sprite_setPosition__P66608, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + physics___79264: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function multiplayer_registerPlayerConnectionListeners__P5463(s) { +function Sprite_height__P66597(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32429,41 +31369,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P12038); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P391_mk(s); - s.tmp_1.arg0 = 3241; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.tmp_0; - s.tmp_1.arg3 = 16; - s.callLocIdx = 2089; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P12044); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P391_mk(s); - s.tmp_1.arg0 = 3242; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.tmp_0; - s.tmp_1.arg3 = 16; - s.callLocIdx = 2091; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners__P5463.info = {"start":1436,"length":415,"line":43,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} +Sprite_height__P66597.info = {"start":10541,"length":61,"line":380,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P66597.isGetter = true; -function multiplayer_registerPlayerConnectionListeners__P5463_mk(s) { +function Sprite_height__P66597_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners__P5463, depth: s.depth + 1, + parent: s, fn: Sprite_height__P66597, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -32471,7 +31393,7 @@ function multiplayer_registerPlayerConnectionListeners__P5463_mk(s) { -function multiplayer_registerPlayerConnectionListeners_inline__P12038(s) { +function Sprite_width__P66596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32481,31 +31403,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P5464_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = true; - s.callLocIdx = 2088; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners_inline__P12038.info = {"start":1608,"length":55,"line":47,"column":12,"endLine":47,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +Sprite_width__P66596.info = {"start":10374,"length":59,"line":375,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P66596.isGetter = true; -function multiplayer_registerPlayerConnectionListeners_inline__P12038_mk(s) { +function Sprite_width__P66596_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P12038, depth: s.depth + 1, + parent: s, fn: Sprite_width__P66596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function multiplayer_registerPlayerConnectionListeners_inline__P12044(s) { +function helpers_getTileByName__P67537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32515,31 +31441,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P5464_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = false; - s.callLocIdx = 2090; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = helpers__getFactoryInstance__P67532_mk(s); + s.tmp_0.arg0 = "tile"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2015; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners_inline__P12044.info = {"start":1778,"length":56,"line":52,"column":12,"endLine":52,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +helpers_getTileByName__P67537.info = {"start":3107,"length":101,"line":95,"column":4,"endLine":97,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTileByName","argumentNames":["name"]} -function multiplayer_registerPlayerConnectionListeners_inline__P12044_mk(s) { +function helpers_getTileByName__P67537_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P12044, depth: s.depth + 1, + parent: s, fn: helpers_getTileByName__P67537, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function multiplayer_receiveConnectionChangedEvent__P5464(s) { +function assets_tile__P67527(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32549,58 +31479,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___12049 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 1: - s.c___12049 = (globals.player1___2104); - { step = 5; continue; } - case 2: - s.c___12049 = (globals.player2___2101); - { step = 5; continue; } - case 3: - s.c___12049 = (globals.player3___2102); - { step = 5; continue; } - case 4: - s.c___12049 = (globals.player4___2103); - case 5: - r0 = pxsim_numops_toBoolDecr(s.c___12049); - if (!r0) { step = 6; continue; } - s.tmp_0 = controller_Controller_connected__P2137_mk(s); - s.tmp_0.arg0 = s.c___12049; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2092; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - case 6: - case 7: - r0 = undefined; + r0 = null; return leave(s, r0) default: oops() } } } -multiplayer_receiveConnectionChangedEvent__P5464.info = {"start":1857,"length":552,"line":56,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} +assets_tile__P67527.info = {"start":1108,"length":70,"line":31,"column":4,"endLine":31,"endColumn":74,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tile","argumentNames":["lits","args"]} -function multiplayer_receiveConnectionChangedEvent__P5464_mk(s) { +function assets_tile__P67527_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_receiveConnectionChangedEvent__P5464, depth: s.depth + 1, + parent: s, fn: assets_tile__P67527, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - c___12049: undefined, arg0: undefined, arg1: undefined, } } @@ -32609,7 +31503,7 @@ function multiplayer_receiveConnectionChangedEvent__P5464_mk(s) { -function controller_Controller_connected__P2137(s) { +function tiles_setTileAt__P66964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32619,50 +31513,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___79290 = undefined; + s.scale___79303 = undefined; + s.index___79307 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1299; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.scene___79290 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = (s.arg1 != s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_connected"] = (s.arg1); - r0 = s.arg0.fields["_connected"]; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 2; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["_id"]; - s.tmp_2 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: + r0 = s.scene___79290.fields["tileMap"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 5; continue; } + r0 = null; + { step = 7; continue; } + case 5: + case 6: + r0 = s.scene___79290.fields["tileMap"]; + s.tmp_7 = r0; + r0 = s.tmp_7.fields["_scale"]; + s.scale___79303 = (r0); + s.tmp_0 = tiles_TileMap_getImageType__P66951_mk(s); + r0 = s.scene___79290.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1301; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.index___79307 = (r0); + s.tmp_0 = tiles_TileMap_setTileAt__P66950_mk(s); + r0 = s.scene___79290.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_2 = tiles_Location_x__P66897_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1302; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 >> s.scale___79303); + s.tmp_0.arg1 = r0; + s.tmp_4 = tiles_Location_y__P66898_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1303; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 >> s.scale___79303); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.index___79307; + s.callLocIdx = 1304; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_connected__P2137.info = {"start":7796,"length":261,"line":254,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +tiles_setTileAt__P66964.info = {"start":20268,"length":339,"line":629,"column":4,"endLine":635,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["loc","tile"]} -function controller_Controller_connected__P2137_mk(s) { +function tiles_setTileAt__P66964_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P2137, depth: s.depth + 1, + parent: s, fn: tiles_setTileAt__P66964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + scene___79290: undefined, + scale___79303: undefined, + index___79307: undefined, arg0: undefined, arg1: undefined, } } @@ -32671,7 +31626,7 @@ function controller_Controller_connected__P2137_mk(s) { -function game_consoleOverlay_draw__P3107(s) { +function tiles_TileMap_setTileAt__P66950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32681,191 +31636,161 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___12133 = undefined; - s.top___12138 = undefined; - s.i___12144 = undefined; - s.t___12157 = undefined; - s.tOff___12164 = undefined; - s.tab___12166 = undefined; - s.unnamed118___U6 = undefined; - s.unnamed119___U7 = undefined; - s.padding___12168 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMapData_isOutsideMap__P66928_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 1233; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___5260); + s.tmp_6 = tiles_TileMap_isInvalidIndex__P69154_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.arg3; + s.callLocIdx = 1234; s.pc = 6; return s.tmp_6; + case 6: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 3; continue; } - { step = 13; continue; } + s.tmp_8 = tiles_TileMapData_setTile__P66923_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = s.arg1; + s.tmp_8.arg2 = s.arg2; + s.tmp_8.arg3 = s.arg3; + s.callLocIdx = 1235; s.pc = 7; return s.tmp_8; + case 7: + r0 = s.retval; case 3: case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___5314; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1793; s.pc = 14; return s.tmp_7; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_setTileAt__P66950.info = {"start":11306,"length":209,"line":388,"column":8,"endLine":391,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} + +function tiles_TileMap_setTileAt__P66950_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_setTileAt__P66950, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function tiles_TileMapData_setTile__P66923(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___12133 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___2948); - if (!r0) { step = 5; continue; } - r0 = s.height___12133; - { step = 6; continue; } - case 5: - r0 = 0; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P66928_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 1208; s.pc = 6; return s.tmp_1; case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___12138 = (r0); - s.i___12144 = (0); - case 7: - s.tmp_1 = r0 = s.i___12144; - r0 = pxsim_Array__length(globals.consoleStrings___5306); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim_Array__getAt(globals.consoleStrings___5306, s.i___12144); - s.tmp_5 = r0; - r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 >= 0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + r0 = s.arg0.fields["data"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P122_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___5306, s.i___12144); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1794; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___12157 = (r0); - s.tOff___12164 = (0); - s.tab___12166 = (undefined); - s.unnamed118___U6 = (s.t___12157); - s.unnamed119___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed119___U7; - r0 = pxsim_Array__length(s.unnamed118___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed118___U6, s.unnamed119___U7); - s.tab___12166 = (r0); - s.tmp_2 = r0 = globals.tabSize___5308; - s.tmp_5 = r0 = s.tOff___12164; - r0 = pxsim_String_.length(s.tab___12166); + r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.arg0.fields["data"]; s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___5308); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___12168 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.tab___12166; - s.tmp_2 = r0 = s.tOff___12164; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___5314; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1795; s.pc = 17; return s.tmp_4; } - } - case 17: - r0 = s.retval; + r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["data"] = (s.tmp_5); + case 3: + case 4: + r0 = s.arg0.fields["data"]; + s.tmp_0 = r0; + r0 = (s.arg1 | 0); s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (4 + s.tmp_1); - s.tmp_0.arg2 = r0; - s.tmp_5 = r0 = s.top___12138; - r0 = (s.i___12144 * s.height___12133); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___5305; - s.tmp_0.arg5 = globals.consoleFont___5314; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1796; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___12164; - r0 = pxsim_String_.length(s.tab___12166); + r0 = (4 + s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___12168); + r0 = (s.arg2 | 0); + s.tmp_5 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___12164 = (r0); - r0 = (s.unnamed119___U7 + 1); - s.unnamed119___U7 = (r0); - { step = 8; continue; } - case 9: - s.unnamed118___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = pxsim_Array__getAt(globals.consoleStrings___5306, s.i___12144); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___12138; - r0 = (s.i___12144 * s.height___12133); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___5305; - s.tmp_0.arg5 = globals.consoleFont___5314; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1797; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - case 11: - r0 = (s.i___12144 + 1); - s.i___12144 = (r0); - { step = 7; continue; } - case 12: - case 13: + r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3); + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P3107.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +tiles_TileMapData_setTile__P66923.info = {"start":6962,"length":315,"line":237,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} -function game_consoleOverlay_draw__P3107_mk(s) { +function tiles_TileMapData_setTile__P66923_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P3107, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_setTile__P66923, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32874,23 +31799,17 @@ function game_consoleOverlay_draw__P3107_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - height___12133: undefined, - top___12138: undefined, - i___12144: undefined, - t___12157: undefined, - tOff___12164: undefined, - tab___12166: undefined, - unnamed118___U6: undefined, - unnamed119___U7: undefined, - padding___12168: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_systemMenu_isVisible__P3088(s) { +function tiles_Location_y__P66898(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32900,33 +31819,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___5260); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + s.scale___79326 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P66894_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1196; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___79326 = (r0); + r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 << s.scale___79326); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = (s.scale___79326 - 1); + s.tmp_3 = r0; + r0 = (1 << s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P3088.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +tiles_Location_y__P66898.info = {"start":1315,"length":135,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} +tiles_Location_y__P66898.isGetter = true; -function scene_systemMenu_isVisible__P3088_mk(s) { +function tiles_Location_y__P66898_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P3088, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P66898, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + scale___79326: undefined, + arg0: undefined, } } -function scene_Scene_render__P2852(s) { +function tiles_Location_x__P66897(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32936,139 +31876,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___12578 = undefined; - s.unnamed116___U1 = undefined; - s.unnamed117___U2 = undefined; + s.scale___79342 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P66894_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1194; s.pc = 1; return s.tmp_1; case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 4); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = s.arg0.fields["flags"]; + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___79342 = (r0); + r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = (s.tmp_1 << s.scale___79342); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["previousScene"]; - case 4: - // jmp value (already in r0) + r0 = (s.scale___79342 - 1); + s.tmp_3 = r0; + r0 = (1 << s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P2852_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 1366; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P2658_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1367; s.pc = 13; return s.tmp_0; - case 13: + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_x__P66897.info = {"start":1054,"length":135,"line":45,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} +tiles_Location_x__P66897.isGetter = true; + +function tiles_Location_x__P66897_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_x__P66897, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + scale___79342: undefined, + arg0: undefined, +} } + + + + + +function scene_clearParticleEffectsAtLocation__P68623(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.sources___79415 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2263; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - case 6: - r0 = s.arg0.fields["flags"]; + r0 = r0.fields["particleSources"]; + s.sources___79415 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___79415); s.tmp_1 = r0; - r0 = (s.tmp_1 & 1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P105_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = scene_Scene_render_inline__P12555; - s.callLocIdx = 1372; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P79424); s.tmp_2 = r0; - r0 = (s.tmp_2 & -2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 7: - case 8: - s.s___12578 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed116___U1 = (r0); - s.unnamed117___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed117___U2; - r0 = pxsim_Array__length(s.unnamed116___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed116___U1, s.unnamed117___U2); - s.s___12578 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___12578; - r0 = s.arg0.fields["camera"]; - s.tmp_2.arg1 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__draw"), 2); - s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__draw"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1373; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 1373; s.pc = 15; return s.tmp_2; } - } - case 15: + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); + s.tmp_3 = helpers_arrayForEach__P64328_mk(s); + s.tmp_4 = helpers_arrayFilter__P64329_mk(s); + s.tmp_4.arg0 = s.sources___79415; + s.tmp_4.arg1 = s.tmp_2; + s.callLocIdx = 2268; s.pc = 6; return s.tmp_4; + case 6: r0 = s.retval; - r0 = (s.unnamed117___U2 + 1); - s.unnamed117___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed116___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -5); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 11: + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = scene_clearParticleEffectsAtLocation_inline__P79439; + s.callLocIdx = 2270; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_render__P2852.info = {"start":8146,"length":917,"line":227,"column":8,"endLine":251,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +scene_clearParticleEffectsAtLocation__P68623.info = {"start":492,"length":313,"line":12,"column":4,"endLine":18,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"clearParticleEffectsAtLocation","argumentNames":["location"]} -function scene_Scene_render__P2852_mk(s) { +function scene_clearParticleEffectsAtLocation__P68623_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P2852, depth: s.depth + 1, + parent: s, fn: scene_clearParticleEffectsAtLocation__P68623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - s___12578: undefined, - unnamed116___U1: undefined, - unnamed117___U2: undefined, + sources___79415: undefined, arg0: undefined, } } @@ -33076,7 +31993,7 @@ function scene_Scene_render__P2852_mk(s) { -function scene_Scene_render_inline__P12555(s) { +function forEach_inline__P79424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33088,69 +32005,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = if_z_1_mk(s); - s.tmp_2.arg0 = s.arg0; + s.tmp_2 = if_x_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "x"); } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["x"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["x"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1368; s.pc = 3; return s.tmp_2; } + else { s.callLocIdx = 2264; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = if_z_1_mk(s); - s.tmp_4.arg0 = s.arg1; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1369; s.pc = 4; return s.tmp_4; } - } + s.tmp_4 = tiles_Location_x__P66897_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 2265; s.pc = 4; return s.tmp_4; case 4: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); + r0 = (s.tmp_1 === s.tmp_3); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_6 = if_id_1_mk(s); - s.tmp_6.arg0 = s.arg0; + s.tmp_6 = if_y_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_6.arg0 = r0; if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "y"); } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["y"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["y"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1370; s.pc = 5; return s.tmp_6; } + else { s.callLocIdx = 2266; s.pc = 5; return s.tmp_6; } } case 5: r0 = s.retval; s.tmp_5 = r0; - s.tmp_8 = if_id_1_mk(s); - s.tmp_8.arg0 = s.arg1; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1371; s.pc = 6; return s.tmp_8; } - } + s.tmp_8 = tiles_Location_y__P66898_mk(s); + s.tmp_8.arg0 = s.caps[0]; + s.callLocIdx = 2267; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); + r0 = (s.tmp_5 === s.tmp_7); case 2: // jmp value (already in r0) s.tmp_9 = r0; @@ -33158,12 +32062,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_render_inline__P12555.info = {"start":8724,"length":52,"line":241,"column":37,"endLine":241,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +forEach_inline__P79424.info = {"start":694,"length":62,"line":16,"column":20,"endLine":16,"endColumn":82,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"inline","argumentNames":["ps"]} -function scene_Scene_render_inline__P12555_mk(s) { +function forEach_inline__P79424_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render_inline__P12555, depth: s.depth + 1, + parent: s, fn: forEach_inline__P79424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33176,14 +32080,13 @@ function scene_Scene_render_inline__P12555_mk(s) { tmp_8: undefined, tmp_9: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Background_draw__P2658(s) { +function scene_clearParticleEffectsAtLocation_inline__P79439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33197,50 +32100,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2649_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___2013, s.tmp_0); - r0 = s.arg0.fields["_image"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___2013, s.tmp_1, 0, 0); + s.tmp_0 = particles_ParticleSource_destroy__P67364_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2269; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg0.fields["_layers"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P12726); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1189; s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw__P2658.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +scene_clearParticleEffectsAtLocation_inline__P79439.info = {"start":779,"length":18,"line":17,"column":21,"endLine":17,"endColumn":39,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"inline","argumentNames":["ps"]} -function scene_Background_draw__P2658_mk(s) { +function scene_clearParticleEffectsAtLocation_inline__P79439_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P2658, depth: s.depth + 1, + parent: s, fn: scene_clearParticleEffectsAtLocation_inline__P79439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -33248,7 +32124,7 @@ function scene_Background_draw__P2658_mk(s) { -function scene_Background_draw_inline__P12726(s) { +function sprites_on_fire_destroyed__P68636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33258,58 +32134,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___12728 = undefined; - s.oy___12739 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.ox___12728 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___12739 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P2667_mk(s); + s.tmp_0 = forestFire_onFireDestroyed__P68646_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___12728; - s.tmp_0.arg2 = s.oy___12739; - s.callLocIdx = 1188; s.pc = 1; return s.tmp_0; + s.callLocIdx = 2285; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw_inline__P12726.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +sprites_on_fire_destroyed__P68636.info = {"start":4606,"length":131,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"on_fire_destroyed","argumentNames":["handler"]} -function scene_Background_draw_inline__P12726_mk(s) { +function sprites_on_fire_destroyed__P68636_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw_inline__P12726, depth: s.depth + 1, + parent: s, fn: sprites_on_fire_destroyed__P68636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - ox___12728: undefined, - oy___12739: undefined, arg0: undefined, } } @@ -33317,7 +32162,7 @@ function scene_Background_draw_inline__P12726_mk(s) { -function scene_BackgroundLayer_draw__P2667(s) { +function forestFire_onFireDestroyed__P68646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33327,251 +32172,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___12757 = undefined; - s.h___12760 = undefined; - s.pw___12763 = undefined; - s.ph___12767 = undefined; - s.rx___12776 = undefined; - s.ry___12779 = undefined; - s.y___12848 = undefined; - s.py___12849 = undefined; - s.dh___12858 = undefined; - s.x___12866 = undefined; - s.rxl___12867 = undefined; - s.px___12873 = undefined; - s.dw___12877 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C2659_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.w___12757 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.h___12760 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___12763 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___12767 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___12763); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = forestFire_FireState_onFireDestroyed__P71360_mk(s); + s.tmp_0.arg0 = globals.state___71365; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2351; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___12767); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 23; continue; } - case 3: - case 4: - r0 = (0 - s.arg1); - s.rx___12776 = (r0); - r0 = (0 - s.arg2); - s.ry___12779 = (r0); - r0 = s.arg0.fields["alignX"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 5: - s.tmp_1 = r0 = s.rx___12776; - r0 = (s.w___12757 + s.pw___12763); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___12776 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___12776; - r0 = (s.w___12757 + s.pw___12763); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___12776 = (r0); - case 7: - r0 = s.arg0.fields["alignY"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 8: - s.tmp_1 = r0 = s.ry___12779; - r0 = (s.h___12760 + s.ph___12767); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___12779 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___12779; - r0 = (s.h___12760 + s.ph___12767); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___12779 = (r0); - case 10: - r0 = (s.rx___12776 % s.w___12757); - s.rx___12776 = (r0); - r0 = (s.rx___12776 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___12776 + s.w___12757); - s.rx___12776 = (r0); - case 11: - case 12: - r0 = (s.ry___12779 % s.h___12760); - s.ry___12779 = (r0); - r0 = (s.ry___12779 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___12779 + s.h___12760); - s.ry___12779 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___12776); - s.rx___12776 = (r0); - r0 = pxsim.Math_.floor(s.ry___12779); - s.ry___12779 = (r0); - s.y___12848 = (0); - s.py___12849 = (0); - case 15: - r0 = (s.y___12848 < s.h___12760); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___12848 % s.ph___12767); - s.py___12849 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = (s.ph___12767 - s.py___12849); - s.tmp_0.arg0 = r0; - r0 = (s.h___12760 - s.ry___12779); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1191; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___12858 = (r0); - s.x___12866 = (0); - s.rxl___12867 = (s.rx___12776); - case 16: - r0 = (s.x___12866 < s.w___12757); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___12866 % s.pw___12763); - s.px___12873 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = (s.pw___12763 - s.px___12873); - s.tmp_0.arg0 = r0; - r0 = (s.w___12757 - s.rxl___12867); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1192; s.pc = 25; return s.tmp_0; - case 25: r0 = s.retval; - s.dw___12877 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___2013, s.tmp_0, s.rxl___12867, s.ry___12779); - r0 = (s.rxl___12867 + s.dw___12877); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___12757); - s.rxl___12867 = (r0); - r0 = s.arg0.fields["repeatX"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = s.dw___12877; - { step = 18; continue; } - case 17: - r0 = s.w___12757; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___12866 + s.tmp_1); - s.x___12866 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___12779 + s.dh___12858); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___12760); - s.ry___12779 = (r0); - r0 = s.arg0.fields["repeatY"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = s.dh___12858; - { step = 21; continue; } - case 20: - r0 = s.h___12760; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.y___12848 + s.tmp_1); - s.y___12848 = (r0); - { step = 15; continue; } - case 22: - case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P2667.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} +forestFire_onFireDestroyed__P68646.info = {"start":11576,"length":124,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireDestroyed","argumentNames":["handler"]} -function scene_BackgroundLayer_draw__P2667_mk(s) { +function forestFire_onFireDestroyed__P68646_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P2667, depth: s.depth + 1, + parent: s, fn: forestFire_onFireDestroyed__P68646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - w___12757: undefined, - h___12760: undefined, - pw___12763: undefined, - ph___12767: undefined, - rx___12776: undefined, - ry___12779: undefined, - y___12848: undefined, - py___12849: undefined, - dh___12858: undefined, - x___12866: undefined, - rxl___12867: undefined, - px___12873: undefined, - dw___12877: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine_move__P2497(s) { +function forestFire_FireState_onFireDestroyed__P71360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33587,18 +32217,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + r0 = s.arg0.fields["fireDestroyedHandlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P2497.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +forestFire_FireState_onFireDestroyed__P71360.info = {"start":9467,"length":126,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireDestroyed","argumentNames":["this","handler"]} -function PhysicsEngine_move__P2497_mk(s) { +function forestFire_FireState_onFireDestroyed__P71360_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P2497, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_onFireDestroyed__P71360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -33607,7 +32241,7 @@ function PhysicsEngine_move__P2497_mk(s) { -function PhysicsEngine_draw__P2496(s) { +function helpers_getAnimationByName__P67536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33621,19 +32255,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); - r0 = undefined; + s.tmp_0 = helpers__getFactoryInstance__P67532_mk(s); + s.tmp_0.arg0 = "animation"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2014; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P2496.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +helpers_getAnimationByName__P67536.info = {"start":2990,"length":111,"line":91,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getAnimationByName","argumentNames":["name"]} -function PhysicsEngine_draw__P2496_mk(s) { +function helpers_getAnimationByName__P67536_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P2496, depth: s.depth + 1, + parent: s, fn: helpers_getAnimationByName__P67536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -33641,7 +32279,7 @@ function PhysicsEngine_draw__P2496_mk(s) { -function controller___update__P2146(s) { +function assets_animation__P67528(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33651,51 +32289,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___13123 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 * 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.dtms___13123 = (r0); - r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P13130); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___13123); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_2 = controller_players__P2110_mk(s); - s.callLocIdx = 313; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 315; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = null; return leave(s, r0) default: oops() } } } -controller___update__P2146.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +assets_animation__P67528.info = {"start":1303,"length":77,"line":36,"column":4,"endLine":36,"endColumn":81,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"animation","argumentNames":["lits","args"]} -function controller___update__P2146_mk(s) { +function assets_animation__P67528_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P2146, depth: s.depth + 1, + parent: s, fn: assets_animation__P67528, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - dtms___13123: undefined, arg0: undefined, + arg1: undefined, } } -function controller___update_inline__P13130(s) { +function animation_runImageAnimation__P67561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33705,36 +32323,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.anim___79915 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P2144_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 314; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(animation_ImageAnimation__C67555_VT); + s.tmp_0 = r0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } case 1: + r0 = 500; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = animation_ImageAnimation_constructor__P67556_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.arg0; + s.tmp_3.arg2 = s.arg1; + s.tmp_3.arg3 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.arg3); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3.arg4 = r0; + s.callLocIdx = 2083; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.anim___79915 = (s.tmp_0); + s.tmp_0 = animation_SpriteAnimation_init__P67553_mk(s); + s.tmp_0.arg0 = s.anim___79915; + s.callLocIdx = 2084; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update_inline__P13130.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +animation_runImageAnimation__P67561.info = {"start":21512,"length":222,"line":588,"column":4,"endLine":591,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"runImageAnimation","argumentNames":["sprite","frames","frameInterval","loop"]} -function controller___update_inline__P13130_mk(s) { +function animation_runImageAnimation__P67561_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update_inline__P13130, depth: s.depth + 1, + parent: s, fn: animation_runImageAnimation__P67561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + anim___79915: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function controller_Controller___update__P2144(s) { +function animation_ImageAnimation_constructor__P67556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33747,54 +32407,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P13143); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 312; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, animation_ImageAnimation__C67555_VT)) failedCast(r0); + r0 = (s.arg0).fields["frames"] = (s.arg2); + r0 = (s.arg0).fields["frameInterval"] = (s.arg3); + s.tmp_0 = animation_SpriteAnimation_constructor__P67552_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg4; + s.callLocIdx = 2071; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = (s.arg0).fields["lastFrame"] = (-1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P2144.info = {"start":13211,"length":124,"line":396,"column":8,"endLine":399,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +animation_ImageAnimation_constructor__P67556.info = {"start":19278,"length":177,"line":527,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","frames","frameInterval","loop"]} -function controller_Controller___update__P2144_mk(s) { +function animation_ImageAnimation_constructor__P67556_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P2144, depth: s.depth + 1, + parent: s, fn: animation_ImageAnimation_constructor__P67556, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function controller_Controller___update_inline__P13143(s) { +function animation_SpriteAnimation_constructor__P67552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33806,35 +32459,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P2184_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 311; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, animation_SpriteAnimation__C67551_VT)) failedCast(r0); + r0 = (s.arg0).fields["sprite"] = (s.arg1); + r0 = (s.arg0).fields["loop"] = (s.arg2); + r0 = (s.arg0).fields["elapsedTime"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update_inline__P13143.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +animation_SpriteAnimation_constructor__P67552.info = {"start":17626,"length":105,"line":486,"column":8,"endLine":488,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","loop"]} -function controller_Controller___update_inline__P13143_mk(s) { +function animation_SpriteAnimation_constructor__P67552_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update_inline__P13143, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_constructor__P67552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_Button___update__P2184(s) { +function animation_SpriteAnimation_init__P67553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33844,17 +32498,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___13159 = undefined; - s.interval___13168 = undefined; - s.count___13181 = undefined; + s.state___79928 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + if (!checkSubtype(r0, animation_SpriteAnimation__C67551_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.state___79928 = (r0); + s.tmp_0 = r0 = s.state___79928; + s.tmp_4 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2058; s.pc = 3; return s.tmp_4; + case 3: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_data"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, globals.stateNamespace___69646); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.state___79928); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -33862,87 +32526,97 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 11; continue; } - case 1: - case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); + r0 = pxsim_pxtrt.mkMap(); + s.tmp_3 = r0; + r0 = pxsim_Array__mk(); s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___4805; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["repeatDelay"]; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_3, "animations", s.tmp_4); + s.tmp_7 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2060; s.pc = 4; return s.tmp_7; case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___13159 = (s.tmp_2); - r0 = s.arg0.fields["repeatInterval"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = s.retval; + s.tmp_6 = r0; + r0 = s.tmp_6.fields["_data"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_5, globals.stateNamespace___69646, s.tmp_3); + r0 = pxsim_pxtrt_stlocRef(s.state___79928, s.tmp_3); + r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P79944); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = globals.defaultRepeatInterval___4807; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.state___79928); + s.tmp_1 = control_EventContext_registerFrameHandler__P64622_mk(s); + s.tmp_2 = game_eventContext__P67201_mk(s); + s.callLocIdx = 2062; s.pc = 6; return s.tmp_2; case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___13168 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___13159); + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 15; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 2066; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P79968); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - { step = 11; continue; } - case 7: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = if_animations_2_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___79928); + s.tmp_1.arg0 = r0; + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + s.tmp_3 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___79928); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "animations"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["animations"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["animations"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 2067; s.pc = 9; return s.tmp_3; } + } + case 9: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_0; + s.callLocIdx = 2068; s.pc = 8; return s.tmp_2; case 8: - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___13159); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___13168); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___13168); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___13181 = (r0); - r0 = s.arg0.fields["_repeatCount"]; - s.tmp_1 = r0; - r0 = (s.count___13181 != s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_2 = controller_Button_raiseButtonRepeat__P4794_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 329; s.pc = 12; return s.tmp_2; - case 12: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___13181); - case 9: + s.tmp_1.arg1 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_1.arg0, "animations", s.tmp_1.arg1); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["set/animations"]; + if (s.tmp_1.fn === null) { s.tmp_1.arg0.fields["animations"] = s.tmp_1.arg1; } + else if (s.tmp_1.fn === undefined) { failedCast(s.tmp_1.arg0) } + else { s.callLocIdx = 2069; s.pc = 7; return s.tmp_1; } + } + case 7: + r0 = s.retval; + s.tmp_1 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___79928); + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "animations"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["animations"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["animations"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 2070; s.pc = 10; return s.tmp_1; } + } case 10: - case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P2184.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} +animation_SpriteAnimation_init__P67553.info = {"start":17741,"length":1299,"line":490,"column":8,"endLine":516,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"init","argumentNames":["this"]} -function controller_Button___update__P2184_mk(s) { +function animation_SpriteAnimation_init__P67553_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P2184, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init__P67553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33950,18 +32624,17 @@ function controller_Button___update__P2184_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - delay___13159: undefined, - interval___13168: undefined, - count___13181: undefined, + tmp_6: undefined, + tmp_7: undefined, + state___79928: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_raiseButtonRepeat__P4794(s) { +function animation_SpriteAnimation_init_inline__P79944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33971,80 +32644,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + s.tmp_0 = if_animations_2_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg0 = r0; + s.tmp_1 = helpers_arrayFilter__P64329_mk(s); + s.tmp_2 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "animations"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["animations"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["animations"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 2063; s.pc = 3; return s.tmp_2; } } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4803); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2054, s.tmp_0); - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_Button_raiseButtonRepeat__P4794.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} - -function controller_Button_raiseButtonRepeat__P4794_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_raiseButtonRepeat__P4794, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function controller_players__P2110(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = controller__player1__P2109_mk(s); - s.callLocIdx = 264; s.pc = 1; return s.tmp_0; - case 1: + case 3: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P110_mk(s); - s.tmp_0.arg0 = globals._players___4723; - s.tmp_0.arg1 = controller_players_inline__P13113; - s.callLocIdx = 265; s.pc = 2; return s.tmp_0; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = animation_SpriteAnimation_init_inline__P79951; + s.callLocIdx = 2064; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "animations", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/animations"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["animations"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 2065; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_players__P2110.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +animation_SpriteAnimation_init_inline__P79944.info = {"start":18173,"length":371,"line":499,"column":90,"endLine":505,"endColumn":17,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":[]} -function controller_players__P2110_mk(s) { +function animation_SpriteAnimation_init_inline__P79944_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P2110, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P79944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function controller_players_inline__P13113(s) { +function animation_SpriteAnimation_init_inline__P79951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34058,26 +32711,44 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.arg0.fields["sprite"]; + r0 = r0.fields["flags"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 3; continue; } + case 1: + case 2: + s.tmp_4 = animation_SpriteAnimation__C67551_v0_1_mk(s); + s.tmp_4.arg0 = s.arg0; + if (!checkSubtype(s.tmp_4.arg0, animation_SpriteAnimation__C67551_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.update; + s.pc = 4; return s.tmp_4; + case 4: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 3: return leave(s, r0) default: oops() } } } -controller_players_inline__P13113.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +animation_SpriteAnimation_init_inline__P79951.info = {"start":18244,"length":280,"line":500,"column":63,"endLine":504,"endColumn":21,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} -function controller_players_inline__P13113_mk(s) { +function animation_SpriteAnimation_init_inline__P79951_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players_inline__P13113, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P79951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -34085,7 +32756,7 @@ function controller_players_inline__P13113_mk(s) { -function controller__moveSprites__P2114(s) { +function animation_SpriteAnimation_init_inline__P79968(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34095,36 +32766,125 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_1 = controller_players__P2110_mk(s); - s.callLocIdx = 266; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = controller__moveSprites_inline__P12928; - s.callLocIdx = 268; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["sprite"]; + s.tmp_1 = r0; + r0 = s.caps[0].fields["sprite"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 8; continue; } case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + r0 = checkSubtype(r0, animation_ImageAnimation__C67555_VT); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 2; continue; } + r0 = s.tmp_3; + { step = 3; continue; } + case 2: + r0 = s.caps[0]; + r0 = checkSubtype(r0, animation_ImageAnimation__C67555_VT); + case 3: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = s.tmp_4; + { step = 7; continue; } + case 4: + r0 = s.arg0; + r0 = checkSubtype(r0, animation_MovementAnimation__C67558_VT); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 5; continue; } + r0 = s.tmp_5; + { step = 6; continue; } + case 5: + r0 = s.caps[0]; + r0 = checkSubtype(r0, animation_MovementAnimation__C67558_VT); + case 6: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = s.tmp_6; + case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 8: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + s.tmp_9 = r0; + r0 = pxsim_Boolean__bang(s.tmp_9); + return leave(s, r0) default: oops() } } } -controller__moveSprites__P2114.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +animation_SpriteAnimation_init_inline__P79968.info = {"start":18701,"length":285,"line":509,"column":55,"endLine":513,"endColumn":13,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} -function controller__moveSprites__P2114_mk(s) { +function animation_SpriteAnimation_init_inline__P79968_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P2114, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P79968, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + arg0: undefined, +} } + + + + + +function animation_SpriteAnimation_update__P67554(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, animation_SpriteAnimation__C67551_VT)) failedCast(r0); + r0 = false; + return leave(s, r0) + default: oops() +} } } +animation_SpriteAnimation_update__P67554.info = {"start":19050,"length":118,"line":518,"column":8,"endLine":521,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} + +function animation_SpriteAnimation_update__P67554_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_SpriteAnimation_update__P67554, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, } } -function controller__moveSprites_inline__P12928(s) { +function music_Melody_play__P65852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34136,33 +32896,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P2143_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + s.tmp_0 = music_Melody_playCore__P68788_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 267; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = false; + s.callLocIdx = 98; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites_inline__P12928.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +music_Melody_play__P65852.info = {"start":9416,"length":71,"line":292,"column":8,"endLine":294,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function controller__moveSprites_inline__P12928_mk(s) { +function music_Melody_play__P65852_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites_inline__P12928, depth: s.depth + 1, + parent: s, fn: music_Melody_play__P65852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller___preUpdate__P2143(s) { +function music_Melody_playCore__P68788(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34172,334 +32938,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___12935 = undefined; - s.svx___12936 = undefined; - s.svy___12937 = undefined; - s.svxInCricle___12972 = undefined; - s.svyInCircle___12974 = undefined; - s.sq___12976 = undefined; - s.scale___12991 = undefined; + s.p___80029 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 286; s.pc = 18; return s.tmp_3; - case 18: + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + s.tmp_0 = music_Melody_stop__P65850_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 92; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C65856_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 17; continue; } - case 1: + s.tmp_1 = music_MelodyPlayer_constructor__P65859_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 93; s.pc = 2; return s.tmp_1; case 2: - r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___12935 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___12935, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___12936 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___12936, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___12937 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___12937, 0); - r0 = s.arg0.fields["analog"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = r0 = s.svx___12936; - s.tmp_5 = controller_Button_pressureLevel__P2182_mk(s); - s.tmp_6 = controller_Controller_right__P2125_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 287; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 288; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P2182_mk(s); - s.tmp_9 = controller_Controller_left__P2124_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 289; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 290; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_4 - s.tmp_7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.svy___12937; - s.tmp_4 = controller_Button_pressureLevel__P2182_mk(s); - s.tmp_5 = controller_Controller_down__P2127_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 291; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 292; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P2182_mk(s); - s.tmp_8 = controller_Controller_up__P2126_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 293; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 294; s.pc = 25; return s.tmp_7; - case 25: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 12; continue; } + r0 = (s.arg0).fields["_player"] = (s.tmp_0); + s.p___80029 = (s.tmp_0); + s.tmp_0 = music_Melody_registerMelody__P68786_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 94; s.pc = 3; return s.tmp_0; case 3: - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P2125_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 295; s.pc = 28; return s.tmp_2; - case 28: - r0 = s.retval; - s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 27; return s.tmp_1; - case 27: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = 256; - { step = 5; continue; } - case 4: - r0 = 0; - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C2170_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P2124_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 296; s.pc = 30; return s.tmp_6; - case 30: - r0 = s.retval; - s.tmp_5.arg0 = r0; - if (!checkSubtype(s.tmp_5.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 29; return s.tmp_5; - case 29: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = 256; - { step = 7; continue; } - case 6: - r0 = 0; - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___12936; - r0 = (s.tmp_3 - s.tmp_7); - s.tmp_9 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_8, s.tmp_9); - s.tmp_1 = controller_Button__C2170_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P2127_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 297; s.pc = 32; return s.tmp_2; - case 32: - r0 = s.retval; - s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 31; return s.tmp_1; - case 31: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = 256; - { step = 9; continue; } - case 8: - r0 = 0; - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C2170_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P2126_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 298; s.pc = 34; return s.tmp_6; - case 34: - r0 = s.retval; - s.tmp_5.arg0 = r0; - if (!checkSubtype(s.tmp_5.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 33; return s.tmp_5; - case 33: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 10; continue; } - r0 = 256; - { step = 11; continue; } - case 10: - r0 = 0; - case 11: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___12937; - r0 = (s.tmp_3 - s.tmp_7); - s.tmp_9 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_8, s.tmp_9); - case 12: - r0 = pxsim_pxtrt.mklocRef(); - s.svxInCricle___12972 = (r0); - s.tmp_0 = r0 = s.svxInCricle___12972; - r0 = pxsim_pxtrt_ldlocRef(s.svx___12936); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___12974 = (r0); - s.tmp_0 = r0 = s.svyInCircle___12974; - r0 = pxsim_pxtrt_ldlocRef(s.svy___12937); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___12936); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___12936); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___12937); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___12937); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___12976 = (r0); - r0 = (s.sq___12976 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___12976); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___12991 = (r0); - s.tmp_0 = r0 = s.svxInCricle___12972; - s.tmp_3 = r0 = s.scale___12991; - r0 = pxsim_pxtrt_ldlocRef(s.svx___12936); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.svyInCircle___12974; - s.tmp_3 = r0 = s.scale___12991; - r0 = pxsim_pxtrt_ldlocRef(s.svy___12937); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 13: - case 14: - r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P13009); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___12935); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___12936); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___12937); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___12972); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___12974); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 299; s.pc = 36; return s.tmp_2; - case 36: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 307; s.pc = 35; return s.tmp_1; - case 35: r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___12935); + r0 = pxsim_pxtcore_mkAction(4, music_Melody_playCore_inline__P80039); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P2121_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P2120_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 308; s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P13066; - s.callLocIdx = 309; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 310; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - case 15: - case 16: - case 17: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___80029); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg2); + r0 = pxsim.control.runInParallel(s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P2143.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +music_Melody_playCore__P68788.info = {"start":7809,"length":815,"line":247,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} -function controller_Controller___preUpdate__P2143_mk(s) { +function music_Melody_playCore__P68788_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P2143, depth: s.depth + 1, + parent: s, fn: music_Melody_playCore__P68788, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - deadSprites___12935: undefined, - svx___12936: undefined, - svy___12937: undefined, - svxInCricle___12972: undefined, - svyInCircle___12974: undefined, - sq___12976: undefined, - scale___12991: undefined, + p___80029: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_Controller___preUpdate_inline__P13009(s) { +function music_Melody_playCore_inline__P80039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34509,175 +33007,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___13012 = undefined; - s.vx___13013 = undefined; - s.vy___13014 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_s_1_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 300; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___13012 = (r0); - s.tmp_2 = if_vx_1_mk(s); - s.tmp_2.arg0 = s.tmp_1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 301; s.pc = 23; return s.tmp_2; } - } - case 23: - r0 = s.retval; - s.vx___13013 = (r0); - s.tmp_3 = if_vy_1_mk(s); - s.tmp_3.arg0 = s.tmp_1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 302; s.pc = 24; return s.tmp_3; } - } - case 24: - r0 = s.retval; - s.vy___13014 = (r0); - r0 = s.s___13012.fields["flags"]; + case 1: + r0 = s.caps[0].fields["_player"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = (s.tmp_1 == s.caps[1]); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); - { step = 21; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_inputLastFrame"]; + if (!r0) { step = 6; continue; } + s.tmp_2 = music_MelodyPlayer_play__P65861_mk(s); + s.tmp_2.arg0 = s.caps[1]; + s.tmp_2.arg1 = s.caps[2]; + s.callLocIdx = 95; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.caps[3]); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.vx___13013); - if (!r0) { step = 3; continue; } - r0 = (s.s___13012).fields["_vx"] = (0); + if (!r0) { step = 4; continue; } + r0 = s.caps[0].fields["_player"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + s.tmp_4 = music_Melody_unregisterMelody__P68787_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 96; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + case 2: case 3: + { step = 6; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___13014); - if (!r0) { step = 5; continue; } - r0 = (s.s___13012).fields["_vy"] = (0); case 5: + { step = 1; continue; } case 6: - case 7: - case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___13013; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___13014; - case 12: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.s___13012; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___13013); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___13012; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___13014); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___13013); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___13012; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___13013); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___13014); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___13012; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___13014); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - case 15: - case 16: - case 17: - case 18: - r0 = (s.arg0).fields["_inputLastFrame"] = (true); - { step = 20; continue; } - case 19: - r0 = (s.arg0).fields["_inputLastFrame"] = (false); - case 20: - case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate_inline__P13009.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +music_Melody_playCore_inline__P80039.info = {"start":8012,"length":601,"line":251,"column":34,"endLine":265,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function controller_Controller___preUpdate_inline__P13009_mk(s) { +function music_Melody_playCore_inline__P80039_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate_inline__P13009, depth: s.depth + 1, + parent: s, fn: music_Melody_playCore_inline__P80039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - s___13012: undefined, - vx___13013: undefined, - vy___13014: undefined, - arg0: undefined, } } -function controller_Controller___preUpdate_inline__P13066(s) { +function music_Melody_unregisterMelody__P68787(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34691,27 +33080,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___68789); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___68789, s.arg0); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate_inline__P13066.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +music_Melody_unregisterMelody__P68787.info = {"start":7598,"length":201,"line":240,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} -function controller_Controller___preUpdate_inline__P13066_mk(s) { +function music_Melody_unregisterMelody__P68787_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate_inline__P13066, depth: s.depth + 1, + parent: s, fn: music_Melody_unregisterMelody__P68787, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -34719,7 +33105,7 @@ function controller_Controller___preUpdate_inline__P13066_mk(s) { -function controller_Button_pressureLevel__P2182(s) { +function music_Melody_registerMelody__P68786(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34734,50 +33120,48 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___68789); s.tmp_1 = r0; - r0 = (s.tmp_1 == "sim"); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = controller_Button__C2170_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - r0 = 512; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + globals.music_Melody_playingMelodies___68789 = (r0); case 1: - r0 = 0; case 2: - // jmp value (already in r0) + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___68789); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = music_Melody_stop__P65850_mk(s); + s.tmp_3 = r0 = globals.music_Melody_playingMelodies___68789; + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___68789); + s.tmp_5 = r0; + r0 = (s.tmp_5 - 1); s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.tmp_2.arg0 = r0; + s.callLocIdx = 91; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; case 3: - r0 = s.arg0.fields["id"]; - s.tmp_5 = r0; - r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } case 4: + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___68789, s.arg0); + r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___68789, s.arg0); r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P2182.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} +music_Melody_registerMelody__P68786.info = {"start":7016,"length":573,"line":228,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} -function controller_Button_pressureLevel__P2182_mk(s) { +function music_Melody_registerMelody__P68786_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P2182, depth: s.depth + 1, + parent: s, fn: music_Melody_registerMelody__P68786, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34792,7 +33176,7 @@ function controller_Button_pressureLevel__P2182_mk(s) { -function controller_Controller_down__P2127(s) { +function music_MelodyPlayer_play__P65861(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34802,38 +33186,707 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.notes___80072 = undefined; + s.pos___80076 = undefined; + s.duration___80077 = undefined; + s.octave___80078 = undefined; + s.tempo___80079 = undefined; + s.hz___80080 = undefined; + s.endHz___80081 = undefined; + s.ms___80084 = undefined; + s.timePos___80085 = undefined; + s.startTime___80086 = undefined; + s.now___80089 = undefined; + s.envA___80090 = undefined; + s.envD___80091 = undefined; + s.envS___80092 = undefined; + s.envR___80093 = undefined; + s.soundWave___80094 = undefined; + s.sndInstr___80095 = undefined; + s.sndInstrPtr___80101 = undefined; + s.addForm___80102 = undefined; + s.scanNextWord___80162 = undefined; + s.token___80219 = undefined; + s.tokenKind___80220 = undefined; + s.consumeToken___80223 = undefined; + s.currNote___80299 = undefined; + s.prevNote___80301 = undefined; + s.timeLeft___80304 = undefined; + s.note___80318 = undefined; + s.i___80322 = undefined; + s.noteChar___80328 = undefined; + s.keyNumber___80402 = undefined; + s.currMs___80419 = undefined; + s.beat___80423 = undefined; + s.timeLeft___80480 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, music_MelodyPlayer__C65856_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; - r0 = (4 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + r0 = s.arg0.fields["melody"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + { step = 59; continue; } + case 1: + case 2: + s.tmp_4 = r0 = s.arg1; + s.tmp_6 = Math_clamp__P64346_mk(s); + s.tmp_6.arg0 = 0; + s.tmp_6.arg1 = 255; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_8 = r0; + s.tmp_10 = music_volume__P65840_mk(s); + s.callLocIdx = 104; s.pc = 61; return s.tmp_10; + case 61: + r0 = s.retval; + s.tmp_9 = r0; + r0 = (s.tmp_8 * s.tmp_9); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 8); + s.tmp_6.arg2 = r0; + s.callLocIdx = 105; s.pc = 60; return s.tmp_6; + case 60: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); + r0 = s.arg0.fields["melody"]; + r0 = r0.fields["_text"]; + s.notes___80072 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.pos___80076 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pos___80076, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.duration___80077 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.duration___80077, 4); + r0 = pxsim_pxtrt.mklocRef(); + s.octave___80078 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.octave___80078, 4); + r0 = pxsim_pxtrt.mklocRef(); + s.tempo___80079 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tempo___80079, 120); + r0 = pxsim_pxtrt.mklocRef(); + s.hz___80080 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hz___80080, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.endHz___80081 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.endHz___80081, -1); + r0 = pxsim_pxtrt.mklocRef(); + s.ms___80084 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.ms___80084, 0); + s.timePos___80085 = (0); + r0 = pxsim.control.millis(); + s.startTime___80086 = (r0); + s.now___80089 = (0); + r0 = pxsim_pxtrt.mklocRef(); + s.envA___80090 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envA___80090, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.envD___80091 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envD___80091, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.envS___80092 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envS___80092, 255); + r0 = pxsim_pxtrt.mklocRef(); + s.envR___80093 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envR___80093, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.soundWave___80094 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.soundWave___80094, 1); + r0 = pxsim.control.createBuffer(60); + s.sndInstr___80095 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.sndInstrPtr___80101 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___80101, 0); + r0 = pxsim_pxtcore_mkAction(10, addForm_inline__P80103); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___80080); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___80081); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___80084); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___80077); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___80079); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___80093); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___80101); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___80095); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___80094); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.arg1); + s.addForm___80102 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, scanNextWord_inline__P80163); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___80076); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___80072); + s.scanNextWord___80162 = (s.tmp_0); + r0 = pxsim_pxtrt.mklocRef(); + s.token___80219 = (r0); + s.tmp_0 = r0 = s.token___80219; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.tokenKind___80220 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 0); + r0 = pxsim_pxtcore_mkAction(13, consumeToken_inline__P80224); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___80219); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___80220); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___80078); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___80077); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___80084); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___80079); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___80080); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___80094); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___80090); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___80091); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___80092); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___80093); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___80081); + s.consumeToken___80223 = (s.tmp_0); + case 3: + r0 = pxsim_numops_toBoolDecr(true); + if (!r0) { step = 58; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.scanNextWord___80162; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 113; s.pc = 62; return s.tmp_0; + case 62: + r0 = s.retval; + s.currNote___80299 = (r0); + s.prevNote___80301 = (false); + r0 = pxsim_numops_toBoolDecr(s.currNote___80299); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.timePos___80085 - s.now___80089); + s.timeLeft___80304 = (r0); + r0 = (s.timeLeft___80304 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = pause__P64632_mk(s); + s.tmp_1.arg0 = s.timeLeft___80304; + s.callLocIdx = 114; s.pc = 63; return s.tmp_1; + case 63: + r0 = s.retval; + case 4: + case 5: + r0 = s.arg0.fields["onPlayFinished"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = if_onPlayFinished_1_mk(s); + s.tmp_1.arg0 = s.arg0; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "onPlayFinished"), 1); + s.callLocIdx = 115; s.pc = 64; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["onPlayFinished"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onPlayFinished"], 1); s.callLocIdx = 115; s.pc = 64; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 115; s.pc = 64; return s.tmp_1;; } + else { s.callLocIdx = 115; s.pc = 64; return s.tmp_1; } + } + case 64: + r0 = s.retval; + case 6: + case 7: + { step = 59; continue; } + case 8: + case 9: + r0 = pxsim_pxtrt_stlocRef(s.hz___80080, -1); + s.note___80318 = (0); + s.tmp_0 = r0 = s.token___80219; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 0); + s.i___80322 = (0); + case 10: + s.tmp_1 = r0 = s.i___80322; + r0 = pxsim_String_.length(s.currNote___80299); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 41; continue; } + r0 = pxsim_String_.charAt(s.currNote___80299, s.i___80322); + s.noteChar___80328 = (r0); + s.tmp_0 = r0 = s.noteChar___80328; + r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq("d", s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq("D", s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq("e", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("E", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = pxsim_pxtcore.switch_eq("f", s.tmp_0); + if (r0) { step = 17; continue; } + r0 = pxsim_pxtcore.switch_eq("F", s.tmp_0); + if (r0) { step = 18; continue; } + r0 = pxsim_pxtcore.switch_eq("g", s.tmp_0); + if (r0) { step = 19; continue; } + r0 = pxsim_pxtcore.switch_eq("G", s.tmp_0); + if (r0) { step = 20; continue; } + r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); + if (r0) { step = 21; continue; } + r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); + if (r0) { step = 22; continue; } + r0 = pxsim_pxtcore.switch_eq("B", s.tmp_0); + if (r0) { step = 23; continue; } + r0 = pxsim_pxtcore.switch_eq("r", s.tmp_0); + if (r0) { step = 24; continue; } + r0 = pxsim_pxtcore.switch_eq("R", s.tmp_0); + if (r0) { step = 25; continue; } + r0 = pxsim_pxtcore.switch_eq("#", s.tmp_0); + if (r0) { step = 26; continue; } + r0 = pxsim_pxtcore.switch_eq("b", s.tmp_0); + if (r0) { step = 27; continue; } + r0 = pxsim_pxtcore.switch_eq(",", s.tmp_0); + if (r0) { step = 30; continue; } + r0 = pxsim_pxtcore.switch_eq("!", s.tmp_0); + if (r0) { step = 31; continue; } + r0 = pxsim_pxtcore.switch_eq("@", s.tmp_0); + if (r0) { step = 32; continue; } + r0 = pxsim_pxtcore.switch_eq("~", s.tmp_0); + if (r0) { step = 33; continue; } + r0 = pxsim_pxtcore.switch_eq(":", s.tmp_0); + if (r0) { step = 34; continue; } + r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + if (r0) { step = 35; continue; } + r0 = pxsim_pxtcore.switch_eq("^", s.tmp_0); + if (r0) { step = 36; continue; } + r0 = s.tmp_0; + { step = 37; continue; } + case 11: + case 12: + s.note___80318 = (1); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 13: + case 14: + s.note___80318 = (3); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 15: + case 16: + s.note___80318 = (5); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 17: + case 18: + s.note___80318 = (6); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 19: + case 20: + s.note___80318 = (8); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 21: + case 22: + s.note___80318 = (10); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 23: + s.note___80318 = (12); + s.prevNote___80301 = (true); + { step = 40; continue; } + case 24: + case 25: + r0 = pxsim_pxtrt_stlocRef(s.hz___80080, 0); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 26: + r0 = (s.note___80318 + 1); + s.note___80318 = (r0); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 27: + r0 = pxsim_numops_toBoolDecr(s.prevNote___80301); + if (!r0) { step = 28; continue; } + r0 = (s.note___80318 - 1); + s.note___80318 = (r0); + { step = 29; continue; } + case 28: + s.note___80318 = (12); + s.prevNote___80301 = (true); + case 29: + { step = 40; continue; } + case 30: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 116; s.pc = 65; return s.tmp_0; + case 65: + r0 = s.retval; + s.prevNote___80301 = (false); + { step = 40; continue; } + case 31: + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 4); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 32: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 117; s.pc = 66; return s.tmp_0; + case 66: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 8); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 33: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 118; s.pc = 67; return s.tmp_0; + case 67: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 7); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 34: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 119; s.pc = 68; return s.tmp_0; + case 68: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 2); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 35: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 120; s.pc = 69; return s.tmp_0; + case 69: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 3); + s.prevNote___80301 = (false); + { step = 40; continue; } + case 36: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 121; s.pc = 70; return s.tmp_0; + case 70: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 5); + { step = 40; continue; } + case 37: + r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___80220); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 38; continue; } + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___80220, 1); + case 38: + case 39: + s.tmp_0 = r0 = s.token___80219; + r0 = pxsim_pxtrt_ldlocRef(s.token___80219); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 71); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 71: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.noteChar___80328) && (s.noteChar___80328).vtable) { + setupResume(s, 72); + pxsim_String__stringConv(s.noteChar___80328); + checkResumeConsumed(); + return; + } else { s.retval = (s.noteChar___80328) + ""; } + case 72: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_4); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.prevNote___80301 = (false); + case 40: + r0 = (s.i___80322 + 1); + s.i___80322 = (r0); + { step = 10; continue; } + case 41: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___80223; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 122; s.pc = 73; return s.tmp_0; + case 73: + r0 = s.retval; + s.tmp_0 = r0 = s.note___80318; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 42; continue; } + r0 = s.tmp_0; + { step = 43; continue; } + case 42: + r0 = pxsim_pxtrt_ldlocRef(s.hz___80080); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + case 43: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 46; continue; } + s.tmp_3 = r0 = s.note___80318; + r0 = pxsim_pxtrt_ldlocRef(s.octave___80078); + s.tmp_6 = r0; + r0 = (s.tmp_6 - 1); + s.tmp_5 = r0; + r0 = (12 * s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.keyNumber___80402 = (r0); + s.tmp_1 = r0 = globals.freqs___68774; + r0 = (s.keyNumber___80402 * 2); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 4, s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 44; continue; } + r0 = s.tmp_0; + { step = 45; continue; } + case 44: + r0 = 0; + case 45: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.hz___80080, s.tmp_3); + case 46: + case 47: + r0 = pxsim_pxtrt_ldlocRef(s.ms___80084); + s.currMs___80419 = (r0); + r0 = (s.currMs___80419 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 48; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.tempo___80079); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(15000, s.tmp_1); + s.beat___80423 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.duration___80077); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.beat___80423); + s.currMs___80419 = (r0); + case 48: + case 49: + r0 = pxsim_pxtrt_ldlocRef(s.hz___80080); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 50; continue; } + { step = 55; continue; } + case 50: + r0 = pxsim_pxtrt_ldlocRef(s.hz___80080); + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 51; continue; } + r0 = (s.timePos___80085 + s.currMs___80419); + s.timePos___80085 = (r0); + { step = 54; continue; } + case 51: + r0 = pxsim_pxtrt_ldlocRef(s.endHz___80081); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 52; continue; } + s.tmp_2 = r0 = s.endHz___80081; + r0 = pxsim_pxtrt_ldlocRef(s.hz___80080); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); + case 52: + case 53: + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___80101, 0); + s.tmp_0 = lambda_5_mk(s); + s.tmp_0.argL = s.addForm___80102; + r0 = pxsim_pxtrt_ldlocRef(s.envA___80090); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 255; + s.tmp_0.arg3 = 0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 123; s.pc = 74; return s.tmp_0; + case 74: + r0 = s.retval; + s.tmp_0 = lambda_5_mk(s); + s.tmp_0.argL = s.addForm___80102; + r0 = pxsim_pxtrt_ldlocRef(s.envD___80091); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 255; + r0 = pxsim_pxtrt_ldlocRef(s.envS___80092); + s.tmp_0.arg2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envA___80090); + s.tmp_0.arg3 = r0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 124; s.pc = 75; return s.tmp_0; + case 75: + r0 = s.retval; + s.tmp_0 = lambda_5_mk(s); + s.tmp_0.argL = s.addForm___80102; + s.tmp_1 = r0 = s.currMs___80419; + r0 = pxsim_pxtrt_ldlocRef(s.envA___80090); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envD___80091); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envS___80092); + s.tmp_0.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envS___80092); + s.tmp_0.arg2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envD___80091); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envA___80090); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 125; s.pc = 76; return s.tmp_0; + case 76: + r0 = s.retval; + s.tmp_0 = lambda_5_mk(s); + s.tmp_0.argL = s.addForm___80102; + r0 = pxsim_pxtrt_ldlocRef(s.envR___80093); + s.tmp_0.arg0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envS___80092); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.currMs___80419; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 126; s.pc = 77; return s.tmp_0; + case 77: + r0 = s.retval; + s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P68790_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.timePos___80085 - s.now___80089); + s.tmp_0.arg1 = r0; + s.tmp_1 = r0 = s.sndInstr___80095; + r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___80101); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_1, 0, s.tmp_2); + s.tmp_0.arg2 = r0; + s.callLocIdx = 127; s.pc = 78; return s.tmp_0; + case 78: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.endHz___80081, -1); + r0 = (s.timePos___80085 + s.currMs___80419); + s.timePos___80085 = (r0); + case 54: + case 55: + r0 = (s.timePos___80085 - s.now___80089); + s.timeLeft___80480 = (r0); + r0 = (s.timeLeft___80480 > 200); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 56; continue; } + s.tmp_1 = pause__P64632_mk(s); + r0 = (s.timeLeft___80480 - 100); + s.tmp_1.arg0 = r0; + s.callLocIdx = 128; s.pc = 79; return s.tmp_1; + case 79: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.startTime___80086); + s.now___80089 = (r0); + case 56: + case 57: + { step = 3; continue; } + case 58: + case 59: + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_down__P2127.info = {"start":4131,"length":77,"line":145,"column":8,"endLine":147,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} -controller_Controller_down__P2127.isGetter = true; +music_MelodyPlayer_play__P65861.info = {"start":11570,"length":9259,"line":356,"column":8,"endLine":590,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function controller_Controller_down__P2127_mk(s) { +function music_MelodyPlayer_play__P65861_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P2127, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_play__P65861, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + notes___80072: undefined, + pos___80076: undefined, + duration___80077: undefined, + octave___80078: undefined, + tempo___80079: undefined, + hz___80080: undefined, + endHz___80081: undefined, + ms___80084: undefined, + timePos___80085: undefined, + startTime___80086: undefined, + now___80089: undefined, + envA___80090: undefined, + envD___80091: undefined, + envS___80092: undefined, + envR___80093: undefined, + soundWave___80094: undefined, + sndInstr___80095: undefined, + sndInstrPtr___80101: undefined, + addForm___80102: undefined, + scanNextWord___80162: undefined, + token___80219: undefined, + tokenKind___80220: undefined, + consumeToken___80223: undefined, + currNote___80299: undefined, + prevNote___80301: undefined, + timeLeft___80304: undefined, + note___80318: undefined, + i___80322: undefined, + noteChar___80328: undefined, + keyNumber___80402: undefined, + currMs___80419: undefined, + beat___80423: undefined, + timeLeft___80480: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller_button__P4788(s) { +function addForm_inline__P80103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34843,39 +33896,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.freqStart___80108 = undefined; + s.freqEnd___80110 = undefined; + s.envelopeWidth___80112 = undefined; + s.slope___80130 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.freqStart___80108 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.freqEnd___80110 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; - r0 = (s.arg1 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + { step = 2; continue; } + case 1: + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(15000, s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[5]); + s.tmp_6 = r0; + r0 = (s.tmp_2 + s.tmp_6); + case 2: + // jmp value (already in r0) + s.tmp_7 = r0; + s.envelopeWidth___80112 = (s.tmp_7); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = (s.envelopeWidth___80112 != 0); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = (s.freqEnd___80110 - s.freqStart___80108); + s.tmp_4 = r0; + r0 = (s.tmp_4 / s.envelopeWidth___80112); + s.slope___80130 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = r0; + r0 = (s.slope___80130 * s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.freqStart___80108 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = r0; + s.tmp_2 = r0 = s.slope___80130; + r0 = (s.arg3 + s.arg0); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.freqEnd___80110 = (r0); + case 5: + case 6: + s.tmp_0 = r0 = s.caps[6]; + s.tmp_2 = music_addNote__P65855_mk(s); + s.tmp_2.arg0 = s.caps[7]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.arg0; + s.tmp_2.arg3 = s.arg1; + s.tmp_2.arg4 = s.arg2; + r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + s.tmp_2.arg5 = r0; + s.tmp_2.arg6 = s.freqStart___80108; + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); + s.tmp_2.arg7 = r0; + s.tmp_2.arg8 = s.freqEnd___80110; + s.callLocIdx = 106; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_button__P4788.info = {"start":6666,"length":105,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +addForm_inline__P80103.info = {"start":12378,"length":643,"line":382,"column":28,"endLine":393,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} -function controller_Controller_button__P4788_mk(s) { +function addForm_inline__P80103_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P4788, depth: s.depth + 1, + parent: s, fn: addForm_inline__P80103, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + freqStart___80108: undefined, + freqEnd___80110: undefined, + envelopeWidth___80112: undefined, + slope___80130: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function controller_Controller_up__P2126(s) { +function scanNextWord_inline__P80163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34885,38 +34035,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (2 - 1); + s.c___80172 = undefined; + s.note___80189 = undefined; + s.c___80195 = undefined; + r0 = s.caps[0].fields["melody"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_up__P2126.info = {"start":3979,"length":73,"line":137,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} -controller_Controller_up__P2126.isGetter = true; - -function controller_Controller_up__P2126_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_up__P2126, depth: s.depth + 1, + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.mkEmpty(); + { step = 23; continue; } + case 1: + case 2: + case 3: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.caps[2]); + s.tmp_5 = r0; + r0 = (s.tmp_4 < s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_6 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_7 = r0; + r0 = pxsim_String_.charAt(s.tmp_6, s.tmp_7); + s.c___80172 = (r0); + r0 = (s.c___80172 != " "); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = (s.c___80172 != "\r"); + case 5: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 6; continue; } + r0 = s.tmp_1; + { step = 7; continue; } + case 6: + r0 = (s.c___80172 != "\n"); + case 7: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 8; continue; } + r0 = s.tmp_2; + { step = 9; continue; } + case 8: + r0 = (s.c___80172 != "\t"); + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + { step = 12; continue; } + case 10: + case 11: + s.tmp_4 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); + { step = 3; continue; } + case 12: + r0 = pxsim_String_.mkEmpty(); + s.note___80189 = (r0); + case 13: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = pxsim_String_.length(s.caps[2]); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + s.tmp_3 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_4 = r0; + r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + s.c___80195 = (r0); + r0 = (s.c___80195 == " "); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = s.tmp_0; + { step = 15; continue; } + case 14: + r0 = (s.c___80195 == "\r"); + case 15: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 16; continue; } + r0 = s.tmp_1; + { step = 17; continue; } + case 16: + r0 = (s.c___80195 == "\n"); + case 17: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 18; continue; } + r0 = s.tmp_2; + { step = 19; continue; } + case 18: + r0 = (s.c___80195 == "\t"); + case 19: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 20; continue; } + { step = 22; continue; } + case 20: + case 21: + if ((s.note___80189) && (s.note___80189).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.note___80189); + checkResumeConsumed(); + return; + } else { s.retval = (s.note___80189) + ""; } + case 24: + r0 = s.retval; + s.tmp_4 = r0; + if ((s.c___80195) && (s.c___80195).vtable) { + setupResume(s, 25); + pxsim_String__stringConv(s.c___80195); + checkResumeConsumed(); + return; + } else { s.retval = (s.c___80195) + ""; } + case 25: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + s.note___80189 = (r0); + s.tmp_0 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 13; continue; } + case 22: + r0 = s.note___80189; + case 23: + return leave(s, r0) + default: oops() +} } } +scanNextWord_inline__P80163.info = {"start":13056,"length":708,"line":395,"column":33,"endLine":417,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} + +function scanNextWord_inline__P80163_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scanNextWord_inline__P80163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + c___80172: undefined, + note___80189: undefined, + c___80195: undefined, } } -function controller_Controller_right__P2125(s) { +function consumeToken_inline__P80224(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34926,38 +34223,163 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + s.d___80230 = undefined; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0 = r0; - r0 = (3 - 1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = (s.tmp_1 != 0); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 15; continue; } + s.tmp_3 = parseInt__P64316_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 107; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.d___80230 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 3: + r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___80230); + { step = 14; continue; } + case 4: + s.tmp_0 = r0 = s.caps[3]; + s.tmp_2 = Math_max__P64349_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_3 = Math_min__P64350_mk(s); + s.tmp_3.arg0 = 16; + s.tmp_3.arg1 = s.d___80230; + s.callLocIdx = 108; s.pc = 19; return s.tmp_3; + case 19: + r0 = s.retval; + s.tmp_2.arg1 = r0; + s.callLocIdx = 109; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.caps[4], -1); + { step = 14; continue; } + case 5: + s.tmp_0 = r0 = s.caps[5]; + s.tmp_2 = Math_max__P64349_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.d___80230; + s.callLocIdx = 110; s.pc = 20; return s.tmp_2; + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 14; continue; } + case 6: + r0 = pxsim_pxtrt_stlocRef(s.caps[6], s.d___80230); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 6); + { step = 14; continue; } + case 7: + r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___80230); + { step = 14; continue; } + case 8: + s.tmp_0 = r0 = s.caps[7]; + s.tmp_2 = Math_clamp__P64346_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 18; + s.tmp_2.arg2 = s.d___80230; + s.callLocIdx = 111; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 14; continue; } + case 9: + r0 = pxsim_pxtrt_stlocRef(s.caps[8], s.d___80230); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 9); + { step = 14; continue; } + case 10: + r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___80230); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 10); + { step = 14; continue; } + case 11: + s.tmp_0 = r0 = s.caps[10]; + s.tmp_2 = Math_clamp__P64346_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = 255; + s.tmp_2.arg2 = s.d___80230; + s.callLocIdx = 112; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 11); + { step = 14; continue; } + case 12: + r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___80230); + { step = 14; continue; } + case 13: + r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___80230); + case 14: + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 15: + case 16: + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_right__P2125.info = {"start":3823,"length":79,"line":129,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} -controller_Controller_right__P2125.isGetter = true; +consumeToken_inline__P80224.info = {"start":15050,"length":1189,"line":456,"column":33,"endLine":477,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function controller_Controller_right__P2125_mk(s) { +function consumeToken_inline__P80224_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P2125, depth: s.depth + 1, + parent: s, fn: consumeToken_inline__P80224, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + d___80230: undefined, } } -function controller_Controller_left__P2124(s) { +function music_MelodyPlayer_queuePlayInstructions__P68790(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34969,36 +34391,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, music_MelodyPlayer__C65856_VT)) failedCast(r0); + r0 = pxsim.music.queuePlayInstructions(s.arg1, s.arg2); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_left__P2124.info = {"start":3666,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} -controller_Controller_left__P2124.isGetter = true; +music_MelodyPlayer_queuePlayInstructions__P68790.info = {"start":11435,"length":125,"line":352,"column":8,"endLine":354,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} -function controller_Controller_left__P2124_mk(s) { +function music_MelodyPlayer_queuePlayInstructions__P68790_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P2124, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P68790, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Fx_imul__P161(s) { +function music_addNote__P65855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35011,28 +34431,88 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = (s.arg2 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, s.arg5); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 1); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, 0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 2); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg6); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 4); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 6); + s.tmp_1 = r0; + r0 = (s.arg3 * s.arg7); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 6); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); + s.tmp_1 = r0; + r0 = (s.arg4 * s.arg7); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 6); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 10); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg8); + r0 = (s.arg1 + 12); + s.arg1 = (r0); + case 1: + case 2: + r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); + r0 = s.arg1; return leave(s, r0) default: oops() } } } -Fx_imul__P161.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +music_addNote__P65855.info = {"start":10288,"length":911,"line":323,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function Fx_imul__P161_mk(s) { +function music_addNote__P65855_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P161, depth: s.depth + 1, + parent: s, fn: music_addNote__P65855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, } } -function power_checkDeepSleep__P1915(s) { +function music_volume__P65840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35042,94 +34522,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___12088 = undefined; - s.to___12091 = undefined; - s.tmp_0 = power_init__P4634_mk(s); - s.callLocIdx = 185; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___4632; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = music_initVolume__P68782_mk(s); + s.callLocIdx = 80; s.pc = 1; return s.tmp_0; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.p___12088 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___4633; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.to___12091 = (s.tmp_1); - r0 = (s.to___12091 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___12088); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___12091); - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 7; continue; } - r0 = s.tmp_3; - { step = 8; continue; } - case 7: - r0 = pxsim.control.isUSBInitialized(); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore.deepSleep(); - case 9: - case 10: - r0 = undefined; + r0 = s.retval; + r0 = globals.globalVolume___68778; return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P1915.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +music_volume__P65840.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function power_checkDeepSleep__P1915_mk(s) { +function music_volume__P65840_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P1915, depth: s.depth + 1, + parent: s, fn: music_volume__P65840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - p___12088: undefined, - to___12091: undefined, } } -function power_init__P4634(s) { +function music_initVolume__P68782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35139,54 +34554,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___4633 !== undefined); + r0 = (globals.globalVolume___68778 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 7; continue; } + globals.globalVolume___68778 = (0); + s.tmp_0 = music_setVolume__P65839_mk(s); + r0 = pxsim_pxtcore.getConfig(59, 128); + s.tmp_0.arg0 = r0; + s.callLocIdx = 77; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; case 1: case 2: - r0 = pxsim_pxtcore.getConfig(212, -1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___4633 = (r0); - r0 = (globals._timeout___4633 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = (globals._timeout___4633 < 300000); - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - globals._timeout___4633 = (300000); - case 5: - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -power_init__P4634.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +music_initVolume__P68782.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} -function power_init__P4634_mk(s) { +function music_initVolume__P68782_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P4634, depth: s.depth + 1, + parent: s, fn: music_initVolume__P68782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, } } -function power_poke__P1914(s) { +function music_setVolume__P65839(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35196,31 +34595,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P4634_mk(s); - s.callLocIdx = 184; s.pc = 1; return s.tmp_0; - case 1: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Math_clamp__P64346_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_0.arg1 = 255; + r0 = (s.arg0 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 78; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___4632 = (r0); + globals.globalVolume___68778 = (r0); + r0 = (globals.globalVolume___68778 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P1914.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +music_setVolume__P65839.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} -function power_poke__P1914_mk(s) { +function music_setVolume__P65839_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P1914, depth: s.depth + 1, + parent: s, fn: music_setVolume__P65839, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function control_EventContext_deltaTime__P400(s) { +function music_enableAmp__P68781(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35234,23 +34654,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P400.info = {"start":2135,"length":75,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} -control_EventContext_deltaTime__P400.isGetter = true; +music_enableAmp__P68781.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} -function control_EventContext_deltaTime__P400_mk(s) { +function music_enableAmp__P68781_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P400, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P68781, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -35258,7 +34672,7 @@ function control_EventContext_deltaTime__P400_mk(s) { -function scene_Scene_constructor__P2846(s) { +function parseInt__P64316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35268,118 +34682,313 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.start___80517 = undefined; + s.sign___80547 = undefined; + s.output___80592 = undefined; + s.hasDigit___80593 = undefined; + s.i___80594 = undefined; + s.code___80601 = undefined; + s.val___80608 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = (s.arg0).fields["previousScene"] = (s.arg2); - r0 = (s.arg0).fields["eventContext"] = (s.arg1); - r0 = (s.arg0).fields["flags"] = (0); - r0 = pxsim_pxtcore_mkClassInstance(ArcadePhysicsEngine__C2507_VT); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P2508_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 500; - s.tmp_1.arg2 = 2; - s.tmp_1.arg3 = 4; - s.callLocIdx = 1341; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2761_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P2765_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1342; s.pc = 2; return s.tmp_1; + r0 = (s.arg1 != null); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 5; continue; } case 2: - r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C2649_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P2653_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1343; s.pc = 3; return s.tmp_1; + r0 = (s.arg1 < 2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: - r0 = s.retval; - r0 = (s.arg0).fields["background"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = (s.arg1 > 36); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 5: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 6: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = NaN; + { step = 46; continue; } + case 7: + case 8: + s.start___80517 = (0); + case 9: + s.tmp_1 = r0 = s.start___80517; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 10: + s.tmp_3 = helpers_isWhitespace__P64343_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___80517); + s.tmp_3.arg0 = r0; + s.callLocIdx = 0; s.pc = 47; return s.tmp_3; + case 47: + r0 = s.retval; + case 11: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + r0 = (s.start___80517 + 1); + s.start___80517 = (r0); + { step = 9; continue; } + case 12: + s.tmp_1 = r0 = s.start___80517; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = NaN; + { step = 46; continue; } + case 13: + case 14: + s.sign___80547 = (1); + r0 = pxsim_String_.charAt(s.arg0, s.start___80517); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 15: + s.sign___80547 = (-1); + case 16: + r0 = (s.start___80517 + 1); + s.start___80517 = (r0); + case 17: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = (s.arg1 == 16); + case 19: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 20; continue; } + r0 = s.tmp_2; + { step = 21; continue; } + case 20: + r0 = pxsim_String_.charAt(s.arg0, s.start___80517); + s.tmp_3 = r0; + r0 = ("0" === s.tmp_3); + case 21: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 22; continue; } + r0 = s.tmp_4; + { step = 25; continue; } + case 22: + s.tmp_7 = r0 = s.arg0; + r0 = (s.start___80517 + 1); + s.tmp_8 = r0; + r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); + s.tmp_6 = r0; + r0 = ("x" === s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (!r0) { step = 23; continue; } + r0 = s.tmp_5; + { step = 24; continue; } + case 23: + s.tmp_10 = r0 = s.arg0; + r0 = (s.start___80517 + 1); + s.tmp_11 = r0; + r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); + s.tmp_9 = r0; + r0 = ("X" === s.tmp_9); + case 24: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = s.tmp_12; + case 25: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_13); + if (!r0) { step = 26; continue; } + s.arg1 = (16); + r0 = (s.start___80517 + 2); + s.start___80517 = (r0); + { step = 29; continue; } + case 26: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + s.arg1 = (10); + case 27: + case 28: + case 29: + s.output___80592 = (0); + s.hasDigit___80593 = (false); + s.i___80594 = (s.start___80517); + case 30: + s.tmp_1 = r0 = s.i___80594; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 45; continue; } + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___80594); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 32); + s.code___80601 = (r0); + s.val___80608 = (undefined); + r0 = (s.code___80601 >= 48); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 31; continue; } + r0 = s.tmp_0; + { step = 32; continue; } + case 31: + r0 = (s.code___80601 < 58); + case 32: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 33; continue; } + r0 = (s.code___80601 - 48); + s.val___80608 = (r0); + { step = 38; continue; } + case 33: + r0 = (s.code___80601 >= 97); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 34; continue; } + r0 = s.tmp_0; + { step = 35; continue; } + case 34: + r0 = (s.code___80601 < 123); + case 35: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 36; continue; } + r0 = (10 + s.code___80601); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 97); + s.val___80608 = (r0); + case 36: + case 37: + case 38: + r0 = (s.val___80608 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 39; continue; } + r0 = s.tmp_0; + { step = 40; continue; } + case 39: + r0 = (s.val___80608 >= s.arg1); + case 40: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); - r0 = (s.arg0).fields["_millis"] = (0); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 43; continue; } + r0 = pxsim_numops_toBoolDecr(s.hasDigit___80593); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 41; continue; } + r0 = NaN; + { step = 46; continue; } + case 41: + case 42: + { step = 45; continue; } + case 43: + case 44: + s.hasDigit___80593 = (true); + r0 = (s.output___80592 * s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.val___80608); + s.output___80592 = (r0); + r0 = (s.i___80594 + 1); + s.i___80594 = (r0); + { step = 30; continue; } + case 45: + r0 = (s.sign___80547 * s.output___80592); + case 46: return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P2846.info = {"start":3586,"length":836,"line":106,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +parseInt__P64316.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} -function scene_Scene_constructor__P2846_mk(s) { +function parseInt__P64316_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P2846, depth: s.depth + 1, + parent: s, fn: parseInt__P64316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + start___80517: undefined, + sign___80547: undefined, + output___80592: undefined, + hasDigit___80593: undefined, + i___80594: undefined, + code___80601: undefined, + val___80608: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Camera_constructor__P2765(s) { +function helpers_isWhitespace__P64343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35393,23 +35002,57 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = (s.arg0).fields["_offsetX"] = (0); - r0 = (s.arg0).fields["_offsetY"] = (0); - r0 = (s.arg0).fields["drawOffsetX"] = (0); - r0 = (s.arg0).fields["drawOffsetY"] = (0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + r0 = true; + { step = 12; continue; } + case 11: + r0 = false; + { step = 12; continue; } r0 = undefined; + case 12: return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P2765.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +helpers_isWhitespace__P64343.info = {"start":14864,"length":674,"line":503,"column":4,"endLine":520,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} -function scene_Camera_constructor__P2765_mk(s) { +function helpers_isWhitespace__P64343_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P2765, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P64343, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -35417,7 +35060,7 @@ function scene_Camera_constructor__P2765_mk(s) { -function scene_Background_constructor__P2653(s) { +function music_MelodyPlayer_constructor__P65859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35433,26 +35076,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2649_VT)) failedCast(r0); - r0 = (s.arg0).fields["color"] = (0); - r0 = (s.arg0).fields["camera"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); + if (!checkSubtype(r0, music_MelodyPlayer__C65856_VT)) failedCast(r0); + r0 = (s.arg0).fields["melody"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_constructor__P2653.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +music_MelodyPlayer_constructor__P65859.info = {"start":11304,"length":62,"line":344,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} -function scene_Background_constructor__P2653_mk(s) { +function music_MelodyPlayer_constructor__P65859_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P2653, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_constructor__P65859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -35461,7 +35097,7 @@ function scene_Background_constructor__P2653_mk(s) { -function ArcadePhysicsEngine_constructor__P2508(s) { +function music_Melody_stop__P65850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35473,68 +35109,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C2426_VT); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + r0 = s.arg0.fields["_player"]; s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P2427_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 808; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P2510_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 809; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P2514_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 810; s.pc = 3; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_MelodyPlayer_stop__P65860_mk(s); + r0 = s.arg0.fields["_player"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 89; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P2512_mk(s); + r0 = (s.arg0).fields["_player"] = (null); + case 1: + case 2: + s.tmp_0 = music_Melody_unregisterMelody__P68787_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 811; s.pc = 4; return s.tmp_0; + s.callLocIdx = 90; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P2508.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +music_Melody_stop__P65850.info = {"start":6833,"length":173,"line":220,"column":8,"endLine":226,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function ArcadePhysicsEngine_constructor__P2508_mk(s) { +function music_Melody_stop__P65850_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P2508, depth: s.depth + 1, + parent: s, fn: music_Melody_stop__P65850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_maxStep__P2514(s) { +function music_MelodyPlayer_stop__P65860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35546,40 +35163,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + if (!checkSubtype(r0, music_MelodyPlayer__C65856_VT)) failedCast(r0); + r0 = (s.arg0).fields["melody"] = (null); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2514.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +music_MelodyPlayer_stop__P65860.info = {"start":11376,"length":49,"line":348,"column":8,"endLine":350,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function ArcadePhysicsEngine_maxStep__P2514_mk(s) { +function music_MelodyPlayer_stop__P65860_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2514, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_stop__P65860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_maxStep__P2513(s) { +function sprites_set_flame_strength__P68631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35591,36 +35198,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + s.tmp_0 = forestFire_setFireHealth__P68643_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2278; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2513.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P2513.isGetter = true; +sprites_set_flame_strength__P68631.info = {"start":1290,"length":135,"line":55,"column":4,"endLine":57,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"set_flame_strength","argumentNames":["location","health"]} -function ArcadePhysicsEngine_maxStep__P2513_mk(s) { +function sprites_set_flame_strength__P68631_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2513, depth: s.depth + 1, + parent: s, fn: sprites_set_flame_strength__P68631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_toInt__P172(s) { +function forestFire_setFireHealth__P68643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35632,30 +35239,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 + 128); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + s.tmp_0 = forestFire_FireState_setFireHealth__P71361_mk(s); + s.tmp_0.arg0 = globals.state___71365; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 2348; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toInt__P172.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +forestFire_setFireHealth__P68643.info = {"start":11230,"length":126,"line":301,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"setFireHealth","argumentNames":["location","health"]} -function Fx_toInt__P172_mk(s) { +function forestFire_setFireHealth__P68643_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P172, depth: s.depth + 1, + parent: s, fn: forestFire_setFireHealth__P68643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P2512(s) { +function fire_inline__P80815(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35665,33 +35279,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___80818 = undefined; + s.src___80821 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(particles_FireFactory__C67419_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_FireFactory_constructor__P67420_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 5; + s.callLocIdx = 55; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.factory___80818 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(particles_FireSource__C67372_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_FireSource_constructor__P67373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.factory___80818; + s.callLocIdx = 56; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.src___80821 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P67359_mk(s); + s.tmp_0.arg0 = s.src___80821; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = -20; + s.callLocIdx = 57; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = s.src___80821; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P2512.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +fire_inline__P80815.info = {"start":9582,"length":273,"line":248,"column":53,"endLine":253,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function ArcadePhysicsEngine_minStep__P2512_mk(s) { +function fire_inline__P80815_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2512, depth: s.depth + 1, + parent: s, fn: fire_inline__P80815, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + factory___80818: undefined, + src___80821: undefined, arg0: undefined, arg1: undefined, } } @@ -35700,7 +35336,7 @@ function ArcadePhysicsEngine_minStep__P2512_mk(s) { -function ArcadePhysicsEngine_minStep__P2511(s) { +function particles_FireSource_constructor__P67373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35712,36 +35348,60 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; + if (!checkSubtype(r0, particles_FireSource__C67372_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_constructor__P67355_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.callLocIdx = 1850; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C67258_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + s.tmp_1 = Math_FastRandom_constructor__P67260_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1851; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); + s.tmp_0 = sprites_BaseSprite_z__P66299_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1852; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P2511.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P2511.isGetter = true; +particles_FireSource_constructor__P67373.info = {"start":10378,"length":232,"line":342,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function ArcadePhysicsEngine_minStep__P2511_mk(s) { +function particles_FireSource_constructor__P67373_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2511, depth: s.depth + 1, + parent: s, fn: particles_FireSource_constructor__P67373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P2510(s) { +function particles_FireFactory_constructor__P67420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35757,33 +35417,39 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + if (!checkSubtype(r0, particles_FireFactory__C67419_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P69591_mk(s); + s.callLocIdx = 1918; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C67258_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P67260_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1919; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + r0 = (s.arg1 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = (s.tmp_0).fields["minRadius"] = (s.tmp_1); + r0 = (s.arg0).fields["maxRadius"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P2510.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +particles_FireFactory_constructor__P67420.info = {"start":8654,"length":212,"line":282,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius"]} -function ArcadePhysicsEngine_maxSpeed__P2510_mk(s) { +function particles_FireFactory_constructor__P67420_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2510, depth: s.depth + 1, + parent: s, fn: particles_FireFactory_constructor__P67420, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, } } @@ -35792,7 +35458,7 @@ function ArcadePhysicsEngine_maxSpeed__P2510_mk(s) { -function Fx_neg__P155(s) { +function scene_createParticleEffectAtLocation__P68622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35804,27 +35470,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); + s.tmp_0 = effects_ParticleEffect_start__P67463_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 5; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 2262; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_neg__P155.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +scene_createParticleEffectAtLocation__P68622.info = {"start":195,"length":175,"line":5,"column":4,"endLine":7,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/particles.ts","functionName":"createParticleEffectAtLocation","argumentNames":["location","effect","duration"]} -function Fx_neg__P155_mk(s) { +function scene_createParticleEffectAtLocation__P68622_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P155, depth: s.depth + 1, + parent: s, fn: scene_createParticleEffectAtLocation__P68622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P2509(s) { +function sprites_on_fire_created__P68637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35838,26 +35518,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + s.tmp_0 = forestFire_onFireCreated__P68647_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2286; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P2509.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P2509.isGetter = true; +sprites_on_fire_created__P68637.info = {"start":4828,"length":127,"line":161,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/api.ts","functionName":"on_fire_created","argumentNames":["handler"]} -function ArcadePhysicsEngine_maxSpeed__P2509_mk(s) { +function sprites_on_fire_created__P68637_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2509, depth: s.depth + 1, + parent: s, fn: sprites_on_fire_created__P68637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -35865,7 +35542,7 @@ function ArcadePhysicsEngine_maxSpeed__P2509_mk(s) { -function PhysicsEngine_constructor__P2492(s) { +function forestFire_onFireCreated__P68647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35879,19 +35556,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2491_VT)) failedCast(r0); + s.tmp_0 = forestFire_FireState_onFireCreated__P71359_mk(s); + s.tmp_0.arg0 = globals.state___71365; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2352; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P2492.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +forestFire_onFireCreated__P68647.info = {"start":11706,"length":120,"line":317,"column":4,"endLine":319,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireCreated","argumentNames":["handler"]} -function PhysicsEngine_constructor__P2492_mk(s) { +function forestFire_onFireCreated__P68647_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P2492, depth: s.depth + 1, + parent: s, fn: forestFire_onFireCreated__P68647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -35899,7 +35581,7 @@ function PhysicsEngine_constructor__P2492_mk(s) { -function sprites_SpriteMap_constructor__P2427(s) { +function forestFire_FireState_onFireCreated__P71359(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35911,35 +35593,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + r0 = s.arg0.fields["fireCreatedHandlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P2427.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +forestFire_FireState_onFireCreated__P71359.info = {"start":9335,"length":122,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"onFireCreated","argumentNames":["this","handler"]} -function sprites_SpriteMap_constructor__P2427_mk(s) { +function forestFire_FireState_onFireCreated__P71359_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P2427, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_onFireCreated__P71359, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function control_pushEventContext__P409(s) { +function Sprite_sayText__P66611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35949,63 +35631,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___13222 = undefined; - s.n___13228 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4528); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = (s.arg1 === null); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.eventContexts___4528 = (r0); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg1 === undefined); case 2: - s.tmp_0 = control_eventContext__P408_mk(s); - s.callLocIdx = 72; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___13222 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___13222); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P402_mk(s); - s.tmp_0.arg0 = s.ctx___13222; - s.callLocIdx = 73; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; + r0 = s.tmp_1; + { step = 4; continue; } case 3: + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3 = r0; + r0 = (s.tmp_2 === s.tmp_3); case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C395_VT); + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + s.tmp_6 = sprites_BaseSpriteSayRenderer__C66459_v2_1_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_6.arg0 = r0; + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.destroy; + s.pc = 14; return s.tmp_6; + case 14: + r0 = s.retval; + case 5: + case 6: + r0 = (s.arg0).fields["sayRenderer"] = (undefined); + { step = 13; continue; } + case 7: + case 8: + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = sprites_BaseSpriteSayRenderer__C66459_v2_1_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.destroy; + s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + case 9: + case 10: + r0 = (s.arg0).fields["sayRenderer"] = (undefined); + r0 = (s.arg2 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = pxsim.control.millis(); + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.arg2); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["sayEndTime"] = (s.tmp_2); + case 11: + case 12: + s.tmp_0 = console_inspect__P64601_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 20; + s.callLocIdx = 651; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.arg1 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSayRenderer__C66464_VT); s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P399_mk(s); + s.tmp_1 = sprites_SpriteSayRenderer_constructor__P66466_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 74; s.pc = 7; return s.tmp_1; - case 7: + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg4; + s.tmp_1.arg3 = s.arg5; + s.tmp_1.arg4 = s.arg3; + s.tmp_1.arg5 = s.arg2; + s.callLocIdx = 652; s.pc = 17; return s.tmp_1; + case 17: r0 = s.retval; - s.n___13228 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___4528, s.n___13228); - r0 = s.n___13228; + r0 = (s.arg0).fields["sayRenderer"] = (s.tmp_0); + case 13: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P409.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +Sprite_sayText__P66611.info = {"start":16644,"length":634,"line":574,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sayText","argumentNames":["this","text","timeOnScreen","animated","textColor","textBoxColor"]} -function control_pushEventContext__P409_mk(s) { +function Sprite_sayText__P66611_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P409, depth: s.depth + 1, + parent: s, fn: Sprite_sayText__P66611, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___13222: undefined, - n___13228: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function control_EventContext_unregister__P402(s) { +function sprites_SpriteSayRenderer_constructor__P66466(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36015,68 +35773,148 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___10977 = undefined; - s.unnamed80___U1 = undefined; - s.unnamed81___U2 = undefined; + s.numberOfPauses___80968 = undefined; + s.pauseTime___80975 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.h___10977 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed80___U1 = (r0); - s.unnamed81___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed81___U2; - r0 = pxsim_Array__length(s.unnamed80___U1); + if (!checkSubtype(r0, sprites_SpriteSayRenderer__C66464_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSpriteSayRenderer_constructor__P66460_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.callLocIdx = 536; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(sprites_RenderText__C66426_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_RenderText_constructor__P66431_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = 100; + s.callLocIdx = 537; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = (s.arg0).fields["renderText"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(sprites_RenderTextAnimation__C66444_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_RenderTextAnimation_constructor__P66445_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["renderText"]; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = 40; + s.callLocIdx = 538; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["animation"] = (s.tmp_0); + r0 = (s.arg5 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = sprites_RenderTextAnimation_numPages__P66447_mk(s); + r0 = s.arg0.fields["animation"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 539; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed80___U1, s.unnamed81___U2); - s.h___10977 = (r0); - s.tmp_2 = control_EventHandler_unregister__P4522_mk(s); - s.tmp_2.arg0 = s.h___10977; - s.callLocIdx = 68; s.pc = 3; return s.tmp_2; - case 3: + r0 = (s.tmp_1 + 1); + s.numberOfPauses___80968 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + s.tmp_2 = r0 = s.arg5; + r0 = (2 * s.numberOfPauses___80968); + s.tmp_3 = r0; + r0 = (s.tmp_2 / s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 1000; + s.callLocIdx = 540; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.pauseTime___80975 = (r0); + s.tmp_0 = sprites_RenderTextAnimation_setPauseLength__P66448_mk(s); + r0 = s.arg0.fields["animation"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.pauseTime___80975; + s.callLocIdx = 541; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_0 = sprites_RenderTextAnimation_setTextSpeed__P66449_mk(s); + r0 = s.arg0.fields["animation"]; + s.tmp_0.arg0 = r0; + s.tmp_3 = sprites_RenderText_printableCharacters__P66439_mk(s); + r0 = s.arg0.fields["renderText"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 542; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; - r0 = (s.unnamed81___U2 + 1); - s.unnamed81___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed80___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["frameWorker"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = (s.tmp_2 * 1000); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + s.tmp_5 = r0 = s.arg5; + r0 = (s.pauseTime___80975 * s.numberOfPauses___80968); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_1 / s.tmp_4); + s.tmp_0.arg1 = r0; + s.callLocIdx = 543; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + case 1: + case 2: + s.tmp_0 = sprites_RenderTextAnimation_start__P66446_mk(s); + r0 = s.arg0.fields["animation"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 544; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P402.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +sprites_SpriteSayRenderer_constructor__P66466.info = {"start":8293,"length":803,"line":222,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fg","bg","animated","timeOnScreen"]} -function control_EventContext_unregister__P402_mk(s) { +function sprites_SpriteSayRenderer_constructor__P66466_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P402, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSayRenderer_constructor__P66466, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___10977: undefined, - unnamed80___U1: undefined, - unnamed81___U2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + numberOfPauses___80968: undefined, + pauseTime___80975: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function control_EventHandler_unregister__P4522(s) { +function sprites_BaseSpriteSayRenderer_constructor__P66460(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36088,39 +35926,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4520_VT)) failedCast(r0); - r0 = s.arg0.fields["src"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["value"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["flags"]; - s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P4524, s.tmp_2); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + r0 = (s.arg0).fields["fgColor"] = (s.arg2); + r0 = (s.arg0).fields["bgColor"] = (s.arg3); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P4522.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +sprites_BaseSpriteSayRenderer_constructor__P66460.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} -function control_EventHandler_unregister__P4522_mk(s) { +function sprites_BaseSpriteSayRenderer_constructor__P66460_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P4522, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P66460, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_doNothing__P4524(s) { +function sprites_RenderTextAnimation_setTextSpeed__P66449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36130,24 +35967,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["tickPeriod"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P4524.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +sprites_RenderTextAnimation_setTextSpeed__P66449.info = {"start":9174,"length":110,"line":257,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setTextSpeed","argumentNames":["this","charactersPerSecond"]} -function control_doNothing__P4524_mk(s) { +function sprites_RenderTextAnimation_setTextSpeed__P66449_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P4524, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_setTextSpeed__P66449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_constructor__P399(s) { +function sprites_RenderTextAnimation_setPauseLength__P66448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36159,50 +36011,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["handlers"] = (s.tmp_1); - r0 = (s.arg0).fields["framesInSample"] = (0); - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["deltaTimeMillis"] = (0); - r0 = (s.arg0).fields["frameWorker"] = (0); - r0 = (s.arg0).fields["idleCallbacks"] = (undefined); - r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___397); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.mkEmpty(); - globals.control_EventContext_lastStats___397 = (r0); - case 1: - case 2: + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + r0 = (s.arg0).fields["pauseMillis"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P399.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +sprites_RenderTextAnimation_setPauseLength__P66448.info = {"start":9083,"length":81,"line":253,"column":8,"endLine":255,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setPauseLength","argumentNames":["this","millis"]} -function control_EventContext_constructor__P399_mk(s) { +function sprites_RenderTextAnimation_setPauseLength__P66448_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P399, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_setPauseLength__P66448, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function game_popScene__P2984(s) { +function sprites_RenderTextAnimation_numPages__P66447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36212,84 +36046,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___10742 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1581; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___10742 = (r0); - s.tmp_0 = r0 = globals._sceneStack___5008; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__length(globals._sceneStack___5008); - case 2: - // jmp value (already in r0) + s.maxLinesPerPage___81171 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___5008); - globals._scene___5007 = (r0); - s.tmp_0 = control_popEventContext__P410_mk(s); - s.callLocIdx = 1582; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___5007); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P410_mk(s); - s.callLocIdx = 1583; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___5007 = (undefined); - case 4: - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___5007); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P3163_mk(s); - s.callLocIdx = 1584; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_3 = sprites_RenderText_lineHeight__P66437_mk(s); + r0 = s.arg0.fields["text"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 468; s.pc = 1; return s.tmp_3; + case 1: r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___5010); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P10763); + s.tmp_2 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___10742); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___5010; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1586; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - case 9: - case 10: - r0 = undefined; + r0 = (s.tmp_0 + 1); + s.maxLinesPerPage___81171 = (r0); + r0 = s.arg0.fields["text"]; + r0 = r0.fields["linebreaks"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 / s.maxLinesPerPage___81171); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); return leave(s, r0) default: oops() } } } -game_popScene__P2984.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +sprites_RenderTextAnimation_numPages__P66447.info = {"start":8878,"length":195,"line":248,"column":8,"endLine":251,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"numPages","argumentNames":["this"]} -function game_popScene__P2984_mk(s) { +function sprites_RenderTextAnimation_numPages__P66447_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P2984, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_numPages__P66447, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___10742: undefined, + tmp_2: undefined, + tmp_3: undefined, + maxLinesPerPage___81171: undefined, + arg0: undefined, } } -function game_popScene_inline__P10763(s) { +function sprites_RenderText_lineHeight__P66437(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36303,23 +36112,30 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1585; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + s.tmp_0 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "charHeight"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["charHeight"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["charHeight"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 436; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene_inline__P10763.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +sprites_RenderText_lineHeight__P66437.info = {"start":2904,"length":65,"line":74,"column":8,"endLine":76,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineHeight","argumentNames":["this"]} -function game_popScene_inline__P10763_mk(s) { +function sprites_RenderText_lineHeight__P66437_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene_inline__P10763, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_lineHeight__P66437, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36329,7 +36145,7 @@ function game_popScene_inline__P10763_mk(s) { -function particles_enableAll__P3163(s) { +function sprites_RenderTextAnimation_start__P66446(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36339,46 +36155,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___10767 = undefined; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1863; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___10767 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___10767); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___10767; - s.tmp_0.arg1 = particles_enableAll_inline__P10773; - s.callLocIdx = 1865; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5353_mk(s); - s.callLocIdx = 1866; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + r0 = (s.arg0).fields["state"] = (1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_enableAll__P3163.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +sprites_RenderTextAnimation_start__P66446.info = {"start":8746,"length":122,"line":243,"column":8,"endLine":246,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"start","argumentNames":["this"]} -function particles_enableAll__P3163_mk(s) { +function sprites_RenderTextAnimation_start__P66446_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P3163, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_start__P66446, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___10767: undefined, + tmp_1: undefined, + arg0: undefined, } } -function particles_enableAll_inline__P10773(s) { +function sprites_RenderTextAnimation_constructor__P66445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36390,112 +36198,51 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P3144_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + r0 = (s.arg0).fields["height"] = (s.arg2); + r0 = (s.arg0).fields["state"] = (0); + r0 = (s.arg0).fields["timer"] = (-1); + r0 = (s.arg0).fields["pageLine"] = (0); + s.tmp_0 = sprites_RenderTextAnimation_setPauseLength__P66448_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1864; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = 1000; + s.callLocIdx = 466; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = true; - return leave(s, r0) - default: oops() -} } } -particles_enableAll_inline__P10773.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} - -function particles_enableAll_inline__P10773_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_enableAll_inline__P10773, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function control_popEventContext__P410(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.ctx___10948 = undefined; - s.context___10956 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4528); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: + s.tmp_0 = sprites_RenderTextAnimation_setTextSpeed__P66449_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 30; + s.callLocIdx = 467; s.pc = 2; return s.tmp_0; case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___4528); - s.ctx___10948 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___10948); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - s.tmp_2 = control_EventContext_unregister__P402_mk(s); - s.tmp_2.arg0 = s.ctx___10948; - s.callLocIdx = 75; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___4528; - r0 = pxsim_Array__length(globals.eventContexts___4528); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - s.context___10956 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___10956); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P401_mk(s); - s.tmp_0.arg0 = s.context___10956; - s.callLocIdx = 76; s.pc = 9; return s.tmp_0; - case 9: r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___4528 = (undefined); - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P410.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +sprites_RenderTextAnimation_constructor__P66445.info = {"start":8474,"length":262,"line":234,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"inline","argumentNames":["this","text","height"]} -function control_popEventContext__P410_mk(s) { +function sprites_RenderTextAnimation_constructor__P66445_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P410, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_constructor__P66445, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - ctx___10948: undefined, - context___10956: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function control_EventContext_register__P401(s) { +function sprites_RenderText_printableCharacters__P66439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36505,59 +36252,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___10969 = undefined; - s.unnamed78___U1 = undefined; - s.unnamed79___U2 = undefined; + s.total___81018 = undefined; + s.i___81019 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.h___10969 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed78___U1 = (r0); - s.unnamed79___U2 = (0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + s.total___81018 = (0); + s.i___81019 = (0); case 1: - s.tmp_0 = r0 = s.unnamed79___U2; - r0 = pxsim_Array__length(s.unnamed78___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + s.tmp_1 = r0 = s.i___81019; + r0 = s.arg0.fields["linebreaks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed78___U1, s.unnamed79___U2); - s.h___10969 = (r0); - s.tmp_2 = control_EventHandler_register__P4521_mk(s); - s.tmp_2.arg0 = s.h___10969; - s.callLocIdx = 66; s.pc = 3; return s.tmp_2; + s.tmp_5 = r0 = s.total___81018; + s.tmp_8 = sprites_RenderText_lineEnd__P66440_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = s.i___81019; + s.callLocIdx = 444; s.pc = 3; return s.tmp_8; case 3: r0 = s.retval; - r0 = (s.unnamed79___U2 + 1); - s.unnamed79___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed78___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P4526_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 67; s.pc = 4; return s.tmp_0; + s.tmp_7 = r0; + s.tmp_10 = sprites_RenderText_lineStart__P66441_mk(s); + s.tmp_10.arg0 = s.arg0; + s.tmp_10.arg1 = s.i___81019; + s.callLocIdx = 445; s.pc = 4; return s.tmp_10; case 4: r0 = s.retval; - r0 = undefined; + s.tmp_9 = r0; + r0 = (s.tmp_7 - s.tmp_9); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.total___81018 = (r0); + r0 = (s.i___81019 + 1); + s.i___81019 = (r0); + { step = 1; continue; } + case 2: + r0 = s.total___81018; return leave(s, r0) default: oops() } } } -control_EventContext_register__P401.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +sprites_RenderText_printableCharacters__P66439.info = {"start":3454,"length":229,"line":89,"column":8,"endLine":95,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"printableCharacters","argumentNames":["this"]} -function control_EventContext_register__P401_mk(s) { +function sprites_RenderText_printableCharacters__P66439_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P401, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_printableCharacters__P66439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___10969: undefined, - unnamed78___U1: undefined, - unnamed79___U2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + total___81018: undefined, + i___81019: undefined, arg0: undefined, } } @@ -36565,7 +36328,7 @@ function control_EventContext_register__P401_mk(s) { -function game_pushScene__P2983(s) { +function sprites_RenderText_lineStart__P66441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36575,70 +36338,131 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___11868 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1575; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.oldScene___11868 = (r0); - s.tmp_0 = particles_clearAll__P3161_mk(s); - s.callLocIdx = 1576; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_disableAll__P3162_mk(s); - s.callLocIdx = 1577; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___5008); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.start___81042 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + r0 = (s.arg1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._sceneStack___5008 = (r0); + r0 = s.arg0.fields["linebreaks"]; + s.tmp_1 = r0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + { step = 2; continue; } case 1: + r0 = 0; case 2: - r0 = pxsim_Array__push(globals._sceneStack___5008, globals._scene___5007); - s.tmp_0 = game_init__P5015_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1578; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___5009); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P11885); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___11868); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___5009; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1580; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_3 = r0; + s.start___81042 = (s.tmp_3); case 3: + s.tmp_1 = r0 = s.start___81042; + r0 = s.arg0.fields["text"]; + s.tmp_3 = r0; + r0 = pxsim_String_.length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = s.arg0.fields["text"]; + s.tmp_6 = r0; + r0 = pxsim_String_.charCodeAt(s.tmp_6, s.start___81042); + s.tmp_5 = r0; + r0 = (s.tmp_5 <= 32); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = (s.start___81042 + 1); + s.start___81042 = (r0); + { step = 11; continue; } case 4: - r0 = undefined; + r0 = s.arg0.fields["text"]; + s.tmp_2 = r0; + r0 = pxsim_String_.charAt(s.tmp_2, s.start___81042); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["text"]; + s.tmp_4 = r0; + r0 = (s.start___81042 + 1); + s.tmp_5 = r0; + r0 = pxsim_String_.charAt(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 === "n"); + case 6: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 7; continue; } + r0 = s.tmp_6; + { step = 8; continue; } + case 7: + r0 = (s.start___81042 + 1); + s.tmp_7 = r0; + r0 = s.arg0.fields["text"]; + s.tmp_9 = r0; + r0 = pxsim_String_.length(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7 < s.tmp_8); + case 8: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 9; continue; } + r0 = (s.start___81042 + 2); + s.start___81042 = (r0); + { step = 10; continue; } + case 9: + { step = 12; continue; } + case 10: + case 11: + { step = 3; continue; } + case 12: + r0 = s.start___81042; return leave(s, r0) default: oops() } } } -game_pushScene__P2983.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +sprites_RenderText_lineStart__P66441.info = {"start":4498,"length":599,"line":119,"column":8,"endLine":136,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineStart","argumentNames":["this","lineIndex"]} -function game_pushScene__P2983_mk(s) { +function sprites_RenderText_lineStart__P66441_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P2983, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_lineStart__P66441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___11868: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + start___81042: undefined, + arg0: undefined, + arg1: undefined, } } -function game_pushScene_inline__P11885(s) { +function sprites_RenderText_lineEnd__P66440(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36648,86 +36472,157 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.prevEnd___81094 = undefined; + s.end___81102 = undefined; + s.didMove___81114 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1579; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["linebreaks"]; + s.tmp_1 = r0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_pushScene_inline__P11885.info = {"start":5091,"length":18,"line":157,"column":39,"endLine":157,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} - -function game_pushScene_inline__P11885_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_pushScene_inline__P11885, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function particles_disableAll__P3162(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___13407 = undefined; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1859; s.pc = 3; return s.tmp_0; + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.prevEnd___81094 = (s.tmp_3); + s.tmp_1 = r0 = s.arg1; + r0 = s.arg0.fields["linebreaks"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["linebreaks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.arg1); + { step = 4; continue; } case 3: - r0 = s.retval; - s.sources___13407 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___13407); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___13407; - s.tmp_0.arg1 = particles_disableAll_inline__P13413; - s.callLocIdx = 1861; s.pc = 4; return s.tmp_0; + r0 = s.arg0.fields["text"]; + s.tmp_5 = r0; + r0 = pxsim_String_.length(s.tmp_5); case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5353_mk(s); - s.callLocIdx = 1862; s.pc = 5; return s.tmp_0; + // jmp value (already in r0) + s.tmp_6 = r0; + s.end___81102 = (s.tmp_6); + s.didMove___81114 = (false); case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; + r0 = (s.end___81102 > s.prevEnd___81094); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = s.arg0.fields["text"]; + s.tmp_3 = r0; + r0 = pxsim_String_.charCodeAt(s.tmp_3, s.end___81102); + s.tmp_2 = r0; + r0 = (s.tmp_2 <= 32); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = (s.end___81102 - 1); + s.end___81102 = (r0); + s.didMove___81114 = (true); + { step = 13; continue; } + case 6: + r0 = s.arg0.fields["text"]; + s.tmp_2 = r0; + r0 = pxsim_String_.charAt(s.tmp_2, s.end___81102); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "n"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = s.arg0.fields["text"]; + s.tmp_4 = r0; + r0 = (s.end___81102 - 1); + s.tmp_5 = r0; + r0 = pxsim_String_.charAt(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 === "\\"); + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 9; continue; } + r0 = s.tmp_6; + { step = 10; continue; } + case 9: + r0 = (s.end___81102 - 1); + s.tmp_7 = r0; + r0 = (s.tmp_7 > s.prevEnd___81094); + case 10: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 11; continue; } + r0 = (s.end___81102 - 2); + s.end___81102 = (r0); + s.didMove___81114 = (true); + { step = 12; continue; } + case 11: + { step = 14; continue; } + case 12: + case 13: + { step = 5; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.didMove___81114); + if (!r0) { step = 15; continue; } + r0 = (s.end___81102 + 1); + { step = 16; continue; } + case 15: + r0 = s.end___81102; + case 16: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -particles_disableAll__P3162.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +sprites_RenderText_lineEnd__P66440.info = {"start":3693,"length":795,"line":97,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"lineEnd","argumentNames":["this","lineIndex"]} -function particles_disableAll__P3162_mk(s) { +function sprites_RenderText_lineEnd__P66440_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P3162, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_lineEnd__P66440, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___13407: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + prevEnd___81094: undefined, + end___81102: undefined, + didMove___81114: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_disableAll_inline__P13413(s) { +function sprites_RenderText_constructor__P66431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36739,34 +36634,51 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P3144_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1860; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = image_getFontForText__P66177_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 418; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - r0 = false; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["font"] = (s.tmp_1); + s.tmp_0 = sprites_RenderText_setMaxWidth__P66438_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 419; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_disableAll_inline__P13413.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +sprites_RenderText_constructor__P66431.info = {"start":162,"length":155,"line":7,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"inline","argumentNames":["this","text","maxWidth"]} -function particles_disableAll_inline__P13413_mk(s) { +function sprites_RenderText_constructor__P66431_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll_inline__P13413, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_constructor__P66431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function particles_clearAll__P3161(s) { +function sprites_RenderText_setMaxWidth__P66438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36776,46 +36688,164 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___13418 = undefined; - s.tmp_0 = particles_particleSources__P5357_mk(s); - s.callLocIdx = 1855; s.pc = 3; return s.tmp_0; + s.i___81248 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + s.tmp_2 = r0 = s.arg1; + s.tmp_4 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 437; s.pc = 3; return s.tmp_4; } + } case 3: r0 = s.retval; - s.sources___13418 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___13418); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___13418; - s.tmp_0.arg1 = particles_clearAll_inline__P13424; - s.callLocIdx = 1857; s.pc = 4; return s.tmp_0; + s.tmp_3 = r0; + r0 = pxsim.Math_.idiv(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.tmp_5 = r0 = s.arg0; + s.tmp_7 = sprites_getLineBreaks__P69030_mk(s); + r0 = s.arg0.fields["text"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = s.tmp_0; + s.callLocIdx = 438; s.pc = 4; return s.tmp_7; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5353_mk(s); - s.callLocIdx = 1858; s.pc = 5; return s.tmp_0; + s.tmp_6 = r0; + r0 = (s.tmp_5).fields["linebreaks"] = (s.tmp_6); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["linebreaks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + s.tmp_6 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 439; s.pc = 5; return s.tmp_6; } + } case 5: r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_2 * s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["height"] = (s.tmp_1); + r0 = (s.arg0).fields["width"] = (0); + s.i___81248 = (0); case 1: + s.tmp_1 = r0 = s.i___81248; + r0 = s.arg0.fields["linebreaks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_5 = r0 = s.arg0; + s.tmp_7 = Math_max__P64349_mk(s); + s.tmp_9 = sprites_RenderText_lineEnd__P66440_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_9.arg1 = s.i___81248; + s.callLocIdx = 440; s.pc = 7; return s.tmp_9; + case 7: + r0 = s.retval; + s.tmp_8 = r0; + s.tmp_11 = sprites_RenderText_lineStart__P66441_mk(s); + s.tmp_11.arg0 = s.arg0; + s.tmp_11.arg1 = s.i___81248; + s.callLocIdx = 441; s.pc = 8; return s.tmp_11; + case 8: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_8 - s.tmp_10); + s.tmp_7.arg0 = r0; + r0 = s.arg0.fields["width"]; + s.tmp_7.arg1 = r0; + s.callLocIdx = 442; s.pc = 6; return s.tmp_7; + case 6: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_5).fields["width"] = (s.tmp_6); + r0 = (s.i___81248 + 1); + s.i___81248 = (r0); + { step = 1; continue; } case 2: + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["width"]; + s.tmp_2 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 443; s.pc = 9; return s.tmp_4; } + } + case 9: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["width"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_clearAll__P3161.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +sprites_RenderText_setMaxWidth__P66438.info = {"start":2979,"length":465,"line":78,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"setMaxWidth","argumentNames":["this","maxWidth"]} -function particles_clearAll__P3161_mk(s) { +function sprites_RenderText_setMaxWidth__P66438_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P3161, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_setMaxWidth__P66438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___13418: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + i___81248: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_clearAll_inline__P13424(s) { +function sprites_getLineBreaks__P69030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36825,35 +36855,192 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.result___81279 = undefined; + s.lastBreakLocation___81281 = undefined; + s.lastBreak___81282 = undefined; + s.line___81283 = undefined; + s.lineLength___81284 = undefined; + s.nextLine___81287 = undefined; + s.index___81296 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P3146_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1856; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.result___81279 = (r0); + s.lastBreakLocation___81281 = (0); + s.lastBreak___81282 = (0); + r0 = pxsim_pxtrt.mklocRef(); + s.line___81283 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.line___81283, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.lineLength___81284 = (r0); + s.tmp_0 = r0 = s.lineLength___81284; + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.line___81283); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtcore_mkAction(3, nextLine__P81287); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.line___81283); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.lineLength___81284); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); + s.nextLine___81287 = (s.tmp_0); + s.index___81296 = (0); case 1: + s.tmp_1 = r0 = s.index___81296; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = pxsim_String_.charAt(s.arg0, s.index___81296); + s.tmp_4 = r0; + r0 = (s.tmp_4 === "\n"); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.result___81279, s.index___81296); + r0 = (s.index___81296 + 1); + s.index___81296 = (r0); + s.lastBreak___81282 = (s.index___81296); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___81287; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 461; s.pc = 17; return s.tmp_0; + case 17: r0 = s.retval; - r0 = undefined; + { step = 9; continue; } + case 2: + r0 = pxsim_String_.charAt(s.arg0, s.index___81296); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_3 = r0 = s.arg0; + r0 = (s.index___81296 + 1); + s.tmp_4 = r0; + r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 === "n"); + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array__push(s.result___81279, s.index___81296); + s.lastBreak___81282 = (s.index___81296); + r0 = (s.index___81296 + 2); + s.index___81296 = (r0); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___81287; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 462; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + { step = 8; continue; } + case 5: + s.tmp_1 = sprites_isBreakCharacter__P69029_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.index___81296); + s.tmp_1.arg0 = r0; + s.callLocIdx = 463; s.pc = 19; return s.tmp_1; + case 19: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.lastBreakLocation___81281 = (s.index___81296); + case 6: + case 7: + case 8: + case 9: + r0 = (s.index___81296 - s.lastBreak___81282); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.lineLength___81284); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.lastBreakLocation___81281 === s.index___81296); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 10; continue; } + r0 = s.tmp_3; + { step = 11; continue; } + case 10: + r0 = (s.lastBreakLocation___81281 <= s.lastBreak___81282); + case 11: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + r0 = pxsim_Array__push(s.result___81279, s.index___81296); + s.lastBreak___81282 = (s.index___81296); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___81287; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 464; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + { step = 13; continue; } + case 12: + r0 = pxsim_Array__push(s.result___81279, s.lastBreakLocation___81281); + s.lastBreak___81282 = (s.lastBreakLocation___81281); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___81287; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 465; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + case 13: + case 14: + case 15: + r0 = (s.index___81296 + 1); + s.index___81296 = (r0); + { step = 1; continue; } + case 16: + r0 = s.result___81279; return leave(s, r0) default: oops() } } } -particles_clearAll_inline__P13424.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +sprites_getLineBreaks__P69030.info = {"start":6471,"length":1548,"line":170,"column":4,"endLine":216,"endColumn":5,"fileName":"pxt_modules/game/renderText.ts","functionName":"getLineBreaks","argumentNames":["text","lineLengths"]} -function particles_clearAll_inline__P13424_mk(s) { +function sprites_getLineBreaks__P69030_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll_inline__P13424, depth: s.depth + 1, + parent: s, fn: sprites_getLineBreaks__P69030, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + result___81279: undefined, + lastBreakLocation___81281: undefined, + lastBreak___81282: undefined, + line___81283: undefined, + lineLength___81284: undefined, + nextLine___81287: undefined, + index___81296: undefined, arg0: undefined, + arg1: undefined, } } -function game_waitAnyButton__P2981(s) { +function nextLine__P81287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36863,41 +37050,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___5011); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__waitAnyButton___5011; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1569; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 3000; - s.callLocIdx = 1570; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 2: + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[1]; + s.tmp_2 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.caps[2]); + s.tmp_5 = r0; + r0 = (s.tmp_4 % s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_waitAnyButton__P2981.info = {"start":4325,"length":111,"line":131,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} +nextLine__P81287.info = {"start":6718,"length":116,"line":178,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"nextLine","argumentNames":[]} -function game_waitAnyButton__P2981_mk(s) { +function nextLine__P81287_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_waitAnyButton__P2981, depth: s.depth + 1, + parent: s, fn: nextLine__P81287, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, } } -function game_GameOverConfig_getMessage__P2977(s) { +function sprites_isBreakCharacter__P69029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36909,83 +37102,99 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = s.arg0.fields["messageSetByUser"]; + r0 = (s.arg0 <= 32); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["winMessage"]; - { step = 2; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 1: - r0 = s.arg0.fields["loseMessage"]; - case 2: - // jmp value (already in r0) + r0 = (s.arg0 >= 58); s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 2; continue; } r0 = s.tmp_1; - { step = 11; continue; } - { step = 10; continue; } + { step = 3; continue; } + case 2: + r0 = (s.arg0 <= 64); case 3: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 6; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["winMessageMultiplayer"]; - { step = 5; continue; } - case 4: - r0 = s.arg0.fields["loseMessage"]; - case 5: // jmp value (already in r0) s.tmp_2 = r0; r0 = s.tmp_2; - { step = 11; continue; } - { step = 9; continue; } - case 6: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["winMessage"]; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = s.tmp_3; { step = 8; continue; } + case 5: + r0 = (s.arg0 >= 91); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 6; continue; } + r0 = s.tmp_4; + { step = 7; continue; } + case 6: + r0 = (s.arg0 <= 96); case 7: - r0 = s.arg0.fields["loseMessage"]; + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; case 8: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; - { step = 11; continue; } + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = s.tmp_6; + { step = 12; continue; } case 9: + r0 = (s.arg0 >= 123); + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (r0) { step = 10; continue; } + r0 = s.tmp_7; + { step = 11; continue; } case 10: - r0 = undefined; + r0 = (s.arg0 <= 126); case 11: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = s.tmp_8; + case 12: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -game_GameOverConfig_getMessage__P2977.info = {"start":3264,"length":367,"line":96,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getMessage","argumentNames":["this","win","preferMultiplayer"]} +sprites_isBreakCharacter__P69029.info = {"start":6231,"length":234,"line":163,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/game/renderText.ts","functionName":"isBreakCharacter","argumentNames":["charCode"]} -function game_GameOverConfig_getMessage__P2977_mk(s) { +function sprites_isBreakCharacter__P69029_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_getMessage__P2977, depth: s.depth + 1, + parent: s, fn: sprites_isBreakCharacter__P69029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function game_GameOverConfig_getSoundLooping__P2975(s) { +function sprites_BaseSpriteSayRenderer_destroy__P66463(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36997,41 +37206,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["winSoundLooping"]; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["loseSoundLooping"]; - case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = s.tmp_0; + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverConfig_getSoundLooping__P2975.info = {"start":2852,"length":112,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getSoundLooping","argumentNames":["this","win"]} +sprites_BaseSpriteSayRenderer_destroy__P66463.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} -function game_GameOverConfig_getSoundLooping__P2975_mk(s) { +function sprites_BaseSpriteSayRenderer_destroy__P66463_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_getSoundLooping__P2975, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P66463, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function game_GameOverConfig_getSound__P2974(s) { +function controller_Button_onEvent__P66396(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37041,43 +37238,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.eventHandler___81408 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["winSound"]; - { step = 2; continue; } + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P69015_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 324; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg0.fields["loseSound"]; - case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = s.tmp_0; + r0 = s.retval; + s.eventHandler___81408 = (r0); + r0 = (s.eventHandler___81408).fields["callback"] = (s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverConfig_getSound__P2974.info = {"start":2752,"length":91,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getSound","argumentNames":["this","win"]} +controller_Button_onEvent__P66396.info = {"start":3784,"length":188,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} -function game_GameOverConfig_getSound__P2974_mk(s) { +function controller_Button_onEvent__P66396_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_getSound__P2974, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P66396, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + eventHandler___81408: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function game_GameOverConfig_getEffect__P2972(s) { +function controller_Button_getOrCreateHandlerForEvent__P69015(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37087,34 +37287,146 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.handlerState___81429 = undefined; + s.eventHandler___81438 = undefined; + s.unnamed362___U2 = undefined; + s.unnamed363___U3 = undefined; + s.newHandler___81454 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + s.tmp_3 = controller_Button_handlerState__P69010_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 334; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["winEffect"]; - { step = 2; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C66385_VT); + s.tmp_4 = r0; + s.tmp_5 = controller_ButtonEventHandlerState_constructor__P66386_mk(s); + s.tmp_5.arg0 = s.tmp_4; + r0 = s.arg0.fields["id"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 336; s.pc = 11; return s.tmp_5; + case 11: + r0 = s.retval; + s.tmp_7 = game_currentScene__P67198_mk(s); + s.callLocIdx = 335; s.pc = 12; return s.tmp_7; + case 12: + r0 = s.retval; + r0 = r0.fields["buttonEventHandlers"]; + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); case 1: - r0 = s.arg0.fields["loseEffect"]; case 2: - // jmp value (already in r0) + s.tmp_0 = controller_Button_handlerState__P69010_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 337; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.handlerState___81429 = (r0); + r0 = s.handlerState___81429.fields["user"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.handlerState___81429; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["user"] = (s.tmp_4); + case 3: + case 4: + s.eventHandler___81438 = (undefined); + r0 = s.handlerState___81429.fields["user"]; + s.unnamed362___U2 = (r0); + s.unnamed363___U3 = (0); + case 5: + s.tmp_0 = r0 = s.unnamed363___U3; + r0 = pxsim_Array__length(s.unnamed362___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed362___U2, s.unnamed363___U3); + s.eventHandler___81438 = (r0); + r0 = s.eventHandler___81438.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = s.eventHandler___81438; + { step = 9; continue; } + case 6: + case 7: + r0 = (s.unnamed363___U3 + 1); + s.unnamed363___U3 = (r0); + { step = 5; continue; } + case 8: + s.unnamed362___U2 = (undefined); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P81451); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.arg1); + s.tmp_5 = control_onEvent__P64610_mk(s); + s.tmp_5.arg0 = s.arg1; + r0 = s.arg0.fields["id"]; + s.tmp_5.arg1 = r0; + s.tmp_5.arg2 = s.tmp_4; + s.tmp_5.arg3 = 16; + s.callLocIdx = 339; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C66383_VT); + s.tmp_0 = r0; + s.tmp_1 = controller_ButtonHandler_constructor__P66384_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 340; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.newHandler___81454 = (s.tmp_0); + r0 = s.handlerState___81429.fields["user"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___81454); + r0 = s.newHandler___81454; + case 9: return leave(s, r0) default: oops() } } } -game_GameOverConfig_getEffect__P2972.info = {"start":2199,"length":94,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getEffect","argumentNames":["this","win"]} +controller_Button_getOrCreateHandlerForEvent__P69015.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} -function game_GameOverConfig_getEffect__P2972_mk(s) { +function controller_Button_getOrCreateHandlerForEvent__P69015_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_getEffect__P2972, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P69015, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + handlerState___81429: undefined, + eventHandler___81438: undefined, + unnamed362___U2: undefined, + unnamed363___U3: undefined, + newHandler___81454: undefined, arg0: undefined, arg1: undefined, } } @@ -37123,7 +37435,7 @@ function game_GameOverConfig_getEffect__P2972_mk(s) { -function game_GameOverDialog_update__P2935(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P81451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37133,56 +37445,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P4971_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1482; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog__C2926_v2_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2926_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = s.arg0.fields["cursorOn"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = game_BaseDialog_drawCursorRow__P2900_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1483; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; + s.tmp_0 = controller_Button_runButtonEvents__P69014_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[1]; + s.callLocIdx = 338; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_update__P2935.info = {"start":17394,"length":173,"line":497,"column":8,"endLine":504,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +controller_Button_getOrCreateHandlerForEvent_inline__P81451.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function game_GameOverDialog_update__P2935_mk(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P81451_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_update__P2935, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P81451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function game_BaseDialog_clearInterior__P4971(s) { +function controller_Button_runButtonEvents__P69014(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37192,104 +37479,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___11143 = undefined; - s.s___11150 = undefined; + s.handlerState___81468 = undefined; + s.userHandler___81472 = undefined; + s.eventHandler___81483 = undefined; + s.unnamed360___U3 = undefined; + s.unnamed361___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["unit"]; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + s.tmp_0 = controller_Button_handlerState__P69010_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 330; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.handlerState___81468 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___81468); s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 4; - s.tmp_2.arg2 = 1; - s.tmp_2.arg3 = 1; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 2); - s.tmp_2.arg4 = r0; - r0 = s.arg0.fields["rows"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - 2); - s.tmp_2.arg5 = r0; - s.callLocIdx = 1413; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 7; continue; } + { step = 13; continue; } case 1: case 2: - s.d___11143 = (1); - case 3: - s.tmp_1 = r0 = s.d___11143; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P69015_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 331; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.userHandler___81472 = (r0); + r0 = s.userHandler___81472.fields["callback"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.s___11150 = (1); + if (!r0) { step = 3; continue; } + s.tmp_1 = if_callback_1_mk(s); + s.tmp_1.arg0 = s.userHandler___81472; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); + s.callLocIdx = 332; s.pc = 16; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["callback"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 332; s.pc = 16; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 332; s.pc = 16; return s.tmp_1;; } + else { s.callLocIdx = 332; s.pc = 16; return s.tmp_1; } + } + case 16: + r0 = s.retval; + case 3: case 4: - s.tmp_1 = r0 = s.s___11150; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.handlerState___81468.fields["system"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 4; - s.tmp_4.arg2 = s.d___11143; - s.tmp_4.arg3 = s.s___11150; - s.callLocIdx = 1414; s.pc = 9; return s.tmp_4; - case 9: - r0 = s.retval; - r0 = (s.s___11150 + 1); - s.s___11150 = (r0); - { step = 4; continue; } + if (!r0) { step = 11; continue; } + s.eventHandler___81483 = (undefined); + r0 = s.handlerState___81468.fields["system"]; + s.unnamed360___U3 = (r0); + s.unnamed361___U4 = (0); case 5: - r0 = (s.d___11143 + 1); - s.d___11143 = (r0); - { step = 3; continue; } + s.tmp_0 = r0 = s.unnamed361___U4; + r0 = pxsim_Array__length(s.unnamed360___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed360___U3, s.unnamed361___U4); + s.eventHandler___81483 = (r0); + r0 = s.eventHandler___81483.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 6; continue; } + r0 = s.tmp_2; + { step = 7; continue; } case 6: + r0 = s.eventHandler___81483.fields["callback"]; case 7: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 8; continue; } + s.tmp_5 = if_callback_1_mk(s); + s.tmp_5.arg0 = s.eventHandler___81483; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); + s.callLocIdx = 333; s.pc = 17; return s.tmp_5; + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["callback"]; + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 333; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 333; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 333; s.pc = 17; return s.tmp_5; } + } + case 17: + r0 = s.retval; + case 8: + case 9: + r0 = (s.unnamed361___U4 + 1); + s.unnamed361___U4 = (r0); + { step = 5; continue; } + case 10: + s.unnamed360___U3 = (undefined); + case 11: + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_clearInterior__P4971.info = {"start":4543,"length":342,"line":146,"column":8,"endLine":155,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} +controller_Button_runButtonEvents__P69014.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} -function game_BaseDialog_clearInterior__P4971_mk(s) { +function controller_Button_runButtonEvents__P69014_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_clearInterior__P4971, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P69014, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - d___11143: undefined, - s___11150: undefined, + tmp_5: undefined, + handlerState___81468: undefined, + userHandler___81472: undefined, + eventHandler___81483: undefined, + unnamed360___U3: undefined, + unnamed361___U4: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_drawPartial__P4972(s) { +function controller_Button_handlerState__P69010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37299,125 +37626,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___11168 = undefined; - s.y0___11176 = undefined; - s.xf___11184 = undefined; - s.yf___11191 = undefined; - s.e___11198 = undefined; - s.t___11204 = undefined; + s.state___81499 = undefined; + s.unnamed358___U1 = undefined; + s.unnamed359___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["innerLeft"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_2 = r0; - r0 = (s.arg2 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.x0___11168 = (r0); - r0 = s.arg0.fields["innerTop"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_2 = r0; - r0 = (s.arg3 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.y0___11176 = (r0); - r0 = (s.arg1 % 3); - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.xf___11184 = (r0); - r0 = pxsim.Math_.idiv(s.arg1, 3); - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.yf___11191 = (r0); - s.e___11198 = (0); + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + s.state___81499 = (undefined); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 320; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = r0.fields["buttonEventHandlers"]; + s.unnamed358___U1 = (r0); + s.unnamed359___U2 = (0); case 1: - r0 = s.arg0.fields["unit"]; + s.tmp_0 = r0 = s.unnamed359___U2; + r0 = pxsim_Array__length(s.unnamed358___U1); s.tmp_1 = r0; - r0 = (s.e___11198 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - s.t___11204 = (0); - case 2: - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.t___11204 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = (s.x0___11168 + s.e___11198); + r0 = pxsim_Array__getAt(s.unnamed358___U1, s.unnamed359___U2); + s.state___81499 = (r0); + r0 = s.state___81499.fields["id"]; s.tmp_3 = r0; - r0 = (s.y0___11176 + s.t___11204); + r0 = s.arg0.fields["id"]; s.tmp_4 = r0; - r0 = s.arg0.fields["frame"]; - s.tmp_6 = r0; - r0 = (s.xf___11184 + s.e___11198); - s.tmp_7 = r0; - r0 = (s.yf___11191 + s.t___11204); - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.tmp_7, s.tmp_8); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_2, s.tmp_3, s.tmp_4, s.tmp_5); - r0 = (s.t___11204 + 1); - s.t___11204 = (r0); - { step = 2; continue; } + r0 = (s.tmp_3 === s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = s.state___81499; + { step = 5; continue; } + case 2: case 3: - r0 = (s.e___11198 + 1); - s.e___11198 = (r0); + r0 = (s.unnamed359___U2 + 1); + s.unnamed359___U2 = (r0); { step = 1; continue; } case 4: + s.unnamed358___U1 = (undefined); r0 = undefined; - return leave(s, r0) + case 5: + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_drawPartial__P4972.info = {"start":4895,"length":604,"line":157,"column":8,"endLine":172,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} +controller_Button_handlerState__P69010.info = {"start":1644,"length":240,"line":66,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"handlerState","argumentNames":["this"]} +controller_Button_handlerState__P69010.isGetter = true; -function game_BaseDialog_drawPartial__P4972_mk(s) { +function controller_Button_handlerState__P69010_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawPartial__P4972, depth: s.depth + 1, + parent: s, fn: controller_Button_handlerState__P69010, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - x0___11168: undefined, - y0___11176: undefined, - xf___11184: undefined, - yf___11191: undefined, - e___11198: undefined, - t___11204: undefined, + state___81499: undefined, + unnamed358___U1: undefined, + unnamed359___U2: undefined, + arg0: undefined, +} } + + + + + +function controller_ButtonEventHandlerState_constructor__P66386(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_ButtonEventHandlerState__C66385_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_ButtonEventHandlerState_constructor__P66386.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} + +function controller_ButtonEventHandlerState_constructor__P66386_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_ButtonEventHandlerState_constructor__P66386, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_ButtonHandler_constructor__P66384(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_ButtonHandler__C66383_VT)) failedCast(r0); + r0 = (s.arg0).fields["event"] = (s.arg1); + r0 = (s.arg0).fields["callback"] = (s.arg2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_ButtonHandler_constructor__P66384.info = {"start":997,"length":66,"line":44,"column":8,"endLine":44,"endColumn":74,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","event","callback"]} + +function controller_ButtonHandler_constructor__P66384_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_ButtonHandler_constructor__P66384, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function game_BaseDialog_fastFill__P4970(s) { +function tiles_createTilemap__P66961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37427,71 +37783,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.color___11240 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["frame"]; + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C66916_VT); s.tmp_0 = r0; - r0 = (s.arg1 % 3); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.arg1, 3); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_2); - s.color___11240 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.arg2); - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg4; - s.tmp_0.arg4 = s.arg5; - s.tmp_0.arg5 = s.color___11240; - s.callLocIdx = 1412; s.pc = 1; return s.tmp_0; + s.tmp_1 = tiles_TileMapData_constructor__P66917_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.arg2; + s.tmp_1.arg4 = s.arg3; + s.callLocIdx = 1296; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -game_BaseDialog_fastFill__P4970.info = {"start":4284,"length":249,"line":141,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} +tiles_createTilemap__P66961.info = {"start":18693,"length":170,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} -function game_BaseDialog_fastFill__P4970_mk(s) { +function tiles_createTilemap__P66961_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_fastFill__P4970, depth: s.depth + 1, + parent: s, fn: tiles_createTilemap__P66961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - color___11240: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function game_GameOverDialog_drawTextCore__P2939(s) { +function tiles_TileMapData_constructor__P66917(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37503,45 +37836,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - s.tmp_0 = game_GameOverDialog_drawMessage__P2936_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); + r0 = (s.arg0).fields["data"] = (s.arg1); + r0 = (s.arg0).fields["layers"] = (s.arg2); + r0 = (s.arg0).fields["tileset"] = (s.arg3); + s.tmp_0 = tiles_TileMapData_scale__P66921_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1515; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.arg4; + s.callLocIdx = 1205; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = game_GameOverDialog_drawScores__P2937_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1516; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog_drawBestScore__P2938_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1517; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_drawTextCore__P2939.info = {"start":23575,"length":123,"line":629,"column":8,"endLine":633,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +tiles_TileMapData_constructor__P66917.info = {"start":6048,"length":358,"line":204,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function game_GameOverDialog_drawTextCore__P2939_mk(s) { +function tiles_TileMapData_constructor__P66917_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_drawTextCore__P2939, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P66917, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function game_GameOverDialog_drawBestScore__P2938(s) { +function helpers_stringTrim__P64342(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37551,184 +37895,86 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currY___17701 = undefined; - s.label___17710 = undefined; - s.halfWidth___17721 = undefined; + s.start___81550 = undefined; + s.end___81551 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - s.tmp_1 = game_GameOverDialog_hasBestScore__P2930_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1506; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; + s.start___81550 = (0); + r0 = pxsim_String_.length(s.arg0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.arg0.fields["height"]; - s.tmp_3 = r0; - s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.font8___1956; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1507; s.pc = 8; return s.tmp_5; } - } - case 8: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 5); - s.currY___17701 = (r0); - s.tmp_1 = game_GameOverDialog_isNewBestScore__P2931_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1508; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; + r0 = (s.tmp_0 - 1); + s.end___81551 = (r0); + case 1: + r0 = (s.start___81550 <= s.end___81551); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.label___17710 = ("New Best Score!"); - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.label___17710; - s.tmp_0.arg2 = s.currY___17701; - s.tmp_1 = game_screenColor__P4963_mk(s); - s.tmp_1.arg0 = 9; - s.callLocIdx = 1509; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.font8___1956; - s.callLocIdx = 1510; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.tmp_3 = game_GameOverDialog_isMultiplayerGame__P2932_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1511; s.pc = 12; return s.tmp_3; - case 12: + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + s.tmp_1 = helpers_isWhitespace__P64343_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___81550); + s.tmp_1.arg0 = r0; + s.callLocIdx = 23; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; + case 3: + // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = (s.start___81550 + 1); + s.start___81550 = (r0); + { step = 1; continue; } + case 4: + case 5: + r0 = (s.end___81551 > s.start___81550); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.length(s.label___17710); - s.tmp_5 = r0; - s.tmp_7 = if_charWidth_1_mk(s); - s.tmp_7.arg0 = globals.font8___1956; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charWidth"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charWidth"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charWidth"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1512; s.pc = 13; return s.tmp_7; } - } - case 13: + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_1 = helpers_isWhitespace__P64343_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.end___81551); + s.tmp_1.arg0 = r0; + s.callLocIdx = 24; s.pc = 10; return s.tmp_1; + case 10: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.halfWidth___17721 = (r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_trophy_sm___4982; - r0 = s.arg0.fields["image"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 1); - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.halfWidth___17721); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___4982); - s.tmp_8 = r0; - r0 = (s.tmp_4 - s.tmp_8); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___17701); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_trophy_sm___4982; - r0 = s.arg0.fields["image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.halfWidth___17721); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___17701); - case 1: - case 2: - { step = 4; continue; } - case 3: - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["bestScore"]; + case 7: + // jmp value (already in r0) s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("Best:", s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.currY___17701; - s.tmp_3 = game_screenColor__P4963_mk(s); - s.tmp_3.arg0 = 9; - s.callLocIdx = 1513; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.font8___1956; - s.callLocIdx = 1514; s.pc = 14; return s.tmp_0; - case 14: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + r0 = (s.end___81551 - 1); + s.end___81551 = (r0); + { step = 5; continue; } + case 8: + s.tmp_0 = helpers_stringSlice__P64338_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.start___81550; + r0 = (s.end___81551 + 1); + s.tmp_0.arg2 = r0; + s.callLocIdx = 25; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - case 4: - case 5: - case 6: - r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_drawBestScore__P2938.info = {"start":22246,"length":1319,"line":600,"column":8,"endLine":627,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBestScore","argumentNames":["this"]} +helpers_stringTrim__P64342.info = {"start":14539,"length":319,"line":491,"column":4,"endLine":501,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringTrim","argumentNames":["s"]} -function game_GameOverDialog_drawBestScore__P2938_mk(s) { +function helpers_stringTrim__P64342_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_drawBestScore__P2938, depth: s.depth + 1, + parent: s, fn: helpers_stringTrim__P64342, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - currY___17701: undefined, - label___17710: undefined, - halfWidth___17721: undefined, + start___81550: undefined, + end___81551: undefined, arg0: undefined, } } @@ -37736,7 +37982,7 @@ function game_GameOverDialog_drawBestScore__P2938_mk(s) { -function game_screenColor__P4963(s) { +function helpers__registerFactory__P67531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37748,40 +37994,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); + r0 = pxsim_numops_toBoolDecr(globals.factories___69645); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + globals.factories___69645 = (r0); case 1: - r0 = s.arg0; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "kind", s.arg0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "factory", s.arg1); + r0 = pxsim_Array__push(globals.factories___69645, s.tmp_0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_screenColor__P4963.info = {"start":581,"length":85,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"screenColor","argumentNames":["c"]} +helpers__registerFactory__P67531.info = {"start":2019,"length":201,"line":58,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_registerFactory","argumentNames":["kind","factory"]} -function game_screenColor__P4963_mk(s) { +function helpers__registerFactory__P67531_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_screenColor__P4963, depth: s.depth + 1, + parent: s, fn: helpers__registerFactory__P67531, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog_isMultiplayerGame__P2932(s) { +function forestFire_FireState_constructor__P71363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37796,34 +38048,61 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 8); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + if (!checkSubtype(r0, forestFire_FireState__C71350_VT)) failedCast(r0); + r0 = (s.arg0).fields["period"] = (300); + r0 = s.arg0.fields["period"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["timer"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(16, 16); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_0).fields["timeBuffer"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(16, 16); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["healthBuffer"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["tileCache"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["unburntTileCache"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["fireCreatedHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["fireDestroyedHandlers"] = (s.tmp_1); + r0 = (s.arg0).fields["windSpeed"] = (5); + r0 = (s.arg0).fields["treeHealth"] = (4); + r0 = (s.arg0).fields["dryGrass"] = (5); + r0 = (s.arg0).fields["fireHasStarted"] = (false); + r0 = (s.arg0).fields["updateHasBeenCalled"] = (false); + r0 = pxsim_pxtcore_mkAction(1, forestFire_FireState_inline__P81636); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = game_onUpdate__P67222_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 2300; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_GameOverDialog_isMultiplayerGame__P2932.info = {"start":13962,"length":84,"line":422,"column":8,"endLine":422,"endColumn":92,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isMultiplayerGame","argumentNames":["this"]} -game_GameOverDialog_isMultiplayerGame__P2932.isGetter = true; +forestFire_FireState_constructor__P71363.info = {"start":544,"length":2929,"line":23,"column":8,"endLine":98,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"inline","argumentNames":["this"]} -function game_GameOverDialog_isMultiplayerGame__P2932_mk(s) { +function forestFire_FireState_constructor__P71363_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_isMultiplayerGame__P2932, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_constructor__P71363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, } } @@ -37831,7 +38110,7 @@ function game_GameOverDialog_isMultiplayerGame__P2932_mk(s) { -function game_GameOverDialog_isNewBestScore__P2931(s) { +function forestFire_FireState_inline__P81636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37841,39 +38120,321 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; + s.burntTrees___81637 = undefined; + s.unburntTrees___81638 = undefined; + s.activeFires___81639 = undefined; + s.tile___81641 = undefined; + s.unnamed398___U4 = undefined; + s.unnamed399___U5 = undefined; + s.x___81650 = undefined; + s.y___81657 = undefined; + s.totalTrees___81695 = undefined; + s.score___81722 = undefined; + s.burntTrees___81637 = (0); + s.unburntTrees___81638 = (0); + s.activeFires___81639 = (0); + s.tile___81641 = (undefined); + r0 = s.caps[0].fields["unburntTileCache"]; + s.unnamed398___U4 = (r0); + s.unnamed399___U5 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed399___U5; + r0 = pxsim_Array__length(s.unnamed398___U4); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed398___U4, s.unnamed399___U5); + s.tile___81641 = (r0); + s.tmp_2 = r0 = s.unburntTrees___81638; + s.tmp_5 = tiles_getTilesByType__P66974_mk(s); + s.tmp_5.arg0 = s.tile___81641; + s.callLocIdx = 2287; s.pc = 26; return s.tmp_5; + case 26: + r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 & 4); + r0 = pxsim_Array__length(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_2 + s.tmp_3); + s.unburntTrees___81638 = (r0); + r0 = (s.unnamed399___U5 + 1); + s.unnamed399___U5 = (r0); + { step = 1; continue; } + case 2: + s.unnamed398___U4 = (undefined); + s.x___81650 = (0); + case 3: + s.tmp_1 = r0 = s.x___81650; + r0 = s.caps[0].fields["timeBuffer"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.y___81657 = (0); + case 4: + s.tmp_1 = r0 = s.y___81657; + r0 = s.caps[0].fields["timeBuffer"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = s.caps[0].fields["timeBuffer"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.x___81650, s.y___81657); + s.tmp_5 = r0; + r0 = (s.tmp_5 === 0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + { step = 11; continue; } + { step = 10; continue; } + case 5: + r0 = s.caps[0].fields["timeBuffer"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_9, s.x___81650, s.y___81657); + s.tmp_8 = r0; + r0 = (s.tmp_8 < 15); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 6; continue; } + r0 = (s.activeFires___81639 + 1); + s.activeFires___81639 = (r0); + r0 = (s.burntTrees___81637 + 1); + s.burntTrees___81637 = (r0); + { step = 9; continue; } + case 6: + r0 = s.caps[0].fields["timeBuffer"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___81650, s.y___81657); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 === 15); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.burntTrees___81637 + 1); + s.burntTrees___81637 = (r0); + case 7: + case 8: + case 9: + case 10: + case 11: + r0 = (s.y___81657 + 1); + s.y___81657 = (r0); + { step = 4; continue; } + case 12: + r0 = (s.x___81650 + 1); + s.x___81650 = (r0); + { step = 3; continue; } + case 13: + r0 = (s.unburntTrees___81638 + s.burntTrees___81637); + s.totalTrees___81695 = (r0); + s.tmp_0 = hud_updateForestHealth__P68618_mk(s); + s.tmp_0.arg0 = s.totalTrees___81695; + s.tmp_0.arg1 = s.unburntTrees___81638; + s.callLocIdx = 2288; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = hud_updateFireNumber__P68620_mk(s); + s.tmp_0.arg0 = s.activeFires___81639; + s.callLocIdx = 2289; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.tmp_2 = forestFire_FireState_danger__P71351_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 2290; s.pc = 29; return s.tmp_2; + case 29: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 2.5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_3 = hud_updateDangerBarColors__P68619_mk(s); + s.tmp_3.arg0 = 7; + s.callLocIdx = 2291; s.pc = 30; return s.tmp_3; + case 30: + r0 = s.retval; + { step = 19; continue; } + case 14: + s.tmp_2 = forestFire_FireState_danger__P71351_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 2292; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_3 = hud_updateDangerBarColors__P68619_mk(s); + s.tmp_3.arg0 = 5; + s.callLocIdx = 2293; s.pc = 32; return s.tmp_3; + case 32: + r0 = s.retval; + { step = 18; continue; } + case 15: + s.tmp_2 = forestFire_FireState_danger__P71351_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 2294; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 7.5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_3 = hud_updateDangerBarColors__P68619_mk(s); + s.tmp_3.arg0 = 4; + s.callLocIdx = 2295; s.pc = 34; return s.tmp_3; + case 34: + r0 = s.retval; + { step = 17; continue; } + case 16: + s.tmp_0 = hud_updateDangerBarColors__P68619_mk(s); + s.tmp_0.arg0 = 2; + s.callLocIdx = 2296; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + case 17: + case 18: + case 19: + r0 = s.caps[0].fields["updateHasBeenCalled"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 20; continue; } + r0 = s.tmp_0; + { step = 21; continue; } + case 20: + r0 = s.caps[0].fields["fireHasStarted"]; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 22; continue; } + r0 = s.tmp_1; + { step = 23; continue; } + case 22: + r0 = (s.activeFires___81639 == 0); + case 23: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 24; continue; } + r0 = (s.unburntTrees___81638 / s.totalTrees___81695); + s.tmp_4 = r0; + r0 = (s.tmp_4 * 100); + s.tmp_3 = r0; + r0 = pxsim.Math_.round(s.tmp_3); + s.score___81722 = (r0); + s.tmp_0 = info_setScore__P66771_mk(s); + s.tmp_0.arg0 = s.score___81722; + s.callLocIdx = 2297; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + s.tmp_0 = game_splash__P67164_mk(s); + if ((s.score___81722) && (s.score___81722).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.score___81722); + checkResumeConsumed(); + return; + } else { s.retval = (s.score___81722) + ""; } + case 38: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat("You saved ", s.tmp_3); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 39); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 39: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "% of the forest!"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 2298; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = game_over__P67211_mk(s); + r0 = (s.score___81722 > 0); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 2299; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + case 24: + case 25: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_GameOverDialog_isNewBestScore__P2931.info = {"start":13875,"length":78,"line":421,"column":8,"endLine":421,"endColumn":86,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isNewBestScore","argumentNames":["this"]} -game_GameOverDialog_isNewBestScore__P2931.isGetter = true; +forestFire_FireState_inline__P81636.info = {"start":1694,"length":1768,"line":53,"column":26,"endLine":97,"endColumn":13,"fileName":"pxt_modules/pxt-arcade-forest-fire/fire.ts","functionName":"inline","argumentNames":[]} -function game_GameOverDialog_isNewBestScore__P2931_mk(s) { +function forestFire_FireState_inline__P81636_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_isNewBestScore__P2931, depth: s.depth + 1, + parent: s, fn: forestFire_FireState_inline__P81636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + burntTrees___81637: undefined, + unburntTrees___81638: undefined, + activeFires___81639: undefined, + tile___81641: undefined, + unnamed398___U4: undefined, + unnamed399___U5: undefined, + x___81650: undefined, + y___81657: undefined, + totalTrees___81695: undefined, + score___81722: undefined, +} } + + + + + +function hud_updateFireNumber__P68620(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + globals.fireNumber___71331 = (s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +hud_updateFireNumber__P68620.info = {"start":4626,"length":83,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateFireNumber","argumentNames":["fires"]} + +function hud_updateFireNumber__P68620_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: hud_updateFireNumber__P68620, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -37881,7 +38442,7 @@ function game_GameOverDialog_isNewBestScore__P2931_mk(s) { -function game_GameOverDialog_hasBestScore__P2930(s) { +function hud_updateDangerBarColors__P68619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37895,35 +38456,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 2); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + globals.fireDangerColor___71334 = (s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_GameOverDialog_hasBestScore__P2930.info = {"start":13790,"length":76,"line":420,"column":8,"endLine":420,"endColumn":84,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasBestScore","argumentNames":["this"]} -game_GameOverDialog_hasBestScore__P2930.isGetter = true; +hud_updateDangerBarColors__P68619.info = {"start":4527,"length":93,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateDangerBarColors","argumentNames":["color"]} -function game_GameOverDialog_hasBestScore__P2930_mk(s) { +function hud_updateDangerBarColors__P68619_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_hasBestScore__P2930, depth: s.depth + 1, + parent: s, fn: hud_updateDangerBarColors__P68619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, } } @@ -37931,7 +38475,7 @@ function game_GameOverDialog_hasBestScore__P2930_mk(s) { -function helpers_imagePrintCenter__P1970(s) { +function hud_updateForestHealth__P68618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37941,92 +38485,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___17796 = undefined; - s.x___17802 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P1958_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 204; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.arg4 = (r0); + s.tmp_0 = StatusBarSprite_max__P68552_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 2259; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_String_.length(s.arg1); - s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg4; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 205; s.pc = 4; return s.tmp_2; } - } - case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.w___17796 = (r0); - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___17796); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 2); - s.x___17802 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = s.arg0; + s.tmp_0 = StatusBarSprite_value__P68550_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___17802; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.tmp_0.arg5 = s.arg4; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 206; s.pc = 5; return s.tmp_0; - case 5: + s.callLocIdx = 2260; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P1970.info = {"start":15025,"length":295,"line":206,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrintCenter","argumentNames":["img","text","y","color","font"]} +hud_updateForestHealth__P68618.info = {"start":4377,"length":144,"line":155,"column":4,"endLine":158,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"updateForestHealth","argumentNames":["max","value"]} -function helpers_imagePrintCenter__P1970_mk(s) { +function hud_updateForestHealth__P68618_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P1970, depth: s.depth + 1, + parent: s, fn: hud_updateForestHealth__P68618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - w___17796: undefined, - x___17802: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function game_GameOverDialog_drawScores__P2937(s) { +function StatusBarSprite_max__P68552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38036,606 +38532,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scores___17837 = undefined; - s.currY___17850 = undefined; - s.score___17859 = undefined; - s.x___17891 = undefined; - s.strlens___17918 = undefined; - s.i___17920 = undefined; - s.col___17926 = undefined; - s.score___17929 = undefined; - s.i___17962 = undefined; - s.col___17968 = undefined; - s.score___17971 = undefined; - s.str___17975 = undefined; - s.x___17987 = undefined; - s.score___18068 = undefined; - s.currY___18089 = undefined; - s.currY___18109 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - s.tmp_1 = game_GameOverDialog_hasScores__P2929_mk(s); + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_max_inline__P85229); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = StatusBarSprite_applyChange__P71276_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1486; s.pc = 23; return s.tmp_1; - case 23: + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 2109; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - r0 = s.arg0.fields["scores"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = scores_inline__P17839; - s.callLocIdx = 1487; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.scores___17837 = (r0); - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = globals.font5___1961; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1488; s.pc = 25; return s.tmp_1; } - } - case 25: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 16); - s.currY___17850 = (r0); - s.tmp_1 = game_GameOverDialog_isMultiplayerGame__P2932_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1489; s.pc = 26; return s.tmp_1; - case 26: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = pxsim_Array__length(s.scores___17837); - s.tmp_3 = r0; - r0 = (s.tmp_3 === 1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__getAt(s.scores___17837, 0); - s.score___17859 = (r0); - s.tmp_0 = r0 = s.score___17859; - r0 = s.score___17859.fields["player"]; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 27); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 27: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat("P", s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 28: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ":"); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 29); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 29: - r0 = s.retval; - s.tmp_2 = r0; - r0 = s.score___17859.fields["value"]; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 30: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["str"] = (s.tmp_1); - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.score___17859.fields["str"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.currY___17850; - s.tmp_1 = game_screenColor__P4963_mk(s); - s.tmp_1.arg0 = 1; - s.callLocIdx = 1490; s.pc = 32; return s.tmp_1; - case 32: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.font5___1961; - s.callLocIdx = 1491; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - r0 = s.score___17859.fields["winner"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = s.score___17859.fields["str"]; - s.tmp_7 = r0; - r0 = pxsim_String_.length(s.tmp_7); - s.tmp_6 = r0; - s.tmp_9 = if_charWidth_1_mk(s); - s.tmp_9.arg0 = globals.font5___1961; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 1492; s.pc = 33; return s.tmp_9; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_max__P68552.info = {"start":3194,"length":95,"line":102,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} + +function StatusBarSprite_max__P68552_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_max__P68552, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function StatusBarSprite_max_inline__P85229(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 33: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_6 * s.tmp_8); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.x___17891 = (r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_trophy_sm___4982; - s.tmp_4 = r0 = s.x___17891; - r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___4982); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 3); - s.tmp_2 = r0; - r0 = (s.currY___17850 - 2); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + s.tmp_0 = statusbars_StatusBar_max__P68585_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 2108; s.pc = 1; return s.tmp_0; case 1: - case 2: - { step = 16; continue; } - case 3: - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, 0); - r0 = pxsim_Array__push(s.tmp_0, 0); - s.strlens___17918 = (s.tmp_0); - s.i___17920 = (0); - case 4: - s.tmp_1 = r0 = s.i___17920; - r0 = pxsim_Array__length(s.scores___17837); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.i___17920 % 2); - s.col___17926 = (r0); - r0 = pxsim_Array__getAt(s.scores___17837, s.i___17920); - s.score___17929 = (r0); - s.tmp_0 = r0 = s.score___17929; - r0 = s.score___17929.fields["player"]; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 34: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat("P", s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 35); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 35: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ":"); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 36: - r0 = s.retval; - s.tmp_2 = r0; - r0 = s.score___17929.fields["value"]; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 37); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 37: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["str"] = (s.tmp_1); - s.tmp_0 = r0 = s.strlens___17918; - s.tmp_1 = r0 = s.col___17926; - s.tmp_3 = Math_max__P130_mk(s); - r0 = pxsim_Array__getAt(s.strlens___17918, s.col___17926); - s.tmp_3.arg0 = r0; - r0 = s.score___17929.fields["str"]; - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.tmp_4); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1493; s.pc = 38; return s.tmp_3; - case 38: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); - r0 = (s.i___17920 + 1); - s.i___17920 = (r0); - { step = 4; continue; } - case 5: - s.i___17962 = (0); - case 6: - s.tmp_1 = r0 = s.i___17962; - r0 = pxsim_Array__length(s.scores___17837); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.i___17962 % 2); - s.col___17968 = (r0); - r0 = pxsim_Array__getAt(s.scores___17837, s.i___17962); - s.score___17971 = (r0); - s.tmp_0 = game_padStr__P4961_mk(s); - r0 = pxsim_Array__getAt(s.strlens___17918, s.col___17968); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1494; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.str___17975 = (r0); - s.tmp_0 = game_replaceRange__P4962_mk(s); - s.tmp_0.arg0 = s.str___17975; - r0 = s.score___17971.fields["str"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = s.score___17971.fields["str"]; - s.tmp_1 = r0; - r0 = pxsim_String_.length(s.tmp_1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1495; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - s.str___17975 = (r0); - s.x___17987 = (0); - r0 = (s.col___17968 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.strlens___17918, s.col___17968); - s.tmp_6 = r0; - s.tmp_8 = if_charWidth_1_mk(s); - s.tmp_8.arg0 = globals.font5___1961; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charWidth"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charWidth"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charWidth"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1496; s.pc = 41; return s.tmp_8; } - } - case 41: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_6 * s.tmp_7); - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.x___17987 = (r0); - { step = 8; continue; } - case 7: - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.x___17987 = (r0); - case 8: - r0 = s.score___17971.fields["winner"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.i___17962 % 2); - s.tmp_2 = r0; - r0 = (s.tmp_2 === 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = s.arg0.fields["image"]; - s.tmp_3 = r0; - s.tmp_4 = r0 = globals.img_trophy_sm___4982; - s.tmp_7 = r0 = s.x___17987; - r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___4982); - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_6 - 3); - s.tmp_5 = r0; - r0 = (s.currY___17850 - 2); - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_9); - { step = 10; continue; } - case 9: - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_trophy_sm___4982; - s.tmp_4 = r0 = s.x___17987; - r0 = s.score___17971.fields["str"]; - s.tmp_7 = r0; - r0 = pxsim_String_.length(s.tmp_7); - s.tmp_6 = r0; - s.tmp_9 = if_charWidth_1_mk(s); - s.tmp_9.arg0 = globals.font5___1961; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 1497; s.pc = 42; return s.tmp_9; } - } - case 42: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_6 * s.tmp_8); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_2 = r0; - r0 = (s.currY___17850 - 2); - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_10); - case 10: - case 11: - case 12: - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.str___17975; - s.tmp_0.arg2 = s.x___17987; - s.tmp_0.arg3 = s.currY___17850; - s.tmp_1 = game_screenColor__P4963_mk(s); - s.tmp_1.arg0 = 1; - s.callLocIdx = 1498; s.pc = 44; return s.tmp_1; - case 44: - r0 = s.retval; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = globals.font5___1961; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1499; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - r0 = (s.i___17962 % 2); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_2 = r0 = s.currY___17850; - s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.font5___1961; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1500; s.pc = 45; return s.tmp_5; } - } - case 45: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 2); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.currY___17850 = (r0); - case 13: - case 14: - r0 = (s.i___17962 + 1); - s.i___17962 = (r0); - { step = 6; continue; } - case 15: - case 16: - { step = 18; continue; } - case 17: - r0 = pxsim_Array__getAt(s.scores___17837, 0); - s.score___18068 = (r0); - s.tmp_0 = r0 = s.score___18068; - r0 = s.score___18068.fields["value"]; - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 46: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat("Score:", s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["str"] = (s.tmp_1); - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.score___18068.fields["str"]; - s.tmp_0.arg1 = r0; - r0 = (s.currY___17850 - 1); - s.tmp_0.arg2 = r0; - s.tmp_1 = game_screenColor__P4963_mk(s); - s.tmp_1.arg0 = 1; - s.callLocIdx = 1501; s.pc = 48; return s.tmp_1; - case 48: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.font8___1956; - s.callLocIdx = 1502; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - case 18: - { step = 22; continue; } - case 19: - s.tmp_1 = game_GameOverDialog_isWinCondition__P2927_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1503; s.pc = 49; return s.tmp_1; - case 49: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = globals.font5___1961; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1504; s.pc = 50; return s.tmp_3; } - } - case 50: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 14); - s.currY___18089 = (r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_trophy_lg___4985; - r0 = s.arg0.fields["image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(globals.img_trophy_lg___4985); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 1); - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___18089); - { step = 21; continue; } - case 20: - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = globals.font5___1961; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1505; s.pc = 51; return s.tmp_1; } - } - case 51: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 14); - s.currY___18109 = (r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - s.tmp_1 = r0 = globals.img_sleepy_sim___4988; - r0 = s.arg0.fields["image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(globals.img_sleepy_sim___4988); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 1); - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___18109); - case 21: - case 22: r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_drawScores__P2937.info = {"start":17805,"length":4431,"line":516,"column":8,"endLine":598,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawScores","argumentNames":["this"]} +StatusBarSprite_max_inline__P85229.info = {"start":3240,"length":41,"line":103,"column":25,"endLine":105,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function game_GameOverDialog_drawScores__P2937_mk(s) { +function StatusBarSprite_max_inline__P85229_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_drawScores__P2937, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_max_inline__P85229, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - scores___17837: undefined, - currY___17850: undefined, - score___17859: undefined, - x___17891: undefined, - strlens___17918: undefined, - i___17920: undefined, - col___17926: undefined, - score___17929: undefined, - i___17962: undefined, - col___17968: undefined, - score___17971: undefined, - str___17975: undefined, - x___17987: undefined, - score___18068: undefined, - currY___18089: undefined, - currY___18109: undefined, arg0: undefined, } } @@ -38643,7 +38608,7 @@ function game_GameOverDialog_drawScores__P2937_mk(s) { -function scores_inline__P17839(s) { +function statusbars_StatusBar_max__P68585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38655,30 +38620,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["value"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 != null); + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + s.tmp_0 = statusbars_StatusBar_changeValue__P71303_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["target"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 2134; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = statusbars_StatusBar_updateState__P68591_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2135; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scores_inline__P17839.info = {"start":17904,"length":28,"line":518,"column":50,"endLine":518,"endColumn":78,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +statusbars_StatusBar_max__P68585.info = {"start":15827,"length":109,"line":456,"column":8,"endLine":459,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} -function scores_inline__P17839_mk(s) { +function statusbars_StatusBar_max__P68585_mk(s) { checkStack(s.depth); return { - parent: s, fn: scores_inline__P17839, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_max__P68585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function game_replaceRange__P4962(s) { +function statusbars_StatusBar_changeValue__P71303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38688,86 +38668,192 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.statusHandlers___85070 = undefined; + s.toRun___85073 = undefined; + s.handler___85126 = undefined; + s.h___85150 = undefined; + s.unnamed396___U4 = undefined; + s.unnamed397___U5 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_4 = helpers_stringSubstr__P118_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.arg2; - s.callLocIdx = 1383; s.pc = 1; return s.tmp_4; + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + s.tmp_0 = statusbars_getStatusHandlers__P71315_mk(s); + s.callLocIdx = 2139; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.statusHandlers___85070 = (r0); + s.tmp_0 = r0 = s.statusHandlers___85070; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_pxtcore_mkAction(3, toRun_inline__P85078); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg2); + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + s.tmp_2.arg0 = s.statusHandlers___85070; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 2144; s.pc = 24; return s.tmp_2; + case 24: r0 = s.retval; - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } case 2: - r0 = s.retval; - s.tmp_2 = r0; - s.tmp_7 = helpers_stringSubstr__P118_mk(s); - s.tmp_7.arg0 = s.arg1; - s.tmp_7.arg1 = 0; - s.tmp_7.arg2 = s.arg3; - s.callLocIdx = 1384; s.pc = 3; return s.tmp_7; + // jmp value (already in r0) + s.tmp_3 = r0; + s.toRun___85073 = (s.tmp_3); + r0 = (s.arg0).fields["target"] = (s.arg1); + r0 = (s.arg0).fields["_max"] = (s.arg2); + r0 = (s.arg1 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 4: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_5); + r0 = s.arg0.fields["hasHitZero"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 5); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } + r0 = pxsim_Boolean__bang(s.tmp_1); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } case 5: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_10 = helpers_stringSubstr__P118_mk(s); - s.tmp_10.arg0 = s.arg0; - r0 = (s.arg2 + s.arg3); - s.tmp_10.arg1 = r0; - s.tmp_10.arg2 = undefined; - s.callLocIdx = 1385; s.pc = 6; return s.tmp_10; + r0 = s.arg0.fields["flags"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 & 64); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 13; continue; } + r0 = (s.arg0).fields["hasHitZero"] = (true); + s.tmp_1 = statusbars_getZeroHandlers__P71314_mk(s); + s.callLocIdx = 2145; s.pc = 25; return s.tmp_1; + case 25: r0 = s.retval; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } case 7: + r0 = pxsim_Array__mk(); + case 8: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.arg0.fields["kind"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.handler___85126 = (r0); + r0 = s.arg0.fields["sprite"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.handler___85126; + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = s.handler___85126; + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 2146; s.pc = 26; return s.tmp_2; + case 26: r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_8); + case 11: + case 12: + { step = 18; continue; } + case 13: + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 14; continue; } + r0 = s.tmp_0; + { step = 15; continue; } + case 14: + r0 = s.arg0.fields["hasHitZero"]; + case 15: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 16; continue; } + r0 = (s.arg0).fields["hasHitZero"] = (false); + case 16: + case 17: + case 18: + s.h___85150 = (undefined); + s.tmp_0 = r0 = s.toRun___85073; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } + case 19: + r0 = pxsim_Array__mk(); + case 20: + // jmp value (already in r0) + s.tmp_1 = r0; + s.unnamed396___U4 = (s.tmp_1); + s.unnamed397___U5 = (0); + case 21: + s.tmp_0 = r0 = s.unnamed397___U5; + r0 = pxsim_Array__length(s.unnamed396___U4); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 22; continue; } + r0 = pxsim_Array__getAt(s.unnamed396___U4, s.unnamed397___U5); + s.h___85150 = (r0); + s.tmp_2 = if_handler_2_mk(s); + s.tmp_2.arg0 = s.h___85150; + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg1 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 2); + s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 2); s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 2147; s.pc = 27; return s.tmp_2;; } + else { s.callLocIdx = 2147; s.pc = 27; return s.tmp_2; } + } + case 27: + r0 = s.retval; + r0 = (s.unnamed397___U5 + 1); + s.unnamed397___U5 = (r0); + { step = 21; continue; } + case 22: + s.unnamed396___U4 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_replaceRange__P4962.info = {"start":400,"length":175,"line":24,"column":4,"endLine":26,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"replaceRange","argumentNames":["dst","src","start","len"]} +statusbars_StatusBar_changeValue__P71303.info = {"start":16237,"length":1086,"line":474,"column":8,"endLine":499,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"changeValue","argumentNames":["this","current","max"]} -function game_replaceRange__P4962_mk(s) { +function statusbars_StatusBar_changeValue__P71303_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_replaceRange__P4962, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_changeValue__P71303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38777,20 +38863,22 @@ function game_replaceRange__P4962_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, + statusHandlers___85070: undefined, + toRun___85073: undefined, + handler___85126: undefined, + h___85150: undefined, + unnamed396___U4: undefined, + unnamed397___U5: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function helpers_stringSubstr__P118(s) { +function toRun_inline__P85078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38802,57 +38890,97 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg2 === undefined); + r0 = s.arg0.fields["kind"]; + s.tmp_1 = r0; + r0 = s.caps[0].fields["kind"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.length(s.arg0); - { step = 4; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = s.tmp_1; - { step = 3; continue; } + r0 = s.caps[0].fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 64); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); case 2: - r0 = 0; - case 3: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 3; continue; } + r0 = s.tmp_6; + { step = 4; continue; } + case 3: + s.tmp_7 = statusbars_StatusHandler_conditionMet__P71308_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.caps[1]; + s.tmp_7.arg2 = s.caps[2]; + s.callLocIdx = 2140; s.pc = 7; return s.tmp_7; + case 7: + r0 = s.retval; case 4: // jmp value (already in r0) - s.tmp_3 = r0; - s.arg2 = (s.tmp_3); - r0 = pxsim_String_.substr(s.arg0, s.arg1, s.arg2); + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (r0) { step = 5; continue; } + r0 = s.tmp_8; + { step = 6; continue; } + case 5: + s.tmp_11 = statusbars_StatusHandler_conditionMet__P71308_mk(s); + s.tmp_11.arg0 = s.arg0; + r0 = s.caps[0].fields["target"]; + s.tmp_11.arg1 = r0; + r0 = s.caps[0].fields["_max"]; + s.tmp_11.arg2 = r0; + s.callLocIdx = 2143; s.pc = 8; return s.tmp_11; + case 8: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_Boolean__bang(s.tmp_9); + case 6: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = s.tmp_12; return leave(s, r0) default: oops() } } } -helpers_stringSubstr__P118.info = {"start":11286,"length":204,"line":379,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSubstr","argumentNames":["s","start","length"]} +toRun_inline__P85078.info = {"start":16413,"length":227,"line":476,"column":66,"endLine":480,"endColumn":62,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} -function helpers_stringSubstr__P118_mk(s) { +function toRun_inline__P85078_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSubstr__P118, depth: s.depth + 1, + parent: s, fn: toRun_inline__P85078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function game_padStr__P4961(s) { +function statusbars_getStatusHandlers__P71315(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38862,58 +38990,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.str___18164 = undefined; - s.i___18165 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_String_.mkEmpty(); - s.str___18164 = (r0); - s.i___18165 = (0); + s.tmp_0 = statusbars_getSceneData__P71312_mk(s); + s.tmp_0.arg0 = globals.STATUS_HANDLERS_KEY___71293; + s.callLocIdx = 2225; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___18165 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - if ((s.str___18164) && (s.str___18164).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.str___18164); - checkResumeConsumed(); - return; - } else { s.retval = (s.str___18164) + ""; } - case 3: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, " "); - s.str___18164 = (r0); - r0 = (s.i___18165 + 1); - s.i___18165 = (r0); - { step = 1; continue; } - case 2: - r0 = s.str___18164; return leave(s, r0) default: oops() } } } -game_padStr__P4961.info = {"start":234,"length":160,"line":16,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"padStr","argumentNames":["len"]} +statusbars_getStatusHandlers__P71315.info = {"start":33463,"length":105,"line":955,"column":4,"endLine":957,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getStatusHandlers","argumentNames":[]} -function game_padStr__P4961_mk(s) { +function statusbars_getStatusHandlers__P71315_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_padStr__P4961, depth: s.depth + 1, + parent: s, fn: statusbars_getStatusHandlers__P71315, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - str___18164: undefined, - i___18165: undefined, - arg0: undefined, } } -function game_GameOverDialog_hasScores__P2929(s) { +function statusbars_getZeroHandlers__P71314(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38923,47 +39022,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 16); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + s.tmp_0 = statusbars_getSceneData__P71312_mk(s); + s.tmp_0.arg0 = globals.ZERO_HANDLERS_KEY___71287; + s.callLocIdx = 2224; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -game_GameOverDialog_hasScores__P2929.info = {"start":13706,"length":75,"line":419,"column":8,"endLine":419,"endColumn":83,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasScores","argumentNames":["this"]} -game_GameOverDialog_hasScores__P2929.isGetter = true; +statusbars_getZeroHandlers__P71314.info = {"start":33343,"length":114,"line":951,"column":4,"endLine":953,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getZeroHandlers","argumentNames":[]} -function game_GameOverDialog_hasScores__P2929_mk(s) { +function statusbars_getZeroHandlers__P71314_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_hasScores__P2929, depth: s.depth + 1, + parent: s, fn: statusbars_getZeroHandlers__P71314, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, } } -function game_GameOverDialog_isWinCondition__P2927(s) { +function statusbars_StatusHandler_conditionMet__P71308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38973,47 +39054,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.value___85165 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + if (!checkSubtype(r0, statusbars_StatusHandler__C71307_VT)) failedCast(r0); + r0 = s.arg0.fields["comparisonType"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 === 0); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg1 / s.arg2); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 100); + { step = 2; continue; } + case 1: + r0 = s.arg1; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.value___85165 = (s.tmp_3); + r0 = s.arg0.fields["comparison"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 3: + r0 = s.arg0.fields["percent"]; + s.tmp_1 = r0; + r0 = (s.value___85165 === s.tmp_1); + { step = 10; continue; } + case 4: + r0 = s.arg0.fields["percent"]; + s.tmp_2 = r0; + r0 = (s.value___85165 !== s.tmp_2); + { step = 10; continue; } + case 5: + r0 = s.arg0.fields["percent"]; + s.tmp_3 = r0; + r0 = (s.value___85165 > s.tmp_3); + { step = 10; continue; } + case 6: + r0 = s.arg0.fields["percent"]; + s.tmp_4 = r0; + r0 = (s.value___85165 >= s.tmp_4); + { step = 10; continue; } + case 7: + r0 = s.arg0.fields["percent"]; + s.tmp_5 = r0; + r0 = (s.value___85165 < s.tmp_5); + { step = 10; continue; } + case 8: + r0 = s.arg0.fields["percent"]; + s.tmp_6 = r0; + r0 = (s.value___85165 <= s.tmp_6); + { step = 10; continue; } + case 9: + r0 = false; + { step = 10; continue; } + r0 = undefined; + case 10: + return leave(s, r0) default: oops() } } } -game_GameOverDialog_isWinCondition__P2927.info = {"start":13573,"length":73,"line":417,"column":8,"endLine":417,"endColumn":81,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isWinCondition","argumentNames":["this"]} -game_GameOverDialog_isWinCondition__P2927.isGetter = true; +statusbars_StatusHandler_conditionMet__P71308.info = {"start":24789,"length":962,"line":710,"column":8,"endLine":731,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"conditionMet","argumentNames":["this","current","max"]} -function game_GameOverDialog_isWinCondition__P2927_mk(s) { +function statusbars_StatusHandler_conditionMet__P71308_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_isWinCondition__P2927, depth: s.depth + 1, + parent: s, fn: statusbars_StatusHandler_conditionMet__P71308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + value___85165: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_GameOverDialog_drawMessage__P2936(s) { +function statusbars_StatusBar_updateState__P68591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39023,144 +39167,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.target___84983 = undefined; + s.displayValue___84984 = undefined; + s.currTime___84999 = undefined; + s.change___85014 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - r0 = s.arg0.fields["image"]; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + s.tmp_0 = if_target_1_mk(s); + s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["message"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 5; - s.tmp_1 = game_screenColor__P4963_mk(s); - s.tmp_1.arg0 = 5; - s.callLocIdx = 1484; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.font8___1956; - s.callLocIdx = 1485; s.pc = 1; return s.tmp_0; - case 1: + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "target"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["target"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["target"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 2160; s.pc = 12; return s.tmp_0; } + } + case 12: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_GameOverDialog_drawMessage__P2936.info = {"start":17577,"length":218,"line":506,"column":8,"endLine":514,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawMessage","argumentNames":["this"]} - -function game_GameOverDialog_drawMessage__P2936_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_GameOverDialog_drawMessage__P2936, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function game_BaseDialog_drawCursorRow__P2900(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.offset___11048 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + s.target___84983 = (r0); + s.tmp_2 = if_displayValue_1_mk(s); + s.tmp_2.arg0 = s.tmp_1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "displayValue"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["displayValue"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["displayValue"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 2161; s.pc = 13; return s.tmp_2; } } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - s.offset___11048 = (0); - r0 = s.arg0.fields["cursorCount"]; + case 13: + r0 = s.retval; + s.displayValue___84984 = (r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > 20); + r0 = (s.tmp_1 & 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.offset___11048 = (1); + s.tmp_2 = r0 = s.arg0; + s.tmp_4 = Math_constrain__P64503_mk(s); + s.tmp_4.arg0 = s.target___84983; + s.tmp_4.arg1 = 0; + r0 = s.arg0.fields["_max"]; + s.tmp_4.arg2 = r0; + s.callLocIdx = 2163; s.pc = 14; return s.tmp_4; + case 14: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["target"] = (s.tmp_3); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_constrain__P64503_mk(s); + s.tmp_2.arg0 = s.displayValue___84984; + s.tmp_2.arg1 = 0; + r0 = s.arg0.fields["_max"]; + s.tmp_2.arg2 = r0; + s.callLocIdx = 2165; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["displayValue"] = (s.tmp_1); case 1: case 2: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["cursorCount"]; + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2166; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.currTime___84999 = (r0); + s.tmp_2 = Math_abs__P64347_mk(s); + r0 = s.arg0.fields["lastUpdate"]; s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 % 40); + r0 = (s.tmp_3 - s.currTime___84999); + s.tmp_2.arg0 = r0; + s.callLocIdx = 2168; s.pc = 17; return s.tmp_2; + case 17: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cursorCount"] = (s.tmp_1); - r0 = s.arg0.fields["image"]; + r0 = s.arg0.fields["throttleAmount"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 < s.tmp_4); s.tmp_0 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_6 = r0; - s.tmp_8 = game_BaseDialog_textAreaWidth__P4975_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 1393; s.pc = 3; return s.tmp_8; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 11; continue; } case 3: + case 4: + r0 = s.arg0.fields["_max"]; + s.tmp_5 = r0; + s.tmp_8 = Math_max__P64349_mk(s); + r0 = s.arg0.fields["_barWidth"]; + s.tmp_8.arg0 = r0; + r0 = s.arg0.fields["_barHeight"]; + s.tmp_8.arg1 = r0; + s.callLocIdx = 2170; s.pc = 18; return s.tmp_8; + case 18: r0 = s.retval; s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_9 = r0; - r0 = (s.tmp_5 + s.tmp_9); - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.offset___11048); - s.tmp_3 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_11 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_11); + r0 = s.arg0.fields["borderWidth"]; s.tmp_10 = r0; - r0 = (s.tmp_3 - s.tmp_10); + r0 = (s.tmp_10 * 2); + s.tmp_9 = r0; + r0 = (s.tmp_7 - s.tmp_9); + s.tmp_6 = r0; + r0 = (s.tmp_5 / s.tmp_6); + s.change___85014 = (r0); + r0 = s.arg0.fields["target"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["displayValue"]; s.tmp_2 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_16 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_17 = r0; - r0 = (s.tmp_16 + s.tmp_17); - s.tmp_15 = r0; - s.tmp_19 = game_BaseDialog_textAreaHeight__P4976_mk(s); - s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 1394; s.pc = 4; return s.tmp_19; - case 4: + r0 = (s.tmp_1 > s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = Math_min__P64350_mk(s); + r0 = (s.displayValue___84984 + s.change___85014); + s.tmp_5.arg0 = r0; + r0 = s.arg0.fields["target"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 2171; s.pc = 19; return s.tmp_5; + case 19: r0 = s.retval; - s.tmp_18 = r0; - r0 = (s.tmp_15 + s.tmp_18); - s.tmp_14 = r0; - r0 = (s.tmp_14 + 1); - s.tmp_13 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_22 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_22); - s.tmp_21 = r0; - r0 = (s.tmp_21 + 1); - s.tmp_20 = r0; - r0 = (s.tmp_13 - s.tmp_20); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_12); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); + r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___84999); + { step = 8; continue; } + case 5: + r0 = s.arg0.fields["target"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["displayValue"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = Math_max__P64349_mk(s); + r0 = (s.displayValue___84984 - s.change___85014); + s.tmp_5.arg0 = r0; + r0 = s.arg0.fields["target"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 2172; s.pc = 20; return s.tmp_5; + case 20: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); + r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___84999); + case 6: + case 7: + case 8: + r0 = s.arg0.fields["displayValue"]; + s.tmp_1 = r0; + r0 = (s.displayValue___84984 !== s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_2 = statusbars_StatusBar_updateDisplay__P68592_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 2173; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawCursorRow__P2900.info = {"start":2464,"length":479,"line":88,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} +statusbars_StatusBar_updateState__P68591.info = {"start":18795,"length":1067,"line":549,"column":8,"endLine":573,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateState","argumentNames":["this"]} -function game_BaseDialog_drawCursorRow__P2900_mk(s) { +function statusbars_StatusBar_updateState__P68591_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawCursorRow__P2900, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_updateState__P68591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39173,19 +39359,10 @@ function game_BaseDialog_drawCursorRow__P2900_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - offset___11048: undefined, + target___84983: undefined, + displayValue___84984: undefined, + currTime___84999: undefined, + change___85014: undefined, arg0: undefined, } } @@ -39193,7 +39370,7 @@ function game_BaseDialog_drawCursorRow__P2900_mk(s) { -function game_BaseDialog_textAreaHeight__P4976(s) { +function statusbars_StatusBar_current__P68586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39208,46 +39385,226 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + r0 = s.arg0.fields["target"]; + return leaveAccessor(s, r0) + default: oops() +} } } +statusbars_StatusBar_current__P68586.info = {"start":15946,"length":57,"line":461,"column":8,"endLine":463,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this"]} +statusbars_StatusBar_current__P68586.isGetter = true; + +function statusbars_StatusBar_current__P68586_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: statusbars_StatusBar_current__P68586, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function statusbars_StatusBar_max__P68584(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + r0 = s.arg0.fields["_max"]; + return leaveAccessor(s, r0) + default: oops() +} } } +statusbars_StatusBar_max__P68584.info = {"start":15766,"length":51,"line":452,"column":8,"endLine":454,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} +statusbars_StatusBar_max__P68584.isGetter = true; + +function statusbars_StatusBar_max__P68584_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: statusbars_StatusBar_max__P68584, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function StatusBarSprite_max__P68551(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + s.tmp_1 = StatusBarSprite_applyChange__P71276_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = StatusBarSprite_max_inline__P85243; + s.callLocIdx = 2107; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_5 = r0; - s.tmp_7 = Math_min__P131_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 1417; s.pc = 1; return s.tmp_7; + r0 = s.tmp_2; + return leaveAccessor(s, r0) + default: oops() +} } } +StatusBarSprite_max__P68551.info = {"start":3111,"length":77,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} +StatusBarSprite_max__P68551.isGetter = true; + +function StatusBarSprite_max__P68551_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_max__P68551, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function StatusBarSprite_max_inline__P85243(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["_max"]; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_max_inline__P85243.info = {"start":3163,"length":12,"line":99,"column":32,"endLine":99,"endColumn":44,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} + +function StatusBarSprite_max_inline__P85243_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_max_inline__P85243, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function StatusBarSprite_value__P68550(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_value_inline__P84961); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = StatusBarSprite_applyChange__P71276_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 2105; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaHeight__P4976.info = {"start":5841,"length":143,"line":186,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} +StatusBarSprite_value__P68550.info = {"start":2861,"length":101,"line":89,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this","v"]} -function game_BaseDialog_textAreaHeight__P4976_mk(s) { +function StatusBarSprite_value__P68550_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaHeight__P4976, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value__P68550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function StatusBarSprite_value_inline__P84961(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = statusbars_StatusBar_current__P68587_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 2104; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_value_inline__P84961.info = {"start":2909,"length":45,"line":90,"column":25,"endLine":92,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} + +function StatusBarSprite_value_inline__P84961_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_value_inline__P84961, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -39255,7 +39612,7 @@ function game_BaseDialog_textAreaHeight__P4976_mk(s) { -function game_BaseDialog_textAreaWidth__P4975(s) { +function statusbars_StatusBar_current__P68587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39267,57 +39624,61 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + s.tmp_0 = statusbars_StatusBar_changeValue__P71303_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + r0 = s.arg0.fields["_max"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 2137; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = s.arg0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_5 = r0; - s.tmp_7 = Math_min__P131_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 1416; s.pc = 1; return s.tmp_7; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["displayValue"] = (s.arg1); case 1: + case 2: + s.tmp_0 = statusbars_StatusBar_updateState__P68591_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2138; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaWidth__P4975.info = {"start":5689,"length":142,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} +statusbars_StatusBar_current__P68587.info = {"start":16013,"length":214,"line":465,"column":8,"endLine":472,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this","v"]} -function game_BaseDialog_textAreaWidth__P4975_mk(s) { +function statusbars_StatusBar_current__P68587_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaWidth__P4975, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_current__P68587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_cursorRowHeight__P4973(s) { +function StatusBarSprite_value__P68549(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39332,24 +39693,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["cursor"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_1); + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + s.tmp_1 = StatusBarSprite_applyChange__P71276_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = StatusBarSprite_value_inline__P85221; + s.callLocIdx = 2103; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - return leave(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_cursorRowHeight__P4973.info = {"start":5509,"length":82,"line":174,"column":8,"endLine":176,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} +StatusBarSprite_value__P68549.info = {"start":2772,"length":83,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this"]} +StatusBarSprite_value__P68549.isGetter = true; -function game_BaseDialog_cursorRowHeight__P4973_mk(s) { +function StatusBarSprite_value__P68549_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_cursorRowHeight__P4973, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value__P68549, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -39357,7 +39732,7 @@ function game_BaseDialog_cursorRowHeight__P4973_mk(s) { -function game_GameOverDialog_displayCursor__P2934(s) { +function StatusBarSprite_value_inline__P85221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39371,19 +39746,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = (s.arg0).fields["cursorOn"] = (true); - r0 = undefined; + r0 = s.arg0.fields["target"]; return leave(s, r0) default: oops() } } } -game_GameOverDialog_displayCursor__P2934.info = {"start":17323,"length":61,"line":493,"column":8,"endLine":495,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} +StatusBarSprite_value_inline__P85221.info = {"start":2826,"length":16,"line":86,"column":32,"endLine":86,"endColumn":48,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function game_GameOverDialog_displayCursor__P2934_mk(s) { +function StatusBarSprite_value_inline__P85221_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_displayCursor__P2934, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value_inline__P85221, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -39392,7 +39764,7 @@ function game_GameOverDialog_displayCursor__P2934_mk(s) { -function game_GameOverDialog_constructor__P2933(s) { +function game_over__P67211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39402,417 +39774,393 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.score___18233 = undefined; - s.winner___18288 = undefined; - s.scoresWithValues___18365 = undefined; - s.scoreRows___18397 = undefined; + s.goc___81749 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = (s.arg0).fields["message"] = (s.arg2); - r0 = (s.arg0).fields["judged"] = (s.arg3); - r0 = (s.arg0).fields["scores"] = (s.arg4); - r0 = (s.arg0).fields["bestScore"] = (s.arg5); - r0 = (s.arg0).fields["winnerOverride"] = (s.arg6); - s.tmp_0 = game_BaseDialog_constructor__P2895_mk(s); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.gameOverConfig___67197; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1587; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.goc___81749 = (r0); + s.tmp_0 = game_GameOverConfig_setEffect__P67190_mk(s); + s.tmp_0.arg0 = s.goc___81749; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = false; + s.callLocIdx = 1588; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = game__gameOverImpl__P69236_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 46; - s.tmp_1 = game_defaultSplashFrame__P4992_mk(s); - s.callLocIdx = 1461; s.pc = 34; return s.tmp_1; - case 34: + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1589; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.callLocIdx = 1462; s.pc = 33; return s.tmp_0; - case 33: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_over__P67211.info = {"start":10625,"length":262,"line":328,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} + +function game_over__P67211_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_over__P67211, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + goc___81749: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game__gameOverImpl__P69236(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.goc___81768 = undefined; + s.judged___81771 = undefined; + s.playersWithScores___81779 = undefined; + s.prevBestScore___81782 = undefined; + s.winner___81786 = undefined; + s.scores___81792 = undefined; + s.preferMultiplayer___81813 = undefined; + s.message___81821 = undefined; + s.effect___81827 = undefined; + s.sound___81832 = undefined; + s.looping___81837 = undefined; + s.playbackMode___81842 = undefined; + s.overDialog___81868 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_init__P69234_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1591; s.pc = 32; return s.tmp_0; + case 32: r0 = s.retval; - r0 = (s.arg0).fields["cursorOn"] = (false); - r0 = (s.arg0).fields["flags"] = (0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_numops_toBoolDecr(globals.__isOver___69233); if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + { step = 31; continue; } case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.arg6); - if (!r0) { step = 5; continue; } - s.arg1 = (true); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkAction(1, score_inline__P18235); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg6); - s.tmp_1 = helpers_arrayFind__P111_mk(s); - s.tmp_1.arg0 = s.arg4; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1463; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - s.score___18233 = (r0); - r0 = pxsim_numops_toBoolDecr(s.score___18233); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + globals.__isOver___69233 = (true); + r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___69231); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverPlayerScore__C2923_VT); - s.tmp_2 = r0; - s.tmp_3 = game_GameOverPlayerScore_constructor__P2925_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.arg6; - s.tmp_3.arg2 = null; - s.tmp_3.arg3 = true; - s.callLocIdx = 1464; s.pc = 36; return s.tmp_3; - case 36: - r0 = s.retval; - r0 = pxsim_Array__push(s.arg4, s.tmp_2); - s.tmp_0 = helpers_arraySort__P105_mk(s); - s.tmp_0.arg0 = s.arg4; - s.tmp_0.arg1 = game_GameOverDialog_inline__P18254; - s.callLocIdx = 1465; s.pc = 37; return s.tmp_0; - case 37: + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = globals.__gameOverHandler___69231; + s.tmp_0.arg0 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1592; s.pc = 33; return s.tmp_0; + case 33: r0 = s.retval; + { step = 30; continue; } case 3: - case 4: - r0 = pxsim_pxtcore_mkAction(1, game_GameOverDialog_inline__P18264); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg6); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = s.arg4; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1466; s.pc = 38; return s.tmp_1; - case 38: - r0 = s.retval; - case 5: - case 6: - r0 = pxsim_Array__length(s.arg4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 21; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_GameOverDialog_inline__P18276); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_2.arg0 = s.arg4; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1467; s.pc = 39; return s.tmp_2; - case 39: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.gameOverConfig___67197; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1593; s.pc = 34; return s.tmp_0; + case 34: r0 = s.retval; + s.goc___81768 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 19; continue; } - s.tmp_0 = helpers_arrayFind__P111_mk(s); - s.tmp_0.arg0 = s.arg4; - s.tmp_0.arg1 = winner_inline__P18291; - s.callLocIdx = 1468; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - s.winner___18288 = (r0); - r0 = pxsim_numops_toBoolDecr(s.winner___18288); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } + if (r0) { step = 4; continue; } r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = pxsim_Array__length(s.arg4); + { step = 5; continue; } + case 4: + r0 = s.goc___81768.fields["scoringType"]; s.tmp_2 = r0; - r0 = (s.tmp_2 === 1); - case 8: + r0 = (s.tmp_2 !== 2); + case 5: // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.arg4, 0); - s.winner___18288 = (r0); - case 9: - case 10: - r0 = pxsim_numops_toBoolDecr(s.winner___18288); - if (!r0) { step = 17; continue; } - r0 = s.winner___18288.fields["value"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.arg5 == null); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 11; continue; } - r0 = s.winner___18288.fields["value"]; - s.tmp_3 = r0; - r0 = (s.arg0).fields["bestScore"] = (s.tmp_3); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + s.judged___81771 = (s.tmp_3); + s.tmp_0 = info_playersWithScores__P66763_mk(s); + s.callLocIdx = 1594; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.playersWithScores___81779 = (r0); + s.tmp_0 = r0 = s.judged___81771; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_1 = info_highScore__P66770_mk(s); + s.callLocIdx = 1595; s.pc = 36; return s.tmp_1; + case 36: + r0 = s.retval; + case 7: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 | 4); + s.prevBestScore___81782 = (s.tmp_2); + s.tmp_0 = r0 = s.judged___81771; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + r0 = s.arg0; + case 9: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - { step = 14; continue; } - case 11: - s.tmp_1 = info_isBetterScore__P2547_mk(s); - r0 = s.winner___18288.fields["value"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg5; - s.callLocIdx = 1469; s.pc = 41; return s.tmp_1; - case 41: + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 10; continue; } + r0 = s.tmp_1; + { step = 11; continue; } + case 10: + s.tmp_2 = info_winningPlayer__P66765_mk(s); + s.callLocIdx = 1596; s.pc = 37; return s.tmp_2; + case 37: r0 = s.retval; + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + s.winner___81786 = (s.tmp_3); + r0 = pxsim_pxtcore_mkAction(1, scores_inline__P81794); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = s.winner___18288.fields["value"]; - s.tmp_2 = r0; - r0 = (s.arg0).fields["bestScore"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.winner___81786); + s.tmp_1 = helpers_arrayMap__P64325_mk(s); + s.tmp_1.arg0 = s.playersWithScores___81779; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1600; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; + s.scores___81792 = (r0); + s.tmp_0 = r0 = s.judged___81771; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 12; continue; } + r0 = s.tmp_0; + { step = 13; continue; } case 12: + r0 = s.winner___81786; case 13: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 14; continue; } + s.tmp_2 = info_saveAllScores__P66764_mk(s); + s.callLocIdx = 1601; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + s.tmp_0 = info_saveHighScore__P66767_mk(s); + s.callLocIdx = 1602; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; case 14: case 15: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 19; continue; } case 16: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_stringReplaceAll__P117_mk(s); - s.tmp_3 = helpers_stringReplaceAll__P117_mk(s); - s.tmp_4 = helpers_stringReplaceAll__P117_mk(s); - s.tmp_5 = helpers_stringReplaceAll__P117_mk(s); - r0 = s.arg0.fields["message"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = "${WINNER}"; - r0 = s.winner___18288.fields["player"]; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 46: + s.tmp_4 = r0 = s.judged___81771; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 17; continue; } + r0 = s.tmp_4; + { step = 18; continue; } + case 17: + s.tmp_5 = info_multiplayerScoring__P66762_mk(s); + s.callLocIdx = 1603; s.pc = 41; return s.tmp_5; + case 41: r0 = s.retval; + case 18: + // jmp value (already in r0) s.tmp_6 = r0; - r0 = pxsim_String__concat("PLAYER ", s.tmp_6); - s.tmp_5.arg2 = r0; - s.callLocIdx = 1470; s.pc = 45; return s.tmp_5; - case 45: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = "${Winner}"; - r0 = s.winner___18288.fields["player"]; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 47); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 47: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat("Player ", s.tmp_8); - s.tmp_4.arg2 = r0; - s.callLocIdx = 1471; s.pc = 44; return s.tmp_4; - case 44: - r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "${winner}"; - r0 = s.winner___18288.fields["player"]; - s.tmp_11 = r0; - if ((s.tmp_11) && (s.tmp_11).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.tmp_11); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_11) + ""; } - case 48: + r0 = s.tmp_6; + case 19: + // jmp value (already in r0) + s.tmp_7 = r0; + s.preferMultiplayer___81813 = (s.tmp_7); + s.tmp_0 = game_GameOverConfig_getMessage__P67196_mk(s); + s.tmp_0.arg0 = s.goc___81768; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.preferMultiplayer___81813; + s.callLocIdx = 1604; s.pc = 42; return s.tmp_0; + case 42: r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_String__concat("player ", s.tmp_10); - s.tmp_3.arg2 = r0; - s.callLocIdx = 1472; s.pc = 43; return s.tmp_3; + s.message___81821 = (r0); + s.tmp_0 = game_GameOverConfig_getEffect__P67191_mk(s); + s.tmp_0.arg0 = s.goc___81768; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1605; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = "${winner_short}"; - r0 = s.winner___18288.fields["player"]; - s.tmp_13 = r0; - if ((s.tmp_13) && (s.tmp_13).vtable) { - setupResume(s, 49); - pxsim_String__stringConv(s.tmp_13); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_13) + ""; } - case 49: + s.effect___81827 = (r0); + s.tmp_0 = game_GameOverConfig_getSound__P67193_mk(s); + s.tmp_0.arg0 = s.goc___81768; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1606; s.pc = 44; return s.tmp_0; + case 44: r0 = s.retval; - s.tmp_12 = r0; - r0 = pxsim_String__concat("P", s.tmp_12); - s.tmp_2.arg2 = r0; - s.callLocIdx = 1473; s.pc = 42; return s.tmp_2; - case 42: + s.sound___81832 = (r0); + s.tmp_0 = game_GameOverConfig_getSoundLooping__P67194_mk(s); + s.tmp_0.arg0 = s.goc___81768; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1607; s.pc = 45; return s.tmp_0; + case 45: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["message"] = (s.tmp_1); - case 17: - case 18: - case 19: + s.looping___81837 = (r0); + r0 = pxsim_numops_toBoolDecr(s.looping___81837); + if (!r0) { step = 20; continue; } + r0 = 2; + { step = 21; continue; } case 20: + r0 = 1; case 21: - case 22: - s.tmp_0 = helpers_arrayFilter__P110_mk(s); - s.tmp_0.arg0 = s.arg4; - s.tmp_0.arg1 = scoresWithValues_inline__P18367; - s.callLocIdx = 1474; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - s.scoresWithValues___18365 = (r0); - r0 = pxsim_Array__length(s.scoresWithValues___18365); + // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.tmp_1.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 | 16); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["flags"] = (s.tmp_2); + s.playbackMode___81842 = (s.tmp_0); + case 22: + s.tmp_0 = r0 = globals._sceneStack___69227; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 23; continue; } + r0 = s.tmp_0; + { step = 24; continue; } case 23: + r0 = pxsim_Array__length(globals._sceneStack___69227); case 24: - s.tmp_1 = game_GameOverDialog_isWinCondition__P2927_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1475; s.pc = 51; return s.tmp_1; - case 51: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 25; continue; } + s.tmp_2 = scene_Scene_destroy__P67070_mk(s); + s.tmp_2.arg0 = globals._scene___69226; + s.callLocIdx = 1608; s.pc = 46; return s.tmp_2; + case 46: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 25; continue; } - r0 = s.tmp_0; - { step = 26; continue; } + s.tmp_0 = game_popScene__P67203_mk(s); + s.callLocIdx = 1609; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + { step = 22; continue; } case 25: - r0 = s.arg0.fields["judged"]; + s.tmp_0 = game_pushScene__P67202_mk(s); + s.callLocIdx = 1610; s.pc = 48; return s.tmp_0; + case 48: + r0 = s.retval; + s.tmp_0 = scene_setBackgroundImage__P67084_mk(s); + r0 = pxsim_ImageMethods.clone(globals.screen___66232); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1611; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.sound___81832); + if (!r0) { step = 26; continue; } + s.tmp_0 = music_play__P66126_mk(s); + s.tmp_0.arg0 = s.sound___81832; + s.tmp_0.arg1 = s.playbackMode___81842; + s.callLocIdx = 1612; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; case 26: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 27; continue; } - r0 = s.tmp_2; - { step = 28; continue; } case 27: - s.tmp_3 = game_GameOverDialog_hasScores__P2929_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1477; s.pc = 52; return s.tmp_3; - case 52: + r0 = pxsim_numops_toBoolDecr(s.effect___81827); + if (!r0) { step = 28; continue; } + s.tmp_0 = if_startScreenEffect_1_mk(s); + s.tmp_0.arg0 = s.effect___81827; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "startScreenEffect"), 1); + s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["startScreenEffect"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["startScreenEffect"], 1); s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1613; s.pc = 51; return s.tmp_0;; } + else { s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; } + } + case 51: r0 = s.retval; case 28: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 29; continue; } - r0 = s.tmp_4; - { step = 30; continue; } case 29: - r0 = s.arg0.fields["bestScore"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 != null); - case 30: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 31; continue; } - s.tmp_7 = r0 = s.arg0; - r0 = s.tmp_7.fields["flags"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 | 2); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["flags"] = (s.tmp_8); - case 31: - case 32: - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_1.arg0 = 0; - r0 = pxsim_Array__length(s.scoresWithValues___18365); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1478; s.pc = 53; return s.tmp_1; + s.tmp_0 = pause__P64632_mk(s); + s.tmp_0.arg0 = 400; + s.callLocIdx = 1614; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C67145_VT); + s.tmp_0 = r0; + s.tmp_1 = game_GameOverDialog_constructor__P67152_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.message___81821; + s.tmp_1.arg3 = s.judged___81771; + s.tmp_1.arg4 = s.scores___81792; + s.tmp_1.arg5 = s.prevBestScore___81782; + s.tmp_1.arg6 = s.arg1; + s.callLocIdx = 1615; s.pc = 53; return s.tmp_1; case 53: r0 = s.retval; + s.overDialog___81868 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(1, game__gameOverImpl_inline__P81880); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); - s.scoreRows___18397 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = r0 = s.scoreRows___18397; - s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.font5___1961; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1479; s.pc = 54; return s.tmp_5; } - } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___81868); + s.tmp_1 = scene_createRenderable__P67004_mk(s); + s.tmp_1.arg0 = 100; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1616; s.pc = 54; return s.tmp_1; case 54: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (47 + s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - s.tmp_0 = game_BaseDialog_resize__P2896_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["height"]; - s.tmp_0.arg2 = r0; - s.tmp_1 = game_defaultSplashFrame__P4992_mk(s); - s.callLocIdx = 1480; s.pc = 56; return s.tmp_1; + s.tmp_0 = pause__P64632_mk(s); + s.tmp_0.arg0 = 500; + s.callLocIdx = 1617; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog_displayCursor__P67153_mk(s); + s.tmp_0.arg0 = s.overDialog___81868; + s.callLocIdx = 1618; s.pc = 56; return s.tmp_0; case 56: r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.callLocIdx = 1481; s.pc = 55; return s.tmp_0; - case 55: + s.tmp_0 = game_waitAnyButton__P67200_mk(s); + s.callLocIdx = 1619; s.pc = 57; return s.tmp_0; + case 57: + r0 = s.retval; + setupResume(s, 58); + pxsim.control.reset(); + checkResumeConsumed(); + return; + case 58: r0 = s.retval; + case 30: + case 31: r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_constructor__P2933.info = {"start":14056,"length":3257,"line":424,"column":8,"endLine":491,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","message","judged","scores","bestScore","winnerOverride"]} +game__gameOverImpl__P69236.info = {"start":11264,"length":2533,"line":350,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"_gameOverImpl","argumentNames":["win","winnerOverride"]} -function game_GameOverDialog_constructor__P2933_mk(s) { +function game__gameOverImpl__P69236_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_constructor__P2933, depth: s.depth + 1, + parent: s, fn: game__gameOverImpl__P69236, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39822,30 +40170,28 @@ function game_GameOverDialog_constructor__P2933_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - score___18233: undefined, - winner___18288: undefined, - scoresWithValues___18365: undefined, - scoreRows___18397: undefined, + goc___81768: undefined, + judged___81771: undefined, + playersWithScores___81779: undefined, + prevBestScore___81782: undefined, + winner___81786: undefined, + scores___81792: undefined, + preferMultiplayer___81813: undefined, + message___81821: undefined, + effect___81827: undefined, + sound___81832: undefined, + looping___81837: undefined, + playbackMode___81842: undefined, + overDialog___81868: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function score_inline__P18235(s) { +function scores_inline__P81794(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39859,20 +40205,38 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["player"]; + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverPlayerScore__C67142_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 === s.caps[0]); + s.tmp_1 = game_GameOverPlayerScore_constructor__P67144_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["_player"]; + s.tmp_1.arg1 = r0; + s.tmp_2 = info_PlayerInfoImpl_score__P66805_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1598; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1.arg2 = r0; + r0 = (s.arg0 === s.caps[0]); + s.tmp_1.arg3 = r0; + s.callLocIdx = 1599; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -score_inline__P18235.info = {"start":14893,"length":40,"line":446,"column":42,"endLine":446,"endColumn":82,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +scores_inline__P81794.info = {"start":11859,"length":88,"line":364,"column":49,"endLine":364,"endColumn":137,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["player"]} -function score_inline__P18235_mk(s) { +function scores_inline__P81794_mk(s) { checkStack(s.depth); return { - parent: s, fn: score_inline__P18235, depth: s.depth + 1, + parent: s, fn: scores_inline__P81794, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, } } @@ -39880,7 +40244,7 @@ function score_inline__P18235_mk(s) { -function game_GameOverDialog_inline__P18254(s) { +function game__gameOverImpl_inline__P81880(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39892,35 +40256,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["player"]; - s.tmp_0 = r0; - r0 = s.arg1.fields["player"]; + s.tmp_0 = game_GameOverDialog__C67145_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C67145_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.caps[0].fields["image"]; s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_4 = r0; + r0 = s.caps[0].fields["image"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, 0, s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_inline__P18254.info = {"start":15084,"length":29,"line":449,"column":32,"endLine":449,"endColumn":61,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["a","b"]} +game__gameOverImpl_inline__P81880.info = {"start":13362,"length":254,"line":394,"column":48,"endLine":401,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} -function game_GameOverDialog_inline__P18254_mk(s) { +function game__gameOverImpl_inline__P81880_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_inline__P18254, depth: s.depth + 1, + parent: s, fn: game__gameOverImpl_inline__P81880, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function game_GameOverDialog_inline__P18264(s) { +function game_waitAnyButton__P67200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39930,38 +40314,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["player"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 === s.caps[0]); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["winner"] = (s.tmp_1); - r0 = s.tmp_1; + r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___69230); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__waitAnyButton___69230; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1569; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + { step = 2; continue; } + case 1: + s.tmp_0 = pause__P64632_mk(s); + s.tmp_0.arg0 = 3000; + s.callLocIdx = 1570; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_inline__P18264.info = {"start":15165,"length":55,"line":451,"column":31,"endLine":451,"endColumn":86,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +game_waitAnyButton__P67200.info = {"start":4325,"length":111,"line":131,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} -function game_GameOverDialog_inline__P18264_mk(s) { +function game_waitAnyButton__P67200_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_inline__P18264, depth: s.depth + 1, + parent: s, fn: game_waitAnyButton__P67200, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, } } -function game_GameOverDialog_inline__P18276(s) { +function game_GameOverConfig_getMessage__P67196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39973,52 +40360,83 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0.fields["player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = s.arg0.fields["messageSetByUser"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["winMessage"]; { step = 2; continue; } case 1: - s.tmp_2 = r0 = s.caps[0]; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 8); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = s.tmp_3; + r0 = s.arg0.fields["loseMessage"]; case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + s.tmp_1 = r0; + r0 = s.tmp_1; + { step = 11; continue; } + { step = 10; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 6; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["winMessageMultiplayer"]; + { step = 5; continue; } + case 4: + r0 = s.arg0.fields["loseMessage"]; + case 5: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + { step = 11; continue; } + { step = 9; continue; } + case 6: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["winMessage"]; + { step = 8; continue; } + case 7: + r0 = s.arg0.fields["loseMessage"]; + case 8: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + { step = 11; continue; } + case 9: + case 10: + r0 = undefined; + case 11: return leave(s, r0) default: oops() } } } -game_GameOverDialog_inline__P18276.info = {"start":15393,"length":76,"line":456,"column":31,"endLine":456,"endColumn":107,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +game_GameOverConfig_getMessage__P67196.info = {"start":3264,"length":367,"line":96,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getMessage","argumentNames":["this","win","preferMultiplayer"]} -function game_GameOverDialog_inline__P18276_mk(s) { +function game_GameOverConfig_getMessage__P67196_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_inline__P18276, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_getMessage__P67196, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function winner_inline__P18291(s) { +function game_GameOverConfig_getSoundLooping__P67194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40030,27 +40448,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["winner"]; + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["winSoundLooping"]; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["loseSoundLooping"]; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -winner_inline__P18291.info = {"start":15544,"length":21,"line":458,"column":45,"endLine":458,"endColumn":66,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +game_GameOverConfig_getSoundLooping__P67194.info = {"start":2852,"length":112,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getSoundLooping","argumentNames":["this","win"]} -function winner_inline__P18291_mk(s) { +function game_GameOverConfig_getSoundLooping__P67194_mk(s) { checkStack(s.depth); return { - parent: s, fn: winner_inline__P18291, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_getSoundLooping__P67194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function scoresWithValues_inline__P18367(s) { +function game_GameOverConfig_getSound__P67193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40062,30 +40494,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["value"]; + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["winSound"]; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["loseSound"]; + case 2: + // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.tmp_0 != null); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scoresWithValues_inline__P18367.info = {"start":16752,"length":28,"line":480,"column":51,"endLine":480,"endColumn":79,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} +game_GameOverConfig_getSound__P67193.info = {"start":2752,"length":91,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getSound","argumentNames":["this","win"]} -function scoresWithValues_inline__P18367_mk(s) { +function game_GameOverConfig_getSound__P67193_mk(s) { checkStack(s.depth); return { - parent: s, fn: scoresWithValues_inline__P18367, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_getSound__P67193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function game_defaultSplashFrame__P4992(s) { +function game_GameOverConfig_getEffect__P67191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40095,39 +40538,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex18538); + r0 = s.arg0.fields["winEffect"]; { step = 2; continue; } case 1: - r0 = pxsim.image.ofBuffer(_hex18540); + r0 = s.arg0.fields["loseEffect"]; case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + s.tmp_0 = r0; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -game_defaultSplashFrame__P4992.info = {"start":27877,"length":220,"line":768,"column":4,"endLine":781,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} +game_GameOverConfig_getEffect__P67191.info = {"start":2199,"length":94,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"getEffect","argumentNames":["this","win"]} -function game_defaultSplashFrame__P4992_mk(s) { +function game_GameOverConfig_getEffect__P67191_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultSplashFrame__P4992, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_getEffect__P67191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -const _hex18538 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") -const _hex18540 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function game_GameOverDialog_isJudgedGame__P2928(s) { +function game_GameOverDialog_update__P67154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40142,19 +40589,43 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2926_VT)) failedCast(r0); - r0 = s.arg0.fields["judged"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P69190_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1482; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog__C67145_v2_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C67145_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; + s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = s.arg0.fields["cursorOn"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = game_BaseDialog_drawCursorRow__P67119_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1483; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_GameOverDialog_isJudgedGame__P2928.info = {"start":13655,"length":42,"line":418,"column":8,"endLine":418,"endColumn":50,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isJudgedGame","argumentNames":["this"]} -game_GameOverDialog_isJudgedGame__P2928.isGetter = true; +game_GameOverDialog_update__P67154.info = {"start":17394,"length":173,"line":497,"column":8,"endLine":504,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} -function game_GameOverDialog_isJudgedGame__P2928_mk(s) { +function game_GameOverDialog_update__P67154_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_isJudgedGame__P2928, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_update__P67154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -40162,7 +40633,7 @@ function game_GameOverDialog_isJudgedGame__P2928_mk(s) { -function game_BaseDialog_resize__P2896(s) { +function game_GameOverDialog_drawTextCore__P67158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40174,167 +40645,219 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + s.tmp_0 = game_GameOverDialog_drawMessage__P67155_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1515; s.pc = 1; return s.tmp_0; case 1: - r0 = globals.dialogFrame___4964; + r0 = s.retval; + s.tmp_0 = game_GameOverDialog_drawScores__P67156_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1516; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } + r0 = s.retval; + s.tmp_0 = game_GameOverDialog_drawBestScore__P67157_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1517; s.pc = 3; return s.tmp_0; case 3: - s.tmp_3 = game_defaultFrame__P4991_mk(s); - s.callLocIdx = 1387; s.pc = 13; return s.tmp_3; - case 13: r0 = s.retval; - s.tmp_2 = r0; - globals.dialogFrame___4964 = (r0); - r0 = s.tmp_2; - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["frame"] = (s.tmp_4); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["frame"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 3); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["unit"]; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_GameOverDialog_drawTextCore__P67158.info = {"start":23575,"length":123,"line":629,"column":8,"endLine":633,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} + +function game_GameOverDialog_drawTextCore__P67158_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_drawTextCore__P67158, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function game_GameOverDialog_drawBestScore__P67157(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.currY___81922 = undefined; + s.label___81931 = undefined; + s.halfWidth___81942 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + s.tmp_1 = game_GameOverDialog_hasBestScore__P67149_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1506; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.arg0.fields["height"]; s.tmp_3 = r0; - r0 = (s.arg1 / s.tmp_3); + s.tmp_5 = if_charHeight_1_mk(s); + s.tmp_5.arg0 = globals.font8___66175; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1507; s.pc = 8; return s.tmp_5; } + } + case 8: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["columns"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["unit"]; - s.tmp_3 = r0; - r0 = (s.arg2 / s.tmp_3); + r0 = (s.tmp_2 - 5); + s.currY___81922 = (r0); + s.tmp_1 = game_GameOverDialog_isNewBestScore__P67150_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1508; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.label___81931 = ("New Best Score!"); + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.label___81931; + s.tmp_0.arg2 = s.currY___81922; + s.tmp_1 = game_screenColor__P69182_mk(s); + s.tmp_1.arg0 = 9; + s.callLocIdx = 1509; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.font8___66175; + s.callLocIdx = 1510; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_3 = game_GameOverDialog_isMultiplayerGame__P67151_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1511; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["rows"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = r0 = s.arg1; - r0 = s.arg0.fields["columns"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.length(s.label___81931); s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; + s.tmp_7 = if_charWidth_1_mk(s); + s.tmp_7.arg0 = globals.font8___66175; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charWidth"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charWidth"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charWidth"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 1512; s.pc = 13; return s.tmp_7; } + } + case 13: + r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_5 * s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + r0 = (s.tmp_4 >> 1); + s.halfWidth___81942 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_trophy_sm___69201; + r0 = s.arg0.fields["image"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.halfWidth___81942); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___69201); + s.tmp_8 = r0; + r0 = (s.tmp_4 - s.tmp_8); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 2); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerLeft"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = r0 = s.arg2; - r0 = s.arg0.fields["rows"]; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___81922); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_trophy_sm___69201; + r0 = s.arg0.fields["image"]; s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); + r0 = pxsim_ImageMethods.width(s.tmp_5); s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + r0 = (s.tmp_4 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.halfWidth___81942); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerTop"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.arg1, s.arg2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["image"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg4; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = globals.font8___1956; - case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["font"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg5; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = globals.dialogCursor___4965; - case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = s.tmp_1; - { step = 10; continue; } - case 9: - s.tmp_3 = game_defaultCursorImage__P4993_mk(s); - s.callLocIdx = 1388; s.pc = 14; return s.tmp_3; - case 14: - r0 = s.retval; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___81922); + case 1: + case 2: + { step = 4; continue; } + case 3: + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["bestScore"]; s.tmp_2 = r0; - globals.dialogCursor___4965 = (r0); - r0 = s.tmp_2; - case 10: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["cursor"] = (s.tmp_4); - r0 = (globals.dialogTextColor___4966 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - globals.dialogTextColor___4966 = (15); - r0 = 15; - { step = 12; continue; } - case 11: - r0 = globals.dialogTextColor___4966; - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["textColor"] = (s.tmp_1); - s.tmp_0 = game_BaseDialog_drawBorder__P4969_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1389; s.pc = 15; return s.tmp_0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 15: r0 = s.retval; - s.tmp_0 = game_BaseDialog_clearInterior__P4971_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1390; s.pc = 16; return s.tmp_0; + s.tmp_1 = r0; + r0 = pxsim_String__concat("Best:", s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.currY___81922; + s.tmp_3 = game_screenColor__P69182_mk(s); + s.tmp_3.arg0 = 9; + s.callLocIdx = 1513; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.font8___66175; + s.callLocIdx = 1514; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 4: + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_resize__P2896.info = {"start":1312,"length":849,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"resize","argumentNames":["this","width","height","frame","font","cursor"]} +game_GameOverDialog_drawBestScore__P67157.info = {"start":22246,"length":1319,"line":600,"column":8,"endLine":627,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBestScore","argumentNames":["this"]} -function game_BaseDialog_resize__P2896_mk(s) { +function game_GameOverDialog_drawBestScore__P67157_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_resize__P2896, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_drawBestScore__P67157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40343,19 +40866,19 @@ function game_BaseDialog_resize__P2896_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + currY___81922: undefined, + label___81931: undefined, + halfWidth___81942: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function game_defaultCursorImage__P4993(s) { +function game_screenColor__P69182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40365,14 +40888,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex11859); + r0 = 1; { step = 2; continue; } case 1: - r0 = pxsim.image.ofBuffer(_hex11861); + r0 = s.arg0; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -40380,24 +40907,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_defaultCursorImage__P4993.info = {"start":28103,"length":690,"line":783,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} +game_screenColor__P69182.info = {"start":581,"length":85,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"screenColor","argumentNames":["c"]} -function game_defaultCursorImage__P4993_mk(s) { +function game_screenColor__P69182_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultCursorImage__P4993, depth: s.depth + 1, + parent: s, fn: game_screenColor__P69182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, } } -const _hex11859 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") -const _hex11861 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") -function game_defaultFrame__P4991(s) { +function game_GameOverDialog_isMultiplayerGame__P67151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40407,39 +40933,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 8); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex11865); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex11867); - case 2: - // jmp value (already in r0) + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +game_GameOverDialog_isMultiplayerGame__P67151.info = {"start":13962,"length":84,"line":422,"column":8,"endLine":422,"endColumn":92,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isMultiplayerGame","argumentNames":["this"]} +game_GameOverDialog_isMultiplayerGame__P67151.isGetter = true; + +function game_GameOverDialog_isMultiplayerGame__P67151_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_isMultiplayerGame__P67151, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + + + + +function game_GameOverDialog_isNewBestScore__P67150(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -game_defaultFrame__P4991.info = {"start":27315,"length":556,"line":744,"column":4,"endLine":766,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} +game_GameOverDialog_isNewBestScore__P67150.info = {"start":13875,"length":78,"line":421,"column":8,"endLine":421,"endColumn":86,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isNewBestScore","argumentNames":["this"]} +game_GameOverDialog_isNewBestScore__P67150.isGetter = true; -function game_defaultFrame__P4991_mk(s) { +function game_GameOverDialog_isNewBestScore__P67150_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultFrame__P4991, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_isNewBestScore__P67150, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, } } -const _hex11865 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") -const _hex11867 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function game_BaseDialog_drawBorder__P4969(s) { +function game_GameOverDialog_hasBestScore__P67149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40449,335 +41033,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.y___11790 = undefined; - s.c___11806 = undefined; - s.r___11840 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = s.arg0.fields["unit"]; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +game_GameOverDialog_hasBestScore__P67149.info = {"start":13790,"length":76,"line":420,"column":8,"endLine":420,"endColumn":84,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasBestScore","argumentNames":["this"]} +game_GameOverDialog_hasBestScore__P67149.isGetter = true; + +function game_GameOverDialog_hasBestScore__P67149_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_hasBestScore__P67149, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + + + + +function helpers_imagePrintCenter__P66189(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.w___82017 = undefined; + s.x___82023 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 0; - s.tmp_2.arg2 = 0; - s.tmp_2.arg3 = 0; - s.tmp_2.arg4 = 1; - s.tmp_2.arg5 = 1; - s.callLocIdx = 1396; s.pc = 12; return s.tmp_2; - case 12: + s.tmp_2 = image_getFontForText__P66177_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 204; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = 0; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1397; s.pc = 13; return s.tmp_0; - case 13: + s.arg4 = (r0); + case 1: + case 2: + r0 = pxsim_String_.length(s.arg1); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg4; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 205; s.pc = 4; return s.tmp_2; } + } + case 4: r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1398; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 3; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = 1; - r0 = s.arg0.fields["rows"]; + r0 = (s.tmp_0 * s.tmp_1); + s.w___82017 = (r0); + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg5 = r0; - s.callLocIdx = 1399; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); + r0 = (s.tmp_1 - s.w___82017); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 2); + s.x___82023 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = 1; - r0 = s.arg0.fields["rows"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 2); - s.tmp_0.arg5 = r0; - s.callLocIdx = 1400; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - r0 = s.arg0.fields["rows"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.y___11790 = (r0); - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.y___11790; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1401; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = s.y___11790; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1402; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4970_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.y___11790; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1403; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - { step = 11; continue; } - case 1: - case 2: - s.c___11806 = (0); - case 3: - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.c___11806 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.c___11806 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_3 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = 0; - s.tmp_3.arg2 = 0; - s.tmp_3.arg3 = 0; - s.callLocIdx = 1404; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1405; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - { step = 7; continue; } - case 4: - s.tmp_1 = r0 = s.c___11806; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 2; - s.tmp_4.arg2 = s.c___11806; - s.tmp_4.arg3 = 0; - s.callLocIdx = 1406; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - s.tmp_0.arg2 = s.c___11806; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1407; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - { step = 6; continue; } + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.x___82023; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.tmp_0.arg5 = s.arg4; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 206; s.pc = 5; return s.tmp_0; case 5: - s.tmp_0 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = s.c___11806; - s.tmp_0.arg3 = 0; - s.callLocIdx = 1408; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = s.c___11806; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1409; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - case 6: - case 7: - r0 = (s.c___11806 + 1); - s.c___11806 = (r0); - { step = 3; continue; } - case 8: - s.r___11840 = (1); - case 9: - s.tmp_1 = r0 = s.r___11840; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 3; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.r___11840; - s.callLocIdx = 1410; s.pc = 26; return s.tmp_4; - case 26: r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4972_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.r___11840; - s.callLocIdx = 1411; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = (s.r___11840 + 1); - s.r___11840 = (r0); - { step = 9; continue; } - case 10: - case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawBorder__P4969.info = {"start":2953,"length":1321,"line":103,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} +helpers_imagePrintCenter__P66189.info = {"start":15025,"length":295,"line":206,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrintCenter","argumentNames":["img","text","y","color","font"]} -function game_BaseDialog_drawBorder__P4969_mk(s) { +function helpers_imagePrintCenter__P66189_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawBorder__P4969, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P66189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - y___11790: undefined, - c___11806: undefined, - r___11840: undefined, - arg0: undefined, -} } - - - - - -function game_BaseDialog_constructor__P2895(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = (s.arg0).fields["cursorCount"] = (0); - s.tmp_0 = game_BaseDialog_resize__P2896_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg3; - s.tmp_0.arg4 = s.arg4; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 1386; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_BaseDialog_constructor__P2895.info = {"start":1103,"length":199,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} - -function game_BaseDialog_constructor__P2895_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_BaseDialog_constructor__P2895, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + w___82017: undefined, + x___82023: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, arg4: undefined, - arg5: undefined, } } -function info_isBetterScore__P2547(s) { +function game_GameOverDialog_drawScores__P67156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40787,386 +41178,614 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.goc___18513 = undefined; + s.scores___82058 = undefined; + s.currY___82071 = undefined; + s.score___82080 = undefined; + s.x___82112 = undefined; + s.strlens___82139 = undefined; + s.i___82141 = undefined; + s.col___82147 = undefined; + s.score___82150 = undefined; + s.i___82183 = undefined; + s.col___82189 = undefined; + s.score___82192 = undefined; + s.str___82196 = undefined; + s.x___82208 = undefined; + s.score___82289 = undefined; + s.currY___82310 = undefined; + s.currY___82330 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1110; s.pc = 9; return s.tmp_0; - case 9: + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + s.tmp_1 = game_GameOverDialog_hasScores__P67148_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1486; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; - s.goc___18513 = (r0); - r0 = s.goc___18513.fields["scoringType"]; s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 1: - r0 = (s.arg1 == null); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = s.tmp_1; - { step = 3; continue; } - case 2: - r0 = (s.arg0 > s.arg1); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - { step = 8; continue; } - case 4: - r0 = (s.arg1 == null); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 5: - r0 = (s.arg0 < s.arg1); - case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 8; continue; } - case 7: - r0 = false; - case 8: - return leave(s, r0) - default: oops() -} } } -info_isBetterScore__P2547.info = {"start":8360,"length":446,"line":273,"column":4,"endLine":284,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"isBetterScore","argumentNames":["newScore","prevScore"]} - -function info_isBetterScore__P2547_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: info_isBetterScore__P2547, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - goc___18513: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_stringReplaceAll__P117(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.split___18432 = undefined; - s.empty___18438 = undefined; - s.output___18442 = undefined; - s.i___18457 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 11: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + r0 = s.arg0.fields["scores"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scores_inline__P82060; + s.callLocIdx = 1487; s.pc = 24; return s.tmp_2; + case 24: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.arg1 = (r0); - s.tmp_0 = helpers_stringSplit__P122_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 11; s.pc = 12; return s.tmp_0; - case 12: + s.scores___82058 = (r0); + s.tmp_1 = if_charHeight_1_mk(s); + s.tmp_1.arg0 = globals.font5___66180; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1488; s.pc = 25; return s.tmp_1; } + } + case 25: r0 = s.retval; - s.split___18432 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - s.empty___18438 = (r0); - r0 = pxsim_numops_toBoolDecr(s.empty___18438); - if (!r0) { step = 1; continue; } - s.tmp_0 = applyReplace__P18445_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 13; s.pc = 13; return s.tmp_0; - case 13: + r0 = (s.tmp_0 + 16); + s.currY___82071 = (r0); + s.tmp_1 = game_GameOverDialog_isMultiplayerGame__P67151_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1489; s.pc = 26; return s.tmp_1; + case 26: r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = pxsim_String_.mkEmpty(); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.output___18442 = (s.tmp_1); - r0 = pxsim_Array__length(s.split___18432); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = pxsim_Array__length(s.scores___82058); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - if ((s.output___18442) && (s.output___18442).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.output___18442); + r0 = pxsim_Array__getAt(s.scores___82058, 0); + s.score___82080 = (r0); + s.tmp_0 = r0 = s.score___82080; + r0 = s.score___82080.fields["player"]; + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 27); + pxsim_String__stringConv(s.tmp_7); checkResumeConsumed(); return; - } else { s.retval = (s.output___18442) + ""; } - case 14: + } else { s.retval = (s.tmp_7) + ""; } + case 27: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.split___18432, 0); + s.tmp_6 = r0; + r0 = pxsim_String__concat("P", s.tmp_6); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 28: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, ":"); s.tmp_3 = r0; if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 15); + setupResume(s, 29); pxsim_String__stringConv(s.tmp_3); checkResumeConsumed(); return; } else { s.retval = (s.tmp_3) + ""; } - case 15: + case 29: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.output___18442 = (r0); + r0 = s.score___82080.fields["value"]; + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.tmp_9); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_9) + ""; } + case 30: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["str"] = (s.tmp_1); + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.score___82080.fields["str"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.currY___82071; + s.tmp_1 = game_screenColor__P69182_mk(s); + s.tmp_1.arg0 = 1; + s.callLocIdx = 1490; s.pc = 32; return s.tmp_1; + case 32: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.font5___66180; + s.callLocIdx = 1491; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + r0 = s.score___82080.fields["winner"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = s.score___82080.fields["str"]; + s.tmp_7 = r0; + r0 = pxsim_String_.length(s.tmp_7); + s.tmp_6 = r0; + s.tmp_9 = if_charWidth_1_mk(s); + s.tmp_9.arg0 = globals.font5___66180; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 1492; s.pc = 33; return s.tmp_9; } + } + case 33: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_6 * s.tmp_8); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.x___82112 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_trophy_sm___69201; + s.tmp_4 = r0 = s.x___82112; + r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___69201); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 3); + s.tmp_2 = r0; + r0 = (s.currY___82071 - 2); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + case 1: + case 2: + { step = 16; continue; } case 3: + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 0); + r0 = pxsim_Array__push(s.tmp_0, 0); + s.strlens___82139 = (s.tmp_0); + s.i___82141 = (0); case 4: - s.i___18457 = (1); - case 5: - s.tmp_1 = r0 = s.i___18457; - r0 = pxsim_Array__length(s.split___18432); + s.tmp_1 = r0 = s.i___82141; + r0 = pxsim_Array__length(s.scores___82058); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - if ((s.output___18442) && (s.output___18442).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.output___18442); - checkResumeConsumed(); - return; - } else { s.retval = (s.output___18442) + ""; } - case 16: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_8 = applyReplace__P18445_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg2; - s.callLocIdx = 14; s.pc = 17; return s.tmp_8; - case 17: - r0 = s.retval; + if (!r0) { step = 5; continue; } + r0 = (s.i___82141 % 2); + s.col___82147 = (r0); + r0 = pxsim_Array__getAt(s.scores___82058, s.i___82141); + s.score___82150 = (r0); + s.tmp_0 = r0 = s.score___82150; + r0 = s.score___82150.fields["player"]; s.tmp_7 = r0; if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 18); + setupResume(s, 34); pxsim_String__stringConv(s.tmp_7); checkResumeConsumed(); return; } else { s.retval = (s.tmp_7) + ""; } - case 18: + case 34: r0 = s.retval; s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.split___18432, s.i___18457); - s.tmp_10 = r0; - if ((s.tmp_10) && (s.tmp_10).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.tmp_10); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_10) + ""; } - case 19: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_9); + r0 = pxsim_String__concat("P", s.tmp_6); s.tmp_5 = r0; if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 20); + setupResume(s, 35); pxsim_String__stringConv(s.tmp_5); checkResumeConsumed(); return; } else { s.retval = (s.tmp_5) + ""; } - case 20: + case 35: r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.output___18442 = (r0); - r0 = (s.i___18457 + 1); - s.i___18457 = (r0); - { step = 5; continue; } - case 6: - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_String__concat(s.tmp_4, ":"); s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = s.empty___18438; - case 8: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 9; continue; } - if ((s.output___18442) && (s.output___18442).vtable) { - setupResume(s, 21); - pxsim_String__stringConv(s.output___18442); + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.tmp_3); checkResumeConsumed(); return; - } else { s.retval = (s.output___18442) + ""; } - case 21: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = applyReplace__P18445_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg2; - s.callLocIdx = 16; s.pc = 22; return s.tmp_8; - case 22: + } else { s.retval = (s.tmp_3) + ""; } + case 36: r0 = s.retval; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 23); - pxsim_String__stringConv(s.tmp_7); + s.tmp_2 = r0; + r0 = s.score___82150.fields["value"]; + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 37); + pxsim_String__stringConv(s.tmp_9); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_7) + ""; } - case 23: + } else { s.retval = (s.tmp_9) + ""; } + case 37: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.output___18442 = (r0); - case 9: - case 10: - r0 = s.output___18442; - return leave(s, r0) - default: oops() -} } } -helpers_stringReplaceAll__P117.info = {"start":10239,"length":919,"line":346,"column":4,"endLine":374,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringReplaceAll","argumentNames":["s","toReplace","replacer"]} - -function helpers_stringReplaceAll__P117_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_stringReplaceAll__P117, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - split___18432: undefined, - empty___18438: undefined, - output___18442: undefined, - i___18457: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function applyReplace__P18445(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["str"] = (s.tmp_1); + s.tmp_0 = r0 = s.strlens___82139; + s.tmp_1 = r0 = s.col___82147; + s.tmp_3 = Math_max__P64349_mk(s); + r0 = pxsim_Array__getAt(s.strlens___82139, s.col___82147); + s.tmp_3.arg0 = r0; + r0 = s.score___82150.fields["str"]; + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.tmp_4); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1493; s.pc = 38; return s.tmp_3; + case 38: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = (s.i___82141 + 1); + s.i___82141 = (r0); + { step = 4; continue; } + case 5: + s.i___82183 = (0); + case 6: + s.tmp_1 = r0 = s.i___82183; + r0 = pxsim_Array__length(s.scores___82058); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.i___82183 % 2); + s.col___82189 = (r0); + r0 = pxsim_Array__getAt(s.scores___82058, s.i___82183); + s.score___82192 = (r0); + s.tmp_0 = game_padStr__P69180_mk(s); + r0 = pxsim_Array__getAt(s.strlens___82139, s.col___82189); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1494; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.str___82196 = (r0); + s.tmp_0 = game_replaceRange__P69181_mk(s); + s.tmp_0.arg0 = s.str___82196; + r0 = s.score___82192.fields["str"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = s.score___82192.fields["str"]; + s.tmp_1 = r0; + r0 = pxsim_String_.length(s.tmp_1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1495; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + s.str___82196 = (r0); + s.x___82208 = (0); + r0 = (s.col___82189 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.strlens___82139, s.col___82189); + s.tmp_6 = r0; + s.tmp_8 = if_charWidth_1_mk(s); + s.tmp_8.arg0 = globals.font5___66180; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charWidth"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charWidth"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charWidth"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1496; s.pc = 41; return s.tmp_8; } } - r0 = pxsim_pxtcore.typeOf(s.arg1); + case 41: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = (s.tmp_1 == "string"); + r0 = (s.tmp_1 - 3); + s.x___82208 = (r0); + { step = 8; continue; } + case 7: + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = (s.tmp_0 + 3); + s.x___82208 = (r0); + case 8: + r0 = s.score___82192.fields["winner"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.i___82183 % 2); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["image"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.arg1; - { step = 5; continue; } - { step = 4; continue; } - case 3: - s.tmp_4 = lambda_2_mk(s); - s.tmp_4.argL = s.arg1; - s.tmp_4.arg0 = s.arg0; - setupLambda(s.tmp_4, s.tmp_4.argL); - s.callLocIdx = 17; s.pc = 6; return s.tmp_4; - case 6: + s.tmp_4 = r0 = globals.img_trophy_sm___69201; + s.tmp_7 = r0 = s.x___82208; + r0 = pxsim_ImageMethods.width(globals.img_trophy_sm___69201); + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_6 - 3); + s.tmp_5 = r0; + r0 = (s.currY___82071 - 2); + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_9); + { step = 10; continue; } + case 9: + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_trophy_sm___69201; + s.tmp_4 = r0 = s.x___82208; + r0 = s.score___82192.fields["str"]; + s.tmp_7 = r0; + r0 = pxsim_String_.length(s.tmp_7); + s.tmp_6 = r0; + s.tmp_9 = if_charWidth_1_mk(s); + s.tmp_9.arg0 = globals.font5___66180; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 1497; s.pc = 42; return s.tmp_9; } + } + case 42: r0 = s.retval; - { step = 5; continue; } - case 4: + s.tmp_8 = r0; + r0 = (s.tmp_6 * s.tmp_8); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + r0 = (s.currY___82071 - 2); + s.tmp_10 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_10); + case 10: + case 11: + case 12: + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.str___82196; + s.tmp_0.arg2 = s.x___82208; + s.tmp_0.arg3 = s.currY___82071; + s.tmp_1 = game_screenColor__P69182_mk(s); + s.tmp_1.arg0 = 1; + s.callLocIdx = 1498; s.pc = 44; return s.tmp_1; + case 44: + r0 = s.retval; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = globals.font5___66180; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1499; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + r0 = (s.i___82183 % 2); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_2 = r0 = s.currY___82071; + s.tmp_5 = if_charHeight_1_mk(s); + s.tmp_5.arg0 = globals.font5___66180; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1500; s.pc = 45; return s.tmp_5; } + } + case 45: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 2); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.currY___82071 = (r0); + case 13: + case 14: + r0 = (s.i___82183 + 1); + s.i___82183 = (r0); + { step = 6; continue; } + case 15: + case 16: + { step = 18; continue; } + case 17: + r0 = pxsim_Array__getAt(s.scores___82058, 0); + s.score___82289 = (r0); + s.tmp_0 = r0 = s.score___82289; + r0 = s.score___82289.fields["value"]; + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 46: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat("Score:", s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["str"] = (s.tmp_1); + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.score___82289.fields["str"]; + s.tmp_0.arg1 = r0; + r0 = (s.currY___82071 - 1); + s.tmp_0.arg2 = r0; + s.tmp_1 = game_screenColor__P69182_mk(s); + s.tmp_1.arg0 = 1; + s.callLocIdx = 1501; s.pc = 48; return s.tmp_1; + case 48: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.font8___66175; + s.callLocIdx = 1502; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + case 18: + { step = 22; continue; } + case 19: + s.tmp_1 = game_GameOverDialog_isWinCondition__P67146_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1503; s.pc = 49; return s.tmp_1; + case 49: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = globals.font5___66180; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1504; s.pc = 50; return s.tmp_3; } + } + case 50: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 14); + s.currY___82310 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_trophy_lg___69204; + r0 = s.arg0.fields["image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(globals.img_trophy_lg___69204); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 1); + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___82310); + { step = 21; continue; } + case 20: + s.tmp_1 = if_charHeight_1_mk(s); + s.tmp_1.arg0 = globals.font5___66180; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1505; s.pc = 51; return s.tmp_1; } + } + case 51: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 14); + s.currY___82330 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + s.tmp_1 = r0 = globals.img_sleepy_sim___69207; + r0 = s.arg0.fields["image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(globals.img_sleepy_sim___69207); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 1); + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.currY___82330); + case 21: + case 22: r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -applyReplace__P18445.info = {"start":10880,"length":272,"line":367,"column":8,"endLine":373,"endColumn":9,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"applyReplace","argumentNames":["r","replacer"]} +game_GameOverDialog_drawScores__P67156.info = {"start":17805,"length":4431,"line":516,"column":8,"endLine":598,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawScores","argumentNames":["this"]} -function applyReplace__P18445_mk(s) { +function game_GameOverDialog_drawScores__P67156_mk(s) { checkStack(s.depth); return { - parent: s, fn: applyReplace__P18445, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_drawScores__P67156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + scores___82058: undefined, + currY___82071: undefined, + score___82080: undefined, + x___82112: undefined, + strlens___82139: undefined, + i___82141: undefined, + col___82147: undefined, + score___82150: undefined, + i___82183: undefined, + col___82189: undefined, + score___82192: undefined, + str___82196: undefined, + x___82208: undefined, + score___82289: undefined, + currY___82310: undefined, + currY___82330: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_stringEmpty__P125(s) { +function scores_inline__P82060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41180,18 +41799,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0.fields["value"]; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_0 != null); return leave(s, r0) default: oops() } } } -helpers_stringEmpty__P125.info = {"start":15544,"length":74,"line":522,"column":4,"endLine":524,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringEmpty","argumentNames":["S"]} +scores_inline__P82060.info = {"start":17904,"length":28,"line":518,"column":50,"endLine":518,"endColumn":78,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function helpers_stringEmpty__P125_mk(s) { +function scores_inline__P82060_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringEmpty__P125, depth: s.depth + 1, + parent: s, fn: scores_inline__P82060, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41201,7 +41820,7 @@ function helpers_stringEmpty__P125_mk(s) { -function game_GameOverPlayerScore_constructor__P2925(s) { +function game_replaceRange__P69181(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41218,22 +41837,91 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverPlayerScore__C2923_VT)) failedCast(r0); - r0 = (s.arg0).fields["player"] = (s.arg1); - r0 = (s.arg0).fields["value"] = (s.arg2); - r0 = (s.arg0).fields["winner"] = (s.arg3); - r0 = undefined; + s.tmp_4 = helpers_stringSubstr__P64337_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.arg2; + s.callLocIdx = 1383; s.pc = 1; return s.tmp_4; + case 1: + r0 = s.retval; + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 2: + r0 = s.retval; + s.tmp_2 = r0; + s.tmp_7 = helpers_stringSubstr__P64337_mk(s); + s.tmp_7.arg0 = s.arg1; + s.tmp_7.arg1 = 0; + s.tmp_7.arg2 = s.arg3; + s.callLocIdx = 1384; s.pc = 3; return s.tmp_7; + case 3: + r0 = s.retval; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 4: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_5); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 5); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 5: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_10 = helpers_stringSubstr__P64337_mk(s); + s.tmp_10.arg0 = s.arg0; + r0 = (s.arg2 + s.arg3); + s.tmp_10.arg1 = r0; + s.tmp_10.arg2 = undefined; + s.callLocIdx = 1385; s.pc = 6; return s.tmp_10; + case 6: + r0 = s.retval; + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.tmp_9); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_9) + ""; } + case 7: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_8); return leave(s, r0) default: oops() } } } -game_GameOverPlayerScore_constructor__P2925.info = {"start":13111,"length":121,"line":398,"column":8,"endLine":401,"endColumn":39,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","player","value","winner"]} +game_replaceRange__P69181.info = {"start":400,"length":175,"line":24,"column":4,"endLine":26,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"replaceRange","argumentNames":["dst","src","start","len"]} -function game_GameOverPlayerScore_constructor__P2925_mk(s) { +function game_replaceRange__P69181_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverPlayerScore_constructor__P2925, depth: s.depth + 1, + parent: s, fn: game_replaceRange__P69181, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41244,7 +41932,7 @@ function game_GameOverPlayerScore_constructor__P2925_mk(s) { -function scene_setBackgroundImage__P2865(s) { +function game_padStr__P69180(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41254,36 +41942,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___10996 = undefined; + s.str___82385 = undefined; + s.i___82386 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1374; s.pc = 1; return s.tmp_0; + r0 = pxsim_String_.mkEmpty(); + s.str___82385 = (r0); + s.i___82386 = (0); case 1: + r0 = (s.i___82386 < s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + if ((s.str___82385) && (s.str___82385).vtable) { + setupResume(s, 3); + pxsim_String__stringConv(s.str___82385); + checkResumeConsumed(); + return; + } else { s.retval = (s.str___82385) + ""; } + case 3: r0 = s.retval; - s.scene___10996 = (r0); - s.tmp_0 = scene_Background_image__P2656_mk(s); - r0 = s.scene___10996.fields["background"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1375; s.pc = 2; return s.tmp_0; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, " "); + s.str___82385 = (r0); + r0 = (s.i___82386 + 1); + s.i___82386 = (r0); + { step = 1; continue; } case 2: - r0 = s.retval; - r0 = undefined; + r0 = s.str___82385; return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P2865.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +game_padStr__P69180.info = {"start":234,"length":160,"line":16,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"padStr","argumentNames":["len"]} -function scene_setBackgroundImage__P2865_mk(s) { +function game_padStr__P69180_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P2865, depth: s.depth + 1, + parent: s, fn: game_padStr__P69180, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___10996: undefined, + tmp_1: undefined, + str___82385: undefined, + i___82386: undefined, arg0: undefined, } } @@ -41291,7 +41993,7 @@ function scene_setBackgroundImage__P2865_mk(s) { -function scene_Background_image__P2656(s) { +function game_GameOverDialog_hasScores__P67148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41303,32 +42005,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2649_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 16); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -scene_Background_image__P2656.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +game_GameOverDialog_hasScores__P67148.info = {"start":13706,"length":75,"line":419,"column":8,"endLine":419,"endColumn":83,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasScores","argumentNames":["this"]} +game_GameOverDialog_hasScores__P67148.isGetter = true; -function scene_Background_image__P2656_mk(s) { +function game_GameOverDialog_hasScores__P67148_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2656, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_hasScores__P67148, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Background_image__P2655(s) { +function game_GameOverDialog_isWinCondition__P67146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41343,44 +42058,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2649_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_6 = r0; - r0 = pxsim.image.create(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); - case 1: - case 2: - r0 = s.arg0.fields["_image"]; + r0 = pxsim_Boolean__bang(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -scene_Background_image__P2655.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} -scene_Background_image__P2655.isGetter = true; +game_GameOverDialog_isWinCondition__P67146.info = {"start":13573,"length":73,"line":417,"column":8,"endLine":417,"endColumn":81,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isWinCondition","argumentNames":["this"]} +game_GameOverDialog_isWinCondition__P67146.isGetter = true; -function scene_Background_image__P2655_mk(s) { +function game_GameOverDialog_isWinCondition__P67146_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2655, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_isWinCondition__P67146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, } } @@ -41388,7 +42093,7 @@ function scene_Background_image__P2655_mk(s) { -function scene_Scene_destroy__P2851(s) { +function game_GameOverDialog_drawMessage__P67155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41403,35 +42108,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2823_VT)) failedCast(r0); - r0 = (s.arg0).fields["eventContext"] = (undefined); - r0 = (s.arg0).fields["background"] = (undefined); - r0 = (s.arg0).fields["tileMap"] = (undefined); - r0 = (s.arg0).fields["allSprites"] = (undefined); - r0 = (s.arg0).fields["spriteNextId"] = (undefined); - r0 = (s.arg0).fields["spritesByKind"] = (undefined); - r0 = (s.arg0).fields["physicsEngine"] = (undefined); - r0 = (s.arg0).fields["camera"] = (undefined); - r0 = (s.arg0).fields["flags"] = (undefined); - r0 = (s.arg0).fields["destroyedHandlers"] = (undefined); - r0 = (s.arg0).fields["createdHandlers"] = (undefined); - r0 = (s.arg0).fields["overlapHandlers"] = (undefined); - r0 = (s.arg0).fields["tileOverlapHandlers"] = (undefined); - r0 = (s.arg0).fields["collisionHandlers"] = (undefined); - r0 = (s.arg0).fields["wallCollisionHandlers"] = (undefined); - r0 = (s.arg0).fields["gameForeverHandlers"] = (undefined); - r0 = (s.arg0).fields["_data"] = (undefined); + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["message"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 5; + s.tmp_1 = game_screenColor__P69182_mk(s); + s.tmp_1.arg0 = 5; + s.callLocIdx = 1484; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.font8___66175; + s.callLocIdx = 1485; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_destroy__P2851.info = {"start":7299,"length":764,"line":204,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} +game_GameOverDialog_drawMessage__P67155.info = {"start":17577,"length":218,"line":506,"column":8,"endLine":514,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawMessage","argumentNames":["this"]} -function scene_Scene_destroy__P2851_mk(s) { +function game_GameOverDialog_drawMessage__P67155_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_destroy__P2851, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_drawMessage__P67155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -41439,7 +42145,7 @@ function scene_Scene_destroy__P2851_mk(s) { -function info_PlayerInfo_number__P2600(s) { +function game_GameOverDialog_displayCursor__P67153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41454,18 +42160,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["_player"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = (s.arg0).fields["cursorOn"] = (true); + r0 = undefined; + return leave(s, r0) default: oops() } } } -info_PlayerInfo_number__P2600.info = {"start":25302,"length":57,"line":813,"column":8,"endLine":815,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"number","argumentNames":["this"]} -info_PlayerInfo_number__P2600.isGetter = true; +game_GameOverDialog_displayCursor__P67153.info = {"start":17323,"length":61,"line":493,"column":8,"endLine":495,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} -function info_PlayerInfo_number__P2600_mk(s) { +function game_GameOverDialog_displayCursor__P67153_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_number__P2600, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_displayCursor__P67153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41474,7 +42180,7 @@ function info_PlayerInfo_number__P2600_mk(s) { -function info_PlayerInfoImpl_score__P2586(s) { +function game_GameOverDialog_constructor__P67152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41484,68 +42190,450 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___19236 = undefined; + s.score___82454 = undefined; + s.winner___82509 = undefined; + s.scoresWithValues___82586 = undefined; + s.scoreRows___82618 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2584_mk(s); + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = (s.arg0).fields["message"] = (s.arg2); + r0 = (s.arg0).fields["judged"] = (s.arg3); + r0 = (s.arg0).fields["scores"] = (s.arg4); + r0 = (s.arg0).fields["bestScore"] = (s.arg5); + r0 = (s.arg0).fields["winnerOverride"] = (s.arg6); + s.tmp_0 = game_BaseDialog_constructor__P67114_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1136; s.pc = 7; return s.tmp_0; - case 7: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 46; + s.tmp_1 = game_defaultSplashFrame__P69211_mk(s); + s.callLocIdx = 1461; s.pc = 34; return s.tmp_1; + case 34: r0 = s.retval; - s.state___19236 = (r0); - r0 = s.state___19236.fields["showScore"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.state___19236).fields["showScore"] = (true); - case 1: - case 2: - r0 = s.state___19236.fields["showPlayer"]; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.callLocIdx = 1462; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + r0 = (s.arg0).fields["cursorOn"] = (false); + r0 = (s.arg0).fields["flags"] = (0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 1); s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg6); + if (!r0) { step = 5; continue; } + s.arg1 = (true); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkAction(1, score_inline__P82456); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg6); + s.tmp_1 = helpers_arrayFind__P64330_mk(s); + s.tmp_1.arg0 = s.arg4; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1463; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + s.score___82454 = (r0); + r0 = pxsim_numops_toBoolDecr(s.score___82454); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = (s.state___19236).fields["showPlayer"] = (true); + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverPlayerScore__C67142_VT); + s.tmp_2 = r0; + s.tmp_3 = game_GameOverPlayerScore_constructor__P67144_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.arg6; + s.tmp_3.arg2 = null; + s.tmp_3.arg3 = true; + s.callLocIdx = 1464; s.pc = 36; return s.tmp_3; + case 36: + r0 = s.retval; + r0 = pxsim_Array__push(s.arg4, s.tmp_2); + s.tmp_0 = helpers_arraySort__P64324_mk(s); + s.tmp_0.arg0 = s.arg4; + s.tmp_0.arg1 = game_GameOverDialog_inline__P82475; + s.callLocIdx = 1465; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; case 3: case 4: - r0 = s.state___19236.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == null); + r0 = pxsim_pxtcore_mkAction(1, game_GameOverDialog_inline__P82485); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.state___19236).fields["score"] = (0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg6); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = s.arg4; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1466; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; case 5: case 6: - r0 = s.state___19236.fields["score"]; + r0 = pxsim_Array__length(s.arg4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 21; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_GameOverDialog_inline__P82497); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_2.arg0 = s.arg4; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1467; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 19; continue; } + s.tmp_0 = helpers_arrayFind__P64330_mk(s); + s.tmp_0.arg0 = s.arg4; + s.tmp_0.arg1 = winner_inline__P82512; + s.callLocIdx = 1468; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + s.winner___82509 = (r0); + r0 = pxsim_numops_toBoolDecr(s.winner___82509); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = pxsim_Array__length(s.arg4); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 1); + case 8: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.arg4, 0); + s.winner___82509 = (r0); + case 9: + case 10: + r0 = pxsim_numops_toBoolDecr(s.winner___82509); + if (!r0) { step = 17; continue; } + r0 = s.winner___82509.fields["value"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.arg5 == null); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 11; continue; } + r0 = s.winner___82509.fields["value"]; + s.tmp_3 = r0; + r0 = (s.arg0).fields["bestScore"] = (s.tmp_3); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + { step = 14; continue; } + case 11: + s.tmp_1 = info_isBetterScore__P66766_mk(s); + r0 = s.winner___82509.fields["value"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg5; + s.callLocIdx = 1469; s.pc = 41; return s.tmp_1; + case 41: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = s.winner___82509.fields["value"]; + s.tmp_2 = r0; + r0 = (s.arg0).fields["bestScore"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 12: + case 13: + case 14: + case 15: + case 16: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_stringReplaceAll__P64336_mk(s); + s.tmp_3 = helpers_stringReplaceAll__P64336_mk(s); + s.tmp_4 = helpers_stringReplaceAll__P64336_mk(s); + s.tmp_5 = helpers_stringReplaceAll__P64336_mk(s); + r0 = s.arg0.fields["message"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = "${WINNER}"; + r0 = s.winner___82509.fields["player"]; + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 46: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat("PLAYER ", s.tmp_6); + s.tmp_5.arg2 = r0; + s.callLocIdx = 1470; s.pc = 45; return s.tmp_5; + case 45: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = "${Winner}"; + r0 = s.winner___82509.fields["player"]; + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 47); + pxsim_String__stringConv(s.tmp_9); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_9) + ""; } + case 47: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat("Player ", s.tmp_8); + s.tmp_4.arg2 = r0; + s.callLocIdx = 1471; s.pc = 44; return s.tmp_4; + case 44: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "${winner}"; + r0 = s.winner___82509.fields["player"]; + s.tmp_11 = r0; + if ((s.tmp_11) && (s.tmp_11).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.tmp_11); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_11) + ""; } + case 48: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_String__concat("player ", s.tmp_10); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1472; s.pc = 43; return s.tmp_3; + case 43: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = "${winner_short}"; + r0 = s.winner___82509.fields["player"]; + s.tmp_13 = r0; + if ((s.tmp_13) && (s.tmp_13).vtable) { + setupResume(s, 49); + pxsim_String__stringConv(s.tmp_13); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_13) + ""; } + case 49: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_String__concat("P", s.tmp_12); + s.tmp_2.arg2 = r0; + s.callLocIdx = 1473; s.pc = 42; return s.tmp_2; + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["message"] = (s.tmp_1); + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + s.tmp_0 = helpers_arrayFilter__P64329_mk(s); + s.tmp_0.arg0 = s.arg4; + s.tmp_0.arg1 = scoresWithValues_inline__P82588; + s.callLocIdx = 1474; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + s.scoresWithValues___82586 = (r0); + r0 = pxsim_Array__length(s.scoresWithValues___82586); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.tmp_1.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 16); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["flags"] = (s.tmp_2); + case 23: + case 24: + s.tmp_1 = game_GameOverDialog_isWinCondition__P67146_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1475; s.pc = 51; return s.tmp_1; + case 51: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 25; continue; } + r0 = s.tmp_0; + { step = 26; continue; } + case 25: + r0 = s.arg0.fields["judged"]; + case 26: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 27; continue; } + r0 = s.tmp_2; + { step = 28; continue; } + case 27: + s.tmp_3 = game_GameOverDialog_hasScores__P67148_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1477; s.pc = 52; return s.tmp_3; + case 52: + r0 = s.retval; + case 28: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 29; continue; } + r0 = s.tmp_4; + { step = 30; continue; } + case 29: + r0 = s.arg0.fields["bestScore"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 != null); + case 30: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 31; continue; } + s.tmp_7 = r0 = s.arg0; + r0 = s.tmp_7.fields["flags"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 | 2); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["flags"] = (s.tmp_8); + case 31: + case 32: + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_1.arg0 = 0; + r0 = pxsim_Array__length(s.scoresWithValues___82586); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1478; s.pc = 53; return s.tmp_1; + case 53: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.scoreRows___82618 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = r0 = s.scoreRows___82618; + s.tmp_5 = if_charHeight_1_mk(s); + s.tmp_5.arg0 = globals.font5___66180; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1479; s.pc = 54; return s.tmp_5; } + } + case 54: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = (47 + s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["height"] = (s.tmp_1); + s.tmp_0 = game_BaseDialog_resize__P67115_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["height"]; + s.tmp_0.arg2 = r0; + s.tmp_1 = game_defaultSplashFrame__P69211_mk(s); + s.callLocIdx = 1480; s.pc = 56; return s.tmp_1; + case 56: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.callLocIdx = 1481; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_score__P2586.info = {"start":21410,"length":318,"line":691,"column":8,"endLine":700,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} +game_GameOverDialog_constructor__P67152.info = {"start":14056,"length":3257,"line":424,"column":8,"endLine":491,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","message","judged","scores","bestScore","winnerOverride"]} -function info_PlayerInfoImpl_score__P2586_mk(s) { +function game_GameOverDialog_constructor__P67152_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_score__P2586, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_constructor__P67152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - state___19236: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + score___82454: undefined, + winner___82509: undefined, + scoresWithValues___82586: undefined, + scoreRows___82618: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function info_PlayerInfoImpl_getState__P2584(s) { +function score_inline__P82456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41559,33 +42647,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_init__P4924_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1135; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals.infoState___4872.fields["playerStates"]; + r0 = s.arg0.fields["player"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = (s.tmp_0 === s.caps[0]); return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_getState__P2584.info = {"start":21172,"length":121,"line":681,"column":8,"endLine":684,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} +score_inline__P82456.info = {"start":14893,"length":40,"line":446,"column":42,"endLine":446,"endColumn":82,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function info_PlayerInfoImpl_getState__P2584_mk(s) { +function score_inline__P82456_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_getState__P2584, depth: s.depth + 1, + parent: s, fn: score_inline__P82456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -41593,7 +42668,7 @@ function info_PlayerInfoImpl_getState__P2584_mk(s) { -function info_PlayerInfoImpl_init__P4924(s) { +function game_GameOverDialog_inline__P82475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41605,86 +42680,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_initHUD__P4918_mk(s); - s.callLocIdx = 1132; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = s.arg0.fields["_player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); + r0 = s.arg0.fields["player"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = info_initMultiHUD__P4919_mk(s); - s.callLocIdx = 1133; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - case 1: - case 2: - r0 = globals.infoState___4872.fields["playerStates"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.arg1.fields["player"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C2533_VT); - s.tmp_6 = r0; - s.tmp_7 = info_PlayerState_constructor__P2542_mk(s); - s.tmp_7.arg0 = s.tmp_6; - s.callLocIdx = 1134; s.pc = 7; return s.tmp_7; - case 7: - r0 = s.retval; - r0 = globals.infoState___4872.fields["playerStates"]; - s.tmp_8 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 - 1); - s.tmp_9 = r0; - r0 = pxsim_Array_.setAt(s.tmp_8, s.tmp_9, s.tmp_6); - case 3: - case 4: - r0 = undefined; + r0 = (s.tmp_0 - s.tmp_1); return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_init__P4924.info = {"start":20910,"length":252,"line":673,"column":8,"endLine":679,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} +game_GameOverDialog_inline__P82475.info = {"start":15084,"length":29,"line":449,"column":32,"endLine":449,"endColumn":61,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["a","b"]} -function info_PlayerInfoImpl_init__P4924_mk(s) { +function game_GameOverDialog_inline__P82475_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_init__P4924, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_inline__P82475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, arg0: undefined, + arg1: undefined, } } -function info_initMultiHUD__P4919(s) { +function game_GameOverDialog_inline__P82485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41694,71 +42718,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.tmp_2 = r0 = globals.infoState___4872; - r0 = s.tmp_2.fields["visibilityFlag"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 16); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["visibilityFlag"] = (s.tmp_3); - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 32); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["player"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = globals.infoState___4872; - s.tmp_6 = info_defaultMultiplayerHeartImage__P4921_mk(s); - s.callLocIdx = 1096; s.pc = 6; return s.tmp_6; - case 6: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["heartImage"] = (s.tmp_5); - case 3: - case 4: - s.tmp_0 = r0 = globals.infoState___4872; - r0 = pxsim.image.ofBuffer(_hex19326); + r0 = (s.tmp_2 === s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - case 5: - r0 = undefined; + r0 = (s.tmp_0).fields["winner"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -info_initMultiHUD__P4919.info = {"start":5646,"length":393,"line":173,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} +game_GameOverDialog_inline__P82485.info = {"start":15165,"length":55,"line":451,"column":31,"endLine":451,"endColumn":86,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function info_initMultiHUD__P4919_mk(s) { +function game_GameOverDialog_inline__P82485_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initMultiHUD__P4919, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_inline__P82485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, + arg0: undefined, } } -const _hex19326 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") -function info_defaultMultiplayerHeartImage__P4921(s) { +function game_GameOverDialog_inline__P82497(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41768,39 +42759,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["player"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex19330); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim.image.ofBuffer(_hex19332); + s.tmp_2 = r0 = s.caps[0]; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 8); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = s.tmp_3; case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -info_defaultMultiplayerHeartImage__P4921.info = {"start":6643,"length":503,"line":209,"column":4,"endLine":226,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} +game_GameOverDialog_inline__P82497.info = {"start":15393,"length":76,"line":456,"column":31,"endLine":456,"endColumn":107,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function info_defaultMultiplayerHeartImage__P4921_mk(s) { +function game_GameOverDialog_inline__P82497_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultMultiplayerHeartImage__P4921, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_inline__P82497, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, } } -const _hex19330 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") -const _hex19332 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") -function info_initHUD__P4918(s) { +function winner_inline__P82512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41810,47 +42816,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.infoState___4872); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C4869_VT); - s.tmp_0 = r0; - s.tmp_1 = info_InfoState_constructor__P4870_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1076; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - globals.infoState___4872 = (s.tmp_0); - s.tmp_0 = scene_createRenderable__P2785_mk(s); - s.tmp_0.arg0 = 100; - s.tmp_0.arg1 = info_initHUD_inline__P19340; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 1095; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 3: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["winner"]; return leave(s, r0) default: oops() } } } -info_initHUD__P4918.info = {"start":3246,"length":2394,"line":117,"column":4,"endLine":171,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} +winner_inline__P82512.info = {"start":15544,"length":21,"line":458,"column":45,"endLine":458,"endColumn":66,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function info_initHUD__P4918_mk(s) { +function winner_inline__P82512_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD__P4918, depth: s.depth + 1, + parent: s, fn: winner_inline__P82512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function info_initHUD_inline__P19340(s) { +function scoresWithValues_inline__P82588(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41860,246 +42848,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ps___19349 = undefined; - s.p___19371 = undefined; - s.scene___19408 = undefined; - s.elapsed___19411 = undefined; - s.t___19419 = undefined; - s.goc___19439 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.infoState___4872); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 23; continue; } - case 1: - case 2: - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_2.arg0 = globals.players___4873; - s.tmp_2.arg1 = ps_inline__P19351; - s.callLocIdx = 1077; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.ps___19349 = (r0); - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.ps___19349; - s.tmp_0.arg1 = info_initHUD_inline__P19360; - s.callLocIdx = 1079; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.ps___19349; - s.tmp_0.arg1 = info_initHUD_inline__P19366; - s.callLocIdx = 1081; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - { step = 12; continue; } - case 3: - s.p___19371 = (globals.player1___2641); - s.tmp_1 = info_PlayerInfoImpl_hasScore__P2589_mk(s); - r0 = s.p___19371.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1082; s.pc = 27; return s.tmp_1; - case 27: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 6; continue; } - s.tmp_4 = info_PlayerInfo_drawScore__P2636_mk(s); - s.tmp_4.arg0 = s.p___19371; - s.callLocIdx = 1083; s.pc = 28; return s.tmp_4; - case 28: - r0 = s.retval; - case 6: - case 7: - s.tmp_1 = info_PlayerInfoImpl_hasLife__P2593_mk(s); - r0 = s.p___19371.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1084; s.pc = 29; return s.tmp_1; - case 29: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } - case 8: - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 4); - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_4 = info_PlayerInfo_drawLives__P2637_mk(s); - s.tmp_4.arg0 = s.p___19371; - s.callLocIdx = 1085; s.pc = 30; return s.tmp_4; - case 30: - r0 = s.retval; - case 10: - case 11: - s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P2596_mk(s); - r0 = s.p___19371.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1086; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - case 12: - r0 = globals.infoState___4872.fields["gameEnd"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } - case 13: - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 1); - case 14: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 21; continue; } - s.tmp_4 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1087; s.pc = 32; return s.tmp_4; - case 32: - r0 = s.retval; - s.scene___19408 = (r0); - r0 = globals.infoState___4872.fields["gameEnd"]; - s.tmp_0 = r0; - r0 = s.scene___19408.fields["_millis"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.elapsed___19411 = (r0); - s.tmp_0 = info_drawTimer__P4923_mk(s); - s.tmp_0.arg0 = s.elapsed___19411; - s.callLocIdx = 1089; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - r0 = (s.elapsed___19411 / 1000); - s.t___19419 = (r0); - r0 = (s.t___19419 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.t___19419 = (0); - r0 = globals.infoState___4872.fields["countdownExpired"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = (globals.infoState___4872).fields["countdownExpired"] = (true); - r0 = (globals.infoState___4872).fields["gameEnd"] = (undefined); - r0 = globals.infoState___4872.fields["countdownEndHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = if_countdownEndHandler_1_mk(s); - s.tmp_1.arg0 = globals.infoState___4872; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); - s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["countdownEndHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["countdownEndHandler"], 1); s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1090; s.pc = 34; return s.tmp_1;; } - else { s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 34: - r0 = s.retval; - { step = 16; continue; } - case 15: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1091; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.goc___19439 = (r0); - s.tmp_0 = game_GameOverConfig_setEffect__P2971_mk(s); - s.tmp_0.arg0 = s.goc___19439; - s.tmp_0.arg1 = false; - s.tmp_0.arg2 = null; - s.tmp_0.arg3 = false; - s.callLocIdx = 1092; s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - s.tmp_0 = game_GameOverConfig_setSound__P2973_mk(s); - s.tmp_0.arg0 = s.goc___19439; - s.tmp_0.arg1 = false; - s.tmp_0.arg2 = null; - s.tmp_0.arg3 = false; - s.tmp_0.arg4 = false; - s.callLocIdx = 1093; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = game_gameOver__P2993_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 1094; s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - r0 = undefined; + r0 = s.arg0.fields["value"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 != null); return leave(s, r0) default: oops() } } } -info_initHUD_inline__P19340.info = {"start":3406,"length":2217,"line":124,"column":12,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +scoresWithValues_inline__P82588.info = {"start":16752,"length":28,"line":480,"column":51,"endLine":480,"endColumn":79,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["score"]} -function info_initHUD_inline__P19340_mk(s) { +function scoresWithValues_inline__P82588_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P19340, depth: s.depth + 1, + parent: s, fn: scoresWithValues_inline__P82588, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - ps___19349: undefined, - p___19371: undefined, - scene___19408: undefined, - elapsed___19411: undefined, - t___19419: undefined, - goc___19439: undefined, + arg0: undefined, } } -function ps_inline__P19351(s) { +function game_defaultSplashFrame__P69211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42109,38 +42883,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex82759); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex82761); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -ps_inline__P19351.info = {"start":3654,"length":8,"line":129,"column":46,"endLine":129,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +game_defaultSplashFrame__P69211.info = {"start":27877,"length":220,"line":768,"column":4,"endLine":781,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} -function ps_inline__P19351_mk(s) { +function game_defaultSplashFrame__P69211_mk(s) { checkStack(s.depth); return { - parent: s, fn: ps_inline__P19351, depth: s.depth + 1, + parent: s, fn: game_defaultSplashFrame__P69211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, } } +const _hex82759 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") +const _hex82761 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function info_initHUD_inline__P19360(s) { +function game_GameOverDialog_isJudgedGame__P67147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42154,23 +42929,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfo_drawPlayer__P2635_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1078; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C67145_VT)) failedCast(r0); + r0 = s.arg0.fields["judged"]; + return leaveAccessor(s, r0) default: oops() } } } -info_initHUD_inline__P19360.info = {"start":3738,"length":19,"line":131,"column":31,"endLine":131,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +game_GameOverDialog_isJudgedGame__P67147.info = {"start":13655,"length":42,"line":418,"column":8,"endLine":418,"endColumn":50,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isJudgedGame","argumentNames":["this"]} +game_GameOverDialog_isJudgedGame__P67147.isGetter = true; -function info_initHUD_inline__P19360_mk(s) { +function game_GameOverDialog_isJudgedGame__P67147_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P19360, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_isJudgedGame__P67147, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -42178,7 +42950,7 @@ function info_initHUD_inline__P19360_mk(s) { -function info_initHUD_inline__P19366(s) { +function info_isBetterScore__P66766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42188,37 +42960,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.goc___82734 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P2596_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1080; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.gameOverConfig___67197; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1110; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - r0 = undefined; + s.goc___82734 = (r0); + r0 = s.goc___82734.fields["scoringType"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 1: + r0 = (s.arg1 == null); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } + case 2: + r0 = (s.arg0 > s.arg1); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + { step = 8; continue; } + case 4: + r0 = (s.arg1 == null); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 5: + r0 = (s.arg0 < s.arg1); + case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 8; continue; } + case 7: + r0 = false; + case 8: return leave(s, r0) default: oops() } } } -info_initHUD_inline__P19366.info = {"start":3840,"length":32,"line":133,"column":31,"endLine":133,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +info_isBetterScore__P66766.info = {"start":8360,"length":446,"line":273,"column":4,"endLine":284,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"isBetterScore","argumentNames":["newScore","prevScore"]} -function info_initHUD_inline__P19366_mk(s) { +function info_isBetterScore__P66766_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P19366, depth: s.depth + 1, + parent: s, fn: info_isBetterScore__P66766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + goc___82734: undefined, arg0: undefined, + arg1: undefined, } } -function info_drawTimer__P4923(s) { +function helpers_stringReplaceAll__P64336(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42228,289 +43046,204 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___19486 = undefined; - s.smallFont___19488 = undefined; - s.seconds___19490 = undefined; - s.width___19494 = undefined; - s.left___19499 = undefined; - s.color1___19509 = undefined; - s.color2___19513 = undefined; - s.temp___19526 = undefined; - s.remainder___19562 = undefined; - s.decimalLeft___19581 = undefined; - s.minutes___19599 = undefined; - s.remainder___19603 = undefined; + s.split___82653 = undefined; + s.empty___82659 = undefined; + s.output___82663 = undefined; + s.i___82678 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 11: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.arg1 = (r0); + s.tmp_0 = helpers_stringSplit__P64341_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 11; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.split___82653 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.empty___82659 = (r0); + r0 = pxsim_numops_toBoolDecr(s.empty___82659); if (!r0) { step = 1; continue; } - s.arg0 = (0); + s.tmp_0 = applyReplace__P82666_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 13; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + { step = 2; continue; } case 1: + r0 = pxsim_String_.mkEmpty(); case 2: - r0 = (s.arg0 | 0); - s.arg0 = (r0); - s.font___19486 = (globals.font8___1956); - s.smallFont___19488 = (globals.font5___1961); - r0 = pxsim.Math_.idiv(s.arg0, 1000); - s.seconds___19490 = (r0); - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___19486; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1119; s.pc = 11; return s.tmp_2; } - } - case 11: - r0 = s.retval; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 * 5); + s.output___82663 = (s.tmp_1); + r0 = pxsim_Array__length(s.split___82653); s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); - s.width___19494 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + if ((s.output___82663) && (s.output___82663).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.output___82663); + checkResumeConsumed(); + return; + } else { s.retval = (s.output___82663) + ""; } + case 14: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.width___19494 >> 1); + r0 = pxsim_Array__getAt(s.split___82653, 0); s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.left___19499 = (r0); - r0 = globals.infoState___4872.fields["fontColor"]; - s.color1___19509 = (r0); - r0 = globals.infoState___4872.fields["bgColor"]; - s.color2___19513 = (r0); - r0 = (s.seconds___19490 < 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 15: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.output___82663 = (r0); case 3: - r0 = (s.seconds___19490 & 1); case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 5; continue; } - r0 = s.tmp_1; - { step = 6; continue; } + s.i___82678 = (1); case 5: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_1 = r0 = s.i___82678; + r0 = pxsim_Array__length(s.split___82653); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 7; continue; } - s.temp___19526 = (s.color1___19509); - s.color1___19509 = (s.color2___19513); - s.color2___19513 = (s.temp___19526); - case 7: - case 8: - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = (s.left___19499 - 3); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___19494 + 6); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___19486; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1120; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1121; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = (s.left___19499 - 2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___19494 + 4); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___19486; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1122; s.pc = 15; return s.tmp_2; } - } - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.color2___19513; - s.callLocIdx = 1123; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - r0 = (s.seconds___19490 < 60); + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg0 % 1000); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, 10); - s.remainder___19562 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_3 = info_formatDecimal__P4926_mk(s); - s.tmp_3.arg0 = s.seconds___19490; - s.callLocIdx = 1124; s.pc = 17; return s.tmp_3; + if (!r0) { step = 6; continue; } + if ((s.output___82663) && (s.output___82663).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.output___82663); + checkResumeConsumed(); + return; + } else { s.retval = (s.output___82663) + ""; } + case 16: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_8 = applyReplace__P82666_mk(s); + s.tmp_8.arg0 = s.arg1; + s.tmp_8.arg1 = s.arg2; + s.callLocIdx = 14; s.pc = 17; return s.tmp_8; case 17: r0 = s.retval; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { setupResume(s, 18); - pxsim_String__stringConv(s.tmp_2); + pxsim_String__stringConv(s.tmp_7); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_2) + ""; } + } else { s.retval = (s.tmp_7) + ""; } case 18: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "."); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___19499; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___19509; - s.tmp_0.arg5 = s.font___19486; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1125; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.left___19499; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___19486; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1126; s.pc = 19; return s.tmp_3; } - } + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.split___82653, s.i___82678); + s.tmp_10 = r0; + if ((s.tmp_10) && (s.tmp_10).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.tmp_10); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_10) + ""; } case 19: r0 = s.retval; - s.tmp_2 = r0; - r0 = (3 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.decimalLeft___19581 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_1 = info_formatDecimal__P4926_mk(s); - s.tmp_1.arg0 = s.remainder___19562; - s.callLocIdx = 1127; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.decimalLeft___19581; - s.tmp_0.arg3 = 3; - s.tmp_0.arg4 = s.color1___19509; - s.tmp_0.arg5 = s.smallFont___19488; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1128; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - { step = 10; continue; } - case 9: - r0 = pxsim.Math_.idiv(s.seconds___19490, 60); - s.minutes___19599 = (r0); - r0 = (s.seconds___19490 % 60); - s.remainder___19603 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_5 = info_formatDecimal__P4926_mk(s); - s.tmp_5.arg0 = s.minutes___19599; - s.callLocIdx = 1129; s.pc = 23; return s.tmp_5; - case 23: - r0 = s.retval; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.tmp_4); + s.tmp_9 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_9); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.tmp_5); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_4) + ""; } - case 24: + } else { s.retval = (s.tmp_5) + ""; } + case 20: r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.output___82663 = (r0); + r0 = (s.i___82678 + 1); + s.i___82678 = (r0); + { step = 5; continue; } + case 6: + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, ":"); + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 25); - pxsim_String__stringConv(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = s.empty___82659; + case 8: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 9; continue; } + if ((s.output___82663) && (s.output___82663).vtable) { + setupResume(s, 21); + pxsim_String__stringConv(s.output___82663); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_2) + ""; } - case 25: + } else { s.retval = (s.output___82663) + ""; } + case 21: r0 = s.retval; - s.tmp_1 = r0; - s.tmp_8 = info_formatDecimal__P4926_mk(s); - s.tmp_8.arg0 = s.remainder___19603; - s.callLocIdx = 1130; s.pc = 26; return s.tmp_8; - case 26: + s.tmp_5 = r0; + s.tmp_8 = applyReplace__P82666_mk(s); + s.tmp_8.arg0 = s.arg1; + s.tmp_8.arg1 = s.arg2; + s.callLocIdx = 16; s.pc = 22; return s.tmp_8; + case 22: r0 = s.retval; s.tmp_7 = r0; if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 27); + setupResume(s, 23); pxsim_String__stringConv(s.tmp_7); checkResumeConsumed(); return; } else { s.retval = (s.tmp_7) + ""; } - case 27: + case 23: r0 = s.retval; s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_6); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___19499; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___19509; - s.tmp_0.arg5 = s.font___19486; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1131; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); + s.output___82663 = (r0); + case 9: case 10: - r0 = undefined; + r0 = s.output___82663; return leave(s, r0) default: oops() } } } -info_drawTimer__P4923.info = {"start":17602,"length":1328,"line":587,"column":4,"endLine":622,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} +helpers_stringReplaceAll__P64336.info = {"start":10239,"length":919,"line":346,"column":4,"endLine":374,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringReplaceAll","argumentNames":["s","toReplace","replacer"]} -function info_drawTimer__P4923_mk(s) { +function helpers_stringReplaceAll__P64336_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_drawTimer__P4923, depth: s.depth + 1, + parent: s, fn: helpers_stringReplaceAll__P64336, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42521,26 +43254,22 @@ function info_drawTimer__P4923_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - font___19486: undefined, - smallFont___19488: undefined, - seconds___19490: undefined, - width___19494: undefined, - left___19499: undefined, - color1___19509: undefined, - color2___19513: undefined, - temp___19526: undefined, - remainder___19562: undefined, - decimalLeft___19581: undefined, - minutes___19599: undefined, - remainder___19603: undefined, + tmp_9: undefined, + tmp_10: undefined, + split___82653: undefined, + empty___82659: undefined, + output___82663: undefined, + i___82678: undefined, arg0: undefined, -} } + arg1: undefined, + arg2: undefined, +} } -function info_formatDecimal__P4926(s) { +function applyReplace__P82666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42552,49 +43281,65 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 | 0); - s.arg0 = (r0); - r0 = (s.arg0 < 10); + r0 = pxsim_pxtcore.typeOf(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 == "string"); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("0", s.tmp_1); - { step = 3; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - r0 = pxsim_numops.toString(s.arg0); + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.arg1; + { step = 5; continue; } + { step = 4; continue; } case 3: + s.tmp_4 = lambda_2_mk(s); + s.tmp_4.argL = s.arg1; + s.tmp_4.arg0 = s.arg0; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 17; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + { step = 5; continue; } + case 4: + r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -info_formatDecimal__P4926.info = {"start":38279,"length":156,"line":1248,"column":4,"endLine":1254,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} +applyReplace__P82666.info = {"start":10880,"length":272,"line":367,"column":8,"endLine":373,"endColumn":9,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"applyReplace","argumentNames":["r","replacer"]} -function info_formatDecimal__P4926_mk(s) { +function applyReplace__P82666_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_formatDecimal__P4926, depth: s.depth + 1, + parent: s, fn: applyReplace__P82666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function info_InfoState_constructor__P4870(s) { +function helpers_stringEmpty__P64344(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42608,90 +43353,28 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_InfoState__C4869_VT)) failedCast(r0); - r0 = (s.arg0).fields["visibilityFlag"] = (8); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = info_defaultHeartImage__P4920_mk(s); - s.callLocIdx = 1070; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.ofBuffer(_hex20401); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 2; continue; } - case 1: - r0 = 1; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["bgColor"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = 1; - { step = 4; continue; } - case 3: - r0 = 3; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["borderColor"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = 1; - { step = 6; continue; } - case 5: - r0 = 3; - case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["fontColor"] = (s.tmp_1); - r0 = (s.arg0).fields["countdownExpired"] = (undefined); - r0 = (s.arg0).fields["countdownEndHandler"] = (undefined); - r0 = (s.arg0).fields["gameEnd"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -info_InfoState_constructor__P4870.info = {"start":1696,"length":674,"line":63,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +helpers_stringEmpty__P64344.info = {"start":15544,"length":74,"line":522,"column":4,"endLine":524,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringEmpty","argumentNames":["S"]} -function info_InfoState_constructor__P4870_mk(s) { +function helpers_stringEmpty__P64344_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_InfoState_constructor__P4870, depth: s.depth + 1, + parent: s, fn: helpers_stringEmpty__P64344, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } -const _hex20401 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function info_defaultHeartImage__P4920(s) { +function game_GameOverPlayerScore_constructor__P67144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42701,39 +43384,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex20429); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex20431); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverPlayerScore__C67142_VT)) failedCast(r0); + r0 = (s.arg0).fields["player"] = (s.arg1); + r0 = (s.arg0).fields["value"] = (s.arg2); + r0 = (s.arg0).fields["winner"] = (s.arg3); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_defaultHeartImage__P4920.info = {"start":6045,"length":592,"line":186,"column":4,"endLine":207,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} +game_GameOverPlayerScore_constructor__P67144.info = {"start":13111,"length":121,"line":398,"column":8,"endLine":401,"endColumn":39,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","player","value","winner"]} -function info_defaultHeartImage__P4920_mk(s) { +function game_GameOverPlayerScore_constructor__P67144_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultHeartImage__P4920, depth: s.depth + 1, + parent: s, fn: game_GameOverPlayerScore_constructor__P67144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -const _hex20429 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") -const _hex20431 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function game_gameOver__P2993(s) { +function scene_Scene_destroy__P67070(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42747,24 +43431,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game__gameOverImpl__P5017_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1590; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C67042_VT)) failedCast(r0); + r0 = (s.arg0).fields["eventContext"] = (undefined); + r0 = (s.arg0).fields["background"] = (undefined); + r0 = (s.arg0).fields["tileMap"] = (undefined); + r0 = (s.arg0).fields["allSprites"] = (undefined); + r0 = (s.arg0).fields["spriteNextId"] = (undefined); + r0 = (s.arg0).fields["spritesByKind"] = (undefined); + r0 = (s.arg0).fields["physicsEngine"] = (undefined); + r0 = (s.arg0).fields["camera"] = (undefined); + r0 = (s.arg0).fields["flags"] = (undefined); + r0 = (s.arg0).fields["destroyedHandlers"] = (undefined); + r0 = (s.arg0).fields["createdHandlers"] = (undefined); + r0 = (s.arg0).fields["overlapHandlers"] = (undefined); + r0 = (s.arg0).fields["tileOverlapHandlers"] = (undefined); + r0 = (s.arg0).fields["collisionHandlers"] = (undefined); + r0 = (s.arg0).fields["wallCollisionHandlers"] = (undefined); + r0 = (s.arg0).fields["gameForeverHandlers"] = (undefined); + r0 = (s.arg0).fields["_data"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -game_gameOver__P2993.info = {"start":11084,"length":74,"line":342,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"gameOver","argumentNames":["win"]} +scene_Scene_destroy__P67070.info = {"start":7299,"length":764,"line":204,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} -function game_gameOver__P2993_mk(s) { +function scene_Scene_destroy__P67070_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_gameOver__P2993, depth: s.depth + 1, + parent: s, fn: scene_Scene_destroy__P67070, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -42772,7 +43468,7 @@ function game_gameOver__P2993_mk(s) { -function game_GameOverConfig_setSound__P2973(s) { +function info_PlayerInfo_number__P66819(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42784,73 +43480,101 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["_player"]; + return leaveAccessor(s, r0) + default: oops() +} } } +info_PlayerInfo_number__P66819.info = {"start":25302,"length":57,"line":813,"column":8,"endLine":815,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"number","argumentNames":["this"]} +info_PlayerInfo_number__P66819.isGetter = true; + +function info_PlayerInfo_number__P66819_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_number__P66819, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function info_PlayerInfoImpl_score__P66805(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.state___83457 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P66803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1136; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.state___83457 = (r0); + r0 = s.state___83457.fields["showScore"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.state___83457).fields["showScore"] = (true); case 1: - r0 = s.arg0.fields["soundSetByUser"]; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.state___83457.fields["showPlayer"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - { step = 9; continue; } + r0 = (s.state___83457).fields["showPlayer"] = (true); case 3: case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.state___83457.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["winSound"] = (s.arg2); - r0 = (s.arg0).fields["winSoundLooping"] = (s.arg3); - { step = 6; continue; } + r0 = (s.state___83457).fields["score"] = (0); case 5: - r0 = (s.arg0).fields["loseSound"] = (s.arg2); - r0 = (s.arg0).fields["loseSoundLooping"] = (s.arg3); case 6: - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 7; continue; } - r0 = (s.arg0).fields["soundSetByUser"] = (true); - case 7: - case 8: - case 9: - r0 = undefined; + r0 = s.state___83457.fields["score"]; return leave(s, r0) default: oops() } } } -game_GameOverConfig_setSound__P2973.info = {"start":2303,"length":440,"line":72,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"setSound","argumentNames":["this","win","sound","looping","explicit"]} +info_PlayerInfoImpl_score__P66805.info = {"start":21410,"length":318,"line":691,"column":8,"endLine":700,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} -function game_GameOverConfig_setSound__P2973_mk(s) { +function info_PlayerInfoImpl_score__P66805_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_setSound__P2973, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_score__P66805, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + state___83457: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function info_PlayerInfo_constructor__P2599(s) { +function info_PlayerInfoImpl_getState__P66803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42862,60 +43586,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = (s.arg0).fields["_player"] = (s.arg1); - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfoImpl__C2575_VT); - s.tmp_0 = r0; - s.tmp_1 = info_PlayerInfoImpl_constructor__P2583_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1149; s.pc = 3; return s.tmp_1; - case 3: + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_init__P69143_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1135; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["impl"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.players___4873); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = globals.infoState___69091.fields["playerStates"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.players___4873 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals.players___4873; r0 = s.arg0.fields["_player"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); - r0 = undefined; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -info_PlayerInfo_constructor__P2599.info = {"start":24739,"length":213,"line":794,"column":8,"endLine":800,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} +info_PlayerInfoImpl_getState__P66803.info = {"start":21172,"length":121,"line":681,"column":8,"endLine":684,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} -function info_PlayerInfo_constructor__P2599_mk(s) { +function info_PlayerInfoImpl_getState__P66803_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_constructor__P2599, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_getState__P66803, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function info_PlayerInfoImpl_constructor__P2583(s) { +function info_PlayerInfoImpl_init__P69143(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42927,135 +43634,86 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - r0 = (s.arg0).fields["_player"] = (s.arg1); - r0 = (s.arg0).fields["border"] = (1); - r0 = (s.arg0).fields["fc"] = (1); - r0 = (s.arg0).fields["left"] = (undefined); - r0 = (s.arg0).fields["up"] = (undefined); + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_initHUD__P69137_mk(s); + s.callLocIdx = 1132; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; r0 = s.arg0.fields["_player"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === 1); + r0 = (s.tmp_1 > 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - r0 = 0; - { step = 2; continue; } + s.tmp_2 = info_initMultiHUD__P69138_mk(s); + s.callLocIdx = 1133; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; case 1: - r0 = 2; case 2: - // jmp value (already in r0) + r0 = globals.infoState___69091.fields["playerStates"]; s.tmp_3 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_3); - r0 = (s.arg0).fields["x"] = (0); - r0 = (s.arg0).fields["y"] = (0); - { step = 14; continue; } - case 3: - r0 = (s.arg1 === 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = 0; - { step = 5; continue; } - case 4: - r0 = 8; - case 5: - // jmp value (already in r0) + r0 = s.arg0.fields["_player"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - 1); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); s.tmp_2 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["x"] = (s.tmp_1); - r0 = (s.arg0).fields["y"] = (0); - r0 = (s.arg0).fields["left"] = (true); - { step = 13; continue; } - case 6: - r0 = (s.arg1 === 3); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = 0; - { step = 8; continue; } + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C66752_VT); + s.tmp_6 = r0; + s.tmp_7 = info_PlayerState_constructor__P66761_mk(s); + s.tmp_7.arg0 = s.tmp_6; + s.callLocIdx = 1134; s.pc = 7; return s.tmp_7; case 7: - r0 = 4; - case 8: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_2); - r0 = (s.arg0).fields["x"] = (0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["y"] = (s.tmp_1); - r0 = (s.arg0).fields["up"] = (true); - { step = 12; continue; } - case 9: - r0 = pxsim_ImageMethods.isMono(globals.screen___2013); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = 0; - { step = 11; continue; } - case 10: - r0 = 7; - case 11: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["y"] = (s.tmp_1); - r0 = (s.arg0).fields["left"] = (true); - r0 = (s.arg0).fields["up"] = (true); - case 12: - case 13: - case 14: + r0 = s.retval; + r0 = globals.infoState___69091.fields["playerStates"]; + s.tmp_8 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 - 1); + s.tmp_9 = r0; + r0 = pxsim_Array_.setAt(s.tmp_8, s.tmp_9, s.tmp_6); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_constructor__P2583.info = {"start":19784,"length":1116,"line":641,"column":8,"endLine":671,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} +info_PlayerInfoImpl_init__P69143.info = {"start":20910,"length":252,"line":673,"column":8,"endLine":679,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} -function info_PlayerInfoImpl_constructor__P2583_mk(s) { +function info_PlayerInfoImpl_init__P69143_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_constructor__P2583, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_init__P69143, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, arg0: undefined, - arg1: undefined, } } -function info_PlayerInfo_drawLives__P2637(s) { +function info_initMultiHUD__P69138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43065,316 +43723,412 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___19640 = undefined; - s.font___19646 = undefined; - s.i___19689 = undefined; - s.num___19711 = undefined; - s.textWidth___19718 = undefined; - s.mult___19770 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P2623_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1179; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.state___19640 = (r0); - r0 = s.state___19640.fields["life"]; + r0 = globals.infoState___69091.fields["visibilityFlag"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); + r0 = (s.tmp_1 & 16); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 7; continue; } + { step = 5; continue; } case 1: case 2: - s.font___19646 = (globals.font8___1956); - r0 = s.state___19640.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_imageFillRect__P1939_mk(s); - s.tmp_2.arg0 = globals.screen___2013; - s.tmp_2.arg1 = 0; - s.tmp_2.arg2 = 0; - r0 = s.state___19640.fields["life"]; + s.tmp_2 = r0 = globals.infoState___69091; + r0 = s.tmp_2.fields["visibilityFlag"]; s.tmp_4 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 1); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); + r0 = (s.tmp_4 | 16); s.tmp_3 = r0; - r0 = (s.tmp_3 + 3); - s.tmp_2.arg3 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 + 4); - s.tmp_2.arg4 = r0; - r0 = globals.infoState___4872.fields["borderColor"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 1180; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = s.state___19640.fields["life"]; - s.tmp_2 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); + r0 = (s.tmp_2).fields["visibilityFlag"] = (s.tmp_3); + r0 = globals.infoState___69091.fields["visibilityFlag"]; s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1181; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.i___19689 = (0); - case 3: - r0 = s.state___19640.fields["life"]; + r0 = (s.tmp_3 & 32); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.i___19689 < s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = r0 = globals.screen___2013; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_3 = r0; - s.tmp_6 = r0 = s.i___19689; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 + 1); - s.tmp_7 = r0; - r0 = (s.tmp_6 * s.tmp_7); + if (!r0) { step = 3; continue; } + s.tmp_4 = r0 = globals.infoState___69091; + s.tmp_6 = info_defaultMultiplayerHeartImage__P69140_mk(s); + s.callLocIdx = 1096; s.pc = 6; return s.tmp_6; + case 6: + r0 = s.retval; s.tmp_5 = r0; - r0 = (1 + s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 1); - r0 = (s.i___19689 + 1); - s.i___19689 = (r0); - { step = 3; continue; } + r0 = (s.tmp_4).fields["heartImage"] = (s.tmp_5); + case 3: case 4: - { step = 6; continue; } - case 5: - r0 = s.state___19640.fields["life"]; + s.tmp_0 = r0 = globals.infoState___69091; + r0 = pxsim.image.ofBuffer(_hex83547); s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 11: - r0 = s.retval; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); + case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_initMultiHUD__P69138.info = {"start":5646,"length":393,"line":173,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} + +function info_initMultiHUD__P69138_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_initMultiHUD__P69138, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, +} } + +const _hex83547 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") + + + + +function info_defaultMultiplayerHeartImage__P69140(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_2); - s.num___19711 = (r0); - r0 = pxsim_String_.length(s.num___19711); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex83551); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex83553); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___19646; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1182; s.pc = 12; return s.tmp_3; } - } - case 12: + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +info_defaultMultiplayerHeartImage__P69140.info = {"start":6643,"length":503,"line":209,"column":4,"endLine":226,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} + +function info_defaultMultiplayerHeartImage__P69140_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_defaultMultiplayerHeartImage__P69140, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex83551 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") +const _hex83553 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") + + + + +function info_initHUD__P69137(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.infoState___69091); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C69088_VT); + s.tmp_0 = r0; + s.tmp_1 = info_InfoState_constructor__P69089_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1076; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); + globals.infoState___69091 = (s.tmp_0); + s.tmp_0 = scene_createRenderable__P67004_mk(s); + s.tmp_0.arg0 = 100; + s.tmp_0.arg1 = info_initHUD_inline__P83561; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 1095; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_initHUD__P69137.info = {"start":3246,"length":2394,"line":117,"column":4,"endLine":171,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} + +function info_initHUD__P69137_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_initHUD__P69137, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function info_initHUD_inline__P83561(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ps___83570 = undefined; + s.p___83592 = undefined; + s.scene___83629 = undefined; + s.elapsed___83632 = undefined; + s.t___83640 = undefined; + s.goc___83660 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.infoState___69091); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.textWidth___19718 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_3 + s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.textWidth___19718); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 23; continue; } + case 1: + case 2: + r0 = globals.infoState___69091.fields["visibilityFlag"]; s.tmp_1 = r0; - r0 = (s.tmp_1 + 5); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 + 4); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1183; s.pc = 13; return s.tmp_0; - case 13: + r0 = (s.tmp_1 & 16); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = helpers_arrayFilter__P64329_mk(s); + s.tmp_2.arg0 = globals.players___69092; + s.tmp_2.arg1 = ps_inline__P83572; + s.callLocIdx = 1077; s.pc = 24; return s.tmp_2; + case 24: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + s.ps___83570 = (r0); + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_0.arg0 = s.ps___83570; + s.tmp_0.arg1 = info_initHUD_inline__P83581; + s.callLocIdx = 1079; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + s.tmp_0.arg0 = s.ps___83570; + s.tmp_0.arg1 = info_initHUD_inline__P83587; + s.callLocIdx = 1081; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + { step = 12; continue; } + case 3: + s.p___83592 = (globals.player1___66860); + s.tmp_1 = info_PlayerInfoImpl_hasScore__P66808_mk(s); + r0 = s.p___83592.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1082; s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = globals.infoState___69091.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); + case 5: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_3 + s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 6; continue; } + s.tmp_4 = info_PlayerInfo_drawScore__P66855_mk(s); + s.tmp_4.arg0 = s.p___83592; + s.callLocIdx = 1083; s.pc = 28; return s.tmp_4; + case 28: + r0 = s.retval; + case 6: + case 7: + s.tmp_1 = info_PlayerInfoImpl_hasLife__P66812_mk(s); + r0 = s.p___83592.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1084; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + r0 = globals.infoState___69091.fields["visibilityFlag"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.textWidth___19718); + r0 = (s.tmp_2 & 4); + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_4 = info_PlayerInfo_drawLives__P66856_mk(s); + s.tmp_4.arg0 = s.p___83592; + s.callLocIdx = 1085; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 10: + case 11: + s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P66815_mk(s); + r0 = s.p___83592.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1086; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + case 12: + r0 = globals.infoState___69091.fields["gameEnd"]; s.tmp_1 = r0; - r0 = (s.tmp_1 + 4); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1184; s.pc = 14; return s.tmp_0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = globals.infoState___69091.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 1); case 14: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 21; continue; } + s.tmp_4 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1087; s.pc = 32; return s.tmp_4; + case 32: r0 = s.retval; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___2013, s.tmp_0, 1, 1); - r0 = globals.infoState___4872.fields["multiplierImage"]; + s.scene___83629 = (r0); + r0 = globals.infoState___69091.fields["gameEnd"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___19770 = (r0); - r0 = globals.infoState___4872.fields["fontColor"]; + r0 = s.scene___83629.fields["_millis"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.elapsed___83632 = (r0); + s.tmp_0 = info_drawTimer__P69142_mk(s); + s.tmp_0.arg0 = s.elapsed___83632; + s.callLocIdx = 1089; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + r0 = (s.elapsed___83632 / 1000); + s.t___83640 = (r0); + r0 = (s.t___83640 <= 0); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___19770, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___2013; - s.tmp_1 = r0 = s.mult___19770; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + s.t___83640 = (0); + r0 = globals.infoState___69091.fields["countdownExpired"]; s.tmp_2 = r0; - s.tmp_8 = if_charHeight_1_mk(s); - s.tmp_8.arg0 = s.font___19646; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = (globals.infoState___69091).fields["countdownExpired"] = (true); + r0 = (globals.infoState___69091).fields["gameEnd"] = (undefined); + r0 = globals.infoState___69091.fields["countdownEndHandler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = if_countdownEndHandler_1_mk(s); + s.tmp_1.arg0 = globals.infoState___69091; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); + s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1185; s.pc = 15; return s.tmp_8; } + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["countdownEndHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["countdownEndHandler"], 1); s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1090; s.pc = 34; return s.tmp_1;; } + else { s.callLocIdx = 1090; s.pc = 34; return s.tmp_1; } } + case 34: + r0 = s.retval; + { step = 16; continue; } case 15: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.gameOverConfig___67197; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1091; s.pc = 35; return s.tmp_0; + case 35: r0 = s.retval; - s.tmp_7 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_10); - s.tmp_9 = r0; - r0 = (s.tmp_7 - s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_6 - 1); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_5); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.num___19711; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 3); - s.tmp_1 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_1 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 1; - r0 = globals.infoState___4872.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___19646; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1186; s.pc = 16; return s.tmp_0; - case 16: + s.goc___83660 = (r0); + s.tmp_0 = game_GameOverConfig_setEffect__P67190_mk(s); + s.tmp_0.arg0 = s.goc___83660; + s.tmp_0.arg1 = false; + s.tmp_0.arg2 = null; + s.tmp_0.arg3 = false; + s.callLocIdx = 1092; s.pc = 36; return s.tmp_0; + case 36: r0 = s.retval; - case 6: - case 7: + s.tmp_0 = game_GameOverConfig_setSound__P67192_mk(s); + s.tmp_0.arg0 = s.goc___83660; + s.tmp_0.arg1 = false; + s.tmp_0.arg2 = null; + s.tmp_0.arg3 = false; + s.tmp_0.arg4 = false; + s.callLocIdx = 1093; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = game_gameOver__P67212_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1094; s.pc = 38; return s.tmp_0; + case 38: + r0 = s.retval; + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawLives__P2637.info = {"start":35809,"length":2458,"line":1179,"column":8,"endLine":1245,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} +info_initHUD_inline__P83561.info = {"start":3406,"length":2217,"line":124,"column":12,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function info_PlayerInfo_drawLives__P2637_mk(s) { +function info_initHUD_inline__P83561_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawLives__P2637, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P83561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - state___19640: undefined, - font___19646: undefined, - i___19689: undefined, - num___19711: undefined, - textWidth___19718: undefined, - mult___19770: undefined, - arg0: undefined, + ps___83570: undefined, + p___83592: undefined, + scene___83629: undefined, + elapsed___83632: undefined, + t___83640: undefined, + goc___83660: undefined, } } -function info_PlayerInfo_getState__P2623(s) { +function ps_inline__P83572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43388,29 +44142,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_init__P4925_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1153; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals.infoState___4872.fields["playerStates"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["_player"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -info_PlayerInfo_getState__P2623.info = {"start":27235,"length":121,"line":905,"column":8,"endLine":908,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} +ps_inline__P83572.info = {"start":3654,"length":8,"line":129,"column":46,"endLine":129,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function info_PlayerInfo_getState__P2623_mk(s) { +function ps_inline__P83572_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_getState__P2623, depth: s.depth + 1, + parent: s, fn: ps_inline__P83572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43422,7 +44169,7 @@ function info_PlayerInfo_getState__P2623_mk(s) { -function info_PlayerInfo_init__P4925(s) { +function info_initHUD_inline__P83581(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43436,76 +44183,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - s.tmp_0 = info_initHUD__P4918_mk(s); - s.callLocIdx = 1150; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = s.arg0.fields["_player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = info_initMultiHUD__P4919_mk(s); - s.callLocIdx = 1151; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; + s.tmp_0 = info_PlayerInfo_drawPlayer__P66854_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1078; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = globals.infoState___4872.fields["playerStates"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C2533_VT); - s.tmp_6 = r0; - s.tmp_7 = info_PlayerState_constructor__P2542_mk(s); - s.tmp_7.arg0 = s.tmp_6; - s.callLocIdx = 1152; s.pc = 7; return s.tmp_7; - case 7: r0 = s.retval; - r0 = globals.infoState___4872.fields["playerStates"]; - s.tmp_8 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 - 1); - s.tmp_9 = r0; - r0 = pxsim_Array_.setAt(s.tmp_8, s.tmp_9, s.tmp_6); - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_init__P4925.info = {"start":24962,"length":252,"line":802,"column":8,"endLine":808,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} +info_initHUD_inline__P83581.info = {"start":3738,"length":19,"line":131,"column":31,"endLine":131,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function info_PlayerInfo_init__P4925_mk(s) { +function info_initHUD_inline__P83581_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_init__P4925, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P83581, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, arg0: undefined, } } @@ -43513,7 +44207,7 @@ function info_PlayerInfo_init__P4925_mk(s) { -function info_PlayerInfo_drawScore__P2636(s) { +function info_initHUD_inline__P83587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43523,154 +44217,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___19855 = undefined; - s.font___19861 = undefined; - s.offsetY___19862 = undefined; - s.num___19871 = undefined; - s.width___19875 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - s.tmp_1 = info_PlayerInfoImpl_score__P2586_mk(s); + s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P66815_mk(s); r0 = s.arg0.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1172; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.s___19855 = (r0); - r0 = (s.s___19855 >= 1000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.offsetY___19862 = (2); - s.font___19861 = (globals.font5___1961); - { step = 2; continue; } + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1080; s.pc = 1; return s.tmp_0; case 1: - s.offsetY___19862 = (1); - s.font___19861 = (globals.font8___1956); - case 2: - r0 = pxsim_numops.toString(s.s___19855); - s.num___19871 = (r0); - r0 = pxsim_String_.length(s.num___19871); - s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___19861; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1173; s.pc = 4; return s.tmp_2; } - } - case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.width___19875 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___19875); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___1956; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1174; s.pc = 6; return s.tmp_4; } - } - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1175; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___19875); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___1956; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1176; s.pc = 8; return s.tmp_4; } - } - case 8: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___4872.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1177; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.num___19871; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.width___19875); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.offsetY___19862; - r0 = globals.infoState___4872.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___19861; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1178; s.pc = 9; return s.tmp_0; - case 9: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawScore__P2636.info = {"start":34746,"length":1053,"line":1139,"column":8,"endLine":1177,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} +info_initHUD_inline__P83587.info = {"start":3840,"length":32,"line":133,"column":31,"endLine":133,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function info_PlayerInfo_drawScore__P2636_mk(s) { +function info_initHUD_inline__P83587_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawScore__P2636, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P83587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - s___19855: undefined, - font___19861: undefined, - offsetY___19862: undefined, - num___19871: undefined, - width___19875: undefined, arg0: undefined, } } @@ -43678,7 +44247,7 @@ function info_PlayerInfo_drawScore__P2636_mk(s) { -function info_PlayerInfo_drawPlayer__P2635(s) { +function info_drawTimer__P69142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43688,621 +44257,289 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___20053 = undefined; - s.font___20056 = undefined; - s.score___20058 = undefined; - s.life___20059 = undefined; - s.height___20060 = undefined; - s.scoreWidth___20061 = undefined; - s.lifeWidth___20062 = undefined; - s.offsetY___20065 = undefined; - s.showScore___20066 = undefined; - s.showLife___20074 = undefined; - s.width___20142 = undefined; - s.x___20152 = undefined; - s.y___20161 = undefined; - s.bump___20198 = undefined; - s.xLoc___20225 = undefined; - s.mult___20237 = undefined; - s.pNum___20301 = undefined; - s.iconWidth___20308 = undefined; - s.iconHeight___20316 = undefined; - s.iconX___20324 = undefined; - s.iconY___20337 = undefined; + s.font___83707 = undefined; + s.smallFont___83709 = undefined; + s.seconds___83711 = undefined; + s.width___83715 = undefined; + s.left___83720 = undefined; + s.color1___83730 = undefined; + s.color2___83734 = undefined; + s.temp___83747 = undefined; + s.remainder___83783 = undefined; + s.decimalLeft___83802 = undefined; + s.minutes___83820 = undefined; + s.remainder___83824 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P2623_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1155; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.state___20053 = (r0); - s.font___20056 = (globals.font5___1961); - s.height___20060 = (4); - s.scoreWidth___20061 = (0); - s.lifeWidth___20062 = (0); - s.offsetY___20065 = (2); - r0 = s.state___20053.fields["showScore"]; + r0 = (s.arg0 < 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg0 = (0); case 1: - r0 = s.state___20053.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); case 2: - // jmp value (already in r0) + r0 = (s.arg0 | 0); + s.arg0 = (r0); + s.font___83707 = (globals.font8___66175); + s.smallFont___83709 = (globals.font5___66180); + r0 = pxsim.Math_.idiv(s.arg0, 1000); + s.seconds___83711 = (r0); + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___83707; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1119; s.pc = 11; return s.tmp_2; } + } + case 11: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 * 5); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); + s.width___83715 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_2 = r0; - s.showScore___20066 = (s.tmp_2); - r0 = s.state___20053.fields["showLife"]; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.width___83715 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.left___83720 = (r0); + r0 = globals.infoState___69091.fields["fontColor"]; + s.color1___83730 = (r0); + r0 = globals.infoState___69091.fields["bgColor"]; + s.color2___83734 = (r0); + r0 = (s.seconds___83711 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = s.state___20053.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = (s.seconds___83711 & 1); case 4: // jmp value (already in r0) - s.tmp_2 = r0; - s.showLife___20074 = (s.tmp_2); - r0 = pxsim_numops_toBoolDecr(s.showScore___20066); - if (!r0) { step = 5; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_0 = r0; - r0 = s.state___20053.fields["score"]; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.score___20058 = (r0); - r0 = pxsim_String_.length(s.score___20058); s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___20056; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1156; s.pc = 45; return s.tmp_3; } - } - case 45: - r0 = s.retval; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 5; continue; } + r0 = s.tmp_1; + { step = 6; continue; } + case 5: + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.scoreWidth___20061 = (r0); - s.tmp_0 = r0 = s.height___20060; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 7; continue; } + s.temp___83747 = (s.color1___83730); + s.color1___83730 = (s.color2___83734); + s.color2___83734 = (s.temp___83747); + case 7: + case 8: + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = (s.left___83720 - 3); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = (s.width___83715 + 6); + s.tmp_0.arg3 = r0; s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___20056; + s.tmp_2.arg0 = s.font___83707; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1157; s.pc = 46; return s.tmp_2; } - } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___20060 = (r0); - s.tmp_0 = r0 = s.offsetY___20065; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.font___20056; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1158; s.pc = 47; return s.tmp_3; } - } - case 47: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.offsetY___20065 = (r0); - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(s.showLife___20074); - if (!r0) { step = 9; continue; } - r0 = s.state___20053.fields["life"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = 0; - case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_2 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 48: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); - s.life___20059 = (r0); - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = pxsim_String_.length(s.life___20059); - s.tmp_7 = r0; - s.tmp_9 = if_charWidth_1_mk(s); - s.tmp_9.arg0 = s.font___20056; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 1159; s.pc = 49; return s.tmp_9; } + else { s.callLocIdx = 1120; s.pc = 13; return s.tmp_2; } } - case 49: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 * s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_1 + s.tmp_6); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.lifeWidth___20062 = (r0); - s.tmp_0 = r0 = s.height___20060; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___20060 = (r0); - case 9: - case 10: - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.scoreWidth___20061; - s.tmp_0.arg1 = s.lifeWidth___20062; - s.callLocIdx = 1160; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - s.width___20142 = (r0); - s.tmp_0 = r0 = s.showScore___20066; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = s.showLife___20074; - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - r0 = (s.height___20060 + 1); - s.height___20060 = (r0); case 13: - case 14: - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = s.width___20142; - { step = 16; continue; } - case 15: - r0 = 0; - case 16: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["x"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.x___20152 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["up"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = s.height___20060; - { step = 18; continue; } - case 17: - r0 = 0; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.y___20161 = (r0); - s.tmp_0 = r0 = s.showScore___20066; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = s.tmp_0; - { step = 20; continue; } - case 19: - r0 = s.showLife___20074; - case 20: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 21; continue; } - s.tmp_2 = helpers_imageFillRect__P1939_mk(s); - s.tmp_2.arg0 = globals.screen___2013; - s.tmp_2.arg1 = s.x___20152; - s.tmp_2.arg2 = s.y___20161; - s.tmp_2.arg3 = s.width___20142; - s.tmp_2.arg4 = s.height___20060; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["border"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 1161; s.pc = 51; return s.tmp_2; - case 51: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - r0 = (s.x___20152 + 1); - s.tmp_0.arg1 = r0; - r0 = (s.y___20161 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.width___20142 - 2); - s.tmp_0.arg3 = r0; - r0 = (s.height___20060 - 2); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 3); s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["bg"]; + r0 = globals.infoState___69091.fields["borderColor"]; s.tmp_0.arg5 = r0; - s.callLocIdx = 1162; s.pc = 52; return s.tmp_0; - case 52: + s.callLocIdx = 1121; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - case 21: - case 22: - r0 = pxsim_numops_toBoolDecr(s.showScore___20066); - if (!r0) { step = 25; continue; } - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = (s.width___20142 - s.scoreWidth___20061); - { step = 24; continue; } - case 23: - r0 = 0; - case 24: - // jmp value (already in r0) - s.tmp_1 = r0; - s.bump___20198 = (s.tmp_1); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.score___20058; - r0 = (s.x___20152 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.bump___20198); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.y___20161 + 2); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = (s.left___83720 - 2); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = (s.width___83715 + 4); s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___20056; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1163; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - case 25: - case 26: - r0 = pxsim_numops_toBoolDecr(s.showLife___20074); - if (!r0) { step = 29; continue; } - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - r0 = (s.width___20142 - s.lifeWidth___20062); - { step = 28; continue; } - case 27: - r0 = 0; - case 28: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___20152 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.tmp_1); - s.xLoc___20225 = (r0); - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___20237 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___20237, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___2013; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_1 = r0; - s.tmp_2 = r0 = s.xLoc___20225; - r0 = (s.y___20161 + s.offsetY___20065); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); - s.tmp_0 = r0 = globals.screen___2013; - s.tmp_1 = r0 = s.mult___20237; - s.tmp_3 = r0 = s.xLoc___20225; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.y___20161 + s.offsetY___20065); - s.tmp_9 = r0; - s.tmp_11 = if_charHeight_1_mk(s); - s.tmp_11.arg0 = s.font___20056; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___83707; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1164; s.pc = 54; return s.tmp_11; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1122; s.pc = 15; return s.tmp_2; } } - case 54: + case 15: r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_9 + s.tmp_10); - s.tmp_8 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_13); - s.tmp_12 = r0; - r0 = (s.tmp_8 - s.tmp_12); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 1); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.life___20059; - s.tmp_3 = r0 = s.xLoc___20225; - r0 = globals.infoState___4872.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = globals.infoState___4872.fields["multiplierImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_2 + s.tmp_6); s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.y___20161 + s.offsetY___20065); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; + r0 = (s.tmp_1 + 2); s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___20056; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1165; s.pc = 55; return s.tmp_0; - case 55: + s.tmp_0.arg5 = s.color2___83734; + s.callLocIdx = 1123; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - case 29: - case 30: - r0 = s.state___20053.fields["showPlayer"]; + r0 = (s.seconds___83711 < 60); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 41; continue; } - r0 = pxsim_String_.mkEmpty(); + if (!r0) { step = 9; continue; } + r0 = (s.arg0 % 1000); s.tmp_1 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.tmp_3); + r0 = pxsim.Math_.idiv(s.tmp_1, 10); + s.remainder___83783 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_3 = info_formatDecimal__P69145_mk(s); + s.tmp_3.arg0 = s.seconds___83711; + s.callLocIdx = 1124; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_3) + ""; } - case 56: + } else { s.retval = (s.tmp_2) + ""; } + case 18: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.pNum___20301 = (r0); - r0 = pxsim_String_.length(s.pNum___20301); s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "."); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___83720; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___83730; + s.tmp_0.arg5 = s.font___83707; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1125; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.left___83720; s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___20056; + s.tmp_3.arg0 = s.font___83707; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); } else { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1166; s.pc = 57; return s.tmp_3; } + else { s.callLocIdx = 1126; s.pc = 19; return s.tmp_3; } } - case 57: + case 19: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.iconWidth___20308 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.height___20060; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___20056; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1167; s.pc = 59; return s.tmp_2; } - } - case 59: - r0 = s.retval; + r0 = (3 * s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); + r0 = (s.tmp_0 + s.tmp_1); + s.decimalLeft___83802 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_1 = info_formatDecimal__P69145_mk(s); + s.tmp_1.arg0 = s.remainder___83783; + s.callLocIdx = 1127; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1168; s.pc = 58; return s.tmp_0; - case 58: + s.tmp_0.arg2 = s.decimalLeft___83802; + s.tmp_0.arg3 = 3; + s.tmp_0.arg4 = s.color1___83730; + s.tmp_0.arg5 = s.smallFont___83709; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1128; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + { step = 10; continue; } + case 9: + r0 = pxsim.Math_.idiv(s.seconds___83711, 60); + s.minutes___83820 = (r0); + r0 = (s.seconds___83711 % 60); + s.remainder___83824 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_5 = info_formatDecimal__P69145_mk(s); + s.tmp_5.arg0 = s.minutes___83820; + s.callLocIdx = 1129; s.pc = 23; return s.tmp_5; + case 23: r0 = s.retval; - s.iconHeight___20316 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = (s.x___20152 - s.iconWidth___20308); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - { step = 32; continue; } - case 31: - r0 = (s.x___20152 + s.width___20142); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - case 32: - // jmp value (already in r0) - s.tmp_3 = r0; - s.iconX___20324 = (s.tmp_3); - s.iconY___20337 = (s.y___20161); - r0 = pxsim_numops_toBoolDecr(s.showScore___20066); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 33; continue; } - r0 = s.tmp_0; - { step = 34; continue; } - case 33: - r0 = pxsim_numops_toBoolDecr(s.showLife___20074); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 34: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 39; continue; } - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 35; continue; } - r0 = -1; - { step = 36; continue; } - case 35: - r0 = 1; - case 36: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.iconX___20324 + s.tmp_5); - s.iconX___20324 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["up"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = (s.iconY___20337 - 3); - s.iconY___20337 = (r0); - case 37: - case 38: - case 39: - case 40: - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.iconX___20324; - s.tmp_0.arg2 = s.iconY___20337; - s.tmp_0.arg3 = s.iconWidth___20308; - s.tmp_0.arg4 = s.iconHeight___20316; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["border"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1169; s.pc = 60; return s.tmp_0; - case 60: + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 24: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.pNum___20301; - r0 = (s.iconX___20324 + 1); - s.tmp_0.arg2 = r0; - s.tmp_2 = r0 = s.iconY___20337; - r0 = (s.iconHeight___20316 >> 1); s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = pxsim_String__concat(s.tmp_3, ":"); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 25); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 25: + r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = if_charHeight_1_mk(s); - s.tmp_6.arg0 = s.font___20056; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1170; s.pc = 62; return s.tmp_6; } - } - case 62: + s.tmp_8 = info_formatDecimal__P69145_mk(s); + s.tmp_8.arg0 = s.remainder___83824; + s.callLocIdx = 1130; s.pc = 26; return s.tmp_8; + case 26: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["bg"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___20056; + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 27); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 27: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_6); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___83720; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___83730; + s.tmp_0.arg5 = s.font___83707; s.tmp_0.arg6 = undefined; - s.callLocIdx = 1171; s.pc = 61; return s.tmp_0; - case 61: + s.callLocIdx = 1131; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; - case 41: - case 42: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawPlayer__P2635.info = {"start":31018,"length":3718,"line":1034,"column":8,"endLine":1137,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} +info_drawTimer__P69142.info = {"start":17602,"length":1328,"line":587,"column":4,"endLine":622,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} -function info_PlayerInfo_drawPlayer__P2635_mk(s) { +function info_drawTimer__P69142_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawPlayer__P2635, depth: s.depth + 1, + parent: s, fn: info_drawTimer__P69142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44313,32 +44550,18 @@ function info_PlayerInfo_drawPlayer__P2635_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - state___20053: undefined, - font___20056: undefined, - score___20058: undefined, - life___20059: undefined, - height___20060: undefined, - scoreWidth___20061: undefined, - lifeWidth___20062: undefined, - offsetY___20065: undefined, - showScore___20066: undefined, - showLife___20074: undefined, - width___20142: undefined, - x___20152: undefined, - y___20161: undefined, - bump___20198: undefined, - xLoc___20225: undefined, - mult___20237: undefined, - pNum___20301: undefined, - iconWidth___20308: undefined, - iconHeight___20316: undefined, - iconX___20324: undefined, - iconY___20337: undefined, + font___83707: undefined, + smallFont___83709: undefined, + seconds___83711: undefined, + width___83715: undefined, + left___83720: undefined, + color1___83730: undefined, + color2___83734: undefined, + temp___83747: undefined, + remainder___83783: undefined, + decimalLeft___83802: undefined, + minutes___83820: undefined, + remainder___83824: undefined, arg0: undefined, } } @@ -44346,7 +44569,7 @@ function info_PlayerInfo_drawPlayer__P2635_mk(s) { -function info_PlayerInfoImpl_raiseLifeZero__P2596(s) { +function info_formatDecimal__P69145(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44356,120 +44579,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___20023 = undefined; - s.goc___20042 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2584_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1143; s.pc = 9; return s.tmp_0; - case 9: + r0 = (s.arg0 | 0); + s.arg0 = (r0); + r0 = (s.arg0 < 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: r0 = s.retval; - s.state___20023 = (r0); - r0 = s.state___20023.fields["life"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_String__concat("0", s.tmp_1); + { step = 3; continue; } case 1: - r0 = s.state___20023.fields["life"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 <= 0); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - r0 = (s.state___20023).fields["life"] = (null); - r0 = s.state___20023.fields["lifeZeroHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = if_lifeZeroHandler_1_mk(s); - s.tmp_1.arg0 = s.state___20023; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); - s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["lifeZeroHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["lifeZeroHandler"], 1); s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1144; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; } - } - case 10: - r0 = s.retval; - { step = 6; continue; } + r0 = pxsim_numops.toString(s.arg0); case 3: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 4; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1145; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.goc___20042 = (r0); - s.tmp_0 = game_GameOverConfig_setEffect__P2971_mk(s); - s.tmp_0.arg0 = s.goc___20042; - s.tmp_0.arg1 = false; - s.tmp_0.arg2 = null; - s.tmp_0.arg3 = false; - s.callLocIdx = 1146; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = game_GameOverConfig_setSound__P2973_mk(s); - s.tmp_0.arg0 = s.goc___20042; - s.tmp_0.arg1 = false; - s.tmp_0.arg2 = null; - s.tmp_0.arg3 = false; - s.tmp_0.arg4 = false; - s.callLocIdx = 1147; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = game_gameOver__P2993_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 1148; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 4: - case 5: - case 6: - case 7: - case 8: - r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_raiseLifeZero__P2596.info = {"start":23958,"length":620,"line":771,"column":8,"endLine":785,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} +info_formatDecimal__P69145.info = {"start":38279,"length":156,"line":1248,"column":4,"endLine":1254,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} -function info_PlayerInfoImpl_raiseLifeZero__P2596_mk(s) { +function info_formatDecimal__P69145_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_raiseLifeZero__P2596, depth: s.depth + 1, + parent: s, fn: info_formatDecimal__P69145, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - state___20023: undefined, - goc___20042: undefined, arg0: undefined, - arg1: undefined, } } -function info_PlayerInfoImpl_hasLife__P2593(s) { +function info_InfoState_constructor__P69089(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44479,58 +44633,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___19842 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2584_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1142; s.pc = 3; return s.tmp_0; - case 3: + if (!checkSubtype(r0, info_InfoState__C69088_VT)) failedCast(r0); + r0 = (s.arg0).fields["visibilityFlag"] = (8); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = info_defaultHeartImage__P69139_mk(s); + s.callLocIdx = 1070; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.state___19842 = (r0); - r0 = s.state___19842.fields["life"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.ofBuffer(_hex84622); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; { step = 2; continue; } case 1: - r0 = s.state___19842.fields["life"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 !== null); + r0 = 1; case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + s.tmp_1 = r0; + r0 = (s.arg0).fields["bgColor"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = 1; + { step = 4; continue; } + case 3: + r0 = 3; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["borderColor"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 3; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["fontColor"] = (s.tmp_1); + r0 = (s.arg0).fields["countdownExpired"] = (undefined); + r0 = (s.arg0).fields["countdownEndHandler"] = (undefined); + r0 = (s.arg0).fields["gameEnd"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_hasLife__P2593.info = {"start":23477,"length":141,"line":756,"column":8,"endLine":759,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} +info_InfoState_constructor__P69089.info = {"start":1696,"length":674,"line":63,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} -function info_PlayerInfoImpl_hasLife__P2593_mk(s) { +function info_InfoState_constructor__P69089_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_hasLife__P2593, depth: s.depth + 1, + parent: s, fn: info_InfoState_constructor__P69089, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - state___19842: undefined, arg0: undefined, } } +const _hex84622 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function info_PlayerInfoImpl_hasScore__P2589(s) { +function info_defaultHeartImage__P69139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44540,42 +44730,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___19924 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2584_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1141; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.state___19924 = (r0); - r0 = s.state___19924.fields["score"]; + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; - r0 = (s.tmp_0 !== undefined); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex84650); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex84652); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_hasScore__P2589.info = {"start":22576,"length":111,"line":725,"column":8,"endLine":728,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} +info_defaultHeartImage__P69139.info = {"start":6045,"length":592,"line":186,"column":4,"endLine":207,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} -function info_PlayerInfoImpl_hasScore__P2589_mk(s) { +function info_defaultHeartImage__P69139_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_hasScore__P2589, depth: s.depth + 1, + parent: s, fn: info_defaultHeartImage__P69139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - state___19924: undefined, - arg0: undefined, + tmp_1: undefined, } } +const _hex84650 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") +const _hex84652 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function info_PlayerState_constructor__P2542(s) { +function game_gameOver__P67212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44589,23 +44776,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerState__C2533_VT)) failedCast(r0); - r0 = (s.arg0).fields["visibility"] = (0); - r0 = (s.arg0).fields["showScore"] = (undefined); - r0 = (s.arg0).fields["showLife"] = (undefined); - r0 = (s.arg0).fields["showPlayer"] = (undefined); + s.tmp_0 = game__gameOverImpl__P69236_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1590; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerState_constructor__P2542.info = {"start":1084,"length":192,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +game_gameOver__P67212.info = {"start":11084,"length":74,"line":342,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"gameOver","argumentNames":["win"]} -function info_PlayerState_constructor__P2542_mk(s) { +function game_gameOver__P67212_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerState_constructor__P2542, depth: s.depth + 1, + parent: s, fn: game_gameOver__P67212, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -44613,7 +44801,7 @@ function info_PlayerState_constructor__P2542_mk(s) { -function info_highScore__P2551(s) { +function game_GameOverConfig_setSound__P67192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44623,42 +44811,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P2049_mk(s); - s.tmp_1.arg0 = "high-score"; - s.callLocIdx = 1116; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 0; + r0 = s.arg0.fields["soundSetByUser"]; case 2: // jmp value (already in r0) s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 9; continue; } + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 5; continue; } + r0 = (s.arg0).fields["winSound"] = (s.arg2); + r0 = (s.arg0).fields["winSoundLooping"] = (s.arg3); + { step = 6; continue; } + case 5: + r0 = (s.arg0).fields["loseSound"] = (s.arg2); + r0 = (s.arg0).fields["loseSoundLooping"] = (s.arg3); + case 6: + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 7; continue; } + r0 = (s.arg0).fields["soundSetByUser"] = (true); + case 7: + case 8: + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -info_highScore__P2551.info = {"start":9662,"length":98,"line":321,"column":4,"endLine":323,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} +game_GameOverConfig_setSound__P67192.info = {"start":2303,"length":440,"line":72,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"setSound","argumentNames":["this","win","sound","looping","explicit"]} -function info_highScore__P2551_mk(s) { +function game_GameOverConfig_setSound__P67192_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_highScore__P2551, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_setSound__P67192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function settings_readNumber__P2049(s) { +function info_PlayerInfo_constructor__P66818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44668,109 +44889,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___18807 = undefined; - s.nums___18814 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); - s.buf___18807 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___18807); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = (s.arg0).fields["_player"] = (s.arg1); + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfoImpl__C66794_VT); + s.tmp_0 = r0; + s.tmp_1 = info_PlayerInfoImpl_constructor__P66802_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1149; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["impl"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.players___69092); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 7; continue; } - { step = 6; continue; } + r0 = pxsim_Array__mk(); + globals.players___69092 = (r0); case 1: - s.tmp_2 = msgpack_unpackNumberArray__P183_mk(s); - s.tmp_2.arg0 = s.buf___18807; - s.tmp_2.arg1 = 0; - s.callLocIdx = 240; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.nums___18814 = (r0); - s.tmp_0 = r0 = s.nums___18814; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } case 2: - r0 = pxsim_Array__length(s.nums___18814); - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 1); - case 3: - // jmp value (already in r0) + s.tmp_0 = r0 = globals.players___69092; + r0 = s.arg0.fields["_player"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___18814, 0); - { step = 7; continue; } - case 4: - case 5: - r0 = undefined; - { step = 7; continue; } - case 6: + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); r0 = undefined; - case 7: return leave(s, r0) default: oops() } } } -settings_readNumber__P2049.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +info_PlayerInfo_constructor__P66818.info = {"start":24739,"length":213,"line":794,"column":8,"endLine":800,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} -function settings_readNumber__P2049_mk(s) { +function info_PlayerInfo_constructor__P66818_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P2049, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_constructor__P66818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___18807: undefined, - nums___18814: undefined, - arg0: undefined, -} } - - - - - -function settings_readBuffer__P2046(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.settings._get(s.arg0); - return leave(s, r0) - default: oops() -} } } -settings_readBuffer__P2046.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} - -function settings_readBuffer__P2046_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_readBuffer__P2046, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function msgpack_unpackNumberArray__P183(s) { +function info_PlayerInfoImpl_constructor__P66802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44780,111 +44954,128 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___18827 = undefined; - s.fmt___18834 = undefined; - s.v___18843 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___18827 = (r0); - case 1: - s.tmp_1 = r0 = s.arg1; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = (s.tmp_3 + 1); - s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P4464_mk(s); - r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); - s.tmp_4.arg0 = r0; - s.callLocIdx = 31; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - s.fmt___18834 = (r0); - r0 = (s.fmt___18834 === null); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + r0 = (s.arg0).fields["_player"] = (s.arg1); + r0 = (s.arg0).fields["border"] = (1); + r0 = (s.arg0).fields["fc"] = (1); + r0 = (s.arg0).fields["left"] = (undefined); + r0 = (s.arg0).fields["up"] = (undefined); + r0 = s.arg0.fields["_player"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = (s.arg1 - 1); + if (!r0) { step = 3; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___18843 = (r0); - r0 = (-31 <= s.v___18843); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 2; continue; } + case 1: + r0 = 2; case 2: - r0 = (s.v___18843 <= 127); - case 3: // jmp value (already in r0) + s.tmp_3 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_3); + r0 = (s.arg0).fields["x"] = (0); + r0 = (s.arg0).fields["y"] = (0); + { step = 14; continue; } + case 3: + r0 = (s.arg1 === 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.res___18827, s.v___18843); + r0 = 0; { step = 5; continue; } case 4: - r0 = null; - { step = 11; continue; } + r0 = 8; case 5: - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.res___18827; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___18834, s.arg1); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.arg1; - s.tmp_2 = pins_sizeOf__P175_mk(s); - s.tmp_2.arg0 = s.fmt___18834; - s.callLocIdx = 32; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; + r0 = (s.tmp_0).fields["x"] = (s.tmp_1); + r0 = (s.arg0).fields["y"] = (0); + r0 = (s.arg0).fields["left"] = (true); + { step = 13; continue; } + case 6: + r0 = (s.arg1 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg1 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = 0; + { step = 8; continue; } case 7: + r0 = 4; case 8: - r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_2); + r0 = (s.arg0).fields["x"] = (0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); s.tmp_1 = r0; - r0 = (s.tmp_1 === 193); + r0 = (s.tmp_0).fields["y"] = (s.tmp_1); + r0 = (s.arg0).fields["up"] = (true); + { step = 12; continue; } + case 9: + r0 = pxsim_ImageMethods.isMono(globals.screen___66232); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg1 + 1); - s.arg1 = (r0); - { step = 8; continue; } - case 9: - { step = 1; continue; } + if (!r0) { step = 10; continue; } + r0 = 0; + { step = 11; continue; } case 10: - r0 = s.res___18827; + r0 = 7; case 11: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["y"] = (s.tmp_1); + r0 = (s.arg0).fields["left"] = (true); + r0 = (s.arg0).fields["up"] = (true); + case 12: + case 13: + case 14: + r0 = undefined; return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P183.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +info_PlayerInfoImpl_constructor__P66802.info = {"start":19784,"length":1116,"line":641,"column":8,"endLine":671,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} -function msgpack_unpackNumberArray__P183_mk(s) { +function info_PlayerInfoImpl_constructor__P66802_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P183, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_constructor__P66802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - res___18827: undefined, - fmt___18834: undefined, - v___18843: undefined, arg0: undefined, arg1: undefined, } } @@ -44893,7 +45084,7 @@ function msgpack_unpackNumberArray__P183_mk(s) { -function msgpack_tagFormat__P4464(s) { +function info_PlayerInfo_drawLives__P66856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44903,278 +45094,316 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___83861 = undefined; + s.font___83867 = undefined; + s.i___83910 = undefined; + s.num___83932 = undefined; + s.textWidth___83939 = undefined; + s.mult___83991 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P66842_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1179; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.state___83861 = (r0); + r0 = s.state___83861.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } case 1: - r0 = 16; - { step = 9; continue; } case 2: - r0 = 7; - { step = 9; continue; } + s.font___83867 = (globals.font8___66175); + r0 = s.state___83861.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_imageFillRect__P66158_mk(s); + s.tmp_2.arg0 = globals.screen___66232; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 0; + r0 = s.state___83861.fields["life"]; + s.tmp_4 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 3); + s.tmp_2.arg3 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 + 4); + s.tmp_2.arg4 = r0; + r0 = globals.infoState___69091.fields["borderColor"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 1180; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = s.state___83861.fields["life"]; + s.tmp_2 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___69091.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1181; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.i___83910 = (0); case 3: - r0 = 9; - { step = 9; continue; } + r0 = s.state___83861.fields["life"]; + s.tmp_1 = r0; + r0 = (s.i___83910 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = r0 = globals.screen___66232; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_3 = r0; + s.tmp_6 = r0 = s.i___83910; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 + 1); + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (1 + s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 1); + r0 = (s.i___83910 + 1); + s.i___83910 = (r0); + { step = 3; continue; } case 4: - r0 = 12; - { step = 9; continue; } + { step = 6; continue; } case 5: - r0 = 6; - { step = 9; continue; } - case 6: - r0 = 8; - { step = 9; continue; } - case 7: - r0 = 10; - { step = 9; continue; } - case 8: - r0 = null; - { step = 9; continue; } - r0 = undefined; - case 9: - return leave(s, r0) - default: oops() -} } } -msgpack_tagFormat__P4464.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} - -function msgpack_tagFormat__P4464_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: msgpack_tagFormat__P4464, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function pins_sizeOf__P175(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = Buffer_sizeOfNumberFormat__P215_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 28; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.state___83861.fields["life"]; + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 11: r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -pins_sizeOf__P175.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} - -function pins_sizeOf__P175_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: pins_sizeOf__P175, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Buffer_sizeOfNumberFormat__P215(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + s.tmp_0 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_2); + s.num___83932 = (r0); + r0 = pxsim_String_.length(s.num___83932); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___83867; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1182; s.pc = 12; return s.tmp_3; } } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 1: - case 2: - case 3: - case 4: - r0 = 1; - { step = 18; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = 2; - { step = 18; continue; } - case 9: - case 10: - case 11: case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.textWidth___83939 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_3 + s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.textWidth___83939); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 5); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 + 4); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___69091.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1183; s.pc = 13; return s.tmp_0; case 13: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_3 + s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.textWidth___83939); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 4); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___69091.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1184; s.pc = 14; return s.tmp_0; case 14: - r0 = 4; - { step = 18; continue; } + r0 = s.retval; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___66232, s.tmp_0, 1, 1); + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___83991 = (r0); + r0 = globals.infoState___69091.fields["fontColor"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___83991, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___66232; + s.tmp_1 = r0 = s.mult___83991; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + s.tmp_8 = if_charHeight_1_mk(s); + s.tmp_8.arg0 = s.font___83867; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1185; s.pc = 15; return s.tmp_8; } + } case 15: + r0 = s.retval; + s.tmp_7 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_10 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_10); + s.tmp_9 = r0; + r0 = (s.tmp_7 - s.tmp_9); + s.tmp_6 = r0; + r0 = (s.tmp_6 - 1); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_5); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.num___83932; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 3); + s.tmp_1 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_1 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + r0 = globals.infoState___69091.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___83867; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1186; s.pc = 16; return s.tmp_0; case 16: - r0 = 8; - { step = 18; continue; } - case 17: - r0 = 0; - case 18: - return leave(s, r0) - default: oops() -} } } -Buffer_sizeOfNumberFormat__P215.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} - -function Buffer_sizeOfNumberFormat__P215_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Buffer_sizeOfNumberFormat__P215, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function info_saveHighScore__P2548(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.winner___18644 = undefined; - s.hs___18648 = undefined; - s.curr___18652 = undefined; - s.tmp_0 = info_winningPlayer__P2546_mk(s); - s.callLocIdx = 1111; s.pc = 5; return s.tmp_0; - case 5: r0 = s.retval; - s.winner___18644 = (r0); - r0 = pxsim_numops_toBoolDecr(s.winner___18644); - if (!r0) { step = 3; continue; } - s.tmp_0 = info_PlayerInfoImpl_score__P2586_mk(s); - r0 = s.winner___18644.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1112; s.pc = 6; return s.tmp_0; case 6: - r0 = s.retval; - s.hs___18648 = (r0); - s.tmp_0 = settings_readNumber__P2049_mk(s); - s.tmp_0.arg0 = "high-score"; - s.callLocIdx = 1113; s.pc = 7; return s.tmp_0; case 7: - r0 = s.retval; - s.curr___18652 = (r0); - s.tmp_1 = info_isBetterScore__P2547_mk(s); - s.tmp_1.arg0 = s.hs___18648; - s.tmp_1.arg1 = s.curr___18652; - s.callLocIdx = 1114; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = settings_writeNumber__P2044_mk(s); - s.tmp_2.arg0 = "high-score"; - s.tmp_2.arg1 = s.hs___18648; - s.callLocIdx = 1115; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - case 1: - case 2: - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_saveHighScore__P2548.info = {"start":8812,"length":324,"line":286,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} +info_PlayerInfo_drawLives__P66856.info = {"start":35809,"length":2458,"line":1179,"column":8,"endLine":1245,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} -function info_saveHighScore__P2548_mk(s) { +function info_PlayerInfo_drawLives__P66856_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveHighScore__P2548, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawLives__P66856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - winner___18644: undefined, - hs___18648: undefined, - curr___18652: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + state___83861: undefined, + font___83867: undefined, + i___83910: undefined, + num___83932: undefined, + textWidth___83939: undefined, + mult___83991: undefined, + arg0: undefined, } } -function settings_writeNumber__P2044(s) { +function info_PlayerInfo_getState__P66842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45186,46 +45415,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P2041_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P184_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 236; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 237; s.pc = 1; return s.tmp_1; + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_init__P69144_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1153; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; + r0 = globals.infoState___69091.fields["playerStates"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -settings_writeNumber__P2044.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +info_PlayerInfo_getState__P66842.info = {"start":27235,"length":121,"line":905,"column":8,"endLine":908,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} -function settings_writeNumber__P2044_mk(s) { +function info_PlayerInfo_getState__P66842_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P2044, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_getState__P66842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function settings_writeBuffer__P2041(s) { +function info_PlayerInfo_init__P69144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45237,38 +45463,86 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._set(s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + s.tmp_0 = info_initHUD__P69137_mk(s); + s.callLocIdx = 1150; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = s.arg0.fields["_player"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim.settings._userClean(); - r0 = pxsim_pxtrt.panic(920); + s.tmp_2 = info_initMultiHUD__P69138_mk(s); + s.callLocIdx = 1151; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; case 1: case 2: + r0 = globals.infoState___69091.fields["playerStates"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - 1); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C66752_VT); + s.tmp_6 = r0; + s.tmp_7 = info_PlayerState_constructor__P66761_mk(s); + s.tmp_7.arg0 = s.tmp_6; + s.callLocIdx = 1152; s.pc = 7; return s.tmp_7; + case 7: + r0 = s.retval; + r0 = globals.infoState___69091.fields["playerStates"]; + s.tmp_8 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 - 1); + s.tmp_9 = r0; + r0 = pxsim_Array_.setAt(s.tmp_8, s.tmp_9, s.tmp_6); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeBuffer__P2041.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} +info_PlayerInfo_init__P69144.info = {"start":24962,"length":252,"line":802,"column":8,"endLine":808,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} -function settings_writeBuffer__P2041_mk(s) { +function info_PlayerInfo_init__P69144_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P2041, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_init__P69144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, arg0: undefined, - arg1: undefined, } } -function msgpack_packNumberArray__P184(s) { +function info_PlayerInfo_drawScore__P66855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45278,100 +45552,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___18667 = undefined; - s.n___18669 = undefined; - s.unnamed72___U2 = undefined; - s.unnamed73___U3 = undefined; - s.buf___18679 = undefined; - s.n___18685 = undefined; - s.unnamed74___U6 = undefined; - s.unnamed75___U7 = undefined; + s.s___84076 = undefined; + s.font___84082 = undefined; + s.offsetY___84083 = undefined; + s.num___84092 = undefined; + s.width___84096 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___18667 = (0); - s.n___18669 = (undefined); - s.unnamed72___U2 = (s.arg0); - s.unnamed73___U3 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + s.tmp_1 = info_PlayerInfoImpl_score__P66805_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1172; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.s___84076 = (r0); + r0 = (s.s___84076 >= 1000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.offsetY___84083 = (2); + s.font___84082 = (globals.font5___66180); + { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.unnamed73___U3; - r0 = pxsim_Array__length(s.unnamed72___U2); + s.offsetY___84083 = (1); + s.font___84082 = (globals.font8___66175); + case 2: + r0 = pxsim_numops.toString(s.s___84076); + s.num___84092 = (r0); + r0 = pxsim_String_.length(s.num___84092); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___84082; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1173; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed72___U2, s.unnamed73___U3); - s.n___18669 = (r0); - s.tmp_2 = r0 = s.off___18667; - s.tmp_4 = msgpack_packNumberCore__P4465_mk(s); - s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___18667; - s.tmp_4.arg2 = s.n___18669; - s.callLocIdx = 33; s.pc = 5; return s.tmp_4; - case 5: + r0 = (s.tmp_0 * s.tmp_1); + s.width___84096 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___84096); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___66175; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1174; s.pc = 6; return s.tmp_4; } + } + case 6: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.off___18667 = (r0); - r0 = (s.unnamed73___U3 + 1); - s.unnamed73___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed72___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___18667); - s.buf___18679 = (r0); - s.off___18667 = (0); - s.n___18685 = (undefined); - s.unnamed74___U6 = (s.arg0); - s.unnamed75___U7 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed75___U7; - r0 = pxsim_Array__length(s.unnamed74___U6); + r0 = (s.tmp_3 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___69091.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1175; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___84096); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed74___U6, s.unnamed75___U7); - s.n___18685 = (r0); - s.tmp_2 = r0 = s.off___18667; - s.tmp_4 = msgpack_packNumberCore__P4465_mk(s); - s.tmp_4.arg0 = s.buf___18679; - s.tmp_4.arg1 = s.off___18667; - s.tmp_4.arg2 = s.n___18685; - s.callLocIdx = 34; s.pc = 6; return s.tmp_4; - case 6: + r0 = (s.tmp_1 - 1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___66175; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1176; s.pc = 8; return s.tmp_4; } + } + case 8: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.off___18667 = (r0); - r0 = (s.unnamed75___U7 + 1); - s.unnamed75___U7 = (r0); - { step = 3; continue; } - case 4: - s.unnamed74___U6 = (undefined); - r0 = s.buf___18679; + r0 = (s.tmp_3 + 2); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___69091.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1177; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.num___84092; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___84096); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.offsetY___84083; + r0 = globals.infoState___69091.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___84082; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1178; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P184.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +info_PlayerInfo_drawScore__P66855.info = {"start":34746,"length":1053,"line":1139,"column":8,"endLine":1177,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} -function msgpack_packNumberArray__P184_mk(s) { +function info_PlayerInfo_drawScore__P66855_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P184, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawScore__P66855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - off___18667: undefined, - n___18669: undefined, - unnamed72___U2: undefined, - unnamed73___U3: undefined, - buf___18679: undefined, - n___18685: undefined, - unnamed74___U6: undefined, - unnamed75___U7: undefined, + s___84076: undefined, + font___84082: undefined, + offsetY___84083: undefined, + num___84092: undefined, + width___84096: undefined, arg0: undefined, } } @@ -45379,7 +45707,7 @@ function msgpack_packNumberArray__P184_mk(s) { -function msgpack_packNumberCore__P4465(s) { +function info_PlayerInfo_drawPlayer__P66854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45389,133 +45717,621 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___18699 = undefined; - s.fmt___18742 = undefined; + s.state___84274 = undefined; + s.font___84277 = undefined; + s.score___84279 = undefined; + s.life___84280 = undefined; + s.height___84281 = undefined; + s.scoreWidth___84282 = undefined; + s.lifeWidth___84283 = undefined; + s.offsetY___84286 = undefined; + s.showScore___84287 = undefined; + s.showLife___84295 = undefined; + s.width___84363 = undefined; + s.x___84373 = undefined; + s.y___84382 = undefined; + s.bump___84419 = undefined; + s.xLoc___84446 = undefined; + s.mult___84458 = undefined; + s.pNum___84522 = undefined; + s.iconWidth___84529 = undefined; + s.iconHeight___84537 = undefined; + s.iconX___84545 = undefined; + s.iconY___84558 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___18699 = (203); - s.tmp_1 = r0 = s.arg2; - r0 = (s.arg2 << 0); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P66842_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1155; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.state___84274 = (r0); + s.font___84277 = (globals.font5___66180); + s.height___84281 = (4); + s.scoreWidth___84282 = (0); + s.lifeWidth___84283 = (0); + s.offsetY___84286 = (2); + r0 = s.state___84274.fields["showScore"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_3 = r0 = s.arg2; - r0 = (s.arg2 >>> 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 == s.tmp_4); + r0 = s.state___84274.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 19; continue; } - r0 = (-31 <= s.arg2); - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); + s.tmp_2 = r0; + s.showScore___84287 = (s.tmp_2); + r0 = s.state___84274.fields["showLife"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } - r0 = s.tmp_6; + r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (s.arg2 <= 127); + r0 = s.state___84274.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); case 4: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + s.showLife___84295 = (s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.showScore___84287); if (!r0) { step = 5; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); - case 5: - case 6: - r0 = 1; - { step = 23; continue; } - { step = 18; continue; } - case 7: - r0 = (0 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg2 <= 255); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - s.tag___18699 = (204); - { step = 11; continue; } - case 8: - r0 = (s.arg2 <= 65535); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tag___18699 = (205); - { step = 10; continue; } - case 9: - s.tag___18699 = (206); - case 10: - case 11: - { step = 17; continue; } - case 12: - r0 = (-127 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tag___18699 = (208); - { step = 16; continue; } - case 13: - r0 = (-32767 <= s.arg2); + r0 = pxsim_String_.mkEmpty(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tag___18699 = (209); - { step = 15; continue; } - case 14: - s.tag___18699 = (210); - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - s.tmp_0 = msgpack_tagFormat__P4464_mk(s); - s.tmp_0.arg0 = s.tag___18699; - s.callLocIdx = 29; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.fmt___18742 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___18699); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___18742; - r0 = (s.arg1 + 1); + r0 = s.state___84274.fields["score"]; s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, s.tmp_1, s.tmp_2, s.arg2); - case 21: - case 22: - s.tmp_1 = pins_sizeOf__P175_mk(s); - s.tmp_1.arg0 = s.fmt___18742; - s.callLocIdx = 30; s.pc = 25; return s.tmp_1; - case 25: + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 44: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.score___84279 = (r0); + r0 = pxsim_String_.length(s.score___84279); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___84277; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1156; s.pc = 45; return s.tmp_3; } + } + case 45: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.scoreWidth___84282 = (r0); + s.tmp_0 = r0 = s.height___84281; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___84277; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1157; s.pc = 46; return s.tmp_2; } + } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___84281 = (r0); + s.tmp_0 = r0 = s.offsetY___84286; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.font___84277; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1158; s.pc = 47; return s.tmp_3; } + } + case 47: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.offsetY___84286 = (r0); + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(s.showLife___84295); + if (!r0) { step = 9; continue; } + r0 = s.state___84274.fields["life"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = 0; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 48: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); + s.life___84280 = (r0); + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = pxsim_String_.length(s.life___84280); + s.tmp_7 = r0; + s.tmp_9 = if_charWidth_1_mk(s); + s.tmp_9.arg0 = s.font___84277; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 1159; s.pc = 49; return s.tmp_9; } + } + case 49: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7 * s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_1 + s.tmp_6); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.lifeWidth___84283 = (r0); + s.tmp_0 = r0 = s.height___84281; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___84281 = (r0); + case 9: + case 10: + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = s.scoreWidth___84282; + s.tmp_0.arg1 = s.lifeWidth___84283; + s.callLocIdx = 1160; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + s.width___84363 = (r0); + s.tmp_0 = r0 = s.showScore___84287; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = s.showLife___84295; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + r0 = (s.height___84281 + 1); + s.height___84281 = (r0); + case 13: + case 14: + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = s.width___84363; + { step = 16; continue; } + case 15: + r0 = 0; + case 16: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.x___84373 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["up"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = s.height___84281; + { step = 18; continue; } + case 17: + r0 = 0; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.y___84382 = (r0); + s.tmp_0 = r0 = s.showScore___84287; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } + case 19: + r0 = s.showLife___84295; + case 20: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 21; continue; } + s.tmp_2 = helpers_imageFillRect__P66158_mk(s); + s.tmp_2.arg0 = globals.screen___66232; + s.tmp_2.arg1 = s.x___84373; + s.tmp_2.arg2 = s.y___84382; + s.tmp_2.arg3 = s.width___84363; + s.tmp_2.arg4 = s.height___84281; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["border"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 1161; s.pc = 51; return s.tmp_2; + case 51: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + r0 = (s.x___84373 + 1); + s.tmp_0.arg1 = r0; + r0 = (s.y___84382 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.width___84363 - 2); + s.tmp_0.arg3 = r0; + r0 = (s.height___84281 - 2); + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["bg"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1162; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + case 21: + case 22: + r0 = pxsim_numops_toBoolDecr(s.showScore___84287); + if (!r0) { step = 25; continue; } + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + r0 = (s.width___84363 - s.scoreWidth___84282); + { step = 24; continue; } case 23: + r0 = 0; + case 24: + // jmp value (already in r0) + s.tmp_1 = r0; + s.bump___84419 = (s.tmp_1); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.score___84279; + r0 = (s.x___84373 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.bump___84419); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.y___84382 + 2); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___84277; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1163; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + case 25: + case 26: + r0 = pxsim_numops_toBoolDecr(s.showLife___84295); + if (!r0) { step = 29; continue; } + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + r0 = (s.width___84363 - s.lifeWidth___84283); + { step = 28; continue; } + case 27: + r0 = 0; + case 28: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___84373 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.tmp_1); + s.xLoc___84446 = (r0); + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___84458 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___84458, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___66232; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_1 = r0; + s.tmp_2 = r0 = s.xLoc___84446; + r0 = (s.y___84382 + s.offsetY___84286); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); + s.tmp_0 = r0 = globals.screen___66232; + s.tmp_1 = r0 = s.mult___84458; + s.tmp_3 = r0 = s.xLoc___84446; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.y___84382 + s.offsetY___84286); + s.tmp_9 = r0; + s.tmp_11 = if_charHeight_1_mk(s); + s.tmp_11.arg0 = s.font___84277; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1164; s.pc = 54; return s.tmp_11; } + } + case 54: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_9 + s.tmp_10); + s.tmp_8 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_13 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_13); + s.tmp_12 = r0; + r0 = (s.tmp_8 - s.tmp_12); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.life___84280; + s.tmp_3 = r0 = s.xLoc___84446; + r0 = globals.infoState___69091.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = globals.infoState___69091.fields["multiplierImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_2 + s.tmp_6); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.y___84382 + s.offsetY___84286); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___84277; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1165; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + case 29: + case 30: + r0 = s.state___84274.fields["showPlayer"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 41; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 56: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.pNum___84522 = (r0); + r0 = pxsim_String_.length(s.pNum___84522); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___84277; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1166; s.pc = 57; return s.tmp_3; } + } + case 57: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.iconWidth___84529 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = s.height___84281; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___84277; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1167; s.pc = 59; return s.tmp_2; } + } + case 59: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1168; s.pc = 58; return s.tmp_0; + case 58: + r0 = s.retval; + s.iconHeight___84537 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = (s.x___84373 - s.iconWidth___84529); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + { step = 32; continue; } + case 31: + r0 = (s.x___84373 + s.width___84363); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + case 32: + // jmp value (already in r0) + s.tmp_3 = r0; + s.iconX___84545 = (s.tmp_3); + s.iconY___84558 = (s.y___84382); + r0 = pxsim_numops_toBoolDecr(s.showScore___84287); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 33; continue; } + r0 = s.tmp_0; + { step = 34; continue; } + case 33: + r0 = pxsim_numops_toBoolDecr(s.showLife___84295); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 34: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 39; continue; } + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 35; continue; } + r0 = -1; + { step = 36; continue; } + case 35: + r0 = 1; + case 36: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = (s.iconX___84545 + s.tmp_5); + s.iconX___84545 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["up"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 37; continue; } + r0 = (s.iconY___84558 - 3); + s.iconY___84558 = (r0); + case 37: + case 38: + case 39: + case 40: + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.iconX___84545; + s.tmp_0.arg2 = s.iconY___84558; + s.tmp_0.arg3 = s.iconWidth___84529; + s.tmp_0.arg4 = s.iconHeight___84537; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["border"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1169; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.pNum___84522; + r0 = (s.iconX___84545 + 1); + s.tmp_0.arg2 = r0; + s.tmp_2 = r0 = s.iconY___84558; + r0 = (s.iconHeight___84537 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + s.tmp_6 = if_charHeight_1_mk(s); + s.tmp_6.arg0 = s.font___84277; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1170; s.pc = 62; return s.tmp_6; } + } + case 62: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["bg"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___84277; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1171; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + case 41: + case 42: + r0 = undefined; return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P4465.info = {"start":1632,"length":951,"line":56,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberCore","argumentNames":["buf","offset","num"]} +info_PlayerInfo_drawPlayer__P66854.info = {"start":31018,"length":3718,"line":1034,"column":8,"endLine":1137,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} -function msgpack_packNumberCore__P4465_mk(s) { +function info_PlayerInfo_drawPlayer__P66854_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P4465, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawPlayer__P66854, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45525,18 +46341,41 @@ function msgpack_packNumberCore__P4465_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___18699: undefined, - fmt___18742: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + state___84274: undefined, + font___84277: undefined, + score___84279: undefined, + life___84280: undefined, + height___84281: undefined, + scoreWidth___84282: undefined, + lifeWidth___84283: undefined, + offsetY___84286: undefined, + showScore___84287: undefined, + showLife___84295: undefined, + width___84363: undefined, + x___84373: undefined, + y___84382: undefined, + bump___84419: undefined, + xLoc___84446: undefined, + mult___84458: undefined, + pNum___84522: undefined, + iconWidth___84529: undefined, + iconHeight___84537: undefined, + iconX___84545: undefined, + iconY___84558: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function info_winningPlayer__P2546(s) { +function info_PlayerInfoImpl_raiseLifeZero__P66815(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45546,66 +46385,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.winner___20436 = undefined; - s.pws___20438 = undefined; - s.goc___20442 = undefined; - s.hs___20445 = undefined; - r0 = pxsim_pxtrt.mklocRef(); - s.winner___20436 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.winner___20436, null); - s.tmp_0 = info_playersWithScores__P2544_mk(s); - s.callLocIdx = 1105; s.pc = 3; return s.tmp_0; - case 3: + s.state___84244 = undefined; + s.goc___84263 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P66803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1143; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.pws___20438 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pws___20438); - if (!r0) { step = 1; continue; } + s.state___84244 = (r0); + r0 = s.state___84244.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.state___84244.fields["life"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 <= 0); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + r0 = (s.state___84244).fields["life"] = (null); + r0 = s.state___84244.fields["lifeZeroHandler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = if_lifeZeroHandler_1_mk(s); + s.tmp_1.arg0 = s.state___84244; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); + s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["lifeZeroHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["lifeZeroHandler"], 1); s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1144; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 1144; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 4; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.gameOverConfig___2978; + s.tmp_0.argL = globals.gameOverConfig___67197; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1106; s.pc = 4; return s.tmp_0; - case 4: + s.callLocIdx = 1145; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.goc___20442 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.hs___20445 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hs___20445, null); - r0 = pxsim_pxtcore_mkAction(2, info_winningPlayer_inline__P20449); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___20445); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.winner___20436); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = s.pws___20438; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1109; s.pc = 5; return s.tmp_1; - case 5: + s.goc___84263 = (r0); + s.tmp_0 = game_GameOverConfig_setEffect__P67190_mk(s); + s.tmp_0.arg0 = s.goc___84263; + s.tmp_0.arg1 = false; + s.tmp_0.arg2 = null; + s.tmp_0.arg3 = false; + s.callLocIdx = 1146; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - case 1: - case 2: - r0 = pxsim_pxtrt_ldlocRef(s.winner___20436); + s.tmp_0 = game_GameOverConfig_setSound__P67192_mk(s); + s.tmp_0.arg0 = s.goc___84263; + s.tmp_0.arg1 = false; + s.tmp_0.arg2 = null; + s.tmp_0.arg3 = false; + s.tmp_0.arg4 = false; + s.callLocIdx = 1147; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = game_gameOver__P67212_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1148; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 4: + case 5: + case 6: + case 7: + case 8: + r0 = undefined; return leave(s, r0) default: oops() } } } -info_winningPlayer__P2546.info = {"start":7878,"length":476,"line":256,"column":4,"endLine":271,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"winningPlayer","argumentNames":[]} +info_PlayerInfoImpl_raiseLifeZero__P66815.info = {"start":23958,"length":620,"line":771,"column":8,"endLine":785,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} -function info_winningPlayer__P2546_mk(s) { +function info_PlayerInfoImpl_raiseLifeZero__P66815_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_winningPlayer__P2546, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_raiseLifeZero__P66815, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - winner___20436: undefined, - pws___20438: undefined, - goc___20442: undefined, - hs___20445: undefined, + tmp_2: undefined, + tmp_3: undefined, + state___84244: undefined, + goc___84263: undefined, + arg0: undefined, + arg1: undefined, } } -function info_winningPlayer_inline__P20449(s) { +function info_PlayerInfoImpl_hasLife__P66812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45615,46 +46508,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___20451 = undefined; + s.state___84063 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_score__P2586_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1107; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P66803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1142; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.s___20451 = (r0); - s.tmp_1 = info_isBetterScore__P2547_mk(s); - s.tmp_1.arg0 = s.s___20451; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1108; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[0], s.s___20451); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], s.arg0); + s.state___84063 = (r0); + r0 = s.state___84063.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.state___84063.fields["life"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== null); case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -info_winningPlayer_inline__P20449.info = {"start":8129,"length":184,"line":262,"column":24,"endLine":268,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +info_PlayerInfoImpl_hasLife__P66812.info = {"start":23477,"length":141,"line":756,"column":8,"endLine":759,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} -function info_winningPlayer_inline__P20449_mk(s) { +function info_PlayerInfoImpl_hasLife__P66812_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_winningPlayer_inline__P20449, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_hasLife__P66812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - s___20451: undefined, + tmp_2: undefined, + tmp_3: undefined, + state___84063: undefined, arg0: undefined, } } @@ -45662,7 +46559,7 @@ function info_winningPlayer_inline__P20449_mk(s) { -function info_saveAllScores__P2545(s) { +function info_PlayerInfoImpl_hasScore__P66808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45672,57 +46569,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.allScoresKey___18888 = undefined; - s.allScores___18890 = undefined; - s.pws___18891 = undefined; - s.allScoresKey___18888 = ("all-scores"); - s.tmp_0 = info_playersWithScores__P2544_mk(s); - s.callLocIdx = 1101; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.pws___18891 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pws___18891); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayMap__P106_mk(s); - s.tmp_0.arg0 = s.pws___18891; - s.tmp_0.arg1 = info_saveAllScores_inline__P18898; - s.callLocIdx = 1103; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.allScores___18890 = (r0); - { step = 2; continue; } + s.state___84145 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P66803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1141; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_Array__mk(); - s.allScores___18890 = (r0); - case 2: - s.tmp_0 = settings_writeJSON__P2043_mk(s); - s.tmp_0.arg0 = s.allScoresKey___18888; - s.tmp_0.arg1 = s.allScores___18890; - s.callLocIdx = 1104; s.pc = 5; return s.tmp_0; - case 5: r0 = s.retval; - r0 = undefined; + s.state___84145 = (r0); + r0 = s.state___84145.fields["score"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 !== undefined); return leave(s, r0) default: oops() } } } -info_saveAllScores__P2545.info = {"start":7520,"length":352,"line":242,"column":4,"endLine":254,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveAllScores","argumentNames":[]} +info_PlayerInfoImpl_hasScore__P66808.info = {"start":22576,"length":111,"line":725,"column":8,"endLine":728,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} -function info_saveAllScores__P2545_mk(s) { +function info_PlayerInfoImpl_hasScore__P66808_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveAllScores__P2545, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_hasScore__P66808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - allScoresKey___18888: undefined, - allScores___18890: undefined, - pws___18891: undefined, + state___84145: undefined, + arg0: undefined, } } -function info_saveAllScores_inline__P18898(s) { +function info_PlayerState_constructor__P66761(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45736,31 +46618,76 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_score__P2586_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1102; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerState__C66752_VT)) failedCast(r0); + r0 = (s.arg0).fields["visibility"] = (0); + r0 = (s.arg0).fields["showScore"] = (undefined); + r0 = (s.arg0).fields["showLife"] = (undefined); + r0 = (s.arg0).fields["showPlayer"] = (undefined); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_PlayerState_constructor__P66761.info = {"start":1084,"length":192,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} + +function info_PlayerState_constructor__P66761_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerState_constructor__P66761, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function info_highScore__P66770(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_1 = settings_readNumber__P66268_mk(s); + s.tmp_1.arg0 = "high-score"; + s.callLocIdx = 1116; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; return leave(s, r0) default: oops() } } } -info_saveAllScores_inline__P18898.info = {"start":7722,"length":25,"line":247,"column":32,"endLine":247,"endColumn":57,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} +info_highScore__P66770.info = {"start":9662,"length":98,"line":321,"column":4,"endLine":323,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} -function info_saveAllScores_inline__P18898_mk(s) { +function info_highScore__P66770_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveAllScores_inline__P18898, depth: s.depth + 1, + parent: s, fn: info_highScore__P66770, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function settings_writeJSON__P2043(s) { +function settings_readNumber__P66268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45770,46 +46697,77 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.buf___83028 = undefined; + s.nums___83035 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeString__P2042_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = JSON_stringify__P387_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = null; - s.tmp_1.arg2 = 0; - s.callLocIdx = 234; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 235; s.pc = 1; return s.tmp_0; + r0 = pxsim.settings._get(s.arg0); + s.buf___83028 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___83028); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 7; continue; } + { step = 6; continue; } case 1: + s.tmp_2 = msgpack_unpackNumberArray__P64402_mk(s); + s.tmp_2.arg0 = s.buf___83028; + s.tmp_2.arg1 = 0; + s.callLocIdx = 240; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; + s.nums___83035 = (r0); + s.tmp_0 = r0 = s.nums___83035; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = pxsim_Array__length(s.nums___83035); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 1); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.nums___83035, 0); + { step = 7; continue; } + case 4: + case 5: r0 = undefined; + { step = 7; continue; } + case 6: + r0 = undefined; + case 7: return leave(s, r0) default: oops() } } } -settings_writeJSON__P2043.info = {"start":2092,"length":106,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeJSON","argumentNames":["key","value"]} +settings_readNumber__P66268.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} -function settings_writeJSON__P2043_mk(s) { +function settings_readNumber__P66268_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeJSON__P2043, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P66268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + buf___83028: undefined, + nums___83035: undefined, arg0: undefined, - arg1: undefined, } } -function settings_writeString__P2042(s) { +function settings_readBuffer__P66265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45821,37 +46779,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P2041_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim.control.createBufferFromUTF8(s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 233; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim.settings._get(s.arg0); return leave(s, r0) default: oops() } } } -settings_writeString__P2042.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +settings_readBuffer__P66265.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} -function settings_writeString__P2042_mk(s) { +function settings_readBuffer__P66265_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P2042, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P66265, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function JSON_stringify__P387(s) { +function msgpack_unpackNumberArray__P64402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45861,102 +46809,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ss___18918 = undefined; + s.res___83048 = undefined; + s.fmt___83055 = undefined; + s.v___83064 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C4517_VT); - s.ss___18918 = (r0); - s.tmp_0 = r0 = s.ss___18918; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.arg2 | 0); - s.arg2 = (r0); - r0 = (s.arg2 < 0); + r0 = pxsim_Array__mk(); + s.res___83048 = (r0); + case 1: + s.tmp_1 = r0 = s.arg1; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg2 = (0); - case 1: - case 2: - r0 = (s.arg2 > 10); + if (!r0) { step = 10; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = (s.tmp_3 + 1); + s.arg1 = (r0); + s.tmp_4 = msgpack_tagFormat__P68683_mk(s); + r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); + s.tmp_4.arg0 = r0; + s.callLocIdx = 31; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.fmt___83055 = (r0); + r0 = (s.fmt___83055 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (10); + if (!r0) { step = 6; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); + s.v___83064 = (r0); + r0 = (-31 <= s.v___83064); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = (s.v___83064 <= 127); case 3: - case 4: - s.tmp_0 = r0 = s.ss___18918; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.ss___18918; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.ss___18918).fields["indent"] = (s.arg2); - case 5: - s.tmp_0 = r0 = s.arg2; - r0 = (s.tmp_0 - 1); - s.arg2 = (r0); - r0 = (s.tmp_0 > 0); + // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 6; continue; } - s.tmp_2 = r0 = s.ss___18918; - r0 = s.tmp_2.fields["indentStep"]; - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 7: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, " "); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__push(s.res___83048, s.v___83064); { step = 5; continue; } + case 4: + r0 = null; + { step = 11; continue; } + case 5: + { step = 7; continue; } case 6: - s.tmp_0 = JSON_Stringifier_go__P4519_mk(s); - s.tmp_0.arg0 = s.ss___18918; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 57; s.pc = 8; return s.tmp_0; - case 8: + s.tmp_0 = r0 = s.res___83048; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___83055, s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = pins_sizeOf__P64394_mk(s); + s.tmp_2.arg0 = s.fmt___83055; + s.callLocIdx = 32; s.pc = 13; return s.tmp_2; + case 13: r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg1 = (r0); + case 7: + case 8: + r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 193); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = (s.arg1 + 1); + s.arg1 = (r0); + { step = 8; continue; } + case 9: + { step = 1; continue; } + case 10: + r0 = s.res___83048; + case 11: return leave(s, r0) default: oops() } } } -JSON_stringify__P387.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} +msgpack_unpackNumberArray__P64402.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} -function JSON_stringify__P387_mk(s) { +function msgpack_unpackNumberArray__P64402_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_stringify__P387, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P64402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - ss___18918: undefined, + res___83048: undefined, + fmt___83055: undefined, + v___83064: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function JSON_Stringifier_go__P4519(s) { +function msgpack_tagFormat__P68683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45966,602 +46932,278 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___18959 = undefined; - s.arr___18983 = undefined; - s.r___18989 = undefined; - s.i___19006 = undefined; - s.keys___19070 = undefined; - s.r___19077 = undefined; - s.i___19094 = undefined; - s.k___19100 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C4517_VT)) failedCast(r0); - r0 = pxsim_pxtcore.typeOf(s.arg1); - s.t___18959 = (r0); - r0 = (s.t___18959 == "string"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = JSON_Stringifier_doString__P4518_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 51; s.pc = 38; return s.tmp_1; - case 38: - r0 = s.retval; - { step = 37; continue; } - { step = 36; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } case 1: - r0 = (s.t___18959 == "boolean"); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 3; continue; } + r0 = 16; + { step = 9; continue; } case 2: - r0 = (s.t___18959 == "number"); + r0 = 7; + { step = 9; continue; } case 3: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 4; continue; } - r0 = s.tmp_3; - { step = 5; continue; } + r0 = 9; + { step = 9; continue; } case 4: - r0 = (s.arg1 == null); + r0 = 12; + { step = 9; continue; } case 5: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_5 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 39); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 39: + r0 = 6; + { step = 9; continue; } + case 6: + r0 = 8; + { step = 9; continue; } + case 7: + r0 = 10; + { step = 9; continue; } + case 8: + r0 = null; + { step = 9; continue; } + r0 = undefined; + case 9: + return leave(s, r0) + default: oops() +} } } +msgpack_tagFormat__P68683.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} + +function msgpack_tagFormat__P68683_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_tagFormat__P68683, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function pins_sizeOf__P64394(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Buffer_sizeOfNumberFormat__P64434_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 28; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - { step = 37; continue; } - { step = 35; continue; } + return leave(s, r0) + default: oops() +} } } +pins_sizeOf__P64394.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} + +function pins_sizeOf__P64394_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pins_sizeOf__P64394, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Buffer_sizeOfNumberFormat__P64434(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 1: + case 2: + case 3: + case 4: + r0 = 1; + { step = 18; continue; } + case 5: case 6: - r0 = pxsim_Array_.isArray(s.arg1); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 19; continue; } - s.arr___18983 = (s.arg1); - r0 = pxsim_Array__length(s.arr___18983); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = "[]"; - { step = 37; continue; } + case 7: + case 8: + r0 = 2; + { step = 18; continue; } + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + r0 = 4; + { step = 18; continue; } + case 15: + case 16: + r0 = 8; { step = 18; continue; } + case 17: + r0 = 0; + case 18: + return leave(s, r0) + default: oops() +} } } +Buffer_sizeOfNumberFormat__P64434.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} + +function Buffer_sizeOfNumberFormat__P64434_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Buffer_sizeOfNumberFormat__P64434, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function info_saveHighScore__P66767(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.winner___82865 = undefined; + s.hs___82869 = undefined; + s.curr___82873 = undefined; + s.tmp_0 = info_winningPlayer__P66765_mk(s); + s.callLocIdx = 1111; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.winner___82865 = (r0); + r0 = pxsim_numops_toBoolDecr(s.winner___82865); + if (!r0) { step = 3; continue; } + s.tmp_0 = info_PlayerInfoImpl_score__P66805_mk(s); + r0 = s.winner___82865.fields["impl"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1112; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.hs___82869 = (r0); + s.tmp_0 = settings_readNumber__P66268_mk(s); + s.tmp_0.arg0 = "high-score"; + s.callLocIdx = 1113; s.pc = 7; return s.tmp_0; case 7: - s.r___18989 = ("["); - r0 = s.arg0.fields["indent"]; + r0 = s.retval; + s.curr___82873 = (r0); + s.tmp_1 = info_isBetterScore__P66766_mk(s); + s.tmp_1.arg0 = s.hs___82869; + s.tmp_1.arg1 = s.curr___82873; + s.callLocIdx = 1114; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.tmp_1.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 40: + if (!r0) { step = 1; continue; } + s.tmp_2 = settings_writeNumber__P66263_mk(s); + s.tmp_2.arg0 = "high-score"; + s.tmp_2.arg1 = s.hs___82869; + s.callLocIdx = 1115; s.pc = 9; return s.tmp_2; + case 9: r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["indentStep"]; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 41); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 41: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___18989) && (s.r___18989).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.r___18989); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___18989) + ""; } - case 42: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___18989 = (r0); - case 8: - case 9: - s.i___19006 = (0); - case 10: - s.tmp_1 = r0 = s.i___19006; - r0 = pxsim_Array__length(s.arr___18983); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - if ((s.r___18989) && (s.r___18989).vtable) { - setupResume(s, 43); - pxsim_String__stringConv(s.r___18989); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___18989) + ""; } - case 43: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 44: - r0 = s.retval; - s.tmp_6 = r0; - s.tmp_10 = JSON_Stringifier_go__P4519_mk(s); - s.tmp_10.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.arr___18983, s.i___19006); - s.tmp_10.arg1 = r0; - s.callLocIdx = 52; s.pc = 45; return s.tmp_10; - case 45: - r0 = s.retval; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 46: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_8); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 47); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 47: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___18989 = (r0); - s.tmp_1 = r0 = s.i___19006; - r0 = pxsim_Array__length(s.arr___18983); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - if ((s.r___18989) && (s.r___18989).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.r___18989); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___18989) + ""; } - case 48: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___18989 = (r0); - case 11: - case 12: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - if ((s.r___18989) && (s.r___18989).vtable) { - setupResume(s, 49); - pxsim_String__stringConv(s.r___18989); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___18989) + ""; } - case 49: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___18989 = (r0); - case 13: - case 14: - r0 = (s.i___19006 + 1); - s.i___19006 = (r0); - { step = 10; continue; } - case 15: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P119_mk(s); - r0 = s.arg0.fields["currIndent"]; - s.tmp_3.arg0 = r0; - r0 = s.arg0.fields["indent"]; - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 53; s.pc = 50; return s.tmp_3; - case 50: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - case 16: - case 17: - if ((s.r___18989) && (s.r___18989).vtable) { - setupResume(s, 51); - pxsim_String__stringConv(s.r___18989); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___18989) + ""; } - case 51: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 52: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, "]"); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 53); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 53: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___18989 = (r0); - r0 = s.r___18989; - { step = 37; continue; } - case 18: - { step = 34; continue; } - case 19: - r0 = pxsim_pxtrt.keysOf(s.arg1); - s.keys___19070 = (r0); - r0 = pxsim_Array__length(s.keys___19070); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = "{}"; - { step = 37; continue; } - case 20: - case 21: - s.r___19077 = ("{"); - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.tmp_1.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 54: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["indentStep"]; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 55); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 55: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 56: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___19077 = (r0); - case 22: - case 23: - s.i___19094 = (0); - case 24: - s.tmp_1 = r0 = s.i___19094; - r0 = pxsim_Array__length(s.keys___19070); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = pxsim_Array__getAt(s.keys___19070, s.i___19094); - s.k___19100 = (r0); - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 57); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 57: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 58: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = JSON_Stringifier_doString__P4518_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.k___19100; - s.callLocIdx = 54; s.pc = 59; return s.tmp_7; - case 59: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 60); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 60: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 61); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 61: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___19077 = (r0); - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 62); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 62: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, ": "); - s.r___19077 = (r0); - { step = 26; continue; } - case 25: - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 63); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 63: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ":"); - s.r___19077 = (r0); - case 26: - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 64); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 64: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = JSON_Stringifier_go__P4519_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___19100); - s.tmp_3.arg1 = r0; - s.callLocIdx = 55; s.pc = 65; return s.tmp_3; - case 65: - r0 = s.retval; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 66); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 66: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___19077 = (r0); - s.tmp_1 = r0 = s.i___19094; - r0 = pxsim_Array__length(s.keys___19070); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 67); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 67: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___19077 = (r0); - case 27: - case 28: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 29; continue; } - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 68); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 68: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___19077 = (r0); - case 29: - case 30: - r0 = (s.i___19094 + 1); - s.i___19094 = (r0); - { step = 24; continue; } - case 31: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P119_mk(s); - r0 = s.arg0.fields["currIndent"]; - s.tmp_3.arg0 = r0; - r0 = s.arg0.fields["indent"]; - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 56; s.pc = 69; return s.tmp_3; - case 69: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - case 32: - case 33: - if ((s.r___19077) && (s.r___19077).vtable) { - setupResume(s, 70); - pxsim_String__stringConv(s.r___19077); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19077) + ""; } - case 70: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 71); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 71: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, "}"); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 72); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 72: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___19077 = (r0); - r0 = s.r___19077; - { step = 37; continue; } - case 34: - case 35: - case 36: + case 1: + case 2: + case 3: + case 4: r0 = undefined; - case 37: return leave(s, r0) default: oops() } } } -JSON_Stringifier_go__P4519.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} +info_saveHighScore__P66767.info = {"start":8812,"length":324,"line":286,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} -function JSON_Stringifier_go__P4519_mk(s) { +function info_saveHighScore__P66767_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_go__P4519, depth: s.depth + 1, + parent: s, fn: info_saveHighScore__P66767, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - t___18959: undefined, - arr___18983: undefined, - r___18989: undefined, - i___19006: undefined, - keys___19070: undefined, - r___19077: undefined, - i___19094: undefined, - k___19100: undefined, - arg0: undefined, - arg1: undefined, + winner___82865: undefined, + hs___82869: undefined, + curr___82873: undefined, } } -function JSON_Stringifier_doString__P4518(s) { +function settings_writeNumber__P66263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46571,125 +47213,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___19186 = undefined; - s.i___19187 = undefined; - s.c___19193 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C4517_VT)) failedCast(r0); - s.r___19186 = ("\""); - s.i___19187 = (0); - case 1: - s.tmp_1 = r0 = s.i___19187; - r0 = pxsim_String_.length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = pxsim_String_.charAt(s.arg1, s.i___19187); - s.c___19193 = (r0); - r0 = (s.c___19193 == "\n"); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.c___19193 = ("\\n"); - { step = 13; continue; } + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_1 = settings_writeBuffer__P66260_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = msgpack_packNumberArray__P64403_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.callLocIdx = 236; s.pc = 2; return s.tmp_2; case 2: - r0 = (s.c___19193 == "\r"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.c___19193 = ("\\r"); - { step = 12; continue; } - case 3: - r0 = (s.c___19193 == "\t"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.c___19193 = ("\\t"); - { step = 11; continue; } - case 4: - r0 = (s.c___19193 == "\b"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.c___19193 = ("\\b"); - { step = 10; continue; } - case 5: - r0 = (s.c___19193 == "\\"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.c___19193 = ("\\\\"); - { step = 9; continue; } - case 6: - r0 = (s.c___19193 == "\""); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.c___19193 = ("\\\""); - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - if ((s.r___19186) && (s.r___19186).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___19186); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19186) + ""; } - case 15: - r0 = s.retval; - s.tmp_0 = r0; - if ((s.c___19193) && (s.c___19193).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.c___19193); - checkResumeConsumed(); - return; - } else { s.retval = (s.c___19193) + ""; } - case 16: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___19186 = (r0); - r0 = (s.i___19187 + 1); - s.i___19187 = (r0); - { step = 1; continue; } - case 14: - if ((s.r___19186) && (s.r___19186).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___19186); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19186) + ""; } - case 17: + s.tmp_1.arg1 = r0; + s.callLocIdx = 237; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\""); + r0 = undefined; return leave(s, r0) default: oops() } } } -JSON_Stringifier_doString__P4518.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} +settings_writeNumber__P66263.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} -function JSON_Stringifier_doString__P4518_mk(s) { +function settings_writeNumber__P66263_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_doString__P4518, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P66263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - r___19186: undefined, - i___19187: undefined, - c___19193: undefined, arg0: undefined, arg1: undefined, } } @@ -46698,7 +47254,7 @@ function JSON_Stringifier_doString__P4518_mk(s) { -function info_playersWithScores__P2544(s) { +function settings_writeBuffer__P66260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46708,40 +47264,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.players___4873); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._set(s.arg0, s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayFilter__P110_mk(s); - s.tmp_0.arg0 = globals.players___4873; - s.tmp_0.arg1 = info_playersWithScores_inline__P20471; - s.callLocIdx = 1100; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - { step = 2; continue; } + r0 = pxsim.settings._userClean(); + r0 = pxsim_pxtrt.panic(920); case 1: - r0 = pxsim_Array__mk(); case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_playersWithScores__P2544.info = {"start":7381,"length":133,"line":238,"column":4,"endLine":240,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"playersWithScores","argumentNames":[]} +settings_writeBuffer__P66260.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} -function info_playersWithScores__P2544_mk(s) { +function settings_writeBuffer__P66260_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_playersWithScores__P2544, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P66260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function info_playersWithScores_inline__P20471(s) { +function msgpack_packNumberArray__P64403(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46751,27 +47307,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.off___82888 = undefined; + s.n___82890 = undefined; + s.unnamed344___U2 = undefined; + s.unnamed345___U3 = undefined; + s.buf___82900 = undefined; + s.n___82906 = undefined; + s.unnamed346___U6 = undefined; + s.unnamed347___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_hasScore__P2589_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1099; s.pc = 1; return s.tmp_0; + s.off___82888 = (0); + s.n___82890 = (undefined); + s.unnamed344___U2 = (s.arg0); + s.unnamed345___U3 = (0); case 1: + s.tmp_0 = r0 = s.unnamed345___U3; + r0 = pxsim_Array__length(s.unnamed344___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed344___U2, s.unnamed345___U3); + s.n___82890 = (r0); + s.tmp_2 = r0 = s.off___82888; + s.tmp_4 = msgpack_packNumberCore__P68684_mk(s); + s.tmp_4.arg0 = null; + s.tmp_4.arg1 = s.off___82888; + s.tmp_4.arg2 = s.n___82890; + s.callLocIdx = 33; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.off___82888 = (r0); + r0 = (s.unnamed345___U3 + 1); + s.unnamed345___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed344___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___82888); + s.buf___82900 = (r0); + s.off___82888 = (0); + s.n___82906 = (undefined); + s.unnamed346___U6 = (s.arg0); + s.unnamed347___U7 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed347___U7; + r0 = pxsim_Array__length(s.unnamed346___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed346___U6, s.unnamed347___U7); + s.n___82906 = (r0); + s.tmp_2 = r0 = s.off___82888; + s.tmp_4 = msgpack_packNumberCore__P68684_mk(s); + s.tmp_4.arg0 = s.buf___82900; + s.tmp_4.arg1 = s.off___82888; + s.tmp_4.arg2 = s.n___82906; + s.callLocIdx = 34; s.pc = 6; return s.tmp_4; + case 6: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.off___82888 = (r0); + r0 = (s.unnamed347___U7 + 1); + s.unnamed347___U7 = (r0); + { step = 3; continue; } + case 4: + s.unnamed346___U6 = (undefined); + r0 = s.buf___82900; return leave(s, r0) default: oops() } } } -info_playersWithScores_inline__P20471.info = {"start":7473,"length":28,"line":239,"column":40,"endLine":239,"endColumn":68,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} +msgpack_packNumberArray__P64403.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} -function info_playersWithScores_inline__P20471_mk(s) { +function msgpack_packNumberArray__P64403_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_playersWithScores_inline__P20471, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P64403, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + off___82888: undefined, + n___82890: undefined, + unnamed344___U2: undefined, + unnamed345___U3: undefined, + buf___82900: undefined, + n___82906: undefined, + unnamed346___U6: undefined, + unnamed347___U7: undefined, arg0: undefined, } } @@ -46779,7 +47408,7 @@ function info_playersWithScores_inline__P20471_mk(s) { -function info_multiplayerScoring__P2543(s) { +function msgpack_packNumberCore__P68684(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46789,68 +47418,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pws___18635 = undefined; - s.p___18639 = undefined; - s.unnamed108___U2 = undefined; - s.unnamed109___U3 = undefined; - s.tmp_0 = info_playersWithScores__P2544_mk(s); - s.callLocIdx = 1097; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.pws___18635 = (r0); - s.p___18639 = (undefined); - s.unnamed108___U2 = (s.pws___18635); - s.unnamed109___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed109___U3; - r0 = pxsim_Array__length(s.unnamed108___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed108___U2, s.unnamed109___U3); - s.p___18639 = (r0); - r0 = s.p___18639.fields["_player"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 1); + s.tag___82920 = undefined; + s.fmt___82963 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tag___82920 = (203); + s.tmp_1 = r0 = s.arg2; + r0 = (s.arg2 << 0); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = true; - { step = 5; continue; } + r0 = (s.tmp_1 == s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_3 = r0 = s.arg2; + r0 = (s.arg2 >>> 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 == s.tmp_4); case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 19; continue; } + r0 = (-31 <= s.arg2); + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 3; continue; } + r0 = s.tmp_6; + { step = 4; continue; } case 3: - r0 = (s.unnamed109___U3 + 1); - s.unnamed109___U3 = (r0); - { step = 1; continue; } + r0 = (s.arg2 <= 127); case 4: - s.unnamed108___U2 = (undefined); - r0 = false; + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 5; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); case 5: + case 6: + r0 = 1; + { step = 23; continue; } + { step = 18; continue; } + case 7: + r0 = (0 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg2 <= 255); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + s.tag___82920 = (204); + { step = 11; continue; } + case 8: + r0 = (s.arg2 <= 65535); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tag___82920 = (205); + { step = 10; continue; } + case 9: + s.tag___82920 = (206); + case 10: + case 11: + { step = 17; continue; } + case 12: + r0 = (-127 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tag___82920 = (208); + { step = 16; continue; } + case 13: + r0 = (-32767 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tag___82920 = (209); + { step = 15; continue; } + case 14: + s.tag___82920 = (210); + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + s.tmp_0 = msgpack_tagFormat__P68683_mk(s); + s.tmp_0.arg0 = s.tag___82920; + s.callLocIdx = 29; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.fmt___82963 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 21; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___82920); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.fmt___82963; + r0 = (s.arg1 + 1); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, s.tmp_1, s.tmp_2, s.arg2); + case 21: + case 22: + s.tmp_1 = pins_sizeOf__P64394_mk(s); + s.tmp_1.arg0 = s.fmt___82963; + s.callLocIdx = 30; s.pc = 25; return s.tmp_1; + case 25: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + case 23: return leave(s, r0) default: oops() } } } -info_multiplayerScoring__P2543.info = {"start":7152,"length":223,"line":228,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"multiplayerScoring","argumentNames":[]} +msgpack_packNumberCore__P68684.info = {"start":1632,"length":951,"line":56,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberCore","argumentNames":["buf","offset","num"]} -function info_multiplayerScoring__P2543_mk(s) { +function msgpack_packNumberCore__P68684_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_multiplayerScoring__P2543, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P68684, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - pws___18635: undefined, - p___18639: undefined, - unnamed108___U2: undefined, - unnamed109___U3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tag___82920: undefined, + fmt___82963: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_GameOverConfig_setEffect__P2971(s) { +function info_winningPlayer__P66765(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46860,71 +47575,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg3); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["effectSetByUser"]; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 9; continue; } + s.winner___84657 = undefined; + s.pws___84659 = undefined; + s.goc___84663 = undefined; + s.hs___84666 = undefined; + r0 = pxsim_pxtrt.mklocRef(); + s.winner___84657 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.winner___84657, null); + s.tmp_0 = info_playersWithScores__P66763_mk(s); + s.callLocIdx = 1105; s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; + s.pws___84659 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pws___84659); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.gameOverConfig___67197; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1106; s.pc = 4; return s.tmp_0; case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["winEffect"] = (s.arg2); - { step = 6; continue; } + r0 = s.retval; + s.goc___84663 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.hs___84666 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hs___84666, null); + r0 = pxsim_pxtcore_mkAction(2, info_winningPlayer_inline__P84670); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___84666); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.winner___84657); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = s.pws___84659; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1109; s.pc = 5; return s.tmp_1; case 5: - r0 = (s.arg0).fields["loseEffect"] = (s.arg2); - case 6: - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 7; continue; } - r0 = (s.arg0).fields["effectSetByUser"] = (true); - case 7: - case 8: - case 9: - r0 = undefined; + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_pxtrt_ldlocRef(s.winner___84657); return leave(s, r0) default: oops() } } } -game_GameOverConfig_setEffect__P2971.info = {"start":1899,"length":291,"line":62,"column":8,"endLine":67,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"setEffect","argumentNames":["this","win","effect","explicit"]} +info_winningPlayer__P66765.info = {"start":7878,"length":476,"line":256,"column":4,"endLine":271,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"winningPlayer","argumentNames":[]} -function game_GameOverConfig_setEffect__P2971_mk(s) { +function info_winningPlayer__P66765_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_setEffect__P2971, depth: s.depth + 1, + parent: s, fn: info_winningPlayer__P66765, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + winner___84657: undefined, + pws___84659: undefined, + goc___84663: undefined, + hs___84666: undefined, } } -function game_splash__P2945(s) { +function info_winningPlayer_inline__P84670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46934,160 +47644,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dialog___20514 = undefined; - s.s___20527 = undefined; - s.pressed___20534 = undefined; - s.done___20535 = undefined; + s.s___84672 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = console_inspect__P382_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 20; - s.callLocIdx = 1535; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.arg0 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - s.tmp_0 = console_inspect__P382_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 20; - s.callLocIdx = 1536; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = s.arg1; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg1 = (s.tmp_1); - s.tmp_0 = controller__setUserEventsEnabled__P2187_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 1537; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = game_pushScene__P2983_mk(s); - s.callLocIdx = 1538; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1539; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 | 2); - s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); - r0 = pxsim_pxtcore_mkClassInstance(game_SplashDialog__C2912_VT); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 3; continue; } - r0 = 42; - { step = 4; continue; } - case 3: - r0 = 35; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = game_SplashDialog_constructor__P2919_mk(s); - s.tmp_2.arg0 = s.tmp_0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.tmp_1; - s.callLocIdx = 1540; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.dialog___20514 = (s.tmp_0); - s.tmp_0 = game_SplashDialog__C2912_v1_2_mk(s); - s.tmp_0.arg0 = s.dialog___20514; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_SplashDialog__C2912_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setText; - s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 5; continue; } - s.tmp_0 = game_SplashDialog_setSubtext__P2921_mk(s); - s.tmp_0.arg0 = s.dialog___20514; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1541; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 5: - case 6: - s.tmp_0 = sprites_create__P2256_mk(s); - r0 = s.dialog___20514.fields["image"]; + s.tmp_0 = info_PlayerInfoImpl_score__P66805_mk(s); + r0 = s.arg0.fields["impl"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 1542; s.pc = 15; return s.tmp_0; - case 15: + s.callLocIdx = 1107; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.s___20527 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.pressed___20534 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pressed___20534, true); - r0 = pxsim_pxtrt.mklocRef(); - s.done___20535 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.done___20535, false); - r0 = pxsim_pxtcore_mkAction(3, game_splash_inline__P20537); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___20514); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___20534); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___20535); - s.tmp_1 = game_onUpdate__P3003_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1545; s.pc = 16; return s.tmp_1; - case 16: + s.s___84672 = (r0); + s.tmp_1 = info_isBetterScore__P66766_mk(s); + s.tmp_1.arg0 = s.s___84672; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1108; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, game_splash_inline__P20560); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___20535); - s.tmp_1 = pauseUntil__P367_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1546; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_0 = controller__setUserEventsEnabled__P2187_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1547; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], s.s___84672); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], s.arg0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_splash__P2945.info = {"start":30591,"length":1082,"line":865,"column":4,"endLine":896,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"splash","argumentNames":["title","subtitle"]} +info_winningPlayer_inline__P84670.info = {"start":8129,"length":184,"line":262,"column":24,"endLine":268,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function game_splash__P2945_mk(s) { +function info_winningPlayer_inline__P84670_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash__P2945, depth: s.depth + 1, + parent: s, fn: info_winningPlayer_inline__P84670, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - dialog___20514: undefined, - s___20527: undefined, - pressed___20534: undefined, - done___20535: undefined, + s___84672: undefined, arg0: undefined, - arg1: undefined, } } -function game_splash_inline__P20537(s) { +function info_saveAllScores__P66764(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47097,93 +47701,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentState___20540 = undefined; - s.tmp_0 = game_BaseDialog__C2883_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2883_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 9; return s.tmp_0; - case 9: + s.allScoresKey___83109 = undefined; + s.allScores___83111 = undefined; + s.pws___83112 = undefined; + s.allScoresKey___83109 = ("all-scores"); + s.tmp_0 = info_playersWithScores__P66763_mk(s); + s.callLocIdx = 1101; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0 = controller_Button__C2170_v0_1_mk(s); - s.tmp_0.arg0 = globals.A___2094; - if (!checkSubtype(s.tmp_0.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; - s.pc = 10; return s.tmp_0; - case 10: + s.pws___83112 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pws___83112); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayMap__P64325_mk(s); + s.tmp_0.arg0 = s.pws___83112; + s.tmp_0.arg1 = info_saveAllScores_inline__P83119; + s.callLocIdx = 1103; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.currentState___20540 = (r0); - s.tmp_0 = r0 = s.currentState___20540; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + s.allScores___83111 = (r0); { step = 2; continue; } case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array__mk(); + s.allScores___83111 = (r0); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[1], true); - s.tmp_0 = scene_setBackgroundImage__P2865_mk(s); - s.tmp_0.arg0 = null; - s.callLocIdx = 1543; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = game_popScene__P2984_mk(s); - s.callLocIdx = 1544; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.caps[2], true); - { step = 8; continue; } - case 3: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - r0 = pxsim_numops_toBoolDecr(s.currentState___20540); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = settings_writeJSON__P66262_mk(s); + s.tmp_0.arg0 = s.allScoresKey___83109; + s.tmp_0.arg1 = s.allScores___83111; + s.callLocIdx = 1104; s.pc = 5; return s.tmp_0; case 5: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[1], false); - case 6: - case 7: - case 8: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_splash_inline__P20537.info = {"start":31175,"length":410,"line":880,"column":22,"endLine":892,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} +info_saveAllScores__P66764.info = {"start":7520,"length":352,"line":242,"column":4,"endLine":254,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveAllScores","argumentNames":[]} -function game_splash_inline__P20537_mk(s) { +function info_saveAllScores__P66764_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash_inline__P20537, depth: s.depth + 1, + parent: s, fn: info_saveAllScores__P66764, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - currentState___20540: undefined, + allScoresKey___83109: undefined, + allScores___83111: undefined, + pws___83112: undefined, } } -function game_splash_inline__P20560(s) { +function info_saveAllScores_inline__P83119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47193,24 +47761,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = info_PlayerInfoImpl_score__P66805_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1102; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -game_splash_inline__P20560.info = {"start":31607,"length":10,"line":894,"column":19,"endLine":894,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} +info_saveAllScores_inline__P83119.info = {"start":7722,"length":25,"line":247,"column":32,"endLine":247,"endColumn":57,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} -function game_splash_inline__P20560_mk(s) { +function info_saveAllScores_inline__P83119_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash_inline__P20560, depth: s.depth + 1, + parent: s, fn: info_saveAllScores_inline__P83119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, } } -function game_SplashDialog_setSubtext__P2921(s) { +function settings_writeJSON__P66262(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47225,65 +47804,74 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2912_VT)) failedCast(r0); - r0 = (s.arg0).fields["subtext"] = (s.arg1); - s.tmp_0 = game_SplashDialog_updateFont__P4980_mk(s); + s.tmp_0 = settings_writeString__P66261_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1447; s.pc = 1; return s.tmp_0; + s.tmp_1 = JSON_stringify__P64606_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = null; + s.tmp_1.arg2 = 0; + s.callLocIdx = 234; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 235; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_String_.length(s.arg1); - s.tmp_4 = r0; - s.tmp_6 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1448; s.pc = 2; return s.tmp_6; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_writeJSON__P66262.info = {"start":2092,"length":106,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeJSON","argumentNames":["key","value"]} + +function settings_writeJSON__P66262_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_writeJSON__P66262, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function settings_writeString__P66261(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 2: + s.tmp_0 = settings_writeBuffer__P66260_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim.control.createBufferFromUTF8(s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 233; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_7 = r0; - r0 = (s.tmp_3 - s.tmp_7); - s.tmp_2 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 << 1); - s.tmp_8 = r0; - r0 = (s.tmp_2 + s.tmp_8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSubOffset"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_SplashDialog_setSubtext__P2921.info = {"start":9748,"length":200,"line":300,"column":8,"endLine":304,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setSubtext","argumentNames":["this","sub"]} +settings_writeString__P66261.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} -function game_SplashDialog_setSubtext__P2921_mk(s) { +function settings_writeString__P66261_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_setSubtext__P2921, depth: s.depth + 1, + parent: s, fn: settings_writeString__P66261, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, arg0: undefined, arg1: undefined, } } @@ -47292,7 +47880,7 @@ function game_SplashDialog_setSubtext__P2921_mk(s) { -function game_SplashDialog_updateFont__P4980(s) { +function JSON_stringify__P64606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47302,74 +47890,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ss___83139 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2912_VT)) failedCast(r0); - r0 = s.arg0.fields["text"]; + r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C68736_VT); + s.ss___83139 = (r0); + s.tmp_0 = r0 = s.ss___83139; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); + r0 = (s.arg2 | 0); + s.arg2 = (r0); + r0 = (s.arg2 < 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.arg2 = (0); case 1: - r0 = pxsim_String_.mkEmpty(); case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["subtext"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + r0 = (s.arg2 > 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } + s.arg2 = (10); case 3: - r0 = pxsim_String_.mkEmpty(); case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = game_BaseDialog_setFont__P4977_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_5 = image_getFontForText__P1958_mk(s); - if ((s.tmp_1) && (s.tmp_1).vtable) { + s.tmp_0 = r0 = s.ss___83139; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); + s.tmp_0 = r0 = s.ss___83139; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); + r0 = (s.ss___83139).fields["indent"] = (s.arg2); + case 5: + s.tmp_0 = r0 = s.arg2; + r0 = (s.tmp_0 - 1); + s.arg2 = (r0); + r0 = (s.tmp_0 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_2 = r0 = s.ss___83139; + r0 = s.tmp_2.fields["indentStep"]; + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.tmp_1); + pxsim_String__stringConv(s.tmp_5); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_1) + ""; } + } else { s.retval = (s.tmp_5) + ""; } case 7: r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 8: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); - s.tmp_5.arg0 = r0; - s.callLocIdx = 1443; s.pc = 6; return s.tmp_5; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, " "); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); + { step = 5; continue; } case 6: + s.tmp_0 = JSON_Stringifier_go__P68738_mk(s); + s.tmp_0.arg0 = s.ss___83139; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 57; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 1444; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -game_SplashDialog_updateFont__P4980.info = {"start":9357,"length":122,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"updateFont","argumentNames":["this"]} +JSON_stringify__P64606.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} -function game_SplashDialog_updateFont__P4980_mk(s) { +function JSON_stringify__P64606_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_updateFont__P4980, depth: s.depth + 1, + parent: s, fn: JSON_stringify__P64606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47377,16 +47975,17 @@ function game_SplashDialog_updateFont__P4980_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + ss___83139: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_BaseDialog_setFont__P4977(s) { +function JSON_Stringifier_go__P68738(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47396,98 +47995,573 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.t___83180 = undefined; + s.arr___83204 = undefined; + s.r___83210 = undefined; + s.i___83227 = undefined; + s.keys___83291 = undefined; + s.r___83298 = undefined; + s.i___83315 = undefined; + s.k___83321 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = (s.arg0).fields["font"] = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_BaseDialog_setFont__P4977.info = {"start":5994,"length":77,"line":190,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setFont","argumentNames":["this","font"]} - -function game_BaseDialog_setFont__P4977_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_BaseDialog_setFont__P4977, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function game_SplashDialog_setText__P2920(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2912_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - s.tmp_0 = game_SplashDialog_updateFont__P4980_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1445; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, JSON_Stringifier__C68736_VT)) failedCast(r0); + r0 = pxsim_pxtcore.typeOf(s.arg1); + s.t___83180 = (r0); + r0 = (s.t___83180 == "string"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = JSON_Stringifier_doString__P68737_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 51; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; + { step = 37; continue; } + { step = 36; continue; } case 1: + r0 = (s.t___83180 == "boolean"); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } + case 2: + r0 = (s.t___83180 == "number"); + case 3: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 4; continue; } + r0 = s.tmp_3; + { step = 5; continue; } + case 4: + r0 = (s.arg1 == null); + case 5: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_5 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 39); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 39: r0 = s.retval; - r0 = (s.arg0).fields["offset"] = (0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_String_.length(s.arg1); + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); + { step = 37; continue; } + { step = 35; continue; } + case 6: + r0 = pxsim_Array_.isArray(s.arg1); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 19; continue; } + s.arr___83204 = (s.arg1); + r0 = pxsim_Array__length(s.arr___83204); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = "[]"; + { step = 37; continue; } + { step = 18; continue; } + case 7: + s.r___83210 = ("["); + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.tmp_1.fields["currIndent"]; s.tmp_4 = r0; - s.tmp_6 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1446; s.pc = 2; return s.tmp_6; } - } - case 2: + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 40: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["indentStep"]; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 41); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 41: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + if ((s.r___83210) && (s.r___83210).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.r___83210); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83210) + ""; } + case 42: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.r___83210 = (r0); + case 8: + case 9: + s.i___83227 = (0); + case 10: + s.tmp_1 = r0 = s.i___83227; + r0 = pxsim_Array__length(s.arr___83204); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + if ((s.r___83210) && (s.r___83210).vtable) { + setupResume(s, 43); + pxsim_String__stringConv(s.r___83210); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83210) + ""; } + case 43: + r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); + r0 = s.arg0.fields["currIndent"]; s.tmp_7 = r0; - r0 = (s.tmp_3 - s.tmp_7); - s.tmp_2 = r0; - r0 = s.arg0.fields["unit"]; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 44: + r0 = s.retval; + s.tmp_6 = r0; + s.tmp_10 = JSON_Stringifier_go__P68738_mk(s); + s.tmp_10.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.arr___83204, s.i___83227); + s.tmp_10.arg1 = r0; + s.callLocIdx = 52; s.pc = 45; return s.tmp_10; + case 45: + r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 << 1); + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.tmp_9); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_9) + ""; } + case 46: + r0 = s.retval; s.tmp_8 = r0; - r0 = (s.tmp_2 + s.tmp_8); + r0 = pxsim_String__concat(s.tmp_6, s.tmp_8); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 47); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 47: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.r___83210 = (r0); + s.tmp_1 = r0 = s.i___83227; + r0 = pxsim_Array__length(s.arr___83204); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + if ((s.r___83210) && (s.r___83210).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.r___83210); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83210) + ""; } + case 48: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, ","); + s.r___83210 = (r0); + case 11: + case 12: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + if ((s.r___83210) && (s.r___83210).vtable) { + setupResume(s, 49); + pxsim_String__stringConv(s.r___83210); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83210) + ""; } + case 49: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxOffset"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (2); + r0 = pxsim_String__concat(s.tmp_1, "\n"); + s.r___83210 = (r0); + case 13: + case 14: + r0 = (s.i___83227 + 1); + s.i___83227 = (r0); + { step = 10; continue; } + case 15: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = helpers_stringSlice__P64338_mk(s); + r0 = s.arg0.fields["currIndent"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["indent"]; + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 53; s.pc = 50; return s.tmp_3; + case 50: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + case 16: + case 17: + if ((s.r___83210) && (s.r___83210).vtable) { + setupResume(s, 51); + pxsim_String__stringConv(s.r___83210); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83210) + ""; } + case 51: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 52: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_3, "]"); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 53); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 53: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___83210 = (r0); + r0 = s.r___83210; + { step = 37; continue; } + case 18: + { step = 34; continue; } + case 19: + r0 = pxsim_pxtrt.keysOf(s.arg1); + s.keys___83291 = (r0); + r0 = pxsim_Array__length(s.keys___83291); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = "{}"; + { step = 37; continue; } + case 20: + case 21: + s.r___83298 = ("{"); + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.tmp_1.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 54: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["indentStep"]; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 55); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 55: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 56: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.r___83298 = (r0); + case 22: + case 23: + s.i___83315 = (0); + case 24: + s.tmp_1 = r0 = s.i___83315; + r0 = pxsim_Array__length(s.keys___83291); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = pxsim_Array__getAt(s.keys___83291, s.i___83315); + s.k___83321 = (r0); + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 57); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 57: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 58: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = JSON_Stringifier_doString__P68737_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.k___83321; + s.callLocIdx = 54; s.pc = 59; return s.tmp_7; + case 59: + r0 = s.retval; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 60); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 60: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 61); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 61: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___83298 = (r0); + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 62); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 62: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, ": "); + s.r___83298 = (r0); + { step = 26; continue; } + case 25: + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 63); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 63: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ":"); + s.r___83298 = (r0); + case 26: + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 64); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 64: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = JSON_Stringifier_go__P68738_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___83321); + s.tmp_3.arg1 = r0; + s.callLocIdx = 55; s.pc = 65; return s.tmp_3; + case 65: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 66); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 66: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___83298 = (r0); + s.tmp_1 = r0 = s.i___83315; + r0 = pxsim_Array__length(s.keys___83291); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 67); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 67: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, ","); + s.r___83298 = (r0); + case 27: + case 28: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 29; continue; } + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 68); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 68: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "\n"); + s.r___83298 = (r0); + case 29: + case 30: + r0 = (s.i___83315 + 1); + s.i___83315 = (r0); + { step = 24; continue; } + case 31: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = helpers_stringSlice__P64338_mk(s); + r0 = s.arg0.fields["currIndent"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["indent"]; + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 56; s.pc = 69; return s.tmp_3; + case 69: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + case 32: + case 33: + if ((s.r___83298) && (s.r___83298).vtable) { + setupResume(s, 70); + pxsim_String__stringConv(s.r___83298); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83298) + ""; } + case 70: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 71); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 71: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_3, "}"); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 72); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 72: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___83298 = (r0); + r0 = s.r___83298; + { step = 37; continue; } + case 34: + case 35: + case 36: r0 = undefined; + case 37: return leave(s, r0) default: oops() } } } -game_SplashDialog_setText__P2920.info = {"start":9489,"length":249,"line":292,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","text"]} +JSON_Stringifier_go__P68738.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} -function game_SplashDialog_setText__P2920_mk(s) { +function JSON_Stringifier_go__P68738_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_setText__P2920, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_go__P68738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47499,6 +48573,15 @@ function game_SplashDialog_setText__P2920_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, + tmp_10: undefined, + t___83180: undefined, + arr___83204: undefined, + r___83210: undefined, + i___83227: undefined, + keys___83291: undefined, + r___83298: undefined, + i___83315: undefined, + k___83321: undefined, arg0: undefined, arg1: undefined, } } @@ -47507,7 +48590,7 @@ function game_SplashDialog_setText__P2920_mk(s) { -function game_SplashDialog_constructor__P2919(s) { +function JSON_Stringifier_doString__P68737(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47517,54 +48600,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___83407 = undefined; + s.i___83408 = undefined; + s.c___83414 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2912_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_constructor__P2895_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_1 = game_defaultSplashFrame__P4992_mk(s); - s.callLocIdx = 1441; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.callLocIdx = 1442; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, JSON_Stringifier__C68736_VT)) failedCast(r0); + s.r___83407 = ("\""); + s.i___83408 = (0); case 1: - r0 = s.retval; - r0 = (s.arg0).fields["maxOffset"] = (-1); - r0 = (s.arg0).fields["maxSubOffset"] = (-1); - r0 = (s.arg0).fields["textColor"] = (1); - r0 = undefined; + s.tmp_1 = r0 = s.i___83408; + r0 = pxsim_String_.length(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = pxsim_String_.charAt(s.arg1, s.i___83408); + s.c___83414 = (r0); + r0 = (s.c___83414 == "\n"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.c___83414 = ("\\n"); + { step = 13; continue; } + case 2: + r0 = (s.c___83414 == "\r"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.c___83414 = ("\\r"); + { step = 12; continue; } + case 3: + r0 = (s.c___83414 == "\t"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.c___83414 = ("\\t"); + { step = 11; continue; } + case 4: + r0 = (s.c___83414 == "\b"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.c___83414 = ("\\b"); + { step = 10; continue; } + case 5: + r0 = (s.c___83414 == "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.c___83414 = ("\\\\"); + { step = 9; continue; } + case 6: + r0 = (s.c___83414 == "\""); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.c___83414 = ("\\\""); + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + if ((s.r___83407) && (s.r___83407).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___83407); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83407) + ""; } + case 15: + r0 = s.retval; + s.tmp_0 = r0; + if ((s.c___83414) && (s.c___83414).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.c___83414); + checkResumeConsumed(); + return; + } else { s.retval = (s.c___83414) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___83407 = (r0); + r0 = (s.i___83408 + 1); + s.i___83408 = (r0); + { step = 1; continue; } + case 14: + if ((s.r___83407) && (s.r___83407).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___83407); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___83407) + ""; } + case 17: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\""); return leave(s, r0) default: oops() } } } -game_SplashDialog_constructor__P2919.info = {"start":9137,"length":210,"line":281,"column":8,"endLine":286,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height"]} +JSON_Stringifier_doString__P68737.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} -function game_SplashDialog_constructor__P2919_mk(s) { +function JSON_Stringifier_doString__P68737_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_constructor__P2919, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_doString__P68737, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + r___83407: undefined, + i___83408: undefined, + c___83414: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function game_BaseDialog_update__P2897(s) { +function info_playersWithScores__P66763(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47574,49 +48737,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P4971_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1391; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = game_BaseDialog__C2883_v2_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2883_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawCursorRow__P2900_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1392; s.pc = 3; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.players___69092); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayFilter__P64329_mk(s); + s.tmp_0.arg0 = globals.players___69092; + s.tmp_0.arg1 = info_playersWithScores_inline__P84692; + s.callLocIdx = 1100; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = undefined; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__mk(); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -game_BaseDialog_update__P2897.info = {"start":2171,"length":121,"line":74,"column":8,"endLine":78,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +info_playersWithScores__P66763.info = {"start":7381,"length":133,"line":238,"column":4,"endLine":240,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"playersWithScores","argumentNames":[]} -function game_BaseDialog_update__P2897_mk(s) { +function info_playersWithScores__P66763_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_update__P2897, depth: s.depth + 1, + parent: s, fn: info_playersWithScores__P66763, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, } } -function game_BaseDialog_drawTextCore__P2899(s) { +function info_playersWithScores_inline__P84692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47630,19 +48784,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = undefined; + s.tmp_0 = info_PlayerInfoImpl_hasScore__P66808_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1099; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawTextCore__P2899.info = {"start":2389,"length":65,"line":84,"column":8,"endLine":86,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +info_playersWithScores_inline__P84692.info = {"start":7473,"length":28,"line":239,"column":40,"endLine":239,"endColumn":68,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} -function game_BaseDialog_drawTextCore__P2899_mk(s) { +function info_playersWithScores_inline__P84692_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawTextCore__P2899, depth: s.depth + 1, + parent: s, fn: info_playersWithScores_inline__P84692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -47650,7 +48808,7 @@ function game_BaseDialog_drawTextCore__P2899_mk(s) { -function controller__setUserEventsEnabled__P2187(s) { +function info_multiplayerScoring__P66762(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47660,30 +48818,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - globals._userEventsEnabled___4803 = (s.arg0); - r0 = undefined; + s.pws___82856 = undefined; + s.p___82860 = undefined; + s.unnamed380___U2 = undefined; + s.unnamed381___U3 = undefined; + s.tmp_0 = info_playersWithScores__P66763_mk(s); + s.callLocIdx = 1097; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.pws___82856 = (r0); + s.p___82860 = (undefined); + s.unnamed380___U2 = (s.pws___82856); + s.unnamed381___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed381___U3; + r0 = pxsim_Array__length(s.unnamed380___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed380___U2, s.unnamed381___U3); + s.p___82860 = (r0); + r0 = s.p___82860.fields["_player"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = true; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.unnamed381___U3 + 1); + s.unnamed381___U3 = (r0); + { step = 1; continue; } + case 4: + s.unnamed380___U2 = (undefined); + r0 = false; + case 5: return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P2187.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +info_multiplayerScoring__P66762.info = {"start":7152,"length":223,"line":228,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"multiplayerScoring","argumentNames":[]} -function controller__setUserEventsEnabled__P2187_mk(s) { +function info_multiplayerScoring__P66762_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P2187, depth: s.depth + 1, + parent: s, fn: info_multiplayerScoring__P66762, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + pws___82856: undefined, + p___82860: undefined, + unnamed380___U2: undefined, + unnamed381___U3: undefined, } } -function tiles_getTilesByType__P2755(s) { +function game_GameOverConfig_setEffect__P67190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47693,82 +48889,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___21028 = undefined; - s.index___21038 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1310; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.scene___21028 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg3); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___21028.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.arg0.fields["effectSetByUser"]; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = pxsim_Array__mk(); - { step = 5; continue; } + { step = 9; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getImageType__P2732_mk(s); - r0 = s.scene___21028.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.callLocIdx = 1311; s.pc = 7; return s.tmp_5; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 5; continue; } + r0 = (s.arg0).fields["winEffect"] = (s.arg2); + { step = 6; continue; } + case 5: + r0 = (s.arg0).fields["loseEffect"] = (s.arg2); + case 6: + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 7; continue; } + r0 = (s.arg0).fields["effectSetByUser"] = (true); case 7: - r0 = s.retval; - s.index___21038 = (r0); - s.tmp_0 = tiles_TileMap_getTilesByType__P2734_mk(s); - r0 = s.scene___21028.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___21038; - s.callLocIdx = 1312; s.pc = 8; return s.tmp_0; case 8: - r0 = s.retval; - case 5: + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTilesByType__P2755.info = {"start":25968,"length":262,"line":780,"column":4,"endLine":785,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["tile"]} +game_GameOverConfig_setEffect__P67190.info = {"start":1899,"length":291,"line":62,"column":8,"endLine":67,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"setEffect","argumentNames":["this","win","effect","explicit"]} -function tiles_getTilesByType__P2755_mk(s) { +function game_GameOverConfig_setEffect__P67190_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTilesByType__P2755, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_setEffect__P67190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - scene___21028: undefined, - index___21038: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tiles_TileMap_getTilesByType__P2734(s) { +function game_splash__P67164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47778,134 +48963,151 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.output___21057 = undefined; - s.col___21059 = undefined; - s.row___21066 = undefined; - s.currTile___21073 = undefined; + s.dialog___84735 = undefined; + s.s___84748 = undefined; + s.pressed___84755 = undefined; + s.done___84756 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMap_isInvalidIndex__P4935_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1238; s.pc = 12; return s.tmp_1; - case 12: + s.tmp_0 = console_inspect__P64601_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1535; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + s.arg0 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + s.tmp_0 = console_inspect__P64601_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1536; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; { step = 2; continue; } case 1: - r0 = s.arg0.fields["_map"]; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.arg1; case 2: // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__mk(); - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__mk(); - s.output___21057 = (r0); - s.col___21059 = (0); - case 5: - s.tmp_1 = r0 = s.col___21059; - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_width"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + s.tmp_1 = r0; + s.arg1 = (s.tmp_1); + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1537; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = game_pushScene__P67202_mk(s); + s.callLocIdx = 1538; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1539; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.row___21066 = (0); - case 6: - s.tmp_1 = r0 = s.row___21066; - r0 = s.arg0.fields["_map"]; + r0 = s.tmp_0.fields["flags"]; s.tmp_3 = r0; - r0 = s.tmp_3.fields["_height"]; + r0 = (s.tmp_3 | 2); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + r0 = pxsim_pxtcore_mkClassInstance(game_SplashDialog__C67131_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_4 = tiles_TileMapData_getTile__P2703_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.col___21059; - s.tmp_4.arg2 = s.row___21066; - s.callLocIdx = 1242; s.pc = 13; return s.tmp_4; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 3; continue; } + r0 = 42; + { step = 4; continue; } + case 3: + r0 = 35; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = game_SplashDialog_constructor__P67138_mk(s); + s.tmp_2.arg0 = s.tmp_0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.tmp_1; + s.callLocIdx = 1540; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.dialog___84735 = (s.tmp_0); + s.tmp_0 = game_SplashDialog__C67131_v1_2_mk(s); + s.tmp_0.arg0 = s.dialog___84735; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_SplashDialog__C67131_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setText; + s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.currTile___21073 = (r0); - r0 = (s.currTile___21073 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2673_VT); - s.tmp_1 = r0; - s.tmp_2 = tiles_Location_constructor__P2674_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = s.col___21059; - s.tmp_2.arg2 = s.row___21066; - s.tmp_2.arg3 = s.arg0; - s.callLocIdx = 1243; s.pc = 14; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 5; continue; } + s.tmp_0 = game_SplashDialog_setSubtext__P67140_mk(s); + s.tmp_0.arg0 = s.dialog___84735; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1541; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.output___21057, s.tmp_1); - case 7: - case 8: - r0 = (s.row___21066 + 1); - s.row___21066 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.col___21059 + 1); - s.col___21059 = (r0); - { step = 5; continue; } - case 10: - r0 = s.output___21057; - case 11: + case 5: + case 6: + s.tmp_0 = sprites_create__P66475_mk(s); + r0 = s.dialog___84735.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 1542; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.s___84748 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.pressed___84755 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pressed___84755, true); + r0 = pxsim_pxtrt.mklocRef(); + s.done___84756 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.done___84756, false); + r0 = pxsim_pxtcore_mkAction(3, game_splash_inline__P84758); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___84735); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___84755); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___84756); + s.tmp_1 = game_onUpdate__P67222_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1545; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, game_splash_inline__P84781); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___84756); + s.tmp_1 = pauseUntil__P64586_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1546; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1547; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTilesByType__P2734.info = {"start":12200,"length":561,"line":413,"column":8,"endLine":426,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["this","index"]} +game_splash__P67164.info = {"start":30591,"length":1082,"line":865,"column":4,"endLine":896,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"splash","argumentNames":["title","subtitle"]} -function tiles_TileMap_getTilesByType__P2734_mk(s) { +function game_splash__P67164_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTilesByType__P2734, depth: s.depth + 1, + parent: s, fn: game_splash__P67164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - output___21057: undefined, - col___21059: undefined, - row___21066: undefined, - currTile___21073: undefined, + dialog___84735: undefined, + s___84748: undefined, + pressed___84755: undefined, + done___84756: undefined, arg0: undefined, arg1: undefined, } } @@ -47914,7 +49116,7 @@ function tiles_TileMap_getTilesByType__P2734_mk(s) { -function info_setScore__P2552(s) { +function game_splash_inline__P84758(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47924,37 +49126,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = info_PlayerInfoImpl_setScore__P2587_mk(s); - r0 = globals.player1___2641.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1117; s.pc = 1; return s.tmp_0; + s.currentState___84761 = undefined; + s.tmp_0 = game_BaseDialog__C67102_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C67102_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = controller_Button__C66389_v0_1_mk(s); + s.tmp_0.arg0 = globals.A___66313; + if (!checkSubtype(s.tmp_0.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; + s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.currentState___84761 = (r0); + s.tmp_0 = r0 = s.currentState___84761; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], true); + s.tmp_0 = scene_setBackgroundImage__P67084_mk(s); + s.tmp_0.arg0 = null; + s.callLocIdx = 1543; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = game_popScene__P67203_mk(s); + s.callLocIdx = 1544; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.caps[2], true); + { step = 8; continue; } + case 3: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = pxsim_numops_toBoolDecr(s.currentState___84761); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 5: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], false); + case 6: + case 7: + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -info_setScore__P2552.info = {"start":9938,"length":85,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"setScore","argumentNames":["value"]} +game_splash_inline__P84758.info = {"start":31175,"length":410,"line":880,"column":22,"endLine":892,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function info_setScore__P2552_mk(s) { +function game_splash_inline__P84758_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_setScore__P2552, depth: s.depth + 1, + parent: s, fn: game_splash_inline__P84758, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + currentState___84761: undefined, } } -function info_PlayerInfoImpl_setScore__P2587(s) { +function game_splash_inline__P84781(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47964,172 +49222,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___20651 = undefined; - s.oldScore___20663 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2584_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1137; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.state___20651 = (r0); - r0 = globals.infoState___4872.fields["visibilityFlag"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 64); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_4 = info_updateFlag__P4922_mk(s); - s.tmp_4.arg0 = 2; - s.tmp_4.arg1 = true; - s.callLocIdx = 1138; s.pc = 16; return s.tmp_4; - case 16: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = info_PlayerInfoImpl_score__P2586_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1139; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - r0 = s.state___20651.fields["score"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.oldScore___20663 = (s.tmp_1); - s.tmp_0 = r0 = s.state___20651; - r0 = (s.arg1 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["score"] = (s.tmp_1); - r0 = s.state___20651.fields["scoreReachedHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 5: - r0 = s.state___20651.fields["scoreReachedHandler"]; - r0 = r0.fields["score"]; - s.tmp_2 = r0; - r0 = (s.oldScore___20663 < s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 6; continue; } - r0 = s.tmp_1; - { step = 7; continue; } - case 6: - r0 = s.state___20651.fields["score"]; - s.tmp_3 = r0; - r0 = s.state___20651.fields["scoreReachedHandler"]; - r0 = r0.fields["score"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 >= s.tmp_4); - case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 8; continue; } - r0 = s.tmp_5; - { step = 11; continue; } - case 8: - r0 = s.state___20651.fields["scoreReachedHandler"]; - r0 = r0.fields["score"]; - s.tmp_7 = r0; - r0 = (s.oldScore___20663 > s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 9; continue; } - r0 = s.tmp_6; - { step = 10; continue; } - case 9: - r0 = s.state___20651.fields["score"]; - s.tmp_8 = r0; - r0 = s.state___20651.fields["scoreReachedHandler"]; - r0 = r0.fields["score"]; - s.tmp_9 = r0; - r0 = (s.tmp_8 <= s.tmp_9); - case 10: - // jmp value (already in r0) - s.tmp_10 = r0; - r0 = s.tmp_10; - case 11: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = s.tmp_11; - case 12: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_12); - if (!r0) { step = 13; continue; } - s.tmp_13 = if_handler_1_mk(s); - r0 = s.state___20651.fields["scoreReachedHandler"]; - s.tmp_13.arg0 = r0; - if (!s.tmp_13.arg0.vtable.iface) { - setupLambda(s.tmp_13, pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "handler"), 1); - s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; - } else { - s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["handler"]; - if (s.tmp_13.fn == null) { setupLambda(s.tmp_13, s.tmp_13.arg0.fields["handler"], 1); s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; } - else if (s.tmp_13.fn.isGetter) { s.tmp_13.stage2Call = true; s.callLocIdx = 1140; s.pc = 18; return s.tmp_13;; } - else { s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; } - } - case 18: - r0 = s.retval; - case 13: - case 14: - r0 = undefined; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_setScore__P2587.info = {"start":21738,"length":723,"line":702,"column":8,"endLine":719,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"setScore","argumentNames":["this","value"]} +game_splash_inline__P84781.info = {"start":31607,"length":10,"line":894,"column":19,"endLine":894,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function info_PlayerInfoImpl_setScore__P2587_mk(s) { +function game_splash_inline__P84781_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_setScore__P2587, depth: s.depth + 1, + parent: s, fn: game_splash_inline__P84781, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - state___20651: undefined, - oldScore___20663: undefined, - arg0: undefined, - arg1: undefined, } } -function info_updateFlag__P4922(s) { +function game_SplashDialog_setSubtext__P67140(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48144,47 +49254,65 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = info_initHUD__P4918_mk(s); - s.callLocIdx = 1118; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.infoState___4872; - r0 = s.tmp_0.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C67131_VT)) failedCast(r0); + r0 = (s.arg0).fields["subtext"] = (s.arg1); + s.tmp_0 = game_SplashDialog_updateFont__P69199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1447; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = globals.infoState___4872; - r0 = globals.infoState___4872.fields["visibilityFlag"]; + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_String_.length(s.arg1); s.tmp_4 = r0; - r0 = (~ s.tmp_4); + s.tmp_6 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1448; s.pc = 2; return s.tmp_6; } + } + case 2: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); s.tmp_3 = r0; - r0 = (s.tmp_3 | s.arg0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_7 = r0; + r0 = (s.tmp_3 - s.tmp_7); s.tmp_2 = r0; - r0 = (~ s.tmp_2); + r0 = s.arg0.fields["unit"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 << 1); + s.tmp_8 = r0; + r0 = (s.tmp_2 + s.tmp_8); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); - case 2: + r0 = (s.tmp_0).fields["maxSubOffset"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -info_updateFlag__P4922.info = {"start":15569,"length":204,"line":518,"column":4,"endLine":522,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"updateFlag","argumentNames":["flag","on"]} +game_SplashDialog_setSubtext__P67140.info = {"start":9748,"length":200,"line":300,"column":8,"endLine":304,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setSubtext","argumentNames":["this","sub"]} -function info_updateFlag__P4922_mk(s) { +function game_SplashDialog_setSubtext__P67140_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_updateFlag__P4922, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_setSubtext__P67140, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, arg1: undefined, } } @@ -48193,7 +49321,7 @@ function info_updateFlag__P4922_mk(s) { -function hud_createHUD__P7120(s) { +function game_SplashDialog_updateFont__P69199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48203,86 +49331,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___21108 = undefined; - s.text___21109 = undefined; - s.top___21110 = undefined; - s.halfWidth___21111 = undefined; - s.bgColor___21112 = undefined; - s.tmp_0 = Sprite_top__P2384_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = 12; - s.callLocIdx = 2228; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C67131_VT)) failedCast(r0); + r0 = s.arg0.fields["text"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = Sprite_left__P2380_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = 4; - s.callLocIdx = 2229; s.pc = 2; return s.tmp_0; + r0 = pxsim_String_.mkEmpty(); case 2: - r0 = s.retval; - s.tmp_0 = StatusBarSprite_setColor__P4336_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = globals.healthyColor___7102; - s.tmp_0.arg2 = globals.burnedColor___7100; - s.tmp_0.arg3 = undefined; - s.callLocIdx = 2230; s.pc = 3; return s.tmp_0; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["subtext"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.tmp_2; + { step = 4; continue; } case 3: - r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = globals.forestHealthBar___7117; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = true; - s.callLocIdx = 2231; s.pc = 4; return s.tmp_0; + r0 = pxsim_String_.mkEmpty(); case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_4 = game_BaseDialog_setFont__P69196_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_5 = image_getFontForText__P66177_mk(s); + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 7: r0 = s.retval; - r0 = pxsim_pxtrt.mklocRef(); - s.font___21108 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.text___21109 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.top___21110 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.halfWidth___21111 = (r0); - s.bgColor___21112 = (12); - r0 = pxsim_pxtcore_mkAction(5, hud_createHUD_inline__P21115); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.font___21108); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bgColor___21112); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.text___21109); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.top___21110); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.halfWidth___21111); - s.tmp_1 = scene_createRenderable__P2785_mk(s); - s.tmp_1.arg0 = 50; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 2253; s.pc = 5; return s.tmp_1; + s.tmp_6 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 8: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + s.callLocIdx = 1443; s.pc = 6; return s.tmp_5; + case 6: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.callLocIdx = 1444; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -hud_createHUD__P7120.info = {"start":472,"length":1577,"line":18,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"createHUD","argumentNames":[]} +game_SplashDialog_updateFont__P69199.info = {"start":9357,"length":122,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"updateFont","argumentNames":["this"]} -function hud_createHUD__P7120_mk(s) { +function game_SplashDialog_updateFont__P69199_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_createHUD__P7120, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_updateFont__P69199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - font___21108: undefined, - text___21109: undefined, - top___21110: undefined, - halfWidth___21111: undefined, - bgColor___21112: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + arg0: undefined, } } -function hud_createHUD_inline__P21115(s) { +function game_SplashDialog_setText__P67139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48294,117 +49427,23 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.drawForestHealth___7104); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = hud_getFontForText__P7122_mk(s); - s.tmp_2.arg0 = globals.forestHealthText___7109; - s.callLocIdx = 2232; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = pxsim_String_.length(globals.forestHealthText___7109); - s.tmp_2 = r0; - s.tmp_4 = if_charWidth_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 2233; s.pc = 9; return s.tmp_4; } - } - case 9: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 8); - s.tmp_0.arg3 = r0; - s.tmp_6 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 2234; s.pc = 10; return s.tmp_6; } - } - case 10: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 + 4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.caps[1]; - s.callLocIdx = 2235; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C67131_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + s.tmp_0 = game_SplashDialog_updateFont__P69199_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.forestHealthText___7109; - s.tmp_0.arg2 = 4; - s.tmp_0.arg3 = 2; - s.tmp_0.arg4 = 1; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg5 = r0; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 2236; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; + s.callLocIdx = 1445; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(globals.drawFireNumber___7106); - if (!r0) { step = 3; continue; } - s.tmp_0 = r0 = s.caps[2]; - if ((globals.fireNumberText___7110) && (globals.fireNumberText___7110).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(globals.fireNumberText___7110); - checkResumeConsumed(); - return; - } else { s.retval = (globals.fireNumberText___7110) + ""; } - case 12: r0 = s.retval; - s.tmp_2 = r0; - if ((globals.fireNumber___7112) && (globals.fireNumber___7112).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(globals.fireNumber___7112); - checkResumeConsumed(); - return; - } else { s.retval = (globals.fireNumber___7112) + ""; } - case 13: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = hud_getFontForText__P7122_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2.arg0 = r0; - s.callLocIdx = 2237; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + r0 = (s.arg0).fields["offset"] = (0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_String_.length(s.arg1); s.tmp_4 = r0; - r0 = pxsim_String_.length(s.tmp_4); - s.tmp_3 = r0; s.tmp_6 = if_charWidth_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = s.arg0.fields["font"]; s.tmp_6.arg0 = r0; if (!s.tmp_6.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); @@ -48412,251 +49451,35 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 2238; s.pc = 16; return s.tmp_6; } + else { s.callLocIdx = 1446; s.pc = 2; return s.tmp_6; } } - case 16: + case 2: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); - s.tmp_2 = r0; - r0 = (156 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 4); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 80; - s.tmp_8 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_8.arg0 = r0; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 2239; s.pc = 17; return s.tmp_8; } - } - case 17: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 + 4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.caps[1]; - s.callLocIdx = 2240; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_3 = r0; - r0 = pxsim_String_.length(s.tmp_3); - s.tmp_2 = r0; - s.tmp_5 = if_charWidth_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 2241; s.pc = 19; return s.tmp_5; } - } - case 19: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_2 * s.tmp_4); - s.tmp_1 = r0; - r0 = (156 - s.tmp_1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 2; - s.tmp_0.arg4 = 1; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg5 = r0; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 2242; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.drawFireDanger___7108); - if (!r0) { step = 5; continue; } - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = hud_getFontForText__P7122_mk(s); - s.tmp_2.arg0 = globals.fireDangerText___7113; - s.callLocIdx = 2243; s.pc = 20; return s.tmp_2; - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[3]; - s.tmp_4 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 2244; s.pc = 21; return s.tmp_4; } - } - case 21: - r0 = s.retval; + r0 = (s.tmp_4 * s.tmp_5); s.tmp_3 = r0; - r0 = (120 - s.tmp_3); + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_7 = r0; + r0 = (s.tmp_3 - s.tmp_7); s.tmp_2 = r0; - r0 = (s.tmp_2 - 4); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[4]; - r0 = pxsim_String_.length(globals.fireDangerText___7113); - s.tmp_5 = r0; - s.tmp_7 = if_charWidth_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charWidth"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charWidth"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charWidth"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 2245; s.pc = 22; return s.tmp_7; } - } - case 22: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 2); - s.tmp_3 = r0; - s.tmp_9 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_9.arg0 = r0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charHeight"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charHeight"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charHeight"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 2246; s.pc = 23; return s.tmp_9; } - } - case 23: - r0 = s.retval; + r0 = s.arg0.fields["unit"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 << 1); s.tmp_8 = r0; - r0 = (s.tmp_3 + s.tmp_8); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 160; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_1 = r0; - r0 = (120 - s.tmp_1); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.caps[1]; - s.callLocIdx = 2247; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.fireDangerText___7113; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_1 = r0; - r0 = (80 - s.tmp_1); - s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = 1; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg5 = r0; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 2248; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = (80 + s.tmp_2); + r0 = (s.tmp_2 + s.tmp_8); s.tmp_1 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 2249; s.pc = 27; return s.tmp_4; } - } - case 27: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_5 = r0; - r0 = (s.tmp_5 + 1); - s.tmp_0.arg2 = r0; - s.tmp_7 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 2250; s.pc = 28; return s.tmp_7; } - } - case 28: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.tmp_0.arg3 = r0; - s.tmp_9 = if_charHeight_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_9.arg0 = r0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charHeight"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charHeight"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charHeight"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 2251; s.pc = 29; return s.tmp_9; } - } - case 29: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 + 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = globals.fireDangerColor___7115; - s.callLocIdx = 2252; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - case 5: - case 6: + r0 = (s.tmp_0).fields["maxOffset"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -hud_createHUD_inline__P21115.info = {"start":858,"length":1183,"line":31,"column":35,"endLine":59,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"inline","argumentNames":["screen"]} +game_SplashDialog_setText__P67139.info = {"start":9489,"length":249,"line":292,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","text"]} -function hud_createHUD_inline__P21115_mk(s) { +function game_SplashDialog_setText__P67139_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_createHUD_inline__P21115, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_setText__P67139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48669,13 +49492,14 @@ function hud_createHUD_inline__P21115_mk(s) { tmp_8: undefined, tmp_9: undefined, arg0: undefined, + arg1: undefined, } } -function hud_getFontForText__P7122(s) { +function game_SplashDialog_constructor__P67138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48685,47 +49509,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.f___21239 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = image_getFontForText__P1958_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C67131_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_constructor__P67114_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2261; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_1 = game_defaultSplashFrame__P69211_mk(s); + s.callLocIdx = 1441; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.f___21239 = (r0); - r0 = (s.f___21239 === globals.font8___1956); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = globals.font5___1961; - { step = 3; continue; } + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.callLocIdx = 1442; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.f___21239; - case 3: + r0 = s.retval; + r0 = (s.arg0).fields["maxOffset"] = (-1); + r0 = (s.arg0).fields["maxSubOffset"] = (-1); + r0 = (s.arg0).fields["textColor"] = (1); + r0 = undefined; return leave(s, r0) default: oops() } } } -hud_getFontForText__P7122.info = {"start":4715,"length":160,"line":168,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"getFontForText","argumentNames":["text"]} +game_SplashDialog_constructor__P67138.info = {"start":9137,"length":210,"line":281,"column":8,"endLine":286,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height"]} -function hud_getFontForText__P7122_mk(s) { +function game_SplashDialog_constructor__P67138_mk(s) { checkStack(s.depth); return { - parent: s, fn: hud_getFontForText__P7122, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_constructor__P67138, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - f___21239: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_top__P2384(s) { +function tiles_getTilesByType__P66974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48735,92 +49566,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___11634 = undefined; + s.scene___85249 = undefined; + s.index___85259 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 634; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1310; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___11634 = (r0); - s.tmp_0 = PhysicsEngine__C2491_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___11634; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = 0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.scene___85249 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = s.arg0.fields["_y"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___85249.fields["tileMap"]; s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -Sprite_top__P2384.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} - -function Sprite_top__P2384_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_top__P2384, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - physics___11634: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_top__P2383(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__mk(); + { step = 5; continue; } + case 3: + case 4: + s.tmp_5 = tiles_TileMap_getImageType__P66951_mk(s); + r0 = s.scene___85249.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.callLocIdx = 1311; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.index___85259 = (r0); + s.tmp_0 = tiles_TileMap_getTilesByType__P66953_mk(s); + r0 = s.scene___85249.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___85259; + s.callLocIdx = 1312; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 5: + return leave(s, r0) default: oops() } } } -Sprite_top__P2383.info = {"start":11544,"length":53,"line":416,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P2383.isGetter = true; +tiles_getTilesByType__P66974.info = {"start":25968,"length":262,"line":780,"column":4,"endLine":785,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["tile"]} -function Sprite_top__P2383_mk(s) { +function tiles_getTilesByType__P66974_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P2383, depth: s.depth + 1, + parent: s, fn: tiles_getTilesByType__P66974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___85249: undefined, + index___85259: undefined, arg0: undefined, } } @@ -48828,7 +49641,7 @@ function Sprite_top__P2383_mk(s) { -function Sprite_left__P2380(s) { +function tiles_TileMap_getTilesByType__P66953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48838,53 +49651,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___11612 = undefined; + s.output___85278 = undefined; + s.col___85280 = undefined; + s.row___85287 = undefined; + s.currTile___85294 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 626; s.pc = 1; return s.tmp_0; - case 1: + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMap_isInvalidIndex__P69154_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1238; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___11612 = (r0); - s.tmp_0 = PhysicsEngine__C2491_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___11612; - s.tmp_0.arg1 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["_x"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_map"]; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__mk(); + { step = 11; continue; } + case 3: + case 4: + r0 = pxsim_Array__mk(); + s.output___85278 = (r0); + s.col___85280 = (0); + case 5: + s.tmp_1 = r0 = s.col___85280; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.row___85287 = (0); + case 6: + s.tmp_1 = r0 = s.row___85287; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_height"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_4 = tiles_TileMapData_getTile__P66922_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.col___85280; + s.tmp_4.arg2 = s.row___85287; + s.callLocIdx = 1242; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; - r0 = undefined; + s.currTile___85294 = (r0); + r0 = (s.currTile___85294 === s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C66892_VT); + s.tmp_1 = r0; + s.tmp_2 = tiles_Location_constructor__P66893_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = s.col___85280; + s.tmp_2.arg2 = s.row___85287; + s.tmp_2.arg3 = s.arg0; + s.callLocIdx = 1243; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.output___85278, s.tmp_1); + case 7: + case 8: + r0 = (s.row___85287 + 1); + s.row___85287 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.col___85280 + 1); + s.col___85280 = (r0); + { step = 5; continue; } + case 10: + r0 = s.output___85278; + case 11: return leave(s, r0) default: oops() } } } -Sprite_left__P2380.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +tiles_TileMap_getTilesByType__P66953.info = {"start":12200,"length":561,"line":413,"column":8,"endLine":426,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["this","index"]} -function Sprite_left__P2380_mk(s) { +function tiles_TileMap_getTilesByType__P66953_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2380, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTilesByType__P66953, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - physics___11612: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + output___85278: undefined, + col___85280: undefined, + row___85287: undefined, + currTile___85294: undefined, arg0: undefined, arg1: undefined, } } @@ -48893,7 +49787,7 @@ function Sprite_left__P2380_mk(s) { -function Sprite_left__P2379(s) { +function info_setScore__P66771(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48907,21 +49801,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = info_PlayerInfoImpl_setScore__P66806_mk(s); + r0 = globals.player1___66860.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1117; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_left__P2379.info = {"start":10709,"length":53,"line":386,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P2379.isGetter = true; +info_setScore__P66771.info = {"start":9938,"length":85,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"setScore","argumentNames":["value"]} -function Sprite_left__P2379_mk(s) { +function info_setScore__P66771_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2379, depth: s.depth + 1, + parent: s, fn: info_setScore__P66771, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -48931,7 +49827,7 @@ function Sprite_left__P2379_mk(s) { -function statusbars_create__P4384(s) { +function info_PlayerInfoImpl_setScore__P66806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48941,215 +49837,172 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.onColor___21251 = undefined; - s.offColor___21252 = undefined; - s.drainColor___21253 = undefined; - s.sb___21266 = undefined; - s.output___21275 = undefined; - s.cs___21282 = undefined; - s.handler___21325 = undefined; + s.state___84872 = undefined; + s.oldScore___84884 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.onColor___21251 = (7); - s.offColor___21252 = (2); - s.drainColor___21253 = (3); - r0 = (s.arg2 === globals.Energy___4325); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P66803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1137; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.state___84872 = (r0); + r0 = globals.infoState___69091.fields["visibilityFlag"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 64); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.onColor___21251 = (5); - s.offColor___21252 = (11); - s.drainColor___21253 = (4); - { step = 4; continue; } + s.tmp_4 = info_updateFlag__P69141_mk(s); + s.tmp_4.arg0 = 2; + s.tmp_4.arg1 = true; + s.callLocIdx = 1138; s.pc = 16; return s.tmp_4; + case 16: + r0 = s.retval; case 1: - r0 = (s.arg2 === globals.Magic___4326); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.onColor___21251 = (8); - s.offColor___21252 = (11); - s.drainColor___21253 = (9); case 2: - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(statusbars_StatusBar__C4345_VT); - s.tmp_0 = r0; - s.tmp_1 = statusbars_StatusBar_constructor__P4356_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.onColor___21251; - s.tmp_1.arg4 = s.offColor___21252; - s.tmp_1.arg5 = s.drainColor___21253; - s.tmp_1.arg6 = 100; - s.tmp_1.arg7 = s.arg2; - s.callLocIdx = 2197; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.sb___21266 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(StatusBarSprite__C4328_VT); - s.tmp_0 = r0; - s.tmp_1 = StatusBarSprite_constructor__P4329_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.sb___21266; - s.callLocIdx = 2198; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.output___21275 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P2388_mk(s); - s.tmp_0.arg0 = s.output___21275; - s.tmp_0.arg1 = globals.StatusBar___4320; - s.callLocIdx = 2199; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2200; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.cs___21282 = (r0); - s.tmp_0 = PhysicsEngine__C2491_v0_2_mk(s); - r0 = s.cs___21282.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.output___21275; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2491_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P21293); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); - r0 = pxsim_pxtcore_mkAction(1, statusbars_create_inline__P21299); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.output___21275); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.cs___21282.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 2201; s.pc = 17; return s.tmp_3; + s.tmp_0 = info_PlayerInfoImpl_score__P66805_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1139; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 2203; s.pc = 16; return s.tmp_2; - case 16: - r0 = s.retval; - r0 = (s.sb___21266).fields["sprite"] = (s.output___21275); - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = s.output___21275; - s.tmp_0.arg1 = 512; - s.tmp_0.arg2 = true; - s.callLocIdx = 2204; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P2399_mk(s); - s.tmp_0.arg0 = s.output___21275; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 2205; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_1 = Sprite_data__P2356_mk(s); - s.tmp_1.arg0 = s.output___21275; - s.callLocIdx = 2206; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, globals.STATUS_BAR_DATA_KEY___7058, s.sb___21266); - s.tmp_0 = if_z_2_mk(s); - s.tmp_0.arg0 = s.output___21275; - s.tmp_0.arg1 = 95; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 2207; s.pc = 21; return s.tmp_0; } - } - case 21: - r0 = s.retval; - s.tmp_0 = statusbars_init__P7091_mk(s); - s.tmp_0.arg0 = s.output___21275; - s.callLocIdx = 2208; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - s.tmp_1 = statusbars_getPostProcessHandlers__P7097_mk(s); - s.callLocIdx = 2209; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; + r0 = s.state___84872.fields["score"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 3; continue; } r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = pxsim_Array__mk(); - case 6: + { step = 4; continue; } + case 3: + r0 = 0; + case 4: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.arg2); - s.handler___21325 = (r0); - s.tmp_0 = r0 = s.output___21275; + s.tmp_1 = r0; + s.oldScore___84884 = (s.tmp_1); + s.tmp_0 = r0 = s.state___84872; + r0 = (s.arg1 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["score"] = (s.tmp_1); + r0 = s.state___84872.fields["scoreReachedHandler"]; + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } + if (r0) { step = 5; continue; } r0 = s.tmp_0; - { step = 8; continue; } + { step = 12; continue; } + case 5: + r0 = s.state___84872.fields["scoreReachedHandler"]; + r0 = r0.fields["score"]; + s.tmp_2 = r0; + r0 = (s.oldScore___84884 < s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 6; continue; } + r0 = s.tmp_1; + { step = 7; continue; } + case 6: + r0 = s.state___84872.fields["score"]; + s.tmp_3 = r0; + r0 = s.state___84872.fields["scoreReachedHandler"]; + r0 = r0.fields["score"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 >= s.tmp_4); case 7: - r0 = s.handler___21325; - case 8: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - s.tmp_2 = lambda_3_mk(s); - s.tmp_2.argL = s.handler___21325; - s.tmp_2.arg0 = s.output___21275; - r0 = s.output___21275.fields["_image"]; - s.tmp_2.arg1 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 2211; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (!r0) { step = 8; continue; } + r0 = s.tmp_5; + { step = 11; continue; } + case 8: + r0 = s.state___84872.fields["scoreReachedHandler"]; + r0 = r0.fields["score"]; + s.tmp_7 = r0; + r0 = (s.oldScore___84884 > s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 9; continue; } + r0 = s.tmp_6; + { step = 10; continue; } case 9: + r0 = s.state___84872.fields["score"]; + s.tmp_8 = r0; + r0 = s.state___84872.fields["scoreReachedHandler"]; + r0 = r0.fields["score"]; + s.tmp_9 = r0; + r0 = (s.tmp_8 <= s.tmp_9); case 10: - r0 = s.output___21275; + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = s.tmp_10; + case 11: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + case 12: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_12); + if (!r0) { step = 13; continue; } + s.tmp_13 = if_handler_1_mk(s); + r0 = s.state___84872.fields["scoreReachedHandler"]; + s.tmp_13.arg0 = r0; + if (!s.tmp_13.arg0.vtable.iface) { + setupLambda(s.tmp_13, pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "handler"), 1); + s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; + } else { + s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["handler"]; + if (s.tmp_13.fn == null) { setupLambda(s.tmp_13, s.tmp_13.arg0.fields["handler"], 1); s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; } + else if (s.tmp_13.fn.isGetter) { s.tmp_13.stage2Call = true; s.callLocIdx = 1140; s.pc = 18; return s.tmp_13;; } + else { s.callLocIdx = 1140; s.pc = 18; return s.tmp_13; } + } + case 18: + r0 = s.retval; + case 13: + case 14: + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_create__P4384.info = {"start":26256,"length":1475,"line":747,"column":4,"endLine":801,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":["width","height","kind"]} +info_PlayerInfoImpl_setScore__P66806.info = {"start":21738,"length":723,"line":702,"column":8,"endLine":719,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"setScore","argumentNames":["this","value"]} -function statusbars_create__P4384_mk(s) { +function info_PlayerInfoImpl_setScore__P66806_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_create__P4384, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_setScore__P66806, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - onColor___21251: undefined, - offColor___21252: undefined, - drainColor___21253: undefined, - sb___21266: undefined, - output___21275: undefined, - cs___21282: undefined, - handler___21325: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + state___84872: undefined, + oldScore___84884: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function forEach_inline__P21293(s) { +function info_updateFlag__P69141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49161,30 +50014,59 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + s.tmp_0 = info_initHUD__P69137_mk(s); + s.callLocIdx = 1118; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.infoState___69091; + r0 = s.tmp_0.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); + { step = 2; continue; } + case 1: + s.tmp_0 = r0 = globals.infoState___69091; + r0 = globals.infoState___69091.fields["visibilityFlag"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | s.arg0); + s.tmp_2 = r0; + r0 = (~ s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P21293.info = {"start":27245,"length":19,"line":784,"column":20,"endLine":784,"endColumn":39,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +info_updateFlag__P69141.info = {"start":15569,"length":204,"line":518,"column":4,"endLine":522,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"updateFlag","argumentNames":["flag","on"]} -function forEach_inline__P21293_mk(s) { +function info_updateFlag__P69141_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P21293, depth: s.depth + 1, + parent: s, fn: info_updateFlag__P69141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_create_inline__P21299(s) { +function hud_createHUD__P71339(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49194,44 +50076,86 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 2202; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; } - } + s.font___85329 = undefined; + s.text___85330 = undefined; + s.top___85331 = undefined; + s.halfWidth___85332 = undefined; + s.bgColor___85333 = undefined; + s.tmp_0 = Sprite_top__P66603_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = 12; + s.callLocIdx = 2228; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = Sprite_left__P66599_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = 4; + s.callLocIdx = 2229; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = StatusBarSprite_setColor__P68555_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = globals.healthyColor___71321; + s.tmp_0.arg2 = globals.burnedColor___71319; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 2230; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = globals.forestHealthBar___71336; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = true; + s.callLocIdx = 2231; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_pxtrt.mklocRef(); + s.font___85329 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.text___85330 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.top___85331 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.halfWidth___85332 = (r0); + s.bgColor___85333 = (12); + r0 = pxsim_pxtcore_mkAction(5, hud_createHUD_inline__P85336); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.font___85329); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bgColor___85333); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.text___85330); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.top___85331); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.halfWidth___85332); + s.tmp_1 = scene_createRenderable__P67004_mk(s); + s.tmp_1.arg0 = 50; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 2253; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_create_inline__P21299.info = {"start":27287,"length":22,"line":785,"column":21,"endLine":785,"endColumn":43,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +hud_createHUD__P71339.info = {"start":472,"length":1577,"line":18,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"createHUD","argumentNames":[]} -function statusbars_create_inline__P21299_mk(s) { +function hud_createHUD__P71339_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_create_inline__P21299, depth: s.depth + 1, + parent: s, fn: hud_createHUD__P71339, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + font___85329: undefined, + text___85330: undefined, + top___85331: undefined, + halfWidth___85332: undefined, + bgColor___85333: undefined, } } -function statusbars_init__P7091(s) { +function hud_createHUD_inline__P85336(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49241,450 +50165,371 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.managedSprites___21342 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = statusbars_getManagedSprites__P7094_mk(s); - s.callLocIdx = 2212; s.pc = 3; return s.tmp_0; - case 3: + r0 = pxsim_numops_toBoolDecr(globals.drawForestHealth___71323); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = hud_getFontForText__P71341_mk(s); + s.tmp_2.arg0 = globals.forestHealthText___71328; + s.callLocIdx = 2232; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.managedSprites___21342 = (r0); - r0 = pxsim_numops_toBoolDecr(s.managedSprites___21342); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = pxsim_String_.length(globals.forestHealthText___71328); s.tmp_2 = r0; - s.managedSprites___21342 = (r0); - s.tmp_5 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2213; s.pc = 4; return s.tmp_5; - case 4: + s.tmp_4 = if_charWidth_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 2233; s.pc = 9; return s.tmp_4; } + } + case 9: r0 = s.retval; - s.tmp_4 = r0; - r0 = s.tmp_4.fields["_data"]; s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.MANAGED_SPRITES_KEY___7062, s.tmp_2); - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_1 = game_eventContext__P2982_mk(s); - s.callLocIdx = 2215; s.pc = 6; return s.tmp_1; - case 6: + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 8); + s.tmp_0.arg3 = r0; + s.tmp_6 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 2234; s.pc = 10; return s.tmp_6; } + } + case 10: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 25; - s.tmp_0.arg2 = statusbars_init_inline__P21357; - s.callLocIdx = 2220; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_5 = r0; + r0 = (s.tmp_5 + 4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.caps[1]; + s.callLocIdx = 2235; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.forestHealthText___71328; + s.tmp_0.arg2 = 4; + s.tmp_0.arg3 = 2; + s.tmp_0.arg4 = 1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 2236; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; case 1: case 2: - r0 = pxsim_Array__push(s.managedSprites___21342, s.arg0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -statusbars_init__P7091.info = {"start":31570,"length":1174,"line":898,"column":4,"endLine":927,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"init","argumentNames":["s"]} - -function statusbars_init__P7091_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: statusbars_init__P7091, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - managedSprites___21342: undefined, - arg0: undefined, -} } - - - - - -function statusbars_init_inline__P21357(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.managed___21358 = undefined; - s.i___21361 = undefined; - s.spr___21368 = undefined; - s.sb___21372 = undefined; - s.spriteToFollow___21379 = undefined; - s.tmp_0 = statusbars_getManagedSprites__P7094_mk(s); - s.callLocIdx = 2216; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.managed___21358 = (r0); - r0 = pxsim_Array__length(s.managed___21358); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.i___21361 = (r0); - case 1: - r0 = (s.i___21361 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.managed___21358, s.i___21361); - s.spr___21368 = (r0); - r0 = s.spr___21368.fields["_statusBar"]; - s.sb___21372 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sb___21372); - if (!r0) { step = 4; continue; } - s.tmp_0 = statusbars_StatusBar_updateState__P4372_mk(s); - s.tmp_0.arg0 = s.sb___21372; - s.callLocIdx = 2217; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = if_spriteToFollow_1_mk(s); - s.tmp_0.arg0 = s.sb___21372; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "spriteToFollow"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["spriteToFollow"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["spriteToFollow"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 2218; s.pc = 12; return s.tmp_0; } - } + r0 = pxsim_numops_toBoolDecr(globals.drawFireNumber___71325); + if (!r0) { step = 3; continue; } + s.tmp_0 = r0 = s.caps[2]; + if ((globals.fireNumberText___71329) && (globals.fireNumberText___71329).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(globals.fireNumberText___71329); + checkResumeConsumed(); + return; + } else { s.retval = (globals.fireNumberText___71329) + ""; } case 12: r0 = s.retval; - s.spriteToFollow___21379 = (r0); - r0 = pxsim_numops_toBoolDecr(s.spriteToFollow___21379); - if (!r0) { step = 2; continue; } - s.tmp_0 = statusbars_StatusBar_positionNextTo__P4361_mk(s); - s.tmp_0.arg0 = s.sb___21372; - s.tmp_0.arg1 = s.spr___21368; - s.tmp_0.arg2 = s.spriteToFollow___21379; - s.callLocIdx = 2219; s.pc = 13; return s.tmp_0; + s.tmp_2 = r0; + if ((globals.fireNumber___71331) && (globals.fireNumber___71331).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(globals.fireNumber___71331); + checkResumeConsumed(); + return; + } else { s.retval = (globals.fireNumber___71331) + ""; } case 13: r0 = s.retval; - case 2: - case 3: - case 4: - case 5: - r0 = s.spr___21368.fields["flags"]; + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = (s.sb___21372).fields["sprite"] = (undefined); - r0 = pxsim_Array_.removeAt(s.managed___21358, s.i___21361); - { step = 8; continue; } - case 6: - case 7: - case 8: - r0 = (s.i___21361 - 1); - s.i___21361 = (r0); - { step = 1; continue; } - case 9: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -statusbars_init_inline__P21357.info = {"start":31869,"length":817,"line":902,"column":80,"endLine":923,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":[]} - -function statusbars_init_inline__P21357_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: statusbars_init_inline__P21357, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - managed___21358: undefined, - i___21361: undefined, - spr___21368: undefined, - sb___21372: undefined, - spriteToFollow___21379: undefined, -} } - - - - - -function statusbars_getManagedSprites__P7094(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = statusbars_getSceneData__P7093_mk(s); - s.tmp_0.arg0 = globals.MANAGED_SPRITES_KEY___7062; - s.callLocIdx = 2223; s.pc = 1; return s.tmp_0; - case 1: + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = hud_getFontForText__P71341_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2.arg0 = r0; + s.callLocIdx = 2237; s.pc = 14; return s.tmp_2; + case 14: r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -statusbars_getManagedSprites__P7094.info = {"start":33230,"length":107,"line":947,"column":4,"endLine":949,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getManagedSprites","argumentNames":[]} - -function statusbars_getManagedSprites__P7094_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: statusbars_getManagedSprites__P7094, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function statusbars_StatusBar_positionNextTo__P4361(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.padding___21406 = undefined; - s.alignment___21409 = undefined; - s.position___21412 = undefined; - s.toFollowIsRelativeToCamera___21438 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - r0 = s.arg0.fields["followPadding"]; - s.padding___21406 = (r0); - r0 = s.arg0.fields["followOffset"]; - s.alignment___21409 = (r0); - r0 = s.arg0.fields["explicitlySetDirection"]; s.tmp_1 = r0; - r0 = (s.tmp_1 != null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["explicitlySetDirection"]; - { step = 4; continue; } - case 1: - r0 = s.arg0.fields["_barHeight"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["_barWidth"]; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_4 = r0; - r0 = (s.tmp_3 > s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = 0; - { step = 3; continue; } - case 2: - r0 = 1; - case 3: - // jmp value (already in r0) + r0 = pxsim_String_.length(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = if_charWidth_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 2238; s.pc = 16; return s.tmp_6; } + } + case 16: + r0 = s.retval; s.tmp_5 = r0; - r0 = s.tmp_5; - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - s.position___21412 = (s.tmp_6); - r0 = s.arg2.fields["flags"]; + r0 = (s.tmp_3 * s.tmp_5); + s.tmp_2 = r0; + r0 = (156 - s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 32); + r0 = (s.tmp_1 - 4); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 80; + s.tmp_8 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_8.arg0 = r0; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 2239; s.pc = 17; return s.tmp_8; } + } + case 17: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 + 4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.caps[1]; + s.callLocIdx = 2240; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_0.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_String_.length(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 6: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 7; continue; } - s.tmp_6 = Sprite_destroy__P2408_mk(s); - s.tmp_6.arg0 = s.arg1; - s.tmp_6.arg1 = undefined; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 2119; s.pc = 19; return s.tmp_6; + s.tmp_5 = if_charWidth_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 2241; s.pc = 19; return s.tmp_5; } + } case 19: r0 = s.retval; - case 7: - case 8: - r0 = s.arg2.fields["flags"]; s.tmp_4 = r0; - r0 = (s.tmp_4 & 512); + r0 = (s.tmp_2 * s.tmp_4); + s.tmp_1 = r0; + r0 = (156 - s.tmp_1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 2; + s.tmp_0.arg4 = 1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 2242; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.drawFireDanger___71327); + if (!r0) { step = 5; continue; } + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = hud_getFontForText__P71341_mk(s); + s.tmp_2.arg0 = globals.fireDangerText___71332; + s.callLocIdx = 2243; s.pc = 20; return s.tmp_2; + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[3]; + s.tmp_4 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 2244; s.pc = 21; return s.tmp_4; } + } + case 21: + r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (120 - s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 - 4); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - s.toFollowIsRelativeToCamera___21438 = (r0); - r0 = s.arg1.fields["flags"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 & 512); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[4]; + r0 = pxsim_String_.length(globals.fireDangerText___71332); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_7 = if_charWidth_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charWidth"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charWidth"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charWidth"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 2245; s.pc = 22; return s.tmp_7; } + } + case 22: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = (s.tmp_4 + 2); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_9 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_9.arg0 = r0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charHeight"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charHeight"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charHeight"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 2246; s.pc = 23; return s.tmp_9; } + } + case 23: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_3 + s.tmp_8); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_1 != s.toFollowIsRelativeToCamera___21438); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_7 = Sprite_setFlag__P2399_mk(s); - s.tmp_7.arg0 = s.arg1; - s.tmp_7.arg1 = 512; - s.tmp_7.arg2 = s.toFollowIsRelativeToCamera___21438; - s.callLocIdx = 2120; s.pc = 20; return s.tmp_7; - case 20: - r0 = s.retval; - case 9: - case 10: - r0 = (s.position___21412 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = (s.position___21412 === 2); - case 12: - // jmp value (already in r0) + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 160; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 15; continue; } - s.tmp_2 = Sprite_y__P2337_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_4 = Sprite_y__P2336_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 2121; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.alignment___21409); - s.tmp_2.arg1 = r0; - s.callLocIdx = 2122; s.pc = 21; return s.tmp_2; - case 21: - r0 = s.retval; - r0 = (s.position___21412 === 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = Sprite_left__P2380_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_3 = Sprite_right__P2381_mk(s); - s.tmp_3.arg0 = s.arg2; - s.callLocIdx = 2123; s.pc = 24; return s.tmp_3; + r0 = (120 - s.tmp_1); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.caps[1]; + s.callLocIdx = 2247; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___21406); - s.tmp_1.arg1 = r0; - s.callLocIdx = 2124; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - { step = 14; continue; } - case 13: - s.tmp_0 = Sprite_right__P2382_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_left__P2379_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2125; s.pc = 26; return s.tmp_2; - case 26: - r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.fireDangerText___71332; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.padding___21406); - s.tmp_0.arg1 = r0; - s.callLocIdx = 2126; s.pc = 25; return s.tmp_0; + r0 = (80 - s.tmp_1); + s.tmp_0.arg2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = 1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 2248; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - case 14: - { step = 18; continue; } - case 15: - s.tmp_0 = Sprite_x__P2335_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_x__P2334_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2127; s.pc = 28; return s.tmp_2; - case 28: - r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = (80 + s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 + s.alignment___21409); - s.tmp_0.arg1 = r0; - s.callLocIdx = 2128; s.pc = 27; return s.tmp_0; + s.tmp_4 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 2249; s.pc = 27; return s.tmp_4; } + } case 27: r0 = s.retval; - r0 = (s.position___21412 === 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_1 = Sprite_top__P2384_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_3 = Sprite_bottom__P2385_mk(s); - s.tmp_3.arg0 = s.arg2; - s.callLocIdx = 2129; s.pc = 30; return s.tmp_3; - case 30: + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_5 = r0; + r0 = (s.tmp_5 + 1); + s.tmp_0.arg2 = r0; + s.tmp_7 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 2250; s.pc = 28; return s.tmp_7; } + } + case 28: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___21406); - s.tmp_1.arg1 = r0; - s.callLocIdx = 2130; s.pc = 29; return s.tmp_1; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.tmp_0.arg3 = r0; + s.tmp_9 = if_charHeight_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_9.arg0 = r0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charHeight"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charHeight"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charHeight"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 2251; s.pc = 29; return s.tmp_9; } + } case 29: r0 = s.retval; - { step = 17; continue; } - case 16: - s.tmp_0 = Sprite_bottom__P2386_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_top__P2383_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2131; s.pc = 32; return s.tmp_2; - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.padding___21406); - s.tmp_0.arg1 = r0; - s.callLocIdx = 2132; s.pc = 31; return s.tmp_0; - case 31: + s.tmp_8 = r0; + r0 = (s.tmp_8 + 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = globals.fireDangerColor___71334; + s.callLocIdx = 2252; s.pc = 26; return s.tmp_0; + case 26: r0 = s.retval; - case 17: - case 18: + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_positionNextTo__P4361.info = {"start":13999,"length":1505,"line":407,"column":8,"endLine":437,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"positionNextTo","argumentNames":["this","status","target"]} +hud_createHUD_inline__P85336.info = {"start":858,"length":1183,"line":31,"column":35,"endLine":59,"endColumn":9,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"inline","argumentNames":["screen"]} -function statusbars_StatusBar_positionNextTo__P4361_mk(s) { +function hud_createHUD_inline__P85336_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_positionNextTo__P4361, depth: s.depth + 1, + parent: s, fn: hud_createHUD_inline__P85336, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49694,20 +50539,16 @@ function statusbars_StatusBar_positionNextTo__P4361_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - padding___21406: undefined, - alignment___21409: undefined, - position___21412: undefined, - toFollowIsRelativeToCamera___21438: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Sprite_bottom__P2386(s) { +function hud_getFontForText__P71341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49717,51 +50558,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.f___85460 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2384_mk(s); + s.tmp_0 = image_getFontForText__P66177_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_height__P2378_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 639; s.pc = 2; return s.tmp_3; - case 2: + s.callLocIdx = 2261; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 640; s.pc = 1; return s.tmp_0; + s.f___85460 = (r0); + r0 = (s.f___85460 === globals.font8___66175); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = globals.font5___66180; + { step = 3; continue; } case 1: - r0 = s.retval; - r0 = undefined; + case 2: + r0 = s.f___85460; + case 3: return leave(s, r0) default: oops() } } } -Sprite_bottom__P2386.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +hud_getFontForText__P71341.info = {"start":4715,"length":160,"line":168,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/pxt-arcade-forest-fire/hud.ts","functionName":"getFontForText","argumentNames":["text"]} -function Sprite_bottom__P2386_mk(s) { +function hud_getFontForText__P71341_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P2386, depth: s.depth + 1, + parent: s, fn: hud_getFontForText__P71341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + f___85460: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_bottom__P2385(s) { +function statusbars_create__P68603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49771,102 +50608,215 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.onColor___85472 = undefined; + s.offColor___85473 = undefined; + s.drainColor___85474 = undefined; + s.sb___85487 = undefined; + s.output___85496 = undefined; + s.cs___85503 = undefined; + s.handler___85546 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P2383_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 637; s.pc = 1; return s.tmp_1; + s.onColor___85472 = (7); + s.offColor___85473 = (2); + s.drainColor___85474 = (3); + r0 = (s.arg2 === globals.Energy___68544); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.onColor___85472 = (5); + s.offColor___85473 = (11); + s.drainColor___85474 = (4); + { step = 4; continue; } case 1: - r0 = s.retval; + r0 = (s.arg2 === globals.Magic___68545); s.tmp_0 = r0; - s.tmp_3 = Sprite_height__P2378_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 638; s.pc = 2; return s.tmp_3; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.onColor___85472 = (8); + s.offColor___85473 = (11); + s.drainColor___85474 = (9); case 2: + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(statusbars_StatusBar__C68564_VT); + s.tmp_0 = r0; + s.tmp_1 = statusbars_StatusBar_constructor__P68575_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.onColor___85472; + s.tmp_1.arg4 = s.offColor___85473; + s.tmp_1.arg5 = s.drainColor___85474; + s.tmp_1.arg6 = 100; + s.tmp_1.arg7 = s.arg2; + s.callLocIdx = 2197; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_bottom__P2385.info = {"start":12052,"length":59,"line":435,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P2385.isGetter = true; - -function Sprite_bottom__P2385_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_bottom__P2385, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, -} } - - - - - -function Sprite_right__P2382(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.sb___85487 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(StatusBarSprite__C68547_VT); + s.tmp_0 = r0; + s.tmp_1 = StatusBarSprite_constructor__P68548_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.sb___85487; + s.callLocIdx = 2198; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.output___85496 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P66607_mk(s); + s.tmp_0.arg0 = s.output___85496; + s.tmp_0.arg1 = globals.StatusBar___68539; + s.callLocIdx = 2199; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2200; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.cs___85503 = (r0); + s.tmp_0 = PhysicsEngine__C66710_v0_2_mk(s); + r0 = s.cs___85503.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.output___85496; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C66710_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; + s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P85514); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); + r0 = pxsim_pxtcore_mkAction(1, statusbars_create_inline__P85520); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.output___85496); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_3 = helpers_arrayFilter__P64329_mk(s); + r0 = s.cs___85503.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 2201; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 2203; s.pc = 16; return s.tmp_2; + case 16: + r0 = s.retval; + r0 = (s.sb___85487).fields["sprite"] = (s.output___85496); + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = s.output___85496; + s.tmp_0.arg1 = 512; + s.tmp_0.arg2 = true; + s.callLocIdx = 2204; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = Sprite_setFlag__P66618_mk(s); + s.tmp_0.arg0 = s.output___85496; + s.tmp_0.arg1 = 7168; + s.tmp_0.arg2 = true; + s.callLocIdx = 2205; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_1 = Sprite_data__P66575_mk(s); + s.tmp_1.arg0 = s.output___85496; + s.callLocIdx = 2206; s.pc = 20; return s.tmp_1; + case 20: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, globals.STATUS_BAR_DATA_KEY___71277, s.sb___85487); + s.tmp_0 = if_z_2_mk(s); + s.tmp_0.arg0 = s.output___85496; + s.tmp_0.arg1 = 95; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 2207; s.pc = 21; return s.tmp_0; } } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2380_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_width__P2377_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 631; s.pc = 2; return s.tmp_3; - case 2: + case 21: + r0 = s.retval; + s.tmp_0 = statusbars_init__P71310_mk(s); + s.tmp_0.arg0 = s.output___85496; + s.callLocIdx = 2208; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; + s.tmp_1 = statusbars_getPostProcessHandlers__P71316_mk(s); + s.callLocIdx = 2209; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = pxsim_Array__mk(); + case 6: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 632; s.pc = 1; return s.tmp_0; - case 1: + r0 = pxsim_Array__getAt(s.tmp_2, s.arg2); + s.handler___85546 = (r0); + s.tmp_0 = r0 = s.output___85496; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = s.handler___85546; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_2 = lambda_3_mk(s); + s.tmp_2.argL = s.handler___85546; + s.tmp_2.arg0 = s.output___85496; + r0 = s.output___85496.fields["_image"]; + s.tmp_2.arg1 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 2211; s.pc = 24; return s.tmp_2; + case 24: r0 = s.retval; - r0 = undefined; + case 9: + case 10: + r0 = s.output___85496; return leave(s, r0) default: oops() } } } -Sprite_right__P2382.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +statusbars_create__P68603.info = {"start":26256,"length":1475,"line":747,"column":4,"endLine":801,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":["width","height","kind"]} -function Sprite_right__P2382_mk(s) { +function statusbars_create__P68603_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2382, depth: s.depth + 1, + parent: s, fn: statusbars_create__P68603, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + onColor___85472: undefined, + offColor___85473: undefined, + drainColor___85474: undefined, + sb___85487: undefined, + output___85496: undefined, + cs___85503: undefined, + handler___85546: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_right__P2381(s) { +function forEach_inline__P85514(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49880,36 +50830,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P2379_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 629; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - s.tmp_3 = Sprite_width__P2377_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 630; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = (s.tmp_0 == s.caps[0]); + return leave(s, r0) default: oops() } } } -Sprite_right__P2381.info = {"start":11218,"length":57,"line":405,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P2381.isGetter = true; +forEach_inline__P85514.info = {"start":27245,"length":19,"line":784,"column":20,"endLine":784,"endColumn":39,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_right__P2381_mk(s) { +function forEach_inline__P85514_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2381, depth: s.depth + 1, + parent: s, fn: forEach_inline__P85514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, } } @@ -49917,7 +50851,7 @@ function Sprite_right__P2381_mk(s) { -function Sprite_y__P2337(s) { +function statusbars_create_inline__P85520(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49929,52 +50863,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2384_mk(s); + s.tmp_0 = if_handler_2_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_height__P2378_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 585; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 586; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 2202; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 2202; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P2337.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +statusbars_create_inline__P85520.info = {"start":27287,"length":22,"line":785,"column":21,"endLine":785,"endColumn":43,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_y__P2337_mk(s) { +function statusbars_create_inline__P85520_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2337, depth: s.depth + 1, + parent: s, fn: statusbars_create_inline__P85520, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_x__P2335(s) { +function statusbars_init__P71310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49984,139 +50908,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.managedSprites___85563 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2380_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_width__P2377_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 580; s.pc = 2; return s.tmp_4; - case 2: + s.tmp_0 = statusbars_getManagedSprites__P71313_mk(s); + s.callLocIdx = 2212; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + s.managedSprites___85563 = (r0); + r0 = pxsim_numops_toBoolDecr(s.managedSprites___85563); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 581; s.pc = 1; return s.tmp_0; - case 1: + s.managedSprites___85563 = (r0); + s.tmp_5 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2213; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -Sprite_x__P2335.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} - -function Sprite_x__P2335_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_x__P2335, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function statusbars_StatusBar_constructor__P4356(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - r0 = (s.arg0).fields["_barWidth"] = (s.arg1); - r0 = (s.arg0).fields["_barHeight"] = (s.arg2); - r0 = (s.arg0).fields["onColor"] = (s.arg3); - r0 = (s.arg0).fields["offColor"] = (s.arg4); - r0 = (s.arg0).fields["drainColor"] = (s.arg5); - r0 = (s.arg0).fields["_max"] = (s.arg6); - r0 = (s.arg0).fields["kind"] = (s.arg7); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = game_currentScene__P2979_mk(s); - s.callLocIdx = 2115; s.pc = 1; return s.tmp_3; - case 1: + s.tmp_4 = r0; + r0 = s.tmp_4.fields["_data"]; + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.MANAGED_SPRITES_KEY___71281, s.tmp_2); + s.tmp_0 = control_EventContext_registerFrameHandler__P64622_mk(s); + s.tmp_1 = game_eventContext__P67201_mk(s); + s.callLocIdx = 2215; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_millis"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastUpdate"] = (s.tmp_1); - r0 = (s.arg0).fields["throttleAmount"] = (100); - r0 = (s.arg0).fields["borderWidth"] = (0); - r0 = (s.arg0).fields["borderColor"] = (undefined); - r0 = (s.arg0).fields["flags"] = (4); - r0 = (s.arg0).fields["_label"] = (undefined); - r0 = (s.arg0).fields["labelColor"] = (1); - r0 = (s.arg0).fields["font"] = (globals.font5___1961); - r0 = (s.arg0).fields["followPadding"] = (0); - r0 = (s.arg0).fields["followOffset"] = (0); - r0 = (s.arg0).fields["hasHitZero"] = (false); - r0 = (s.arg0).fields["displayValue"] = (s.arg6); - r0 = (s.arg0).fields["target"] = (s.arg6); - s.tmp_0 = statusbars_StatusBar_rebuildImage__P7087_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2117; s.pc = 2; return s.tmp_0; - case 2: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 25; + s.tmp_0.arg2 = statusbars_init_inline__P85578; + s.callLocIdx = 2220; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; + case 1: + case 2: + r0 = pxsim_Array__push(s.managedSprites___85563, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_constructor__P4356.info = {"start":12864,"length":759,"line":363,"column":8,"endLine":387,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_barWidth","_barHeight","onColor","offColor","drainColor","_max","kind"]} +statusbars_init__P71310.info = {"start":31570,"length":1174,"line":898,"column":4,"endLine":927,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"init","argumentNames":["s"]} -function statusbars_StatusBar_constructor__P4356_mk(s) { +function statusbars_init__P71310_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_constructor__P4356, depth: s.depth + 1, + parent: s, fn: statusbars_init__P71310, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + managedSprites___85563: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, } } -function statusbars_StatusBar_rebuildImage__P7087(s) { +function statusbars_init_inline__P85578(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50126,185 +50984,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.width___21590 = undefined; - s.height___21593 = undefined; - s.labelWidth___21597 = undefined; - s.newImg___21639 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); - r0 = s.arg0.fields["_barWidth"]; - s.width___21590 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.height___21593 = (r0); - r0 = s.arg0.fields["_label"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 2149; s.pc = 11; return s.tmp_2; } - } - case 11: + s.managed___85579 = undefined; + s.i___85582 = undefined; + s.spr___85589 = undefined; + s.sb___85593 = undefined; + s.spriteToFollow___85600 = undefined; + s.tmp_0 = statusbars_getManagedSprites__P71313_mk(s); + s.callLocIdx = 2216; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg0.fields["_label"]; - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_1 * s.tmp_3); - s.labelWidth___21597 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_barWidth"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); + s.managed___85579 = (r0); + r0 = pxsim_Array__length(s.managed___85579); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.i___85582 = (r0); + case 1: + r0 = (s.i___85582 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = s.width___21590; - s.tmp_3.arg1 = s.labelWidth___21597; - s.callLocIdx = 2152; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.width___21590 = (r0); - s.tmp_0 = r0 = s.height___21593; - s.tmp_3 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 2153; s.pc = 13; return s.tmp_3; } - } - case 13: + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.managed___85579, s.i___85582); + s.spr___85589 = (r0); + r0 = s.spr___85589.fields["_statusBar"]; + s.sb___85593 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sb___85593); + if (!r0) { step = 4; continue; } + s.tmp_0 = statusbars_StatusBar_updateState__P68591_mk(s); + s.tmp_0.arg0 = s.sb___85593; + s.callLocIdx = 2217; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___21593 = (r0); - { step = 2; continue; } - case 1: - r0 = (s.width___21590 + s.labelWidth___21597); - s.width___21590 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.height___21593; - s.tmp_1 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + s.tmp_0 = if_spriteToFollow_1_mk(s); + s.tmp_0.arg0 = s.sb___85593; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "spriteToFollow"); } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 2154; s.pc = 15; return s.tmp_1; } + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["spriteToFollow"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["spriteToFollow"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 2218; s.pc = 12; return s.tmp_0; } } - case 15: + case 12: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 2155; s.pc = 14; return s.tmp_0; - case 14: + s.spriteToFollow___85600 = (r0); + r0 = pxsim_numops_toBoolDecr(s.spriteToFollow___85600); + if (!r0) { step = 2; continue; } + s.tmp_0 = statusbars_StatusBar_positionNextTo__P68580_mk(s); + s.tmp_0.arg0 = s.sb___85593; + s.tmp_0.arg1 = s.spr___85589; + s.tmp_0.arg2 = s.spriteToFollow___85600; + s.callLocIdx = 2219; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - s.height___21593 = (r0); case 2: case 3: case 4: - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + case 5: + r0 = s.spr___85589.fields["flags"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - s.tmp_3 = r0 = s.width___21590; - r0 = s.arg0.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 !== s.tmp_4); - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (!r0) { step = 7; continue; } - r0 = s.tmp_6; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = (s.sb___85593).fields["sprite"] = (undefined); + r0 = pxsim_Array_.removeAt(s.managed___85579, s.i___85582); { step = 8; continue; } + case 6: case 7: - s.tmp_7 = r0 = s.height___21593; - r0 = s.arg0.fields["_image"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7 !== s.tmp_8); case 8: - // jmp value (already in r0) - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 9; continue; } - r0 = pxsim.image.create(s.width___21590, s.height___21593); - s.newImg___21639 = (r0); - r0 = (s.arg0).fields["_image"] = (s.newImg___21639); + r0 = (s.i___85582 - 1); + s.i___85582 = (r0); + { step = 1; continue; } case 9: - case 10: - s.tmp_0 = statusbars_StatusBar_updateDisplay__P4373_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2159; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_rebuildImage__P7087.info = {"start":17897,"length":790,"line":524,"column":8,"endLine":545,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"rebuildImage","argumentNames":["this"]} +statusbars_init_inline__P85578.info = {"start":31869,"length":817,"line":902,"column":80,"endLine":923,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":[]} -function statusbars_StatusBar_rebuildImage__P7087_mk(s) { +function statusbars_init_inline__P85578_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_rebuildImage__P7087, depth: s.depth + 1, + parent: s, fn: statusbars_init_inline__P85578, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - width___21590: undefined, - height___21593: undefined, - labelWidth___21597: undefined, - newImg___21639: undefined, - arg0: undefined, + managed___85579: undefined, + i___85582: undefined, + spr___85589: undefined, + sb___85593: undefined, + spriteToFollow___85600: undefined, } } -function StatusBarSprite_constructor__P4329(s) { +function statusbars_getManagedSprites__P71313(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50314,42 +51090,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4328_VT)) failedCast(r0); - r0 = (s.arg0).fields["_statusBar"] = (s.arg1); - s.tmp_0 = Sprite_constructor__P2368_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg1.fields["_image"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 2101; s.pc = 1; return s.tmp_0; + s.tmp_0 = statusbars_getSceneData__P71312_mk(s); + s.tmp_0.arg0 = globals.MANAGED_SPRITES_KEY___71281; + s.callLocIdx = 2223; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_constructor__P4329.info = {"start":2526,"length":93,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_statusBar"]} +statusbars_getManagedSprites__P71313.info = {"start":33230,"length":107,"line":947,"column":4,"endLine":949,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getManagedSprites","argumentNames":[]} -function StatusBarSprite_constructor__P4329_mk(s) { +function statusbars_getManagedSprites__P71313_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_constructor__P4329, depth: s.depth + 1, + parent: s, fn: statusbars_getManagedSprites__P71313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function Sprite_data__P2356(s) { +function statusbars_StatusBar_positionNextTo__P68580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50359,155 +51122,259 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.padding___85627 = undefined; + s.alignment___85630 = undefined; + s.position___85633 = undefined; + s.toFollowIsRelativeToCamera___85659 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + r0 = s.arg0.fields["followPadding"]; + s.padding___85627 = (r0); + r0 = s.arg0.fields["followOffset"]; + s.alignment___85630 = (r0); + r0 = s.arg0.fields["explicitlySetDirection"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 != null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_data"] = (s.tmp_4); + r0 = s.arg0.fields["explicitlySetDirection"]; + { step = 4; continue; } case 1: + r0 = s.arg0.fields["_barHeight"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 > s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = 0; + { step = 3; continue; } case 2: - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_data__P2356.info = {"start":6438,"length":92,"line":236,"column":4,"endLine":239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P2356.isGetter = true; - -function Sprite_data__P2356_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_data__P2356, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } - - - - - -function StatusBarKind_create__P4323(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = (globals.nextKind___7047 === undefined); + r0 = 1; + case 3: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + s.position___85633 = (s.tmp_6); + r0 = s.arg2.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 32); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 6: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 7; continue; } + s.tmp_6 = Sprite_destroy__P66627_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = undefined; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 2119; s.pc = 19; return s.tmp_6; + case 19: + r0 = s.retval; + case 7: + case 8: + r0 = s.arg2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 512); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.toFollowIsRelativeToCamera___85659 = (r0); + r0 = s.arg1.fields["flags"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 & 512); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 != s.toFollowIsRelativeToCamera___85659); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - globals.nextKind___7047 = (1); - case 1: - case 2: - s.tmp_0 = r0 = globals.nextKind___7047; - r0 = (s.tmp_0 + 1); - globals.nextKind___7047 = (r0); + if (!r0) { step = 9; continue; } + s.tmp_7 = Sprite_setFlag__P66618_mk(s); + s.tmp_7.arg0 = s.arg1; + s.tmp_7.arg1 = 512; + s.tmp_7.arg2 = s.toFollowIsRelativeToCamera___85659; + s.callLocIdx = 2120; s.pc = 20; return s.tmp_7; + case 20: + r0 = s.retval; + case 9: + case 10: + r0 = (s.position___85633 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 11; continue; } r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -StatusBarKind_create__P4323.info = {"start":1891,"length":109,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":[]} - -function StatusBarKind_create__P4323_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: StatusBarKind_create__P4323, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function game_eventContext__P2982(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = game_init__P5015_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 1571; s.pc = 1; return s.tmp_0; - case 1: + { step = 12; continue; } + case 11: + r0 = (s.position___85633 === 2); + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 15; continue; } + s.tmp_2 = Sprite_y__P66556_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_4 = Sprite_y__P66555_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 2121; s.pc = 22; return s.tmp_4; + case 22: r0 = s.retval; - r0 = globals._scene___5007.fields["eventContext"]; - return leave(s, r0) - default: oops() -} } } -game_eventContext__P2982.info = {"start":4442,"length":112,"line":136,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} - -function game_eventContext__P2982_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_eventContext__P2982, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function controller_pauseUntilAnyButtonIsPressed__P2186(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - setupResume(s, 1); - pxsim.control.waitForEvent(2049, 0); - checkResumeConsumed(); - return; - case 1: + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.alignment___85630); + s.tmp_2.arg1 = r0; + s.callLocIdx = 2122; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + r0 = (s.position___85633 === 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = Sprite_left__P66599_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_3 = Sprite_right__P66600_mk(s); + s.tmp_3.arg0 = s.arg2; + s.callLocIdx = 2123; s.pc = 24; return s.tmp_3; + case 24: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___85627); + s.tmp_1.arg1 = r0; + s.callLocIdx = 2124; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + { step = 14; continue; } + case 13: + s.tmp_0 = Sprite_right__P66601_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_left__P66598_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2125; s.pc = 26; return s.tmp_2; + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.padding___85627); + s.tmp_0.arg1 = r0; + s.callLocIdx = 2126; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 14: + { step = 18; continue; } + case 15: + s.tmp_0 = Sprite_x__P66554_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_x__P66553_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2127; s.pc = 28; return s.tmp_2; + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + s.alignment___85630); + s.tmp_0.arg1 = r0; + s.callLocIdx = 2128; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = (s.position___85633 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_1 = Sprite_top__P66603_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_3 = Sprite_bottom__P66604_mk(s); + s.tmp_3.arg0 = s.arg2; + s.callLocIdx = 2129; s.pc = 30; return s.tmp_3; + case 30: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___85627); + s.tmp_1.arg1 = r0; + s.callLocIdx = 2130; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + { step = 17; continue; } + case 16: + s.tmp_0 = Sprite_bottom__P66605_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_top__P66602_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2131; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.padding___85627); + s.tmp_0.arg1 = r0; + s.callLocIdx = 2132; s.pc = 31; return s.tmp_0; + case 31: r0 = s.retval; + case 17: + case 18: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P2186.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +statusbars_StatusBar_positionNextTo__P68580.info = {"start":13999,"length":1505,"line":407,"column":8,"endLine":437,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"positionNextTo","argumentNames":["this","status","target"]} -function controller_pauseUntilAnyButtonIsPressed__P2186_mk(s) { +function statusbars_StatusBar_positionNextTo__P68580_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P2186, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_positionNextTo__P68580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + padding___85627: undefined, + alignment___85630: undefined, + position___85633: undefined, + toFollowIsRelativeToCamera___85659: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_setWaitAnyButton__P2980(s) { +function Sprite_bottom__P66605(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50519,28 +51386,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - globals.__waitAnyButton___5011 = (s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P66603_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Sprite_height__P66597_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 639; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 640; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P2980.info = {"start":4236,"length":83,"line":127,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +Sprite_bottom__P66605.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function game_setWaitAnyButton__P2980_mk(s) { +function Sprite_bottom__P66605_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P2980, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P66605, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function Math_FastRandom_constructor__P3041(s) { +function Sprite_bottom__P66604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50552,42 +51440,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.Math_.randomRange(1, 65535); - s.arg1 = (r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P66602_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 637; s.pc = 1; return s.tmp_1; case 1: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Sprite_height__P66597_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 638; s.pc = 2; return s.tmp_3; case 2: - r0 = (s.arg0).fields["seed"] = (s.arg1); - r0 = (s.arg0).fields["lfsr"] = (s.arg1); - r0 = undefined; - return leave(s, r0) + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -Math_FastRandom_constructor__P3041.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} +Sprite_bottom__P66604.info = {"start":12052,"length":59,"line":435,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P66604.isGetter = true; -function Math_FastRandom_constructor__P3041_mk(s) { +function Sprite_bottom__P66604_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P3041, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P66604, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function game_consoleOverlay_listener__P5341(s) { +function Sprite_right__P66601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50602,82 +51494,37 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P66599_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Sprite_width__P66596_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 631; s.pc = 2; return s.tmp_3; case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - s.tmp_4 = helpers_arrayForEach__P109_mk(s); - s.tmp_5 = helpers_arrayFilter__P110_mk(s); - s.tmp_6 = helpers_stringSplit__P122_mk(s); - s.tmp_6.arg0 = s.arg1; - s.tmp_6.arg1 = "\n"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1787; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = forEach_inline__P21690; - s.callLocIdx = 1788; s.pc = 9; return s.tmp_5; - case 9: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P21695; - s.callLocIdx = 1790; s.pc = 8; return s.tmp_4; - case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___5306); - s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___5319); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P100_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___5306; - s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___5306); - s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___5319); - s.tmp_2.arg2 = r0; - s.callLocIdx = 1791; s.pc = 11; return s.tmp_2; - case 11: + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 632; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 5: - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P5341.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]} +Sprite_right__P66601.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function game_consoleOverlay_listener__P5341_mk(s) { +function Sprite_right__P66601_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P5341, depth: s.depth + 1, + parent: s, fn: Sprite_right__P66601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, arg1: undefined, } } @@ -50686,7 +51533,7 @@ function game_consoleOverlay_listener__P5341_mk(s) { -function forEach_inline__P21690(s) { +function Sprite_right__P66600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50700,26 +51547,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P66598_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 629; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + s.tmp_3 = Sprite_width__P66596_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 630; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -forEach_inline__P21690.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +Sprite_right__P66600.info = {"start":11218,"length":57,"line":405,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P66600.isGetter = true; -function forEach_inline__P21690_mk(s) { +function Sprite_right__P66600_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P21690, depth: s.depth + 1, + parent: s, fn: Sprite_right__P66600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, arg0: undefined, } } @@ -50727,7 +51584,7 @@ function forEach_inline__P21690_mk(s) { -function game_consoleOverlay_listener_inline__P21695(s) { +function Sprite_y__P66556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50737,61 +51594,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___21697 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.j___21697 = (0); - case 1: - s.tmp_1 = r0 = s.j___21697; - r0 = pxsim_String_.length(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P66603_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_height__P66597_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 585; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_3 = r0 = globals.consoleStrings___5306; - s.tmp_5 = helpers_stringSlice__P119_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___21697; - r0 = (s.j___21697 + globals.consoleColumns___5329); - s.tmp_5.arg2 = r0; - s.callLocIdx = 1789; s.pc = 3; return s.tmp_5; - case 3: + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 586; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_3, s.tmp_4); - r0 = (s.j___21697 + globals.consoleColumns___5329); - s.j___21697 = (r0); - { step = 1; continue; } - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener_inline__P21695.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +Sprite_y__P66556.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function game_consoleOverlay_listener_inline__P21695_mk(s) { +function Sprite_y__P66556_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener_inline__P21695, depth: s.depth + 1, + parent: s, fn: Sprite_y__P66556, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - j___21697: undefined, arg0: undefined, + arg1: undefined, } } -function console_addListener__P383(s) { +function Sprite_x__P66554(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50803,53 +51653,52 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___4506, s.arg0, undefined); - s.tmp_2 = r0; - r0 = (s.tmp_2 > -1); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P66599_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_width__P66596_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 580; s.pc = 2; return s.tmp_4; case 2: - // jmp value (already in r0) + r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_Array__push(globals.listeners___4506, s.arg0); - case 5: + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 581; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P383.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} +Sprite_x__P66554.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function console_addListener__P383_mk(s) { +function Sprite_x__P66554_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P383, depth: s.depth + 1, + parent: s, fn: Sprite_x__P66554, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function listeners_inline__P4505(s) { +function statusbars_StatusBar_constructor__P68575(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50862,70 +51711,79 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } - r0 = pxsim.control.__log(s.arg0, s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -listeners_inline__P4505.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} - -function listeners_inline__P4505_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: listeners_inline__P4505, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_systemMenu_register__P3086(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.instance___5260); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + r0 = (s.arg0).fields["_barWidth"] = (s.arg1); + r0 = (s.arg0).fields["_barHeight"] = (s.arg2); + r0 = (s.arg0).fields["onColor"] = (s.arg3); + r0 = (s.arg0).fields["offColor"] = (s.arg4); + r0 = (s.arg0).fields["drainColor"] = (s.arg5); + r0 = (s.arg0).fields["_max"] = (s.arg6); + r0 = (s.arg0).fields["kind"] = (s.arg7); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = game_currentScene__P67198_mk(s); + s.callLocIdx = 2115; s.pc = 1; return s.tmp_3; case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_millis"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastUpdate"] = (s.tmp_1); + r0 = (s.arg0).fields["throttleAmount"] = (100); + r0 = (s.arg0).fields["borderWidth"] = (0); + r0 = (s.arg0).fields["borderColor"] = (undefined); + r0 = (s.arg0).fields["flags"] = (4); + r0 = (s.arg0).fields["_label"] = (undefined); + r0 = (s.arg0).fields["labelColor"] = (1); + r0 = (s.arg0).fields["font"] = (globals.font5___66180); + r0 = (s.arg0).fields["followPadding"] = (0); + r0 = (s.arg0).fields["followOffset"] = (0); + r0 = (s.arg0).fields["hasHitZero"] = (false); + r0 = (s.arg0).fields["displayValue"] = (s.arg6); + r0 = (s.arg0).fields["target"] = (s.arg6); + s.tmp_0 = statusbars_StatusBar_rebuildImage__P71306_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2117; s.pc = 2; return s.tmp_0; case 2: - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.menu___2100; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P3087; - s.callLocIdx = 1774; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P3086.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} +statusbars_StatusBar_constructor__P68575.info = {"start":12864,"length":759,"line":363,"column":8,"endLine":387,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_barWidth","_barHeight","onColor","offColor","drainColor","_max","kind"]} -function scene_systemMenu_register__P3086_mk(s) { +function statusbars_StatusBar_constructor__P68575_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P3086, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_constructor__P68575, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, } } -function scene_systemMenu_showSystemMenu__P3087(s) { +function statusbars_StatusBar_rebuildImage__P71306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50935,51 +51793,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___5260); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_0 = game_pushScene__P2983_mk(s); - s.callLocIdx = 1775; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C3075_VT); + s.width___85811 = undefined; + s.height___85814 = undefined; + s.labelWidth___85818 = undefined; + s.newImg___85860 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); + r0 = s.arg0.fields["_barWidth"]; + s.width___85811 = (r0); + r0 = s.arg0.fields["_barHeight"]; + s.height___85814 = (r0); + r0 = s.arg0.fields["_label"]; s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P3076_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P3083; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 1776; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - globals.instance___5260 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P3077_mk(s); - s.tmp_0.arg0 = globals.instance___5260; - s.callLocIdx = 1777; s.pc = 6; return s.tmp_0; - case 6: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 2149; s.pc = 11; return s.tmp_2; } + } + case 11: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg0.fields["_label"]; + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_1 * s.tmp_3); + s.labelWidth___85818 = (r0); + r0 = s.arg0.fields["_barHeight"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 > s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_3.arg0 = s.width___85811; + s.tmp_3.arg1 = s.labelWidth___85818; + s.callLocIdx = 2152; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.width___85811 = (r0); + s.tmp_0 = r0 = s.height___85814; + s.tmp_3 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 2153; s.pc = 13; return s.tmp_3; } + } + case 13: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___85814 = (r0); + { step = 2; continue; } + case 1: + r0 = (s.width___85811 + s.labelWidth___85818); + s.width___85811 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_0.arg0 = s.height___85814; + s.tmp_1 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 2154; s.pc = 15; return s.tmp_1; } + } + case 15: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 2155; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; + s.height___85814 = (r0); + case 2: case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + s.tmp_3 = r0 = s.width___85811; + r0 = s.arg0.fields["_image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 !== s.tmp_4); + case 6: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = s.tmp_6; + { step = 8; continue; } + case 7: + s.tmp_7 = r0 = s.height___85814; + r0 = s.arg0.fields["_image"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7 !== s.tmp_8); + case 8: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 9; continue; } + r0 = pxsim.image.create(s.width___85811, s.height___85814); + s.newImg___85860 = (r0); + r0 = (s.arg0).fields["_image"] = (s.newImg___85860); + case 9: + case 10: + s.tmp_0 = statusbars_StatusBar_updateDisplay__P68592_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2159; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P3087.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} +statusbars_StatusBar_rebuildImage__P71306.info = {"start":17897,"length":790,"line":524,"column":8,"endLine":545,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"rebuildImage","argumentNames":["this"]} -function scene_systemMenu_showSystemMenu__P3087_mk(s) { +function statusbars_StatusBar_rebuildImage__P71306_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P3087, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_rebuildImage__P71306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + width___85811: undefined, + height___85814: undefined, + labelWidth___85818: undefined, + newImg___85860: undefined, + arg0: undefined, } } -function scene_systemMenu_buildOptionList__P3083(s) { +function StatusBarSprite_constructor__P68548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50989,136 +51981,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___22355 = undefined; - r0 = pxsim_Array__mk(); - s.options___22355 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___3097; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22363; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P5266; - s.callLocIdx = 1757; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___3094; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22377; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P5265; - s.callLocIdx = 1759; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = 0; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___3095; - s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P22392; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P5268; - s.callLocIdx = 1762; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___3100; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22407; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P5267; - s.callLocIdx = 1764; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, StatusBarSprite__C68547_VT)) failedCast(r0); + r0 = (s.arg0).fields["_statusBar"] = (s.arg1); + s.tmp_0 = Sprite_constructor__P66587_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg1.fields["_image"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 2101; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___3101; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22422; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P5270; - s.callLocIdx = 1765; s.pc = 9; return s.tmp_1; - case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___3099; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22431; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P5271; - s.callLocIdx = 1767; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___3098; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22440; - s.tmp_1.arg3 = scene_systemMenu_sleep__P5272; - s.callLocIdx = 1768; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___5261); - if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P113_mk(s); - s.tmp_0.arg0 = s.options___22355; - s.tmp_0.arg1 = globals.customMenuOptions___5261; - s.callLocIdx = 1769; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.options___22355 = (r0); - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C3067_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P3068_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___3096; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P22453; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P3082; - s.callLocIdx = 1770; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___22355, s.tmp_0); - r0 = s.options___22355; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P3083.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} +StatusBarSprite_constructor__P68548.info = {"start":2526,"length":93,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_statusBar"]} -function scene_systemMenu_buildOptionList__P3083_mk(s) { +function StatusBarSprite_constructor__P68548_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P3083, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_constructor__P68548, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - options___22355: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22363(s) { +function Sprite_data__P66575(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51128,44 +52026,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P1621_mk(s); - s.callLocIdx = 1756; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 2: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat("VOLUME DOWN (", s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); - return leave(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_data"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_data"]; + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22363.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Sprite_data__P66575.info = {"start":6438,"length":92,"line":236,"column":4,"endLine":239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P66575.isGetter = true; -function scene_systemMenu_buildOptionList_inline__P22363_mk(s) { +function Sprite_data__P66575_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22363, depth: s.depth + 1, + parent: s, fn: Sprite_data__P66575, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22377(s) { +function StatusBarKind_create__P68542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51175,44 +52080,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P1621_mk(s); - s.callLocIdx = 1758; s.pc = 1; return s.tmp_3; + r0 = (globals.nextKind___71266 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + globals.nextKind___71266 = (1); case 1: - r0 = s.retval; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("VOLUME UP (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + s.tmp_0 = r0 = globals.nextKind___71266; + r0 = (s.tmp_0 + 1); + globals.nextKind___71266 = (r0); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22377.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +StatusBarKind_create__P68542.info = {"start":1891,"length":109,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P22377_mk(s) { +function StatusBarKind_create__P68542_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22377, depth: s.depth + 1, + parent: s, fn: StatusBarKind_create__P68542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22392(s) { +function game_eventContext__P67201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51222,40 +52118,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___1934; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } + s.tmp_0 = game_init__P69234_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1571; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("BRIGHTNESS DOWN (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + r0 = globals._scene___69226.fields["eventContext"]; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22392.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +game_eventContext__P67201.info = {"start":4442,"length":112,"line":136,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P22392_mk(s) { +function game_eventContext__P67201_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22392, depth: s.depth + 1, + parent: s, fn: game_eventContext__P67201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22407(s) { +function controller_pauseUntilAnyButtonIsPressed__P66405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51265,40 +52151,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___1934; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); - pxsim_String__stringConv(s.tmp_2); + pxsim.control.waitForEvent(2049, 0); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_2) + ""; } case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("BRIGHTNESS UP (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22407.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P66405.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P22407_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P66405_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22407, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P66405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22422(s) { +function game_setWaitAnyButton__P67199(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + globals.__waitAnyButton___69230 = (s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_setWaitAnyButton__P67199.info = {"start":4236,"length":83,"line":127,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} + +function game_setWaitAnyButton__P67199_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_setWaitAnyButton__P67199, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Math_FastRandom_constructor__P67260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51308,34 +52217,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___2948); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); + r0 = (s.arg1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = "HIDE STATS"; - { step = 2; continue; } + r0 = pxsim.Math_.randomRange(1, 65535); + s.arg1 = (r0); case 1: - r0 = "SHOW STATS"; case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = s.tmp_0; + r0 = (s.arg0).fields["seed"] = (s.arg1); + r0 = (s.arg0).fields["lfsr"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22422.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Math_FastRandom_constructor__P67260.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} -function scene_systemMenu_buildOptionList_inline__P22422_mk(s) { +function Math_FastRandom_constructor__P67260_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22422, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P67260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22431(s) { +function game_consoleOverlay_listener__P69560(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51345,46 +52264,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = "HIDE CONSOLE"; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = "SHOW CONSOLE"; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + s.tmp_4 = helpers_arrayForEach__P64328_mk(s); + s.tmp_5 = helpers_arrayFilter__P64329_mk(s); + s.tmp_6 = helpers_stringSplit__P64341_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = "\n"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1787; s.pc = 10; return s.tmp_6; + case 10: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = forEach_inline__P85911; + s.callLocIdx = 1788; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P85916; + s.callLocIdx = 1790; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + r0 = pxsim_Array__length(globals.consoleStrings___69525); + s.tmp_1 = r0; + r0 = (s.tmp_1 > globals.consoleLines___69538); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_arraySplice__P64319_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___69525; + s.tmp_2.arg1 = 0; + r0 = pxsim_Array__length(globals.consoleStrings___69525); + s.tmp_3 = r0; + r0 = (s.tmp_3 - globals.consoleLines___69538); + s.tmp_2.arg2 = r0; + s.callLocIdx = 1791; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + case 5: + case 6: + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22431.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +game_consoleOverlay_listener__P69560.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]} -function scene_systemMenu_buildOptionList_inline__P22431_mk(s) { +function game_consoleOverlay_listener__P69560_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22431, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P69560, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22440(s) { +function forEach_inline__P85911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51394,24 +52363,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = "SLEEP"; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22440.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +forEach_inline__P85911.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function scene_systemMenu_buildOptionList_inline__P22440_mk(s) { +function forEach_inline__P85911_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22440, depth: s.depth + 1, + parent: s, fn: forEach_inline__P85911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function scene_systemMenu_buildOptionList_inline__P22453(s) { +function game_consoleOverlay_listener_inline__P85916(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51421,24 +52404,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = "CLOSE"; + s.j___85918 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.j___85918 = (0); + case 1: + s.tmp_1 = r0 = s.j___85918; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_3 = r0 = globals.consoleStrings___69525; + s.tmp_5 = helpers_stringSlice__P64338_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = s.j___85918; + r0 = (s.j___85918 + globals.consoleColumns___69548); + s.tmp_5.arg2 = r0; + s.callLocIdx = 1789; s.pc = 3; return s.tmp_5; + case 3: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_3, s.tmp_4); + r0 = (s.j___85918 + globals.consoleColumns___69548); + s.j___85918 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P22453.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +game_consoleOverlay_listener_inline__P85916.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function scene_systemMenu_buildOptionList_inline__P22453_mk(s) { +function game_consoleOverlay_listener_inline__P85916_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P22453, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P85916, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + j___85918: undefined, + arg0: undefined, } } -function scene_systemMenu_setScreenBrightnessSupported__P5273(s) { +function console_addListener__P64602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51448,24 +52468,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = 0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array_.indexOf(globals.listeners___68725, s.arg0, undefined); + s.tmp_2 = r0; + r0 = (s.tmp_2 > -1); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = pxsim_Array__push(globals.listeners___68725, s.arg0); + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P5273.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} +console_addListener__P64602.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} -function scene_systemMenu_setScreenBrightnessSupported__P5273_mk(s) { +function console_addListener__P64602_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P5273, depth: s.depth + 1, + parent: s, fn: console_addListener__P64602, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, } } -function scene_systemMenu_sleep__P5272(s) { +function listeners_inline__P68724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51475,25 +52526,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.deepSleep(); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim.control.__log(s.arg0, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P5272.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} +listeners_inline__P68724.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} -function scene_systemMenu_sleep__P5272_mk(s) { +function listeners_inline__P68724_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P5272, depth: s.depth + 1, + parent: s, fn: listeners_inline__P68724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_toggleConsole__P5271(s) { +function scene_systemMenu_register__P67305(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51503,59 +52561,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.instance___69479); if (!r0) { step = 1; continue; } - s.tmp_4 = game_consoleOverlay_setVisible__P3106_mk(s); - s.tmp_4.arg0 = false; - s.tmp_4.arg1 = undefined; - s.callLocIdx = 1750; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - { step = 2; continue; } + { step = 3; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P3106_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1751; s.pc = 4; return s.tmp_0; + case 2: + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.menu___66319; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P67306; + s.callLocIdx = 1774; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P380_mk(s); - s.tmp_0.arg0 = "console"; - s.callLocIdx = 1752; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 2: + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P5271.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} +scene_systemMenu_register__P67305.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} -function scene_systemMenu_toggleConsole__P5271_mk(s) { +function scene_systemMenu_register__P67305_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P5271, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P67305, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, } } -function game_consoleOverlay_setVisible__P3106(s) { +function scene_systemMenu_showSystemMenu__P67306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51565,70 +52602,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_numops_toBoolDecr(globals.instance___69479); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = undefined; case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - globals.consoleStrings___5306 = (s.tmp_6); - case 3: + s.tmp_0 = game_pushScene__P67202_mk(s); + s.callLocIdx = 1775; s.pc = 4; return s.tmp_0; case 4: - r0 = (s.arg1 !== undefined); + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C67294_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - globals.consoleColor___5305 = (s.arg1); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P67295_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P67302; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1776; s.pc = 5; return s.tmp_1; case 5: + r0 = s.retval; + globals.instance___69479 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P67296_mk(s); + s.tmp_0.arg0 = globals.instance___69479; + s.callLocIdx = 1777; s.pc = 6; return s.tmp_0; case 6: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P3106.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +scene_systemMenu_showSystemMenu__P67306.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} -function game_consoleOverlay_setVisible__P3106_mk(s) { +function scene_systemMenu_showSystemMenu__P67306_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P3106, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P67306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - arg0: undefined, - arg1: undefined, } } -function console_log__P380(s) { +function scene_systemMenu_buildOptionList__P67302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51638,36 +52656,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = console_add__P376_mk(s); - s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 45; s.pc = 1; return s.tmp_0; + s.options___86576 = undefined; + r0 = pxsim_Array__mk(); + s.options___86576 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___67316; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86584; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P69485; + s.callLocIdx = 1757; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___67313; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86598; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P69484; + s.callLocIdx = 1759; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = 0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_1 = r0; + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___67314; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P86613; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P69487; + s.callLocIdx = 1762; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___67319; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86628; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P69486; + s.callLocIdx = 1764; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.STATS_ICON___67320; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86643; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P69489; + s.callLocIdx = 1765; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.CONSOLE_ICON___67318; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86652; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P69490; + s.callLocIdx = 1767; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.SLEEP_ICON___67317; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86661; + s.tmp_1.arg3 = scene_systemMenu_sleep__P69491; + s.callLocIdx = 1768; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___69480); + if (!r0) { step = 3; continue; } + s.tmp_0 = helpers_arrayConcat__P64332_mk(s); + s.tmp_0.arg0 = s.options___86576; + s.tmp_0.arg1 = globals.customMenuOptions___69480; + s.callLocIdx = 1769; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.options___86576 = (r0); + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C67286_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P67287_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___67315; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P86674; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P67301; + s.callLocIdx = 1770; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___86576, s.tmp_0); + r0 = s.options___86576; return leave(s, r0) default: oops() } } } -console_log__P380.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +scene_systemMenu_buildOptionList__P67302.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} -function console_log__P380_mk(s) { +function scene_systemMenu_buildOptionList__P67302_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P380, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P67302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + options___86576: undefined, } } -function console_add__P376(s) { +function scene_systemMenu_buildOptionList_inline__P86584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51677,87 +52795,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___22492 = undefined; - s.i___22501 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 < globals.minPriority___375); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } + s.tmp_3 = music_volume__P65840_mk(s); + s.callLocIdx = 1756; s.pc = 1; return s.tmp_3; case 1: - case 2: - s.tmp_1 = console_inspect__P382_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 20; - s.callLocIdx = 43; s.pc = 6; return s.tmp_1; - case 6: r0 = s.retval; - s.text___22492 = (r0); - if ((s.text___22492) && (s.text___22492).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.text___22492); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.text___22492) + ""; } - case 7: + } else { s.retval = (s.tmp_2) + ""; } + case 2: r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("VOLUME DOWN (", s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___22492 = (r0); - s.i___22501 = (0); - case 3: - s.tmp_1 = r0 = s.i___22501; - r0 = pxsim_Array__length(globals.listeners___4506); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = lambda_3_mk(s); - r0 = pxsim_Array__getAt(globals.listeners___4506, s.i___22501); - s.tmp_3.argL = r0; - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___22492; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 44; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - r0 = (s.i___22501 + 1); - s.i___22501 = (r0); - { step = 3; continue; } - case 4: - case 5: - r0 = undefined; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -console_add__P376.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +scene_systemMenu_buildOptionList_inline__P86584.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function console_add__P376_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86584_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P376, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - text___22492: undefined, - i___22501: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_toggleStats__P5270(s) { +function scene_systemMenu_buildOptionList_inline__P86598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51767,45 +52842,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___2948); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___2948 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___2948); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_3 = music_volume__P65840_mk(s); + s.callLocIdx = 1758; s.pc = 1; return s.tmp_3; case 1: - r0 = globals.control_EventContext_onStats___398; - case 2: - // jmp value (already in r0) + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_3 = lambda_2_mk(s); - s.tmp_3.argL = globals.control_EventContext_onStats___398; - r0 = pxsim_String_.mkEmpty(); - s.tmp_3.arg0 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1748; s.pc = 5; return s.tmp_3; - case 5: + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 2: r0 = s.retval; - case 3: - case 4: - r0 = undefined; + s.tmp_1 = r0; + r0 = pxsim_String__concat("VOLUME UP (", s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P5270.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P86598.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_toggleStats__P5270_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86598_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P5270, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86598, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51817,7 +52879,7 @@ function scene_systemMenu_toggleStats__P5270_mk(s) { -function scene_systemMenu_brightnessDown__P5268(s) { +function scene_systemMenu_buildOptionList_inline__P86613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51827,34 +52889,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P5269_mk(s); - r0 = globals.brightness___1934; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 5); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1744; s.pc = 1; return s.tmp_0; + r0 = globals.brightness___66153; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 1: r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0; + r0 = pxsim_String__concat("BRIGHTNESS DOWN (", s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P5268.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P86613.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_brightnessDown__P5268_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86613_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P5268, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, } } -function scene_systemMenu_setScreenBrightness__P5269(s) { +function scene_systemMenu_buildOptionList_inline__P86628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51864,43 +52932,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = helpers_setScreenBrightness__P1946_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1745; s.pc = 1; return s.tmp_0; + r0 = globals.brightness___66153; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P2044_mk(s); - s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___1934; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1747; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0; + r0 = pxsim_String__concat("BRIGHTNESS UP (", s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P5269.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} +scene_systemMenu_buildOptionList_inline__P86628.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_setScreenBrightness__P5269_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86628_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P5269, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function helpers_setScreenBrightness__P1946(s) { +function scene_systemMenu_buildOptionList_inline__P86643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51910,43 +52975,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 10; - s.tmp_0.arg1 = 100; - r0 = (s.arg1 | 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 197; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.stats___67167); + if (!r0) { step = 1; continue; } + r0 = "HIDE STATS"; + { step = 2; continue; } case 1: - r0 = s.retval; - s.arg1 = (r0); - globals.brightness___1934 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___1934); - r0 = undefined; + r0 = "SHOW STATS"; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P1946.info = {"start":7427,"length":210,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +scene_systemMenu_buildOptionList_inline__P86643.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function helpers_setScreenBrightness__P1946_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86643_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P1946, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_brightnessUp__P5267(s) { +function scene_systemMenu_buildOptionList_inline__P86652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51956,34 +53012,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P5269_mk(s); - r0 = globals.brightness___1934; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 + 5); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1742; s.pc = 1; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = "HIDE CONSOLE"; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = undefined; + r0 = "SHOW CONSOLE"; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P5267.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P86652.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_brightnessUp__P5267_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86652_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P5267, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function scene_systemMenu_volumeDown__P5266(s) { +function scene_systemMenu_buildOptionList_inline__P86661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51993,54 +53061,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___22673 = undefined; - s.remainder___22676 = undefined; - s.newVolume___22679 = undefined; - s.tmp_0 = music_volume__P1621_mk(s); - s.callLocIdx = 1739; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.v___22673 = (r0); - r0 = (s.v___22673 % 32); - s.remainder___22676 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___22676); - if (!r0) { step = 1; continue; } - r0 = s.remainder___22676; - { step = 2; continue; } - case 1: - r0 = 32; - case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.v___22673 - s.tmp_0); - s.newVolume___22679 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P5264_mk(s); - s.tmp_0.arg0 = s.newVolume___22679; - s.callLocIdx = 1740; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = undefined; + r0 = "SLEEP"; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P5266.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P86661.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_volumeDown__P5266_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86661_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P5266, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86661, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - v___22673: undefined, - remainder___22676: undefined, - newVolume___22679: undefined, } } -function scene_systemMenu_setVolume__P5264(s) { +function scene_systemMenu_buildOptionList_inline__P86674(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52050,47 +53088,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = music_setVolume__P1620_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1734; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = music_playTone__P1622_mk(s); - s.tmp_0.arg0 = 440; - s.tmp_0.arg1 = 500; - s.callLocIdx = 1735; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P2044_mk(s); - s.tmp_0.arg0 = "#volume"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1736; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; + r0 = "CLOSE"; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P5264.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} +scene_systemMenu_buildOptionList_inline__P86674.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_setVolume__P5264_mk(s) { +function scene_systemMenu_buildOptionList_inline__P86674_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P5264, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P86674, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function music_playTone__P1622(s) { +function scene_systemMenu_setScreenBrightnessSupported__P69492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52100,82 +53115,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___22605 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_2 == 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.arg1, 86400000); - case 1: - case 2: - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 2000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P4564_mk(s); - s.tmp_2.arg0 = 0; - s.tmp_2.arg1 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_2.arg2 = r0; - s.callLocIdx = 83; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - s.tmp_0 = pause__P413_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_0.arg0 = r0; - s.callLocIdx = 84; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = (globals.playToneID___4566 + 1); - s.tmp_0 = r0; - globals.playToneID___4566 = (r0); - s.id___22605 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P22611); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___22605); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 4: + r0 = 0; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_setScreenBrightnessSupported__P69492.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} + +function scene_systemMenu_setScreenBrightnessSupported__P69492_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P69492, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function scene_systemMenu_sleep__P69491(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_pxtcore.deepSleep(); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playTone__P1622.info = {"start":2612,"length":831,"line":84,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} +scene_systemMenu_sleep__P69491.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function music_playTone__P1622_mk(s) { +function scene_systemMenu_sleep__P69491_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P1622, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P69491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - id___22605: undefined, - arg0: undefined, - arg1: undefined, } } -function music_playTone_inline__P22611(s) { +function scene_systemMenu_toggleConsole__P69490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52185,106 +53170,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___22612 = undefined; - s.now___22622 = undefined; - s.d___22625 = undefined; - s.t___22629 = undefined; - r0 = pxsim.control.millis(); - s.pos___22612 = (r0); - case 1: - r0 = (s.caps[0] == globals.playToneID___4566); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - case 3: - // jmp value (already in r0) + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = pxsim.control.millis(); - s.now___22622 = (r0); - r0 = (s.pos___22612 - s.now___22622); - s.d___22625 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 500; - s.callLocIdx = 85; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.t___22629 = (r0); - s.tmp_0 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.t___22629); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___22612 + s.t___22629); - s.pos___22612 = (r0); - s.tmp_0 = music_playNoteCore__P4564_mk(s); - r0 = (s.d___22625 - 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___22629; - s.callLocIdx = 86; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P413_mk(s); - r0 = (s.d___22625 + s.t___22629); - s.tmp_2.arg0 = r0; - s.callLocIdx = 87; s.pc = 9; return s.tmp_2; - case 9: + if (!r0) { step = 1; continue; } + s.tmp_4 = game_consoleOverlay_setVisible__P67325_mk(s); + s.tmp_4.arg0 = false; + s.tmp_4.arg1 = undefined; + s.callLocIdx = 1750; s.pc = 3; return s.tmp_4; + case 3: r0 = s.retval; - { step = 5; continue; } + { step = 2; continue; } + case 1: + s.tmp_0 = game_consoleOverlay_setVisible__P67325_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1751; s.pc = 4; return s.tmp_0; case 4: - s.tmp_0 = pause__P413_mk(s); - r0 = (s.d___22625 + s.t___22629); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 100); - s.tmp_0.arg0 = r0; - s.callLocIdx = 88; s.pc = 10; return s.tmp_0; - case 10: r0 = s.retval; + s.tmp_0 = console_log__P64599_mk(s); + s.tmp_0.arg0 = "console"; + s.callLocIdx = 1752; s.pc = 5; return s.tmp_0; case 5: - { step = 1; continue; } - case 6: + r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -music_playTone_inline__P22611.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_toggleConsole__P69490.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function music_playTone_inline__P22611_mk(s) { +function scene_systemMenu_toggleConsole__P69490_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone_inline__P22611, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P69490, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___22612: undefined, - now___22622: undefined, - d___22625: undefined, - t___22629: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function music_playNoteCore__P4564(s) { +function game_consoleOverlay_setVisible__P67325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52294,57 +53232,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___22659 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim.control.createBuffer(12); - s.buf___22659 = (r0); - s.tmp_0 = music_addNote__P1636_mk(s); - s.tmp_0.arg0 = s.buf___22659; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 255; - s.tmp_0.arg4 = 255; - s.tmp_0.arg5 = 3; - s.tmp_0.arg6 = s.arg1; - s.tmp_1 = music_volume__P1621_mk(s); - s.callLocIdx = 81; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg7 = r0; - s.tmp_0.arg8 = s.arg1; - s.callLocIdx = 82; s.pc = 1; return s.tmp_0; + s.tmp_1 = r0 = s.arg0; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___22659); + r0 = undefined; + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + globals.consoleStrings___69525 = (s.tmp_6); + case 3: + case 4: + r0 = (s.arg1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + globals.consoleColor___69524 = (s.arg1); + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P4564.info = {"start":1877,"length":240,"line":66,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playNoteCore","argumentNames":["when","frequency","ms"]} +game_consoleOverlay_setVisible__P67325.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} -function music_playNoteCore__P4564_mk(s) { +function game_consoleOverlay_setVisible__P67325_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P4564, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P67325, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___22659: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_systemMenu_volumeUp__P5265(s) { +function console_log__P64599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52354,47 +53305,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___22573 = undefined; - s.remainder___22576 = undefined; - s.newVolume___22579 = undefined; - s.tmp_0 = music_volume__P1621_mk(s); - s.callLocIdx = 1737; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = console_add__P64595_mk(s); + s.tmp_0.arg0 = 1; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 45; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; - s.v___22573 = (r0); - r0 = (s.v___22573 % 32); - s.remainder___22576 = (r0); - r0 = (s.v___22573 + 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___22576); - s.newVolume___22579 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P5264_mk(s); - s.tmp_0.arg0 = s.newVolume___22579; - s.callLocIdx = 1738; s.pc = 2; return s.tmp_0; - case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P5265.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]} +console_log__P64599.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function scene_systemMenu_volumeUp__P5265_mk(s) { +function console_log__P64599_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P5265, depth: s.depth + 1, + parent: s, fn: console_log__P64599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___22573: undefined, - remainder___22576: undefined, - newVolume___22579: undefined, + arg0: undefined, } } -function game_consoleOverlay_isVisible__P3104(s) { +function console_add__P64595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52404,33 +53344,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5306); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.text___86713 = undefined; + s.i___86722 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 < globals.minPriority___64594); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) - default: oops() -} } } -game_consoleOverlay_isVisible__P3104.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} - -function game_consoleOverlay_isVisible__P3104_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_consoleOverlay_isVisible__P3104, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + s.tmp_1 = console_inspect__P64601_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 20; + s.callLocIdx = 43; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.text___86713 = (r0); + if ((s.text___86713) && (s.text___86713).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.text___86713); + checkResumeConsumed(); + return; + } else { s.retval = (s.text___86713) + ""; } + case 7: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.text___86713 = (r0); + s.i___86722 = (0); + case 3: + s.tmp_1 = r0 = s.i___86722; + r0 = pxsim_Array__length(globals.listeners___68725); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = lambda_3_mk(s); + r0 = pxsim_Array__getAt(globals.listeners___68725, s.i___86722); + s.tmp_3.argL = r0; + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.text___86713; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 44; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___86722 + 1); + s.i___86722 = (r0); + { step = 3; continue; } + case 4: + case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +console_add__P64595.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} + +function console_add__P64595_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: console_add__P64595, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + text___86713: undefined, + i___86722: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_closeMenu__P3082(s) { +function scene_systemMenu_toggleStats__P69489(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52440,44 +53434,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___5260); - if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P3081_mk(s); - s.tmp_0.arg0 = globals.instance___5260; - s.callLocIdx = 1753; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - globals.instance___5260 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P2187_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1754; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = game_popScene__P2984_mk(s); - s.callLocIdx = 1755; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.stats___67167); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + globals.stats___67167 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___67167); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = globals.control_EventContext_onStats___64617; case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = lambda_2_mk(s); + s.tmp_3.argL = globals.control_EventContext_onStats___64617; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3.arg0 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1748; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P3082.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} +scene_systemMenu_toggleStats__P69489.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} -function scene_systemMenu_closeMenu__P3082_mk(s) { +function scene_systemMenu_toggleStats__P69489_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P3082, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P69489, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function scene_systemMenu_PauseMenu_dispose__P3081(s) { +function scene_systemMenu_brightnessDown__P69487(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52487,47 +53494,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - r0 = s.arg0.fields["options"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P22218; - s.callLocIdx = 1730; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["options"] = (undefined); + s.tmp_0 = scene_systemMenu_setScreenBrightness__P69488_mk(s); + r0 = globals.brightness___66153; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1744; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P3081.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +scene_systemMenu_brightnessDown__P69487.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} -function scene_systemMenu_PauseMenu_dispose__P3081_mk(s) { +function scene_systemMenu_brightnessDown__P69487_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P3081, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P69487, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, } } -function scene_systemMenu_PauseMenu_dispose_inline__P22218(s) { +function scene_systemMenu_setScreenBrightness__P69488(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52541,21 +53535,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P3074_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1729; s.pc = 1; return s.tmp_0; + s.tmp_0 = helpers_setScreenBrightness__P66165_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1745; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P66263_mk(s); + s.tmp_0.arg0 = "#brightness"; + r0 = globals.brightness___66153; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1747; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose_inline__P22218.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +scene_systemMenu_setScreenBrightness__P69488.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} -function scene_systemMenu_PauseMenu_dispose_inline__P22218_mk(s) { +function scene_systemMenu_setScreenBrightness__P69488_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P22218, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P69488, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -52565,7 +53567,7 @@ function scene_systemMenu_PauseMenu_dispose_inline__P22218_mk(s) { -function scene_systemMenu_MenuOption_dispose__P3074(s) { +function helpers_setScreenBrightness__P66165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52577,55 +53579,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = s.arg0.fields["card"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_destroy__P2408_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 1649; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_destroy__P2408_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 1650; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = (s.arg0).fields["card"] = (undefined); - r0 = (s.arg0).fields["icon"] = (undefined); + s.tmp_0 = Math_clamp__P64346_mk(s); + s.tmp_0.arg0 = 10; + s.tmp_0.arg1 = 100; + r0 = (s.arg1 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 197; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; + s.arg1 = (r0); + globals.brightness___66153 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___66153); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P3074.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +helpers_setScreenBrightness__P66165.info = {"start":7427,"length":210,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function scene_systemMenu_MenuOption_dispose__P3074_mk(s) { +function helpers_setScreenBrightness__P66165_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P3074, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P66165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_MenuOption_constructor__P3068(s) { +function scene_systemMenu_brightnessUp__P69486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52635,40 +53623,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = (s.arg0).fields["iconImage"] = (s.arg1); - r0 = (s.arg0).fields["getText"] = (s.arg2); - r0 = (s.arg0).fields["action"] = (s.arg3); + s.tmp_0 = scene_systemMenu_setScreenBrightness__P69488_mk(s); + r0 = globals.brightness___66153; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1742; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P3068.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} +scene_systemMenu_brightnessUp__P69486.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} -function scene_systemMenu_MenuOption_constructor__P3068_mk(s) { +function scene_systemMenu_brightnessUp__P69486_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P3068, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P69486, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function helpers_screenBrightness__P1947(s) { +function scene_systemMenu_volumeDown__P69485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52678,29 +53660,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = globals.brightness___1934; + s.v___86894 = undefined; + s.remainder___86897 = undefined; + s.newVolume___86900 = undefined; + s.tmp_0 = music_volume__P65840_mk(s); + s.callLocIdx = 1739; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.v___86894 = (r0); + r0 = (s.v___86894 % 32); + s.remainder___86897 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___86897); + if (!r0) { step = 1; continue; } + r0 = s.remainder___86897; + { step = 2; continue; } + case 1: + r0 = 32; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.v___86894 - s.tmp_0); + s.newVolume___86900 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P69483_mk(s); + s.tmp_0.arg0 = s.newVolume___86900; + s.callLocIdx = 1740; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P1947.info = {"start":7643,"length":98,"line":244,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +scene_systemMenu_volumeDown__P69485.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} -function helpers_screenBrightness__P1947_mk(s) { +function scene_systemMenu_volumeDown__P69485_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P1947, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P69485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + v___86894: undefined, + remainder___86897: undefined, + newVolume___86900: undefined, } } -function helpers_arrayConcat__P113(s) { +function scene_systemMenu_setVolume__P69483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52710,83 +53717,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___22458 = undefined; - s.value___22461 = undefined; - s.unnamed68___U2 = undefined; - s.unnamed69___U3 = undefined; - s.value___22468 = undefined; - s.unnamed70___U5 = undefined; - s.unnamed71___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.out___22458 = (r0); - s.value___22461 = (undefined); - s.unnamed68___U2 = (s.arg0); - s.unnamed69___U3 = (0); + s.tmp_0 = music_setVolume__P65839_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1734; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed69___U3; - r0 = pxsim_Array__length(s.unnamed68___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed68___U2, s.unnamed69___U3); - s.value___22461 = (r0); - r0 = pxsim_Array__push(s.out___22458, s.value___22461); - r0 = (s.unnamed69___U3 + 1); - s.unnamed69___U3 = (r0); - { step = 1; continue; } + r0 = s.retval; + s.tmp_0 = music_playTone__P65841_mk(s); + s.tmp_0.arg0 = 440; + s.tmp_0.arg1 = 500; + s.callLocIdx = 1735; s.pc = 2; return s.tmp_0; case 2: - s.unnamed68___U2 = (undefined); - s.value___22468 = (undefined); - s.unnamed70___U5 = (s.arg1); - s.unnamed71___U6 = (0); + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P66263_mk(s); + s.tmp_0.arg0 = "#volume"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1736; s.pc = 3; return s.tmp_0; case 3: - s.tmp_0 = r0 = s.unnamed71___U6; - r0 = pxsim_Array__length(s.unnamed70___U5); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed70___U5, s.unnamed71___U6); - s.value___22468 = (r0); - r0 = pxsim_Array__push(s.out___22458, s.value___22468); - r0 = (s.unnamed71___U6 + 1); - s.unnamed71___U6 = (r0); - { step = 3; continue; } - case 4: - s.unnamed70___U5 = (undefined); - r0 = s.out___22458; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P113.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} +scene_systemMenu_setVolume__P69483.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} -function helpers_arrayConcat__P113_mk(s) { +function scene_systemMenu_setVolume__P69483_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P113, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P69483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - out___22458: undefined, - value___22461: undefined, - unnamed68___U2: undefined, - unnamed69___U3: undefined, - value___22468: undefined, - unnamed70___U5: undefined, - unnamed71___U6: undefined, arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_PauseMenu_show__P3077(s) { +function music_playTone__P65841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52796,336 +53767,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___21774 = undefined; - s.i___21775 = undefined; + s.id___86826 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = if_generator_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); - s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["generator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["generator"], 1); s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1662; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; + r0 = pxsim_pxtrt.mklocRef(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_2 == 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["options"] = (s.tmp_1); - r0 = (s.arg0).fields["selection"] = (0); - s.i___21775 = (0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_stlocRef(s.arg1, 86400000); case 1: - s.tmp_1 = r0 = s.i___21775; - r0 = s.arg0.fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + case 2: + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 2000); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.arg0.fields["options"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.i___21775); - s.current___21774 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P3069_mk(s); - s.tmp_0.arg0 = s.current___21774; - s.callLocIdx = 1663; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P3072_mk(s); - s.tmp_0.arg0 = s.current___21774; - r0 = s.arg0.fields["theme"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1664; s.pc = 5; return s.tmp_0; + if (!r0) { step = 3; continue; } + s.tmp_2 = music_playNoteCore__P68783_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_2.arg2 = r0; + s.callLocIdx = 83; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P3070_mk(s); - s.tmp_0.arg0 = s.current___21774; - s.tmp_2 = if_padding_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "padding"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["padding"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["padding"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1665; s.pc = 7; return s.tmp_2; } - } - case 7: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___21775; - s.tmp_7 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardsPerRow"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1666; s.pc = 8; return s.tmp_7; } - } - case 8: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 % s.tmp_6); - s.tmp_4 = r0; - s.tmp_10 = if_cardWidth_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_10.arg0 = r0; - if (!s.tmp_10.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "cardWidth"); - } else { - s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["cardWidth"]; - if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["cardWidth"]; } - else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } - else { s.callLocIdx = 1667; s.pc = 9; return s.tmp_10; } - } - case 9: - r0 = s.retval; - s.tmp_9 = r0; - s.tmp_12 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_12.arg0 = r0; - if (!s.tmp_12.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "cardSpacing"); - } else { - s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["cardSpacing"]; - if (s.tmp_12.fn == null) { s.retval = s.tmp_12.arg0.fields["cardSpacing"]; } - else if (!s.tmp_12.fn.isGetter) { s.retval = bind(s.tmp_12); } - else { s.callLocIdx = 1668; s.pc = 10; return s.tmp_12; } - } - case 10: - r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_9 + s.tmp_11); - s.tmp_8 = r0; - r0 = (s.tmp_4 * s.tmp_8); - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg1 = r0; - s.tmp_14 = if_cardsTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_14.arg0 = r0; - if (!s.tmp_14.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "cardsTop"); - } else { - s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["cardsTop"]; - if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["cardsTop"]; } - else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 1669; s.pc = 11; return s.tmp_14; } - } - case 11: - r0 = s.retval; - s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___21775; - s.tmp_19 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_19.arg0 = r0; - if (!s.tmp_19.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_19.arg0, "cardsPerRow"); - } else { - s.tmp_19.fn = s.tmp_19.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_19.fn == null) { s.retval = s.tmp_19.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_19.fn.isGetter) { s.retval = bind(s.tmp_19); } - else { s.callLocIdx = 1670; s.pc = 12; return s.tmp_19; } - } - case 12: - r0 = s.retval; - s.tmp_18 = r0; - r0 = pxsim.Math_.idiv(s.tmp_17, s.tmp_18); - s.tmp_16 = r0; - s.tmp_22 = if_cardWidth_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_22.arg0 = r0; - if (!s.tmp_22.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_22.arg0, "cardWidth"); - } else { - s.tmp_22.fn = s.tmp_22.arg0.vtable.iface["cardWidth"]; - if (s.tmp_22.fn == null) { s.retval = s.tmp_22.arg0.fields["cardWidth"]; } - else if (!s.tmp_22.fn.isGetter) { s.retval = bind(s.tmp_22); } - else { s.callLocIdx = 1671; s.pc = 13; return s.tmp_22; } - } - case 13: - r0 = s.retval; - s.tmp_21 = r0; - s.tmp_24 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_24.arg0 = r0; - if (!s.tmp_24.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_24.arg0, "cardSpacing"); - } else { - s.tmp_24.fn = s.tmp_24.arg0.vtable.iface["cardSpacing"]; - if (s.tmp_24.fn == null) { s.retval = s.tmp_24.arg0.fields["cardSpacing"]; } - else if (!s.tmp_24.fn.isGetter) { s.retval = bind(s.tmp_24); } - else { s.callLocIdx = 1672; s.pc = 14; return s.tmp_24; } - } - case 14: - r0 = s.retval; - s.tmp_23 = r0; - r0 = (s.tmp_21 + s.tmp_23); - s.tmp_20 = r0; - r0 = (s.tmp_16 * s.tmp_20); - s.tmp_15 = r0; - r0 = (s.tmp_13 + s.tmp_15); - s.tmp_0.arg2 = r0; - s.callLocIdx = 1673; s.pc = 6; return s.tmp_0; + s.tmp_0 = pause__P64632_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_0.arg0 = r0; + s.callLocIdx = 84; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___21775 + 1); - s.i___21775 = (r0); - { step = 1; continue; } - case 2: - s.tmp_0 = controller__setUserEventsEnabled__P2187_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 1674; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21838); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.A___2094; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1676; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21858); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.A___2094; - s.tmp_1.arg1 = 2052; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1678; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.B___2095; - s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P21887; - s.callLocIdx = 1680; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2177_mk(s); - s.tmp_0.arg0 = globals.menu___2100; - s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P21892; - s.callLocIdx = 1682; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21897); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.up___2097; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1686; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21909); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.left___2096; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1689; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21918); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.down___2099; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1693; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21934); + { step = 4; continue; } + case 3: + r0 = (globals.playToneID___68785 + 1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2177_mk(s); - s.tmp_1.arg0 = globals.right___2098; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1696; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P21946); + globals.playToneID___68785 = (r0); + s.id___86826 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P86832); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P2997_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1699; s.pc = 24; return s.tmp_1; - case 24: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P3079_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1700; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___86826); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); + r0 = pxsim.control.runInParallel(s.tmp_0); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P3077.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +music_playTone__P65841.info = {"start":2612,"length":831,"line":84,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} -function scene_systemMenu_PauseMenu_show__P3077_mk(s) { +function music_playTone__P65841_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P3077, depth: s.depth + 1, + parent: s, fn: music_playTone__P65841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - tmp_23: undefined, - tmp_24: undefined, - current___21774: undefined, - i___21775: undefined, + id___86826: undefined, arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21838(s) { +function music_playTone_inline__P86832(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53135,75 +53852,106 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["options"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.pos___86833 = undefined; + s.now___86843 = undefined; + s.d___86846 = undefined; + s.t___86850 = undefined; + r0 = pxsim.control.millis(); + s.pos___86833 = (r0); + case 1: + r0 = (s.caps[0] == globals.playToneID___68785); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 2; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.caps[0].fields["options"]; - s.tmp_5 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + { step = 3; continue; } case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - { step = 5; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = pxsim.control.millis(); + s.now___86843 = (r0); + r0 = (s.pos___86833 - s.now___86843); + s.d___86846 = (r0); + s.tmp_0 = Math_min__P64350_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 500; + s.callLocIdx = 85; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.t___86850 = (r0); + s.tmp_0 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.t___86850); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = (s.pos___86833 + s.t___86850); + s.pos___86833 = (r0); + s.tmp_0 = music_playNoteCore__P68783_mk(s); + r0 = (s.d___86846 - 1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.caps[2]; + s.tmp_0.arg2 = s.t___86850; + s.callLocIdx = 86; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = pause__P64632_mk(s); + r0 = (s.d___86846 + s.t___86850); + s.tmp_2.arg0 = r0; + s.callLocIdx = 87; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + { step = 5; continue; } case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P3073_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_9 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = 1; - s.callLocIdx = 1675; s.pc = 6; return s.tmp_8; - case 6: + s.tmp_0 = pause__P64632_mk(s); + r0 = (s.d___86846 + s.t___86850); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 100); + s.tmp_0.arg0 = r0; + s.callLocIdx = 88; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; case 5: + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21838.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +music_playTone_inline__P86832.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P21838_mk(s) { +function music_playTone_inline__P86832_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21838, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P86832, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, + pos___86833: undefined, + now___86843: undefined, + d___86846: undefined, + t___86850: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21858(s) { +function music_playNoteCore__P68783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53213,83 +53961,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["options"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.caps[0].fields["options"]; - s.tmp_5 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + s.buf___86880 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = pxsim.control.createBuffer(12); + s.buf___86880 = (r0); + s.tmp_0 = music_addNote__P65855_mk(s); + s.tmp_0.arg0 = s.buf___86880; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 255; + s.tmp_0.arg4 = 255; + s.tmp_0.arg5 = 3; + s.tmp_0.arg6 = s.arg1; + s.tmp_1 = music_volume__P65840_mk(s); + s.callLocIdx = 81; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P3073_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_9 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = 0; - s.callLocIdx = 1677; s.pc = 6; return s.tmp_8; - case 6: r0 = s.retval; - r0 = s.caps[0].fields["options"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - r0 = r0.fields["action"]; - s.tmp_0 = r0; - r0 = pxsim.control.runInParallel(s.tmp_0); - case 5: + s.tmp_0.arg7 = r0; + s.tmp_0.arg8 = s.arg1; + s.callLocIdx = 82; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___86880); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21858.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +music_playNoteCore__P68783.info = {"start":1877,"length":240,"line":66,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playNoteCore","argumentNames":["when","frequency","ms"]} -function scene_systemMenu_PauseMenu_show_inline__P21858_mk(s) { +function music_playNoteCore__P68783_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21858, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P68783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, + buf___86880: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21887(s) { +function scene_systemMenu_volumeUp__P69484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53299,29 +54021,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P3082_mk(s); - s.callLocIdx = 1679; s.pc = 1; return s.tmp_0; + s.v___86794 = undefined; + s.remainder___86797 = undefined; + s.newVolume___86800 = undefined; + s.tmp_0 = music_volume__P65840_mk(s); + s.callLocIdx = 1737; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.v___86794 = (r0); + r0 = (s.v___86794 % 32); + s.remainder___86797 = (r0); + r0 = (s.v___86794 + 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.remainder___86797); + s.newVolume___86800 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P69483_mk(s); + s.tmp_0.arg0 = s.newVolume___86800; + s.callLocIdx = 1738; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21887.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_volumeUp__P69484.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P21887_mk(s) { +function scene_systemMenu_volumeUp__P69484_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21887, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P69484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + v___86794: undefined, + remainder___86797: undefined, + newVolume___86800: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21892(s) { +function game_consoleOverlay_isVisible__P67323(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53331,29 +54071,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P3082_mk(s); - s.callLocIdx = 1681; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___69525); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21892.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +game_consoleOverlay_isVisible__P67323.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P21892_mk(s) { +function game_consoleOverlay_isVisible__P67323_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21892, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P67323, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21897(s) { +function scene_systemMenu_closeMenu__P67301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53363,58 +54107,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P3079_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_1.arg0 = 0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - s.tmp_4 = if_cardsPerRow_1_mk(s); - r0 = s.caps[0].fields["theme"]; - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "cardsPerRow"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1683; s.pc = 3; return s.tmp_4; } - } + r0 = pxsim_numops_toBoolDecr(globals.instance___69479); + if (!r0) { step = 1; continue; } + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P67300_mk(s); + s.tmp_0.arg0 = globals.instance___69479; + s.callLocIdx = 1753; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1684; s.pc = 2; return s.tmp_1; - case 2: + globals.instance___69479 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1754; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1685; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = game_popScene__P67203_mk(s); + s.callLocIdx = 1755; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21897.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_closeMenu__P67301.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P21897_mk(s) { +function scene_systemMenu_closeMenu__P67301_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21897, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P67301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21909(s) { +function scene_systemMenu_PauseMenu_dispose__P67300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53424,42 +54154,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P3079_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_1.arg0 = 0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1687; s.pc = 2; return s.tmp_1; - case 2: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P86439; + s.callLocIdx = 1730; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1688; s.pc = 1; return s.tmp_0; + r0 = (s.arg0).fields["options"] = (undefined); case 1: - r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21909.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_dispose__P67300.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_show_inline__P21909_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P67300_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21909, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P67300, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21918(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P86439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53469,65 +54204,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P3079_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P131_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_4 = r0; - s.tmp_6 = if_cardsPerRow_1_mk(s); - r0 = s.caps[0].fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "cardsPerRow"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1690; s.pc = 3; return s.tmp_6; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 3: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1691; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1692; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P67293_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1729; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21918.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_dispose_inline__P86439.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} -function scene_systemMenu_PauseMenu_show_inline__P21918_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P86439_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21918, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P86439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, + arg0: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21934(s) { +function scene_systemMenu_MenuOption_dispose__P67293(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53537,49 +54242,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P3079_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P131_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = s.arg0.fields["card"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = Sprite_destroy__P66627_mk(s); + r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1694; s.pc = 2; return s.tmp_1; - case 2: + s.tmp_1.arg1 = undefined; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1649; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1695; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = Sprite_destroy__P66627_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 1650; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + r0 = (s.arg0).fields["card"] = (undefined); + r0 = (s.arg0).fields["icon"] = (undefined); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21934.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_dispose__P67293.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_show_inline__P21934_mk(s) { +function scene_systemMenu_MenuOption_dispose__P67293_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21934, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P67293, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + arg0: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P21946(s) { +function scene_systemMenu_MenuOption_constructor__P67287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53589,35 +54302,158 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P3078_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1697; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = (s.arg0).fields["iconImage"] = (s.arg1); + r0 = (s.arg0).fields["getText"] = (s.arg2); + r0 = (s.arg0).fields["action"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_MenuOption_constructor__P67287.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} + +function scene_systemMenu_MenuOption_constructor__P67287_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_constructor__P67287, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function helpers_screenBrightness__P66166(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = globals.brightness___66153; + return leave(s, r0) + default: oops() +} } } +helpers_screenBrightness__P66166.info = {"start":7643,"length":98,"line":244,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} + +function helpers_screenBrightness__P66166_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_screenBrightness__P66166, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function helpers_arrayConcat__P64332(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.out___86679 = undefined; + s.value___86682 = undefined; + s.unnamed340___U2 = undefined; + s.unnamed341___U3 = undefined; + s.value___86689 = undefined; + s.unnamed342___U5 = undefined; + s.unnamed343___U6 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.out___86679 = (r0); + s.value___86682 = (undefined); + s.unnamed340___U2 = (s.arg0); + s.unnamed341___U3 = (0); case 1: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P3080_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1698; s.pc = 2; return s.tmp_0; + s.tmp_0 = r0 = s.unnamed341___U3; + r0 = pxsim_Array__length(s.unnamed340___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed340___U2, s.unnamed341___U3); + s.value___86682 = (r0); + r0 = pxsim_Array__push(s.out___86679, s.value___86682); + r0 = (s.unnamed341___U3 + 1); + s.unnamed341___U3 = (r0); + { step = 1; continue; } case 2: - r0 = s.retval; - r0 = undefined; + s.unnamed340___U2 = (undefined); + s.value___86689 = (undefined); + s.unnamed342___U5 = (s.arg1); + s.unnamed343___U6 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed343___U6; + r0 = pxsim_Array__length(s.unnamed342___U5); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed342___U5, s.unnamed343___U6); + s.value___86689 = (r0); + r0 = pxsim_Array__push(s.out___86679, s.value___86689); + r0 = (s.unnamed343___U6 + 1); + s.unnamed343___U6 = (r0); + { step = 3; continue; } + case 4: + s.unnamed342___U5 = (undefined); + r0 = s.out___86679; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P21946.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +helpers_arrayConcat__P64332.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} -function scene_systemMenu_PauseMenu_show_inline__P21946_mk(s) { +function helpers_arrayConcat__P64332_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P21946, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P64332, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + out___86679: undefined, + value___86682: undefined, + unnamed340___U2: undefined, + unnamed341___U3: undefined, + value___86689: undefined, + unnamed342___U5: undefined, + unnamed343___U6: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_drawText__P3080(s) { +function scene_systemMenu_PauseMenu_show__P67296(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53627,277 +54463,300 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.current___85995 = undefined; + s.i___85996 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = if_generator_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); + s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["generator"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["generator"], 1); s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1662; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["options"] = (s.tmp_1); + r0 = (s.arg0).fields["selection"] = (0); + s.i___85996 = (0); + case 1: + s.tmp_1 = r0 = s.i___85996; r0 = s.arg0.fields["options"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_3 = helpers_imageFillRect__P1939_mk(s); - s.tmp_3.arg0 = globals.screen___2013; - s.tmp_3.arg1 = 0; - s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_3.arg3 = r0; - s.tmp_5 = if_cardsTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardsTop"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardsTop"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardsTop"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1711; s.pc = 5; return s.tmp_5; } - } - case 5: - r0 = s.retval; + if (!r0) { step = 2; continue; } + r0 = s.arg0.fields["options"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - 2); - s.tmp_3.arg4 = r0; - s.tmp_3.arg5 = 15; - s.callLocIdx = 1712; s.pc = 4; return s.tmp_3; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___85996); + s.current___85995 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P67288_mk(s); + s.tmp_0.arg0 = s.current___85995; + s.callLocIdx = 1663; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_1 = if_headerText_1_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P67291_mk(s); + s.tmp_0.arg0 = s.current___85995; r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "headerText"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["headerText"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["headerText"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1713; s.pc = 7; return s.tmp_1; } - } - case 7: - r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 2; - s.tmp_0.arg3 = 1; - s.tmp_2 = if_headerFont_1_mk(s); + s.callLocIdx = 1664; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_MenuOption_position__P67289_mk(s); + s.tmp_0.arg0 = s.current___85995; + s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "headerFont"); + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "padding"); } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["headerFont"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["headerFont"]; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["padding"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["padding"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1714; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1665; s.pc = 7; return s.tmp_2; } } - case 8: - r0 = s.retval; - s.tmp_0.arg4 = r0; - s.callLocIdx = 1715; s.pc = 6; return s.tmp_0; - case 6: + case 7: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_0.arg1 = 0; - s.tmp_2 = if_infoTop_1_mk(s); + s.tmp_1 = r0; + s.tmp_5 = r0 = s.i___85996; + s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardsPerRow"); } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1716; s.pc = 10; return s.tmp_2; } + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 1666; s.pc = 8; return s.tmp_7; } } - case 10: + case 8: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); + s.tmp_6 = r0; + r0 = (s.tmp_5 % s.tmp_6); s.tmp_4 = r0; - s.tmp_6 = if_infoTop_1_mk(s); + s.tmp_10 = if_cardWidth_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoTop"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoTop"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoTop"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1717; s.pc = 11; return s.tmp_6; } + s.tmp_10.arg0 = r0; + if (!s.tmp_10.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "cardWidth"); + } else { + s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["cardWidth"]; + if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["cardWidth"]; } + else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } + else { s.callLocIdx = 1667; s.pc = 9; return s.tmp_10; } } - case 11: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 6); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 15; - s.callLocIdx = 1718; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_1 = if_padding_1_mk(s); + s.tmp_9 = r0; + s.tmp_12 = if_cardSpacing_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "padding"); + s.tmp_12.arg0 = r0; + if (!s.tmp_12.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "cardSpacing"); } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["padding"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["padding"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1719; s.pc = 13; return s.tmp_1; } + s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["cardSpacing"]; + if (s.tmp_12.fn == null) { s.retval = s.tmp_12.arg0.fields["cardSpacing"]; } + else if (!s.tmp_12.fn.isGetter) { s.retval = bind(s.tmp_12); } + else { s.callLocIdx = 1668; s.pc = 10; return s.tmp_12; } } - case 13: + case 10: r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_9 + s.tmp_11); + s.tmp_8 = r0; + r0 = (s.tmp_4 * s.tmp_8); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); s.tmp_0.arg1 = r0; - s.tmp_2 = if_infoTop_1_mk(s); + s.tmp_14 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + s.tmp_14.arg0 = r0; + if (!s.tmp_14.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "cardsTop"); } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1720; s.pc = 14; return s.tmp_2; } + s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["cardsTop"]; + if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["cardsTop"]; } + else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } + else { s.callLocIdx = 1669; s.pc = 11; return s.tmp_14; } } - case 14: + case 11: r0 = s.retval; - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_3 = r0; - s.tmp_6 = if_padding_1_mk(s); + s.tmp_13 = r0; + s.tmp_17 = r0 = s.i___85996; + s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "padding"); + s.tmp_19.arg0 = r0; + if (!s.tmp_19.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_19.arg0, "cardsPerRow"); } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["padding"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["padding"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1721; s.pc = 15; return s.tmp_6; } + s.tmp_19.fn = s.tmp_19.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_19.fn == null) { s.retval = s.tmp_19.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_19.fn.isGetter) { s.retval = bind(s.tmp_19); } + else { s.callLocIdx = 1670; s.pc = 12; return s.tmp_19; } } - case 15: + case 12: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 << 1); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_0.arg3 = r0; - s.tmp_8 = if_charHeight_1_mk(s); - s.tmp_9 = if_infoFont_1_mk(s); + s.tmp_18 = r0; + r0 = pxsim.Math_.idiv(s.tmp_17, s.tmp_18); + s.tmp_16 = r0; + s.tmp_22 = if_cardWidth_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_9.arg0 = r0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "infoFont"); + s.tmp_22.arg0 = r0; + if (!s.tmp_22.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_22.arg0, "cardWidth"); } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["infoFont"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["infoFont"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 1722; s.pc = 17; return s.tmp_9; } + s.tmp_22.fn = s.tmp_22.arg0.vtable.iface["cardWidth"]; + if (s.tmp_22.fn == null) { s.retval = s.tmp_22.arg0.fields["cardWidth"]; } + else if (!s.tmp_22.fn.isGetter) { s.retval = bind(s.tmp_22); } + else { s.callLocIdx = 1671; s.pc = 13; return s.tmp_22; } } - case 17: + case 13: r0 = s.retval; - s.tmp_8.arg0 = r0; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + s.tmp_21 = r0; + s.tmp_24 = if_cardSpacing_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_24.arg0 = r0; + if (!s.tmp_24.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_24.arg0, "cardSpacing"); } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1723; s.pc = 16; return s.tmp_8; } + s.tmp_24.fn = s.tmp_24.arg0.vtable.iface["cardSpacing"]; + if (s.tmp_24.fn == null) { s.retval = s.tmp_24.arg0.fields["cardSpacing"]; } + else if (!s.tmp_24.fn.isGetter) { s.retval = bind(s.tmp_24); } + else { s.callLocIdx = 1672; s.pc = 14; return s.tmp_24; } } + case 14: + r0 = s.retval; + s.tmp_23 = r0; + r0 = (s.tmp_21 + s.tmp_23); + s.tmp_20 = r0; + r0 = (s.tmp_16 * s.tmp_20); + s.tmp_15 = r0; + r0 = (s.tmp_13 + s.tmp_15); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1673; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = (s.i___85996 + 1); + s.i___85996 = (r0); + { step = 1; continue; } + case 2: + s.tmp_0 = controller__setUserEventsEnabled__P66406_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1674; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86059); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.A___66313; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1676; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 + 1); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1724; s.pc = 12; return s.tmp_0; - case 12: + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86079); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.A___66313; + s.tmp_1.arg1 = 2052; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1678; s.pc = 17; return s.tmp_1; + case 17: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P1970_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_1 = if_getText_1_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "getText"), 1); - s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["getText"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["getText"], 1); s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1725; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; } - } + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.B___66314; + s.tmp_0.arg1 = 2053; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P86108; + s.callLocIdx = 1680; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P66396_mk(s); + s.tmp_0.arg0 = globals.menu___66319; + s.tmp_0.arg1 = 2053; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P86113; + s.callLocIdx = 1682; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_5 = if_infoTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "infoTop"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["infoTop"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["infoTop"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1726; s.pc = 20; return s.tmp_5; } - } + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86118); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.up___66316; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1686; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 15; - s.tmp_6 = if_infoFont_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoFont"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoFont"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoFont"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1727; s.pc = 21; return s.tmp_6; } - } + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86130); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.left___66315; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1689; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - s.tmp_0.arg4 = r0; - s.callLocIdx = 1728; s.pc = 18; return s.tmp_0; - case 18: + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86139); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.down___66318; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1693; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86155); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P66396_mk(s); + s.tmp_1.arg0 = globals.right___66317; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1696; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P86167); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = game_onShade__P67216_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1699; s.pc = 24; return s.tmp_1; + case 24: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P67298_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1700; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P3080.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show__P67296.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_drawText__P3080_mk(s) { +function scene_systemMenu_PauseMenu_show__P67296_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P3080, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P67296, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53909,6 +54768,23 @@ function scene_systemMenu_PauseMenu_drawText__P3080_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + current___85995: undefined, + i___85996: undefined, arg0: undefined, } } @@ -53916,7 +54792,7 @@ function scene_systemMenu_PauseMenu_drawText__P3080_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P3079(s) { +function scene_systemMenu_PauseMenu_show_inline__P86059(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53926,100 +54802,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - r0 = s.arg0.fields["options"]; + r0 = s.caps[0].fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 9; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - case 2: - r0 = s.arg0.fields["options"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["selection"]; + r0 = s.caps[0].fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + r0 = s.caps[0].fields["selection"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_6 = scene_systemMenu_MenuOption_setState__P3073_mk(s); - r0 = s.arg0.fields["options"]; + r0 = pxsim_Boolean__bang(s.tmp_3); + case 2: + // jmp value (already in r0) s.tmp_7 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = 2; - s.callLocIdx = 1708; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + { step = 5; continue; } case 3: case 4: - r0 = (s.arg0).fields["selection"] = (s.arg1); - r0 = s.arg0.fields["options"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C2170_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___2094; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.isPressed; - s.pc = 11; return s.tmp_4; - case 11: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = 1; - { step = 6; continue; } - case 5: - r0 = 0; + s.tmp_8 = scene_systemMenu_MenuOption_setState__P67292_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_9 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = 1; + s.callLocIdx = 1675; s.pc = 6; return s.tmp_8; case 6: - // jmp value (already in r0) - s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P3073_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_7 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 1709; s.pc = 12; return s.tmp_6; - case 12: - r0 = s.retval; - case 7: - case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P5263_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1710; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; - case 9: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P3079.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]} +scene_systemMenu_PauseMenu_show_inline__P86059.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_setSelection__P3079_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86059_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P3079, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86059, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -54030,15 +54862,15 @@ function scene_systemMenu_PauseMenu_setSelection__P3079_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - arg0: undefined, - arg1: undefined, + tmp_9: undefined, + tmp_10: undefined, } } -function scene_systemMenu_PauseMenu_updateScrollTarget__P5263(s) { +function scene_systemMenu_PauseMenu_show_inline__P86079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54048,121 +54880,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___22164 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - r0 = s.arg0.fields["selection"]; - s.tmp_0 = r0; - s.tmp_2 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "cardsPerRow"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1731; s.pc = 8; return s.tmp_2; } - } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.row___22164 = (r0); - r0 = s.arg0.fields["scrollRow"]; + r0 = s.caps[0].fields["options"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.row___22164 === s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.row___22164 - 1); - s.tmp_2 = r0; - r0 = s.arg0.fields["scrollRow"]; + r0 = s.caps[0].fields["options"]; + s.tmp_5 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_2 === s.tmp_3); + r0 = pxsim_Boolean__bang(s.tmp_3); case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 3; continue; } - { step = 7; continue; } + { step = 5; continue; } case 3: case 4: - r0 = s.arg0.fields["scrollRow"]; - s.tmp_6 = r0; - r0 = (s.row___22164 > s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 5; continue; } - s.tmp_7 = r0 = s.arg0; - r0 = s.tmp_7.fields["scrollRow"]; + s.tmp_8 = scene_systemMenu_MenuOption_setState__P67292_mk(s); + r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; - r0 = (s.tmp_9 + 1); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["scrollRow"] = (s.tmp_8); - { step = 6; continue; } - case 5: - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["scrollRow"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["scrollRow"] = (s.tmp_1); + r0 = s.caps[0].fields["selection"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = 0; + s.callLocIdx = 1677; s.pc = 6; return s.tmp_8; case 6: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["scrollRow"]; - s.tmp_2 = r0; - s.tmp_5 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardSpacing"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardSpacing"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardSpacing"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1732; s.pc = 9; return s.tmp_5; } - } - case 9: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_7 = if_cardWidth_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardWidth"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardWidth"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardWidth"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1733; s.pc = 10; return s.tmp_7; } - } - case 10: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); + r0 = s.caps[0].fields["options"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["scrollTarget"] = (s.tmp_1); - case 7: + r0 = s.caps[0].fields["selection"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + r0 = r0.fields["action"]; + s.tmp_0 = r0; + r0 = pxsim.control.runInParallel(s.tmp_0); + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P5263.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show_inline__P86079.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_updateScrollTarget__P5263_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86079_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P5263, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86079, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -54174,15 +54949,14 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P5263_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___22164: undefined, - arg0: undefined, + tmp_10: undefined, } } -function scene_systemMenu_PauseMenu_onUpdate__P3078(s) { +function scene_systemMenu_PauseMenu_show_inline__P86108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54192,247 +54966,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___22024 = undefined; - s.i___22028 = undefined; - s.dt___22057 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 250); - s.t___22024 = (r0); - s.i___22028 = (0); + s.tmp_0 = scene_systemMenu_closeMenu__P67301_mk(s); + s.callLocIdx = 1679; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___22028; - r0 = s.arg0.fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P3071_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___22028); - s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___22024; - s.tmp_11 = r0 = s.i___22028; - s.tmp_13 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_13.arg0 = r0; - if (!s.tmp_13.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "cardsPerRow"); - } else { - s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["cardsPerRow"]; - if (s.tmp_13.fn == null) { s.retval = s.tmp_13.arg0.fields["cardsPerRow"]; } - else if (!s.tmp_13.fn.isGetter) { s.retval = bind(s.tmp_13); } - else { s.callLocIdx = 1701; s.pc = 11; return s.tmp_13; } - } - case 11: - r0 = s.retval; - s.tmp_12 = r0; - r0 = (s.tmp_11 % s.tmp_12); - s.tmp_10 = r0; - r0 = (s.tmp_10 * 1.5707963267948966); - s.tmp_9 = r0; - r0 = (s.tmp_8 - s.tmp_9); - s.tmp_7 = r0; - r0 = pxsim.Math_.sin(s.tmp_7); - s.tmp_6 = r0; - r0 = (2 * s.tmp_6); - s.tmp_4.arg1 = r0; - s.callLocIdx = 1702; s.pc = 10; return s.tmp_4; - case 10: - r0 = s.retval; - r0 = (s.i___22028 + 1); - s.i___22028 = (r0); - { step = 1; continue; } - case 2: - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1703; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - r0 = r0.fields["eventContext"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.dt___22057 = (r0); - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["scrollOffset"]; - s.tmp_5 = r0; - r0 = (s.dt___22057 * 100); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["scrollOffset"]; - s.tmp_5 = r0; - r0 = (s.dt___22057 * 100); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); - { step = 5; continue; } - case 4: - { step = 9; continue; } - case 5: - case 6: - s.tmp_2 = Math_abs__P128_mk(s); - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2.arg0 = r0; - s.callLocIdx = 1705; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_5 = r0; - r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); - case 7: - case 8: - s.tmp_0 = scene_Camera_offsetY__P2769_mk(s); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1706; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - r0 = r0.fields["camera"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1707; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 9: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_PauseMenu_onUpdate__P3078.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]} - -function scene_systemMenu_PauseMenu_onUpdate__P3078_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P3078, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - t___22024: undefined, - i___22028: undefined, - dt___22057: undefined, - arg0: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_setOffset__P3071(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2384_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["top"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1644; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_y__P2337_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1645; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1646; s.pc = 2; return s.tmp_0; - case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P3071.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]} +scene_systemMenu_PauseMenu_show_inline__P86108.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_setOffset__P3071_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86108_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P3071, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_MenuOption_setState__P3073(s) { +function scene_systemMenu_PauseMenu_show_inline__P86113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54442,51 +54998,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = s.arg0.fields["state"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = scene_systemMenu_closeMenu__P67301_mk(s); + s.callLocIdx = 1681; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P5262_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1648; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P3073.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]} +scene_systemMenu_PauseMenu_show_inline__P86113.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_setState__P3073_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86113_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P3073, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_MenuOption_updateCard__P5262(s) { +function scene_systemMenu_PauseMenu_show_inline__P86118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54496,151 +55030,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P67298_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_1.arg0 = 0; + r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = s.arg0.fields["state"]; - s.tmp_3 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 3: - s.tmp_4 = Sprite_setImage__P2371_mk(s); - r0 = s.arg0.fields["card"]; + s.tmp_4 = if_cardsPerRow_1_mk(s); + r0 = s.caps[0].fields["theme"]; s.tmp_4.arg0 = r0; - s.tmp_5 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1651; s.pc = 9; return s.tmp_5; } - } - case 9: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 1652; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - { step = 6; continue; } - case 4: - s.tmp_0 = Sprite_setImage__P2371_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_selectedCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1653; s.pc = 11; return s.tmp_1; } - } - case 11: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1654; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = Sprite_setImage__P2371_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_activeCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "cardsPerRow"); } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1655; s.pc = 13; return s.tmp_1; } + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1683; s.pc = 3; return s.tmp_4; } } - case 13: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1656; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - case 6: - s.tmp_0 = Sprite_x__P2335_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P2334_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1657; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1658; s.pc = 14; return s.tmp_0; - case 14: + case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P2337_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1659; s.pc = 17; return s.tmp_1; - case 17: + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1684; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1660; s.pc = 16; return s.tmp_0; - case 16: + s.callLocIdx = 1685; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P5262.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show_inline__P86118.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_updateCard__P5262_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86118_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P5262, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, } } -function scene_systemMenu_MenuOption_setTheme__P3072(s) { +function scene_systemMenu_PauseMenu_show_inline__P86130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54650,40 +55091,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P5262_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1647; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P67298_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_1.arg0 = 0; + r0 = s.caps[0].fields["selection"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1687; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1688; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P3072.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} +scene_systemMenu_PauseMenu_show_inline__P86130.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_setTheme__P3072_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86130_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P3072, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function scene_systemMenu_MenuOption_position__P3070(s) { +function scene_systemMenu_PauseMenu_show_inline__P86139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54693,78 +55136,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P2380_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1638; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_top__P2384_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1639; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_x__P2335_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P2334_mk(s); - r0 = s.arg0.fields["card"]; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P67298_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_min__P64350_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); s.tmp_1.arg0 = r0; - s.callLocIdx = 1640; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1641; s.pc = 3; return s.tmp_0; + r0 = s.caps[0].fields["selection"]; + s.tmp_4 = r0; + s.tmp_6 = if_cardsPerRow_1_mk(s); + r0 = s.caps[0].fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "cardsPerRow"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1690; s.pc = 3; return s.tmp_6; } + } case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P2337_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1642; s.pc = 6; return s.tmp_1; - case 6: + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1691; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1643; s.pc = 5; return s.tmp_0; - case 5: + s.callLocIdx = 1692; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P3070.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} +scene_systemMenu_PauseMenu_show_inline__P86139.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_position__P3070_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86139_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P3070, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, } } -function scene_systemMenu_MenuOption_show__P3069(s) { +function scene_systemMenu_PauseMenu_show_inline__P86155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54774,108 +55204,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C3067_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1633; s.pc = 3; return s.tmp_1; } - } - case 3: - r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = globals.CARD_NORMAL___3091; - case 2: - // jmp value (already in r0) + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P67298_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_min__P64350_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P2256_mk(s); - s.tmp_5.arg0 = s.tmp_2; - s.tmp_5.arg1 = undefined; - s.callLocIdx = 1634; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg0 = r0; + r0 = s.caps[0].fields["selection"]; s.tmp_4 = r0; - r0 = (s.tmp_3).fields["card"] = (s.tmp_4); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 1635; s.pc = 5; return s.tmp_0; } - } - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P2256_mk(s); - r0 = s.arg0.fields["iconImage"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 1636; s.pc = 6; return s.tmp_2; - case 6: + r0 = (s.tmp_4 + 1); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1694; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 2; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 1637; s.pc = 7; return s.tmp_0; } - } - case 7: + s.tmp_0.arg1 = r0; + s.callLocIdx = 1695; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["state"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P3069.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show_inline__P86155.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_MenuOption_show__P3069_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86155_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P3069, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, } } -function game_onShade__P2997(s) { +function scene_systemMenu_PauseMenu_show_inline__P86167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54885,54 +55256,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_init__P5015_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 1620; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P67297_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1697; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P67299_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1698; s.pc = 2; return s.tmp_0; case 2: - s.tmp_2 = scene_createRenderable__P2785_mk(s); - s.tmp_2.arg0 = 80; - s.tmp_2.arg1 = s.arg0; - s.tmp_2.arg2 = undefined; - s.callLocIdx = 1621; s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onShade__P2997.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +scene_systemMenu_PauseMenu_show_inline__P86167.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function game_onShade__P2997_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P86167_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P2997, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P86167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, } } -function scene_systemMenu_PauseMenu_constructor__P3076(s) { +function scene_systemMenu_PauseMenu_drawText__P67299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54944,59 +55296,294 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C3075_VT)) failedCast(r0); - r0 = (s.arg0).fields["generator"] = (s.arg1); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P3084_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___3091); + case 2: + s.tmp_3 = helpers_imageFillRect__P66158_mk(s); + s.tmp_3.arg0 = globals.screen___66232; + s.tmp_3.arg1 = 0; + s.tmp_3.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_3.arg3 = r0; + s.tmp_5 = if_cardsTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardsTop"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardsTop"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardsTop"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1711; s.pc = 5; return s.tmp_5; } + } + case 5: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 - 2); + s.tmp_3.arg4 = r0; + s.tmp_3.arg5 = 15; + s.callLocIdx = 1712; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_1 = if_headerText_1_mk(s); + r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 3; - s.tmp_1.arg2 = undefined; - s.tmp_1.arg3 = undefined; - s.callLocIdx = 1661; s.pc = 3; return s.tmp_1; - case 3: + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "headerText"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["headerText"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["headerText"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1713; s.pc = 7; return s.tmp_1; } + } + case 7: r0 = s.retval; - case 2: - // jmp value (already in r0) + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 2; + s.tmp_0.arg3 = 1; + s.tmp_2 = if_headerFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "headerFont"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["headerFont"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["headerFont"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1714; s.pc = 8; return s.tmp_2; } + } + case 8: + r0 = s.retval; + s.tmp_0.arg4 = r0; + s.callLocIdx = 1715; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_0.arg1 = 0; + s.tmp_2 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1716; s.pc = 10; return s.tmp_2; } + } + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0.arg3 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_4 = r0; + s.tmp_6 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoTop"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoTop"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoTop"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1717; s.pc = 11; return s.tmp_6; } + } + case 11: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 6); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 15; + s.callLocIdx = 1718; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_1 = if_padding_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "padding"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["padding"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["padding"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1719; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1720; s.pc = 14; return s.tmp_2; } + } + case 14: + r0 = s.retval; + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_3 = r0; + s.tmp_6 = if_padding_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "padding"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["padding"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["padding"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1721; s.pc = 15; return s.tmp_6; } + } + case 15: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 << 1); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_0.arg3 = r0; + s.tmp_8 = if_charHeight_1_mk(s); + s.tmp_9 = if_infoFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_9.arg0 = r0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "infoFont"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["infoFont"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["infoFont"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 1722; s.pc = 17; return s.tmp_9; } + } + case 17: + r0 = s.retval; + s.tmp_8.arg0 = r0; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1723; s.pc = 16; return s.tmp_8; } + } + case 16: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 + 1); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1724; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = helpers_imagePrintCenter__P66189_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_1 = if_getText_1_mk(s); + r0 = s.arg0.fields["options"]; s.tmp_2 = r0; - r0 = (s.arg0).fields["theme"] = (s.tmp_2); - r0 = (s.arg0).fields["scrollRow"] = (0); - r0 = (s.arg0).fields["scrollOffset"] = (0); - r0 = (s.arg0).fields["scrollTarget"] = (0); + r0 = s.arg0.fields["selection"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "getText"), 1); + s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["getText"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["getText"], 1); s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1725; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1725; s.pc = 19; return s.tmp_1; } + } + case 19: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_5 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "infoTop"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["infoTop"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["infoTop"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1726; s.pc = 20; return s.tmp_5; } + } + case 20: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 15; + s.tmp_6 = if_infoFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoFont"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoFont"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoFont"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1727; s.pc = 21; return s.tmp_6; } + } + case 21: + r0 = s.retval; + s.tmp_0.arg4 = r0; + s.callLocIdx = 1728; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P3076.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} +scene_systemMenu_PauseMenu_drawText__P67299.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_constructor__P3076_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P67299_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P3076, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P67299, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_systemMenu_buildMenuTheme__P3084(s) { +function scene_systemMenu_PauseMenu_setSelection__P67298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55006,120 +55593,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___22708 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_0 = r0; - r0 = (s.arg0 + s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.cardsPerRow___22708 = (r0); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 9; continue; } case 1: - r0 = globals.font8___1956; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg2 = (s.tmp_1); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = s.arg0.fields["options"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_1 = image_doubledFont__P1959_mk(s); - s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1771; s.pc = 5; return s.tmp_1; - case 5: + s.tmp_6 = scene_systemMenu_MenuOption_setState__P67292_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_7 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = 2; + s.callLocIdx = 1708; s.pc = 10; return s.tmp_6; + case 10: r0 = s.retval; + case 3: case 4: - // jmp value (already in r0) + r0 = (s.arg0).fields["selection"] = (s.arg1); + r0 = s.arg0.fields["options"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["selection"]; s.tmp_2 = r0; - s.arg3 = (s.tmp_2); - r0 = pxsim_pxtrt.mkMap(); + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardSpacing", s.arg1); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardWidth", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___22708); - r0 = pxsim_ImageMethods.width(globals.screen___2013); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_4 = controller_Button__C66389_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___66313; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.isPressed; + s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.cardsPerRow___22708 * s.arg0); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) s.tmp_5 = r0; - r0 = (s.cardsPerRow___22708 - 1); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P67292_mk(s); + r0 = s.arg0.fields["options"]; s.tmp_7 = r0; - r0 = (s.tmp_7 * s.arg1); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "padding", s.tmp_1); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoFont", s.arg2); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerFont", s.arg3); - s.tmp_11 = if_charHeight_1_mk(s); - s.tmp_11.arg0 = s.arg3; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1772; s.pc = 6; return s.tmp_11; } - } - case 6: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_10 + 2); - s.tmp_9 = r0; - r0 = (s.tmp_9 + s.arg1); + r0 = s.arg0.fields["selection"]; s.tmp_8 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_14 = r0; - s.tmp_16 = if_charHeight_1_mk(s); - s.tmp_16.arg0 = s.arg2; - if (!s.tmp_16.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_16.arg0, "charHeight"); - } else { - s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; - if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } - else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } - else { s.callLocIdx = 1773; s.pc = 7; return s.tmp_16; } - } + r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = s.tmp_5; + s.callLocIdx = 1709; s.pc = 12; return s.tmp_6; + case 12: + r0 = s.retval; case 7: + case 8: + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P69482_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1710; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - s.tmp_15 = r0; - r0 = (s.tmp_14 - s.tmp_15); - s.tmp_13 = r0; - r0 = (s.tmp_13 - 2); - s.tmp_12 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___3092); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___3093); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___3091); - r0 = s.tmp_0; + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P3084.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} +scene_systemMenu_PauseMenu_setSelection__P67298.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]} -function scene_systemMenu_buildMenuTheme__P3084_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P67298_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P3084, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P67298, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55130,26 +55697,15 @@ function scene_systemMenu_buildMenuTheme__P3084_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - cardsPerRow___22708: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function image_doubledFont__P1959(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P69482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55159,27 +55715,133 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.row___86385 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P1960_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - s.callLocIdx = 198; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = s.arg0.fields["selection"]; + s.tmp_0 = r0; + s.tmp_2 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "cardsPerRow"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1731; s.pc = 8; return s.tmp_2; } + } + case 8: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); + s.row___86385 = (r0); + r0 = s.arg0.fields["scrollRow"]; + s.tmp_1 = r0; + r0 = (s.row___86385 === s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.row___86385 - 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["scrollRow"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 === s.tmp_3); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = s.arg0.fields["scrollRow"]; + s.tmp_6 = r0; + r0 = (s.row___86385 > s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + s.tmp_7 = r0 = s.arg0; + r0 = s.tmp_7.fields["scrollRow"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 + 1); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["scrollRow"] = (s.tmp_8); + { step = 6; continue; } + case 5: + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["scrollRow"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["scrollRow"] = (s.tmp_1); + case 6: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["scrollRow"]; + s.tmp_2 = r0; + s.tmp_5 = if_cardSpacing_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardSpacing"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardSpacing"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardSpacing"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1732; s.pc = 9; return s.tmp_5; } + } + case 9: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_7 = if_cardWidth_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardWidth"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardWidth"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardWidth"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 1733; s.pc = 10; return s.tmp_7; } + } + case 10: r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["scrollTarget"] = (s.tmp_1); + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -image_doubledFont__P1959.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} +scene_systemMenu_PauseMenu_updateScrollTarget__P69482.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]} -function image_doubledFont__P1959_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P69482_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P1959, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P69482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + row___86385: undefined, arg0: undefined, } } @@ -55187,7 +55849,7 @@ function image_doubledFont__P1959_mk(s) { -function image_scaledFont__P1960(s) { +function scene_systemMenu_PauseMenu_onUpdate__P67297(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55197,117 +55859,160 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.t___86245 = undefined; + s.i___86249 = undefined; + s.dt___86278 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 | 0); - s.arg1 = (r0); - r0 = (s.arg1 < 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } r0 = s.arg0; - { step = 5; continue; } + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 250); + s.t___86245 = (r0); + s.i___86249 = (0); case 1: - case 2: - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = s.arg0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 199; s.pc = 6; return s.tmp_4; } - } - case 6: - r0 = s.retval; + s.tmp_1 = r0 = s.i___86249; + r0 = s.arg0.fields["options"]; s.tmp_3 = r0; - r0 = (s.tmp_3 * s.arg1); + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.arg0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 200; s.pc = 7; return s.tmp_7; } - } - case 7: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 * s.arg1); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P67290_mk(s); + r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); - s.tmp_9 = if_data_1_mk(s); - s.tmp_9.arg0 = s.arg0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 201; s.pc = 8; return s.tmp_9; } - } - case 8: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); - s.tmp_11 = if_multiplier_1_mk(s); - s.tmp_11.arg0 = s.arg0; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___86249); + s.tmp_4.arg0 = r0; + s.tmp_8 = r0 = s.t___86245; + s.tmp_11 = r0 = s.i___86249; + s.tmp_13 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_13.arg0 = r0; + if (!s.tmp_13.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "cardsPerRow"); } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 202; s.pc = 9; return s.tmp_11; } + s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["cardsPerRow"]; + if (s.tmp_13.fn == null) { s.retval = s.tmp_13.arg0.fields["cardsPerRow"]; } + else if (!s.tmp_13.fn.isGetter) { s.retval = bind(s.tmp_13); } + else { s.callLocIdx = 1701; s.pc = 11; return s.tmp_13; } } - case 9: + case 11: r0 = s.retval; + s.tmp_12 = r0; + r0 = (s.tmp_11 % s.tmp_12); s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 3; continue; } - s.tmp_12 = r0 = s.arg1; - s.tmp_14 = if_multiplier_1_mk(s); - s.tmp_14.arg0 = s.arg0; - if (!s.tmp_14.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); - } else { - s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; - if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } - else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 203; s.pc = 10; return s.tmp_14; } - } + r0 = (s.tmp_10 * 1.5707963267948966); + s.tmp_9 = r0; + r0 = (s.tmp_8 - s.tmp_9); + s.tmp_7 = r0; + r0 = pxsim.Math_.sin(s.tmp_7); + s.tmp_6 = r0; + r0 = (2 * s.tmp_6); + s.tmp_4.arg1 = r0; + s.callLocIdx = 1702; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_12 * s.tmp_13); - { step = 4; continue; } + r0 = (s.i___86249 + 1); + s.i___86249 = (r0); + { step = 1; continue; } + case 2: + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1703; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + r0 = r0.fields["eventContext"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.dt___86278 = (r0); + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["scrollOffset"]; + s.tmp_5 = r0; + r0 = (s.dt___86278 * 100); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); + { step = 6; continue; } case 3: - r0 = s.arg1; + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 > s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["scrollOffset"]; + s.tmp_5 = r0; + r0 = (s.dt___86278 * 100); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); + { step = 5; continue; } case 4: - // jmp value (already in r0) - s.tmp_15 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); - r0 = s.tmp_1; + { step = 9; continue; } case 5: + case 6: + s.tmp_2 = Math_abs__P64347_mk(s); + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2.arg0 = r0; + s.callLocIdx = 1705; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_5 = r0; + r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); + case 7: + case 8: + s.tmp_0 = scene_Camera_offsetY__P66988_mk(s); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1706; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + r0 = r0.fields["camera"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1707; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -image_scaledFont__P1960.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +scene_systemMenu_PauseMenu_onUpdate__P67297.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]} -function image_scaledFont__P1960_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P67297_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P1960, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P67297, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55323,17 +56028,17 @@ function image_scaledFont__P1960_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, + t___86245: undefined, + i___86249: undefined, + dt___86278: undefined, arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_initScreen__P5275(s) { +function scene_systemMenu_MenuOption_setOffset__P67290(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55343,46 +56048,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___22788 = undefined; - s.tmp_0 = settings_readNumber__P2049_mk(s); - s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 1780; s.pc = 3; return s.tmp_0; - case 3: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P66603_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["top"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 + s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1644; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.brightness___22788 = (r0); - r0 = (s.brightness___22788 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P1946_mk(s); - s.tmp_1.arg0 = globals.screen___2013; - s.tmp_1.arg1 = s.brightness___22788; - s.callLocIdx = 1781; s.pc = 4; return s.tmp_1; - case 4: + s.tmp_0 = Sprite_y__P66556_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1645; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - case 1: + s.tmp_0.arg1 = r0; + s.callLocIdx = 1646; s.pc = 2; return s.tmp_0; case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P5275.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} +scene_systemMenu_MenuOption_setOffset__P67290.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]} -function scene_systemMenu_initScreen__P5275_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P67290_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P5275, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P67290, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___22788: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_initVolume__P5274(s) { +function scene_systemMenu_MenuOption_setState__P67292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55392,45 +56109,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___22798 = undefined; - s.tmp_0 = settings_readNumber__P2049_mk(s); - s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1778; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.vol___22798 = (r0); - r0 = (s.vol___22798 !== undefined); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = s.arg0.fields["state"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P1620_mk(s); - s.tmp_1.arg0 = s.vol___22798; - s.callLocIdx = 1779; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; + { step = 3; continue; } case 1: case 2: + r0 = (s.arg0).fields["state"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P69481_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1648; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P5274.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_MenuOption_setState__P67292.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]} -function scene_systemMenu_initVolume__P5274_mk(s) { +function scene_systemMenu_MenuOption_setState__P67292_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P5274, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P67292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___22798: undefined, + arg0: undefined, + arg1: undefined, } } -function game_GameOverConfig_constructor__P2968(s) { +function scene_systemMenu_MenuOption_updateCard__P69481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55445,24 +56168,138 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - s.tmp_0 = game_GameOverConfig_init__P2969_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1564; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } case 1: + case 2: + r0 = s.arg0.fields["state"]; + s.tmp_3 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 3: + s.tmp_4 = Sprite_setImage__P66590_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_4.arg0 = r0; + s.tmp_5 = if_basicCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1651; s.pc = 9; return s.tmp_5; } + } + case 9: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.callLocIdx = 1652; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + { step = 6; continue; } + case 4: + s.tmp_0 = Sprite_setImage__P66590_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_selectedCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1653; s.pc = 11; return s.tmp_1; } + } + case 11: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1654; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = Sprite_setImage__P66590_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_activeCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1655; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1656; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + case 6: + s.tmp_0 = Sprite_x__P66554_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P66553_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1657; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1658; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = Sprite_y__P66556_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1659; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1660; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverConfig_constructor__P2968.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} +scene_systemMenu_MenuOption_updateCard__P69481.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} -function game_GameOverConfig_constructor__P2968_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P69481_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_constructor__P2968, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P69481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, } } @@ -55470,7 +56307,7 @@ function game_GameOverConfig_constructor__P2968_mk(s) { -function game_GameOverConfig_init__P2969(s) { +function scene_systemMenu_MenuOption_setTheme__P67291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55482,60 +56319,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2953_VT)) failedCast(r0); - r0 = (s.arg0).fields["scoringType"] = (0); - r0 = (s.arg0).fields["winEffect"] = (globals.confetti___3254); - r0 = (s.arg0).fields["loseEffect"] = (globals.melt___3276); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = music_melodyPlayable__P1908_mk(s); - s.tmp_2.arg0 = globals.powerUp___1650; - s.callLocIdx = 1565; s.pc = 1; return s.tmp_2; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = (s.arg0).fields["theme"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P69481_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1647; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["winSound"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = music_melodyPlayable__P1908_mk(s); - s.tmp_2.arg0 = globals.wawawawaa___1647; - s.callLocIdx = 1566; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["loseSound"] = (s.tmp_1); - r0 = (s.arg0).fields["winSoundLooping"] = (false); - r0 = (s.arg0).fields["loseSoundLooping"] = (false); - r0 = (s.arg0).fields["winMessage"] = ("YOU WIN!"); - r0 = (s.arg0).fields["winMessageMultiplayer"] = ("${WINNER} WINS!"); - r0 = (s.arg0).fields["loseMessage"] = ("GAME OVER"); - r0 = (s.arg0).fields["effectSetByUser"] = (false); - r0 = (s.arg0).fields["soundSetByUser"] = (false); - r0 = (s.arg0).fields["messageSetByUser"] = (false); - r0 = (s.arg0).fields["scoringTypeSetByUser"] = (false); r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverConfig_init__P2969.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} +scene_systemMenu_MenuOption_setTheme__P67291.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} -function game_GameOverConfig_init__P2969_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P67291_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_init__P2969, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P67291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function melt_inline__P22852(s) { +function scene_systemMenu_MenuOption_position__P67289(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55545,96 +56360,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___22855 = undefined; - s.j___22863 = undefined; - s.x___22868 = undefined; - s.y___22874 = undefined; - s.c___22880 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.rounds___22855 = (r0); - s.j___22863 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = (s.arg0).fields["top"] = (s.arg2); + s.tmp_0 = Sprite_left__P66599_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1638; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.j___22863 < s.rounds___22855); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg2 = r0; - s.callLocIdx = 69; s.pc = 3; return s.tmp_1; - case 3: r0 = s.retval; - s.x___22868 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - s.callLocIdx = 70; s.pc = 4; return s.tmp_0; + s.tmp_0 = Sprite_top__P66603_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1639; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_x__P66554_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P66553_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1640; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - s.y___22874 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___22868, s.y___22874); - s.c___22880 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___22868; - r0 = (s.y___22874 + 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22880); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___22868; - r0 = (s.y___22874 + 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22880); - r0 = (s.j___22863 + 1); - s.j___22863 = (r0); - { step = 1; continue; } - case 2: + s.tmp_0.arg1 = r0; + s.callLocIdx = 1641; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_y__P66556_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1642; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1643; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -melt_inline__P22852.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +scene_systemMenu_MenuOption_position__P67289.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} -function melt_inline__P22852_mk(s) { +function scene_systemMenu_MenuOption_position__P67289_mk(s) { checkStack(s.depth); return { - parent: s, fn: melt_inline__P22852, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P67289, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - rounds___22855: undefined, - j___22863: undefined, - x___22868: undefined, - y___22874: undefined, - c___22880: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function confetti_inline__P22906(s) { +function scene_systemMenu_MenuOption_show__P67288(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55644,81 +56441,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___22909 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C3198_VT); + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C67286_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; - s.tmp_2 = if_width_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 49; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); + s.tmp_1 = if_basicCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 50; s.pc = 4; return s.tmp_3; } + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1633; s.pc = 3; return s.tmp_1; } } - case 4: + case 3: r0 = s.retval; { step = 2; continue; } case 1: - r0 = 16; + r0 = globals.CARD_NORMAL___67310; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P3199_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 51; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.factory___22909 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P3175_mk(s); - s.tmp_0.arg0 = s.factory___22909; - s.tmp_0.arg1 = 30; - s.callLocIdx = 52; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C3131_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P3136_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.factory___22909; - s.callLocIdx = 53; s.pc = 7; return s.tmp_1; - case 7: + s.tmp_2 = r0; + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = sprites_create__P66475_mk(s); + s.tmp_5.arg0 = s.tmp_2; + s.tmp_5.arg1 = undefined; + s.callLocIdx = 1634; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; - r0 = s.tmp_0; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["card"] = (s.tmp_4); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 1; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 1635; s.pc = 5; return s.tmp_0; } + } + case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P66475_mk(s); + r0 = s.arg0.fields["iconImage"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 1636; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 2; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 1637; s.pc = 7; return s.tmp_0; } + } + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["state"] = (2); + r0 = undefined; return leave(s, r0) default: oops() } } } -confetti_inline__P22906.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +scene_systemMenu_MenuOption_show__P67288.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function confetti_inline__P22906_mk(s) { +function scene_systemMenu_MenuOption_show__P67288_mk(s) { checkStack(s.depth); return { - parent: s, fn: confetti_inline__P22906, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P67288, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55726,16 +56535,14 @@ function confetti_inline__P22906_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___22909: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ConfettiFactory_constructor__P3199(s) { +function game_onShade__P67216(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55745,99 +56552,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___22926 = undefined; - s.i___22942 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C3198_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex22929); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex22931); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex22933); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex22935); - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex22937); - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___22926 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P3194_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = pxsim_Array__getAt(s.confetti___22926, 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1915; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_0 = game_init__P69234_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1620; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.i___22942 = (1); - case 1: - s.tmp_1 = r0 = s.i___22942; - r0 = pxsim_Array__length(s.confetti___22926); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_3 = particles_ShapeFactory_addShape__P3195_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___22926, s.i___22942); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1916; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - r0 = (s.i___22942 + 1); - s.i___22942 = (r0); - { step = 1; continue; } + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: case 2: - r0 = (s.arg0).fields["minLifespan"] = (1000); - r0 = (s.arg0).fields["maxLifespan"] = (4500); + s.tmp_2 = scene_createRenderable__P67004_mk(s); + s.tmp_2.arg0 = 80; + s.tmp_2.arg1 = s.arg0; + s.tmp_2.arg2 = undefined; + s.callLocIdx = 1621; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P3199.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} +game_onShade__P67216.info = {"start":15386,"length":145,"line":462,"column":4,"endLine":466,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function particles_ConfettiFactory_constructor__P3199_mk(s) { +function game_onShade__P67216_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P3199, depth: s.depth + 1, + parent: s, fn: game_onShade__P67216, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - confetti___22926: undefined, - i___22942: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -const _hex22929 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex22931 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex22933 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex22935 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex22937 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P3195(s) { +function scene_systemMenu_PauseMenu_constructor__P67295(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55850,38 +56612,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C3193_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C67294_VT)) failedCast(r0); + r0 = (s.arg0).fields["generator"] = (s.arg1); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["sources"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = scene_systemMenu_buildMenuTheme__P67303_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___67310); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 3; + s.tmp_1.arg2 = undefined; + s.tmp_1.arg3 = undefined; + s.callLocIdx = 1661; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.arg0).fields["theme"] = (s.tmp_2); + r0 = (s.arg0).fields["scrollRow"] = (0); + r0 = (s.arg0).fields["scrollOffset"] = (0); + r0 = (s.arg0).fields["scrollTarget"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P3195.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +scene_systemMenu_PauseMenu_constructor__P67295.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} -function particles_ShapeFactory_addShape__P3195_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P67295_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P3195, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P67295, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ShapeFactory_constructor__P3194(s) { +function scene_systemMenu_buildMenuTheme__P67303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55891,6 +56673,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cardsPerRow___86929 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -55898,57 +56681,131 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C3193_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P3182_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.tmp_0.arg4 = undefined; - s.callLocIdx = 1905; s.pc = 1; return s.tmp_0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); + s.tmp_0 = r0; + r0 = (s.arg0 + s.arg1); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); + s.cardsPerRow___86929 = (r0); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = globals.font8___66175; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.arg2 = (s.tmp_1); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_1 = image_doubledFont__P66178_mk(s); + s.tmp_1.arg0 = s.arg2; + s.callLocIdx = 1771; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - r0 = pxsim_Array__mk(); + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg3 = (s.tmp_2); + r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg3); - r0 = (s.arg0).fields["sources"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(s.arg3); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardSpacing", s.arg1); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardWidth", s.arg0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___86929); + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + r0 = (s.cardsPerRow___86929 * s.arg0); + s.tmp_5 = r0; + r0 = (s.cardsPerRow___86929 - 1); + s.tmp_7 = r0; + r0 = (s.tmp_7 * s.arg1); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "padding", s.tmp_1); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoFont", s.arg2); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerFont", s.arg3); + s.tmp_11 = if_charHeight_1_mk(s); + s.tmp_11.arg0 = s.arg3; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1772; s.pc = 6; return s.tmp_11; } + } + case 6: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_10 + 2); + s.tmp_9 = r0; + r0 = (s.tmp_9 + s.arg1); + s.tmp_8 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_14 = r0; + s.tmp_16 = if_charHeight_1_mk(s); + s.tmp_16.arg0 = s.arg2; + if (!s.tmp_16.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_16.arg0, "charHeight"); + } else { + s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; + if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } + else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } + else { s.callLocIdx = 1773; s.pc = 7; return s.tmp_16; } + } + case 7: + r0 = s.retval; + s.tmp_15 = r0; + r0 = (s.tmp_14 - s.tmp_15); + s.tmp_13 = r0; + r0 = (s.tmp_13 - 2); + s.tmp_12 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___67311); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___67312); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___67310); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P3194.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} +scene_systemMenu_buildMenuTheme__P67303.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} -function particles_ShapeFactory_constructor__P3194_mk(s) { +function scene_systemMenu_buildMenuTheme__P67303_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P3194, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P67303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + cardsPerRow___86929: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -55959,7 +56816,7 @@ function particles_ShapeFactory_constructor__P3194_mk(s) { -function effects_ScreenEffect_constructor__P3247(s) { +function image_doubledFont__P66178(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55971,47 +56828,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C3246_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P3243_mk(s); + s.tmp_0 = image_scaledFont__P66179_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = s.arg4; - s.callLocIdx = 1970; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = 2; + s.callLocIdx = 198; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); - r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P3247.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} +image_doubledFont__P66178.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} -function effects_ScreenEffect_constructor__P3247_mk(s) { +function image_doubledFont__P66178_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P3247, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P66178, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function music_melodyPlayable__P1908(s) { +function image_scaledFont__P66179(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56023,37 +56866,141 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C1901_VT); + r0 = (s.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 2); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayable_constructor__P1902_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 179; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 5; continue; } case 1: + case 2: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = s.arg0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 199; s.pc = 6; return s.tmp_4; } + } + case 6: r0 = s.retval; - r0 = s.tmp_0; + s.tmp_3 = r0; + r0 = (s.tmp_3 * s.arg1); + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = s.arg0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 200; s.pc = 7; return s.tmp_7; } + } + case 7: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 * s.arg1); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); + s.tmp_9 = if_data_1_mk(s); + s.tmp_9.arg0 = s.arg0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 201; s.pc = 8; return s.tmp_9; } + } + case 8: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); + s.tmp_11 = if_multiplier_1_mk(s); + s.tmp_11.arg0 = s.arg0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 202; s.pc = 9; return s.tmp_11; } + } + case 9: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 3; continue; } + s.tmp_12 = r0 = s.arg1; + s.tmp_14 = if_multiplier_1_mk(s); + s.tmp_14.arg0 = s.arg0; + if (!s.tmp_14.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); + } else { + s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; + if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } + else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } + else { s.callLocIdx = 203; s.pc = 10; return s.tmp_14; } + } + case 10: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_12 * s.tmp_13); + { step = 4; continue; } + case 3: + r0 = s.arg1; + case 4: + // jmp value (already in r0) + s.tmp_15 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); + r0 = s.tmp_1; + case 5: return leave(s, r0) default: oops() } } } -music_melodyPlayable__P1908.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} +image_scaledFont__P66179.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} -function music_melodyPlayable__P1908_mk(s) { +function image_scaledFont__P66179_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_melodyPlayable__P1908, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P66179, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, arg0: undefined, + arg1: undefined, } } -function Fx8__P149(s) { +function scene_systemMenu_initScreen__P69494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56063,32 +57010,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 * 256); + s.brightness___87009 = undefined; + s.tmp_0 = settings_readNumber__P66268_mk(s); + s.tmp_0.arg0 = "#brightness"; + s.callLocIdx = 1780; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.brightness___87009 = (r0); + r0 = (s.brightness___87009 !== undefined); s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_setScreenBrightness__P66165_mk(s); + s.tmp_1.arg0 = globals.screen___66232; + s.tmp_1.arg1 = s.brightness___87009; + s.callLocIdx = 1781; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx8__P149.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +scene_systemMenu_initScreen__P69494.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function Fx8__P149_mk(s) { +function scene_systemMenu_initScreen__P69494_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P149, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P69494, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + brightness___87009: undefined, } } -function SpriteKind_create__P2459(s) { +function scene_systemMenu_initVolume__P69493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56098,35 +57059,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___4826 === undefined); + s.vol___87019 = undefined; + s.tmp_0 = settings_readNumber__P66268_mk(s); + s.tmp_0.arg0 = "#volume"; + s.callLocIdx = 1778; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.vol___87019 = (r0); + r0 = (s.vol___87019 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___4826 = (1000); + s.tmp_1 = music_setVolume__P65839_mk(s); + s.tmp_1.arg0 = s.vol___87019; + s.callLocIdx = 1779; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___4826; - r0 = (s.tmp_0 + 1); - globals.nextKind___4826 = (r0); - r0 = s.tmp_0; + r0 = undefined; return leave(s, r0) default: oops() } } } -SpriteKind_create__P2459.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +scene_systemMenu_initVolume__P69493.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} -function SpriteKind_create__P2459_mk(s) { +function scene_systemMenu_initVolume__P69493_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P2459, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P69493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + vol___87019: undefined, } } -function controller_Button_constructor__P2176(s) { +function game_GameOverConfig_constructor__P67187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56138,66 +57109,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = (s.arg0).fields["id"] = (s.arg1); - r0 = (s.arg0).fields["_pressed"] = (false); - r0 = (s.arg0).fields["repeatDelay"] = (undefined); - r0 = (s.arg0).fields["repeatInterval"] = (undefined); - r0 = (s.arg0).fields["_repeatCount"] = (0); - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P23040); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - r0 = s.arg0.fields["id"]; - s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(2050, s.tmp_2, s.tmp_1, 16); - r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P23047); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["id"]; - s.tmp_1 = r0; - r0 = pxsim.control.internalOnEvent(2051, s.tmp_1, s.tmp_0, 16); - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + s.tmp_0 = game_GameOverConfig_init__P67188_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1564; s.pc = 1; return s.tmp_0; case 1: - case 2: - case 3: - case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_constructor__P2176.info = {"start":2004,"length":864,"line":77,"column":8,"endLine":94,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id","configKey"]} +game_GameOverConfig_constructor__P67187.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} -function controller_Button_constructor__P2176_mk(s) { +function game_GameOverConfig_constructor__P67187_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P2176, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_constructor__P67187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function controller_Button_inline__P23040(s) { +function game_GameOverConfig_init__P67188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56207,31 +57147,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P2183_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = false; - s.callLocIdx = 321; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverConfig__C67172_VT)) failedCast(r0); + r0 = (s.arg0).fields["scoringType"] = (0); + r0 = (s.arg0).fields["winEffect"] = (globals.confetti___67473); + r0 = (s.arg0).fields["loseEffect"] = (globals.melt___67495); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = music_melodyPlayable__P66127_mk(s); + s.tmp_2.arg0 = globals.powerUp___65869; + s.callLocIdx = 1565; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["winSound"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = music_melodyPlayable__P66127_mk(s); + s.tmp_2.arg0 = globals.wawawawaa___65866; + s.callLocIdx = 1566; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["loseSound"] = (s.tmp_1); + r0 = (s.arg0).fields["winSoundLooping"] = (false); + r0 = (s.arg0).fields["loseSoundLooping"] = (false); + r0 = (s.arg0).fields["winMessage"] = ("YOU WIN!"); + r0 = (s.arg0).fields["winMessageMultiplayer"] = ("${WINNER} WINS!"); + r0 = (s.arg0).fields["loseMessage"] = ("GAME OVER"); + r0 = (s.arg0).fields["effectSetByUser"] = (false); + r0 = (s.arg0).fields["soundSetByUser"] = (false); + r0 = (s.arg0).fields["messageSetByUser"] = (false); + r0 = (s.arg0).fields["scoringTypeSetByUser"] = (false); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P23040.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +game_GameOverConfig_init__P67188.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} -function controller_Button_inline__P23040_mk(s) { +function game_GameOverConfig_init__P67188_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P23040, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_init__P67188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function controller_Button_inline__P23047(s) { +function melt_inline__P87073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56241,31 +57212,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P2183_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = true; - s.callLocIdx = 322; s.pc = 1; return s.tmp_0; + s.rounds___87076 = undefined; + s.j___87084 = undefined; + s.x___87089 = undefined; + s.y___87095 = undefined; + s.c___87101 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 5); + s.rounds___87076 = (r0); + s.j___87084 = (0); case 1: + r0 = (s.j___87084 < s.rounds___87076); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 69; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___87089 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + s.callLocIdx = 70; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + s.y___87095 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___87089, s.y___87095); + s.c___87101 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___87089; + r0 = (s.y___87095 + 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___87101); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___87089; + r0 = (s.y___87095 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___87101); + r0 = (s.j___87084 + 1); + s.j___87084 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P23047.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +melt_inline__P87073.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} -function controller_Button_inline__P23047_mk(s) { +function melt_inline__P87073_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P23047, depth: s.depth + 1, + parent: s, fn: melt_inline__P87073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, -} } - + tmp_1: undefined, + tmp_2: undefined, + rounds___87076: undefined, + j___87084: undefined, + x___87089: undefined, + y___87095: undefined, + c___87101: undefined, + arg0: undefined, + arg1: undefined, +} } + -function controller_setupButton__P4809(s) { +function confetti_inline__P87127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56275,22 +57311,89 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___87130 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C67417_VT); + s.tmp_0 = r0; + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 49; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_width_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 50; s.pc = 4; return s.tmp_3; } + } + case 4: + r0 = s.retval; + { step = 2; continue; } + case 1: + r0 = 16; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = particles_ConfettiFactory_constructor__P67418_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 51; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___87130 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P67394_mk(s); + s.tmp_0.arg0 = s.factory___87130; + s.tmp_0.arg1 = 30; + s.callLocIdx = 52; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C67350_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P67355_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.factory___87130; + s.callLocIdx = 53; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -controller_setupButton__P4809.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +confetti_inline__P87127.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function controller_setupButton__P4809_mk(s) { +function confetti_inline__P87127_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P4809, depth: s.depth + 1, + parent: s, fn: confetti_inline__P87127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___87130: undefined, arg0: undefined, arg1: undefined, } } @@ -56299,7 +57402,7 @@ function controller_setupButton__P4809_mk(s) { -function controller_Button_setPressed__P2183(s) { +function particles_ConfettiFactory_constructor__P67418(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56309,81 +57412,99 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.confetti___87147 = undefined; + s.i___87163 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = power_poke__P1914_mk(s); - s.callLocIdx = 325; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = s.arg0.fields["_owner"]; + if (!checkSubtype(r0, particles_ConfettiFactory__C67417_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = controller_Controller_connected__P2137_mk(s); - r0 = s.arg0.fields["_owner"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = true; - s.callLocIdx = 326; s.pc = 8; return s.tmp_1; - case 8: + r0 = pxsim.image.ofBuffer(_hex87150); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex87152); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex87154); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex87156); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = pxsim.image.ofBuffer(_hex87158); + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); + s.confetti___87147 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P67413_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = pxsim_Array__getAt(s.confetti___87147, 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1915; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; + s.i___87163 = (1); case 1: - case 2: - r0 = (s.arg0).fields["_pressed"] = (s.arg1); - r0 = s.arg0.fields["_pressed"]; + s.tmp_1 = r0 = s.i___87163; + r0 = pxsim_Array__length(s.confetti___87147); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_pressedElasped"] = (0); - s.tmp_0 = controller_Button_raiseButtonDown__P4793_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 327; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_repeatCount"] = (0); - s.tmp_0 = controller_Button_raiseButtonUp__P4792_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 328; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + if (!r0) { step = 2; continue; } + s.tmp_3 = particles_ShapeFactory_addShape__P67414_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.confetti___87147, s.i___87163); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1916; s.pc = 4; return s.tmp_3; case 4: - case 5: - case 6: + r0 = s.retval; + r0 = (s.i___87163 + 1); + s.i___87163 = (r0); + { step = 1; continue; } + case 2: + r0 = (s.arg0).fields["minLifespan"] = (1000); + r0 = (s.arg0).fields["maxLifespan"] = (4500); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P2183.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +particles_ConfettiFactory_constructor__P67418.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} -function controller_Button_setPressed__P2183_mk(s) { +function particles_ConfettiFactory_constructor__P67418_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P2183, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P67418, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + confetti___87147: undefined, + i___87163: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } +const _hex87150 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex87152 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex87154 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex87156 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex87158 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function controller_Button_raiseButtonDown__P4793(s) { +function particles_ShapeFactory_addShape__P67414(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56395,41 +57516,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4803); + if (!checkSubtype(r0, particles_ShapeFactory__C67412_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + r0 = s.arg0.fields["sources"]; s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2049, s.tmp_0); - { step = 2; continue; } + r0 = pxsim_Array__push(s.tmp_0, s.arg1); case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2053, s.tmp_0); case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P4793.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +particles_ShapeFactory_addShape__P67414.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} -function controller_Button_raiseButtonDown__P4793_mk(s) { +function particles_ShapeFactory_addShape__P67414_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P4793, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P67414, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_raiseButtonUp__P4792(s) { +function particles_ShapeFactory_constructor__P67413(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56441,41 +57560,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4803); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2048, s.tmp_0); - { step = 2; continue; } + if (!checkSubtype(r0, particles_ShapeFactory__C67412_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P67401_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 1905; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg0.fields["id"]; + r0 = s.retval; + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2052, s.tmp_0); - case 2: + r0 = pxsim_Array__push(s.tmp_0, s.arg3); + r0 = (s.arg0).fields["sources"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P4792.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +particles_ShapeFactory_constructor__P67413.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} -function controller_Button_raiseButtonUp__P4792_mk(s) { +function particles_ShapeFactory_constructor__P67413_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P4792, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P67413, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_addScenePushHandler__P2998(s) { +function effects_ScreenEffect_constructor__P67466(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56487,48 +57638,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___5009); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._scenePushHandlers___5009 = (r0); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ScreenEffect__C67465_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P67462_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = s.arg4; + s.callLocIdx = 1970; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___5009, s.arg0, undefined); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__push(globals._scenePushHandlers___5009, s.arg0); - case 3: - case 4: + r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P2998.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +effects_ScreenEffect_constructor__P67466.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} -function game_addScenePushHandler__P2998_mk(s) { +function effects_ScreenEffect_constructor__P67466_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P2998, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P67466, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function controller_Controller_id__P2122(s) { +function music_melodyPlayable__P66127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56542,20 +57692,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["_id"]; - return leaveAccessor(s, r0) + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C66120_VT); + s.tmp_0 = r0; + s.tmp_1 = music_MelodyPlayable_constructor__P66121_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 179; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -controller_Controller_id__P2122.info = {"start":3444,"length":49,"line":109,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} -controller_Controller_id__P2122.isGetter = true; +music_melodyPlayable__P66127.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} -function controller_Controller_id__P2122_mk(s) { +function music_melodyPlayable__P66127_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P2122, depth: s.depth + 1, + parent: s, fn: music_melodyPlayable__P66127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -56563,7 +57720,7 @@ function controller_Controller_id__P2122_mk(s) { -function controller_Controller_connected__P2136(s) { +function Fx8__P64368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56577,20 +57734,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2115_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - return leaveAccessor(s, r0) + r0 = (s.arg0 * 256); + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + return leave(s, r0) default: oops() } } } -controller_Controller_connected__P2136.info = {"start":7723,"length":63,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} -controller_Controller_connected__P2136.isGetter = true; +Fx8__P64368.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} -function controller_Controller_connected__P2136_mk(s) { +function Fx8__P64368_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P2136, depth: s.depth + 1, + parent: s, fn: Fx8__P64368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -56598,7 +57755,7 @@ function controller_Controller_connected__P2136_mk(s) { -function game_currentScene__P2979(s) { +function SpriteKind_create__P66678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56608,21 +57765,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P5015_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 1568; s.pc = 1; return s.tmp_0; + r0 = (globals.nextKind___69045 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + globals.nextKind___69045 = (1000); case 1: - r0 = s.retval; - r0 = globals._scene___5007; + case 2: + s.tmp_0 = r0 = globals.nextKind___69045; + r0 = (s.tmp_0 + 1); + globals.nextKind___69045 = (r0); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -game_currentScene__P2979.info = {"start":4025,"length":90,"line":118,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +SpriteKind_create__P66678.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} -function game_currentScene__P2979_mk(s) { +function SpriteKind_create__P66678_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P2979, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P66678, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -56631,7 +57793,7 @@ function game_currentScene__P2979_mk(s) { -function game_addScenePopHandler__P3000(s) { +function controller_Button_constructor__P66395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56643,48 +57805,66 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___5010); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = (s.arg0).fields["_pressed"] = (false); + r0 = (s.arg0).fields["repeatDelay"] = (undefined); + r0 = (s.arg0).fields["repeatInterval"] = (undefined); + r0 = (s.arg0).fields["_repeatCount"] = (0); + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P87261); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + r0 = s.arg0.fields["id"]; + s.tmp_2 = r0; + r0 = pxsim.control.internalOnEvent(2050, s.tmp_2, s.tmp_1, 16); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P87268); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["id"]; + s.tmp_1 = r0; + r0 = pxsim.control.internalOnEvent(2051, s.tmp_1, s.tmp_0, 16); + r0 = (s.arg2 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._scenePopHandlers___5010 = (r0); + r0 = undefined; case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___5010, s.arg0, undefined); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__push(globals._scenePopHandlers___5010, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P3000.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +controller_Button_constructor__P66395.info = {"start":2004,"length":864,"line":77,"column":8,"endLine":94,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id","configKey"]} -function game_addScenePopHandler__P3000_mk(s) { +function controller_Button_constructor__P66395_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P3000, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P66395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function settings_initScopes__P4697(s) { +function controller_Button_inline__P87261(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56694,53 +57874,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___23142 = undefined; - s.tmp_1 = settings_runNumber__P2039_mk(s); - s.callLocIdx = 229; s.pc = 1; return s.tmp_1; + s.tmp_0 = controller_Button_setPressed__P66402_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = false; + s.callLocIdx = 321; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.rn___23142 = (r0); - s.tmp_0 = settings_writeNumber__P2044_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___4685; - s.tmp_0.arg1 = s.rn___23142; - s.callLocIdx = 230; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = pxsim.control.deviceSerialNumber(); - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2147483647); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___23142); - s.tmp_0 = settings_setScope__P4696_mk(s); - r0 = pxsim_pxtcore.programName(); - s.tmp_0.arg0 = r0; - s.callLocIdx = 231; s.pc = 3; return s.tmp_0; - case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_initScopes__P4697.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +controller_Button_inline__P87261.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function settings_initScopes__P4697_mk(s) { +function controller_Button_inline__P87261_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P4697, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P87261, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - rn___23142: undefined, } } -function settings_setScope__P4696(s) { +function controller_Button_inline__P87268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56750,74 +57908,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___23171 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = controller_Button_setPressed__P66402_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = true; + s.callLocIdx = 322; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 100); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtrt.panic(922); - case 3: - case 4: - s.tmp_0 = settings_readString__P2047_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___4686; - s.callLocIdx = 227; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.currScope___23171 = (r0); - r0 = (s.currScope___23171 != s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim.settings._userClean(); - s.tmp_0 = settings_writeString__P2042_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___4686; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 228; s.pc = 8; return s.tmp_0; - case 8: r0 = s.retval; - case 5: - case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -settings_setScope__P4696.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +controller_Button_inline__P87268.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function settings_setScope__P4696_mk(s) { +function controller_Button_inline__P87268_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P4696, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P87268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - currScope___23171: undefined, - arg0: undefined, } } -function settings_readString__P2047(s) { +function controller_setupButton__P69028(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56827,49 +57942,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___23185 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); - s.buf___23185 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___23185); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = pxsim.BufferMethods.toString(s.buf___23185); - { step = 3; continue; } - case 2: r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -settings_readString__P2047.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +controller_setupButton__P69028.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} -function settings_readString__P2047_mk(s) { +function controller_setupButton__P69028_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P2047, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P69028, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - buf___23185: undefined, arg0: undefined, + arg1: undefined, } } -function settings_runNumber__P2039(s) { +function controller_Button_setPressed__P66402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56879,42 +57976,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P2049_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___4685; - s.callLocIdx = 226; s.pc = 3; return s.tmp_1; - case 3: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = power_poke__P66133_mk(s); + s.callLocIdx = 325; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; + r0 = s.arg0.fields["_owner"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_1 = controller_Controller_connected__P66356_mk(s); + r0 = s.arg0.fields["_owner"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = true; + s.callLocIdx = 326; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = (s.arg0).fields["_pressed"] = (s.arg1); + r0 = s.arg0.fields["_pressed"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_pressedElasped"] = (0); + s.tmp_0 = controller_Button_raiseButtonDown__P69012_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 327; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_repeatCount"] = (0); + s.tmp_0 = controller_Button_raiseButtonUp__P69011_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 328; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 4: + case 5: + case 6: + r0 = undefined; return leave(s, r0) default: oops() } } } -settings_runNumber__P2039.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +controller_Button_setPressed__P66402.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function settings_runNumber__P2039_mk(s) { +function controller_Button_setPressed__P66402_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P2039, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P66402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function control___screen_setupUpdate__P1975(s) { +function controller_Button_raiseButtonDown__P69012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56928,24 +58064,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___4652 = (true); - globals.__update___4650 = (s.arg0); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 220; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___69022); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2049, s.tmp_0); + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2053, s.tmp_0); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P1975.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +controller_Button_raiseButtonDown__P69012.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function control___screen_setupUpdate__P1975_mk(s) { +function controller_Button_raiseButtonDown__P69012_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P1975, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P69012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -56955,7 +58096,7 @@ function control___screen_setupUpdate__P1975_mk(s) { -function _screen_internal_getScreenHeight__P2018(s) { +function controller_Button_raiseButtonUp__P69011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56969,17 +58110,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore.getConfig(2103, s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___69022); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2048, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2052, s.tmp_0); + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -_screen_internal_getScreenHeight__P2018.info = {"start":960,"length":127,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenHeight","argumentNames":["defl"]} +controller_Button_raiseButtonUp__P69011.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function _screen_internal_getScreenHeight__P2018_mk(s) { +function controller_Button_raiseButtonUp__P69011_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenHeight__P2018, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P69011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -56987,7 +58142,7 @@ function _screen_internal_getScreenHeight__P2018_mk(s) { -function _screen_internal_getScreenWidth__P2017(s) { +function game_addScenePushHandler__P67217(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57001,17 +58156,38 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore.getConfig(2102, s.arg0); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___69228); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._scenePushHandlers___69228 = (r0); + case 1: + case 2: + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___69228, s.arg0, undefined); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__push(globals._scenePushHandlers___69228, s.arg0); + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -_screen_internal_getScreenWidth__P2017.info = {"start":810,"length":125,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenWidth","argumentNames":["defl"]} +game_addScenePushHandler__P67217.info = {"start":15913,"length":242,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function _screen_internal_getScreenWidth__P2017_mk(s) { +function game_addScenePushHandler__P67217_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenWidth__P2017, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P67217, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -57019,7 +58195,7 @@ function _screen_internal_getScreenWidth__P2017_mk(s) { -function control___screen_update__P1974(s) { +function controller_Controller_id__P66341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57029,36 +58205,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___4650); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___4650; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 219; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - case 1: - case 2: - globals.__updated___4652 = (true); - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["_id"]; + return leaveAccessor(s, r0) default: oops() } } } -control___screen_update__P1974.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +controller_Controller_id__P66341.info = {"start":3444,"length":49,"line":109,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} +controller_Controller_id__P66341.isGetter = true; -function control___screen_update__P1974_mk(s) { +function controller_Controller_id__P66341_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P1974, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P66341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, } } -function pause__P413(s) { +function controller_Controller_connected__P66355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57072,22 +58244,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - setupResume(s, 1); - pxsim.loops.pause(s.arg0); - checkResumeConsumed(); - return; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C66334_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + return leaveAccessor(s, r0) default: oops() } } } -pause__P413.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +controller_Controller_connected__P66355.info = {"start":7723,"length":63,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} +controller_Controller_connected__P66355.isGetter = true; -function pause__P413_mk(s) { +function controller_Controller_connected__P66355_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P413, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P66355, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -57096,7 +58265,7 @@ function pause__P413_mk(s) { -function particles_ShapeFactory_createParticle__P3197(s) { +function game_currentScene__P67198(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57106,47 +58275,545 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___23223 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C3193_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P3183_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1913; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_init__P69234_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1568; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___23223 = (r0); - s.tmp_0 = r0 = s.p___23223; - s.tmp_2 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 1; - s.tmp_2.arg2 = 14; + r0 = globals._scene___69226; + return leave(s, r0) + default: oops() +} } } +game_currentScene__P67198.info = {"start":4025,"length":90,"line":118,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} + +function game_currentScene__P67198_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_currentScene__P67198, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function game_addScenePopHandler__P67219(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___69229); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._scenePopHandlers___69229 = (r0); + case 1: + case 2: + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___69229, s.arg0, undefined); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__push(globals._scenePopHandlers___69229, s.arg0); + case 3: + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_addScenePopHandler__P67219.info = {"start":16914,"length":237,"line":501,"column":4,"endLine":505,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} + +function game_addScenePopHandler__P67219_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_addScenePopHandler__P67219, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function settings_initScopes__P68916(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.rn___87363 = undefined; + s.tmp_1 = settings_runNumber__P66258_mk(s); + s.callLocIdx = 229; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.rn___87363 = (r0); + s.tmp_0 = settings_writeNumber__P66263_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___68904; + s.tmp_0.arg1 = s.rn___87363; + s.callLocIdx = 230; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = pxsim.control.deviceSerialNumber(); + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2147483647); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___87363); + s.tmp_0 = settings_setScope__P68915_mk(s); + r0 = pxsim_pxtcore.programName(); + s.tmp_0.arg0 = r0; + s.callLocIdx = 231; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_initScopes__P68916.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} + +function settings_initScopes__P68916_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_initScopes__P68916, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + rn___87363: undefined, +} } + + + + + +function settings_setScope__P68915(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.currScope___87392 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 100); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtrt.panic(922); + case 3: + case 4: + s.tmp_0 = settings_readString__P66266_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___68905; + s.callLocIdx = 227; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.currScope___87392 = (r0); + r0 = (s.currScope___87392 != s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim.settings._userClean(); + s.tmp_0 = settings_writeString__P66261_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___68905; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 228; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 5: + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_setScope__P68915.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} + +function settings_setScope__P68915_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_setScope__P68915, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + currScope___87392: undefined, + arg0: undefined, +} } + + + + + +function settings_readString__P66266(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.buf___87406 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + s.buf___87406 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___87406); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = pxsim.BufferMethods.toString(s.buf___87406); + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: + return leave(s, r0) + default: oops() +} } } +settings_readString__P66266.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} + +function settings_readString__P66266_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readString__P66266, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + buf___87406: undefined, + arg0: undefined, +} } + + + + + +function settings_runNumber__P66258(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_1 = settings_readNumber__P66268_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___68904; + s.callLocIdx = 226; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leave(s, r0) + default: oops() +} } } +settings_runNumber__P66258.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} + +function settings_runNumber__P66258_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_runNumber__P66258, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function control___screen_setupUpdate__P66194(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + globals.__updated___68871 = (true); + globals.__update___68869 = (s.arg0); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 220; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control___screen_setupUpdate__P66194.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} + +function control___screen_setupUpdate__P66194_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control___screen_setupUpdate__P66194, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function _screen_internal_getScreenHeight__P66237(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore.getConfig(2103, s.arg0); + return leave(s, r0) + default: oops() +} } } +_screen_internal_getScreenHeight__P66237.info = {"start":960,"length":127,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenHeight","argumentNames":["defl"]} + +function _screen_internal_getScreenHeight__P66237_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: _screen_internal_getScreenHeight__P66237, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function _screen_internal_getScreenWidth__P66236(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore.getConfig(2102, s.arg0); + return leave(s, r0) + default: oops() +} } } +_screen_internal_getScreenWidth__P66236.info = {"start":810,"length":125,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenWidth","argumentNames":["defl"]} + +function _screen_internal_getScreenWidth__P66236_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: _screen_internal_getScreenWidth__P66236, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function control___screen_update__P66193(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.__update___68869); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__update___68869; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 219; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + case 1: + case 2: + globals.__updated___68871 = (true); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control___screen_update__P66193.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} + +function control___screen_update__P66193_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control___screen_update__P66193, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function pause__P64632(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + setupResume(s, 1); + pxsim.loops.pause(s.arg0); + checkResumeConsumed(); + return; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +pause__P64632.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} + +function pause__P64632_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pause__P64632, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function particles_ShapeFactory_createParticle__P67416(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___87444 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ShapeFactory__C67412_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P67402_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1913; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.p___87444 = (r0); + s.tmp_0 = r0 = s.p___87444; + s.tmp_2 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 14; s.callLocIdx = 1914; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["color"] = (s.tmp_1); - r0 = s.p___23223; + r0 = s.p___87444; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P3197.info = {"start":7505,"length":178,"line":239,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_ShapeFactory_createParticle__P67416.info = {"start":7505,"length":178,"line":239,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ShapeFactory_createParticle__P3197_mk(s) { +function particles_ShapeFactory_createParticle__P67416_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P3197, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P67416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___23223: undefined, + p___87444: undefined, arg0: undefined, arg1: undefined, } } @@ -57155,7 +58822,7 @@ function particles_ShapeFactory_createParticle__P3197_mk(s) { -function effects_ScreenEffect_startScreenEffect__P3248(s) { +function effects_ScreenEffect_startScreenEffect__P67467(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57172,7 +58839,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C3246_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ScreenEffect__C67465_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -57191,7 +58858,7 @@ switch (step) { r0 = s.tmp_3; { step = 4; continue; } case 3: - s.tmp_4 = particles_ParticleSource_enabled__P3143_mk(s); + s.tmp_4 = particles_ParticleSource_enabled__P67362_mk(s); r0 = s.arg0.fields["source"]; s.tmp_4.arg0 = r0; s.callLocIdx = 1971; s.pc = 14; return s.tmp_4; @@ -57212,14 +58879,14 @@ switch (step) { { step = 13; continue; } case 7: case 8: - s.tmp_0 = effects_ScreenEffect_endScreenEffect__P3249_mk(s); + s.tmp_0 = effects_ScreenEffect_endScreenEffect__P67468_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1972; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C5391_VT); + r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C69610_VT); s.tmp_0 = r0; - s.tmp_1 = effects_SceneAnchor_constructor__P5396_mk(s); + s.tmp_1 = effects_SceneAnchor_constructor__P69615_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 1973; s.pc = 16; return s.tmp_1; case 16: @@ -57266,12 +58933,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_startScreenEffect__P3248.info = {"start":3680,"length":601,"line":97,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"startScreenEffect","argumentNames":["this","duration","particlesPerSecond"]} +effects_ScreenEffect_startScreenEffect__P67467.info = {"start":3680,"length":601,"line":97,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"startScreenEffect","argumentNames":["this","duration","particlesPerSecond"]} -function effects_ScreenEffect_startScreenEffect__P3248_mk(s) { +function effects_ScreenEffect_startScreenEffect__P67467_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_startScreenEffect__P3248, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_startScreenEffect__P67467, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57289,7 +58956,7 @@ function effects_ScreenEffect_startScreenEffect__P3248_mk(s) { -function effects_SceneAnchor_constructor__P5396(s) { +function effects_SceneAnchor_constructor__P69615(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57304,9 +58971,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5391_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C69610_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_currentScene__P2979_mk(s); + s.tmp_2 = game_currentScene__P67198_mk(s); s.callLocIdx = 1967; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; @@ -57317,12 +58984,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_SceneAnchor_constructor__P5396.info = {"start":2296,"length":79,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this"]} +effects_SceneAnchor_constructor__P69615.info = {"start":2296,"length":79,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this"]} -function effects_SceneAnchor_constructor__P5396_mk(s) { +function effects_SceneAnchor_constructor__P69615_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_constructor__P5396, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_constructor__P69615, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57334,7 +59001,7 @@ function effects_SceneAnchor_constructor__P5396_mk(s) { -function effects_ScreenEffect_endScreenEffect__P3249(s) { +function effects_ScreenEffect_endScreenEffect__P67468(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57349,12 +59016,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C3246_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ScreenEffect__C67465_VT)) failedCast(r0); r0 = s.arg0.fields["source"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = particles_ParticleSource_destroy__P3145_mk(s); + s.tmp_1 = particles_ParticleSource_destroy__P67364_mk(s); r0 = s.arg0.fields["source"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1975; s.pc = 3; return s.tmp_1; @@ -57367,12 +59034,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_endScreenEffect__P3249.info = {"start":4677,"length":160,"line":122,"column":8,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"endScreenEffect","argumentNames":["this"]} +effects_ScreenEffect_endScreenEffect__P67468.info = {"start":4677,"length":160,"line":122,"column":8,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"endScreenEffect","argumentNames":["this"]} -function effects_ScreenEffect_endScreenEffect__P3249_mk(s) { +function effects_ScreenEffect_endScreenEffect__P67468_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_endScreenEffect__P3249, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_endScreenEffect__P67468, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57383,7 +59050,7 @@ function effects_ScreenEffect_endScreenEffect__P3249_mk(s) { -function game_SplashDialog_drawTextCore__P2922(s) { +function game_SplashDialog_drawTextCore__P67141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57393,17 +59060,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scrollMax___23287 = undefined; - s.left___23330 = undefined; - s.ysub___23375 = undefined; - s.left___23386 = undefined; + s.scrollMax___87508 = undefined; + s.left___87551 = undefined; + s.ysub___87596 = undefined; + s.left___87607 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2912_VT)) failedCast(r0); - s.tmp_0 = Math_max__P130_mk(s); + if (!checkSubtype(r0, game_SplashDialog__C67131_VT)) failedCast(r0); + s.tmp_0 = Math_max__P64349_mk(s); r0 = s.arg0.fields["maxOffset"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["maxSubOffset"]; @@ -57411,7 +59078,7 @@ switch (step) { s.callLocIdx = 1449; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.scrollMax___23287 = (r0); + s.scrollMax___87508 = (r0); r0 = s.arg0.fields["timer"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 0); @@ -57421,7 +59088,7 @@ switch (step) { s.tmp_2 = r0 = s.arg0; r0 = s.tmp_2.fields["timer"]; s.tmp_4 = r0; - s.tmp_7 = game_eventContext__P2982_mk(s); + s.tmp_7 = game_eventContext__P67201_mk(s); s.callLocIdx = 1450; s.pc = 16; return s.tmp_7; case 16: r0 = s.retval; @@ -57461,11 +59128,11 @@ switch (step) { r0 = (s.tmp_0).fields["offset"] = (s.tmp_1); r0 = s.arg0.fields["offset"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >= s.scrollMax___23287); + r0 = (s.tmp_1 >= s.scrollMax___87508); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = (s.arg0).fields["offset"] = (s.scrollMax___23287); + r0 = (s.arg0).fields["offset"] = (s.scrollMax___87508); r0 = (s.arg0).fields["timer"] = (2); case 6: case 7: @@ -57505,13 +59172,13 @@ switch (step) { r0 = (s.tmp_6 >> 1); s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); - s.left___23330 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + s.left___87551 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); r0 = s.arg0.fields["image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["text"]; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___23330; + s.tmp_0.arg2 = s.left___87551; s.tmp_0.arg3 = 10; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; @@ -57523,7 +59190,7 @@ switch (step) { r0 = s.retval; { step = 10; continue; } case 9: - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); r0 = s.arg0.fields["image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["text"]; @@ -57565,7 +59232,7 @@ switch (step) { r0 = (10 + s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_1 + 2); - s.ysub___23375 = (r0); + s.ysub___87596 = (r0); r0 = s.arg0.fields["maxSubOffset"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); @@ -57601,14 +59268,14 @@ switch (step) { r0 = (s.tmp_6 >> 1); s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); - s.left___23386 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + s.left___87607 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); r0 = s.arg0.fields["image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["subtext"]; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___23386; - s.tmp_0.arg3 = s.ysub___23375; + s.tmp_0.arg2 = s.left___87607; + s.tmp_0.arg3 = s.ysub___87596; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; r0 = s.arg0.fields["font"]; @@ -57619,14 +59286,14 @@ switch (step) { r0 = s.retval; { step = 12; continue; } case 11: - s.tmp_0 = helpers_imagePrint__P1971_mk(s); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); r0 = s.arg0.fields["image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["subtext"]; s.tmp_0.arg1 = r0; r0 = s.arg0.fields["unit"]; s.tmp_1 = r0; - s.tmp_3 = Math_min__P131_mk(s); + s.tmp_3 = Math_min__P64350_mk(s); r0 = s.arg0.fields["offset"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["maxSubOffset"]; @@ -57637,7 +59304,7 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.ysub___23375; + s.tmp_0.arg3 = s.ysub___87596; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; r0 = s.arg0.fields["font"]; @@ -57649,7 +59316,7 @@ switch (step) { case 12: case 13: case 14: - s.tmp_0 = game_BaseDialog_drawBorder__P4969_mk(s); + s.tmp_0 = game_BaseDialog_drawBorder__P69188_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1460; s.pc = 25; return s.tmp_0; case 25: @@ -57658,12 +59325,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_SplashDialog_drawTextCore__P2922.info = {"start":9958,"length":1616,"line":306,"column":8,"endLine":344,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +game_SplashDialog_drawTextCore__P67141.info = {"start":9958,"length":1616,"line":306,"column":8,"endLine":344,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function game_SplashDialog_drawTextCore__P2922_mk(s) { +function game_SplashDialog_drawTextCore__P67141_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_drawTextCore__P2922, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_drawTextCore__P67141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57676,10 +59343,10 @@ function game_SplashDialog_drawTextCore__P2922_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - scrollMax___23287: undefined, - left___23330: undefined, - ysub___23375: undefined, - left___23386: undefined, + scrollMax___87508: undefined, + left___87551: undefined, + ysub___87596: undefined, + left___87607: undefined, arg0: undefined, } } @@ -57687,7 +59354,7 @@ function game_SplashDialog_drawTextCore__P2922_mk(s) { -function game_BaseDialog_setText__P2898(s) { +function info_PlayerInfo_id__P66843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57699,31 +59366,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2883_VT)) failedCast(r0); - r0 = undefined; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["impl"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_player"]; return leave(s, r0) default: oops() } } } -game_BaseDialog_setText__P2898.info = {"start":2302,"length":77,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} +info_PlayerInfo_id__P66843.info = {"start":27406,"length":59,"line":911,"column":8,"endLine":913,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} -function game_BaseDialog_setText__P2898_mk(s) { +function info_PlayerInfo_id__P66843_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_setText__P2898, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_id__P66843, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteMap_toString__P2434(s) { +function info_PlayerInfo_y__P66837(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57735,80 +59403,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - r0 = pxsim_String_.mkEmpty(); - s.tmp_3 = r0; - r0 = s.arg0.fields["buckets"]; - s.tmp_6 = r0; - r0 = pxsim_Array__length(s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 1: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, " buckets, "); - s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P110_mk(s); - r0 = s.arg0.fields["buckets"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = length_inline__P25314; - s.callLocIdx = 795; s.pc = 2; return s.tmp_10; - case 2: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_Array__length(s.tmp_9); - s.tmp_8 = r0; - if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.tmp_8); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_8) + ""; } - case 3: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["impl"]; s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, " filled"); + r0 = (s.tmp_0).fields["y"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P2434.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} +info_PlayerInfo_y__P66837.info = {"start":26852,"length":65,"line":885,"column":8,"endLine":887,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"y","argumentNames":["this","value"]} -function sprites_SpriteMap_toString__P2434_mk(s) { +function info_PlayerInfo_y__P66837_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P2434, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_y__P66837, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, arg0: undefined, + arg1: undefined, } } -function length_inline__P25314(s) { +function info_PlayerInfo_y__P66836(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57822,26 +59445,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["y"]; + return leaveAccessor(s, r0) default: oops() } } } -length_inline__P25314.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +info_PlayerInfo_y__P66836.info = {"start":26783,"length":59,"line":881,"column":8,"endLine":883,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"y","argumentNames":["this"]} +info_PlayerInfo_y__P66836.isGetter = true; -function length_inline__P25314_mk(s) { +function info_PlayerInfo_y__P66836_mk(s) { checkStack(s.depth); return { - parent: s, fn: length_inline__P25314, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_y__P66836, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, } } @@ -57849,7 +59467,7 @@ function length_inline__P25314_mk(s) { -function ArcadePhysicsEngine_moveSprite__P2521(s) { +function info_PlayerInfo_x__P66835(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57859,206 +59477,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___25346 = undefined; - s.maxDist___25354 = undefined; - s.ms___25374 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg1.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); - r0 = s.arg1.fields["_y"]; + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["impl"]; s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1034; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___25346 = (r0); - s.tmp_0 = r0 = s.tm___25346; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.tm___25346.fields["_map"]; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 11; continue; } - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 128); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 8); - s.maxDist___25354 = (r0); - s.tmp_2 = Math_abs__P128_mk(s); - r0 = (s.arg2 + 128); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 8); - s.tmp_2.arg0 = r0; - s.callLocIdx = 1038; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___25354); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_5 = Math_abs__P128_mk(s); - r0 = (s.arg3 + 128); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 8); - s.tmp_5.arg0 = r0; - s.callLocIdx = 1040; s.pc = 15; return s.tmp_5; - case 15: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___25354); - case 4: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2505_VT); - s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P2506_mk(s); - s.tmp_9.arg0 = s.tmp_8; - s.tmp_9.arg1 = s.arg1; - r0 = s.arg1.fields["_vx"]; - s.tmp_9.arg2 = r0; - r0 = s.arg1.fields["_vy"]; - s.tmp_9.arg3 = r0; - s.tmp_9.arg4 = s.arg2; - s.tmp_9.arg5 = s.arg3; - s.tmp_9.arg6 = s.arg2; - s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 1041; s.pc = 16; return s.tmp_9; - case 16: - r0 = s.retval; - s.ms___25374 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P4863_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___25374; - s.tmp_0.arg2 = s.tm___25346; - s.callLocIdx = 1042; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - { step = 10; continue; } - case 5: - s.tmp_1 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_1.arg0 = s.tm___25346; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1043; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P4865_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___25346; - s.callLocIdx = 1044; s.pc = 19; return s.tmp_4; - case 19: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 8; continue; } - s.tmp_6 = r0 = s.arg1; - r0 = s.tmp_6.fields["flags"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 | 256); - s.tmp_7 = r0; - r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); - { step = 9; continue; } - case 8: - s.tmp_0 = r0 = s.arg1; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -257); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 9: - case 10: - case 11: - case 12: + r0 = (s.tmp_0).fields["x"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P2521.info = {"start":23898,"length":1208,"line":654,"column":4,"endLine":685,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +info_PlayerInfo_x__P66835.info = {"start":26708,"length":65,"line":877,"column":8,"endLine":879,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"x","argumentNames":["this","value"]} -function ArcadePhysicsEngine_moveSprite__P2521_mk(s) { +function info_PlayerInfo_x__P66835_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P2521, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_x__P66835, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tm___25346: undefined, - maxDist___25354: undefined, - ms___25374: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_canResolveClipping__P4865(s) { +function info_PlayerInfo_x__P66834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58068,311 +59517,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___25419 = undefined; - s.sz___25422 = undefined; - s.maxMove___25427 = undefined; - s.origY___25429 = undefined; - s.origX___25432 = undefined; - s.l___25435 = undefined; - s.r___25440 = undefined; - s.t___25445 = undefined; - s.b___25450 = undefined; - s.offset___25455 = undefined; - s.offset___25480 = undefined; - s.offset___25511 = undefined; - s.offset___25536 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.isStatic(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C2321_v4_1_mk(s); - s.tmp_4.arg0 = s.arg1; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2321_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; - s.pc = 20; return s.tmp_4; - case 20: - r0 = s.retval; - case 1: - case 2: - r0 = s.arg1.fields["_hitbox"]; - s.hbox___25419 = (r0); - r0 = s.arg2.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.sz___25422 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P2513_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1047; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.maxMove___25427 = (r0); - r0 = s.arg1.fields["_y"]; - s.origY___25429 = (r0); - r0 = s.arg1.fields["_x"]; - s.origX___25432 = (r0); - s.tmp_1 = game_Hitbox_left__P2197_mk(s); - s.tmp_1.arg0 = s.hbox___25419; - s.callLocIdx = 1048; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.l___25435 = (r0); - s.tmp_1 = game_Hitbox_right__P2199_mk(s); - s.tmp_1.arg0 = s.hbox___25419; - s.callLocIdx = 1050; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.r___25440 = (r0); - s.tmp_1 = game_Hitbox_top__P2198_mk(s); - s.tmp_1.arg0 = s.hbox___25419; - s.callLocIdx = 1052; s.pc = 24; return s.tmp_1; - case 24: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.t___25445 = (r0); - s.tmp_1 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_1.arg0 = s.hbox___25419; - s.callLocIdx = 1054; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.b___25450 = (r0); - r0 = (s.b___25450 + 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___25422); - s.offset___25455 = (r0); - r0 = (s.offset___25455 <= s.maxMove___25427); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_3 = r0; - r0 = (s.offset___25455 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 1058; s.pc = 26; return s.tmp_3; - case 26: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 19; continue; } - { step = 4; continue; } - case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___25429); - case 4: - case 5: - case 6: - r0 = (s.t___25445 / s.sz___25422); - s.tmp_3 = r0; - r0 = pxsim.Math_.floor(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.sz___25422); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___25445); - s.offset___25480 = (r0); - r0 = (s.offset___25480 <= s.maxMove___25427); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_3 = r0; - r0 = (s.offset___25480 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 1061; s.pc = 27; return s.tmp_3; - case 27: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = true; - { step = 19; continue; } - { step = 8; continue; } - case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___25429); - case 8: - case 9: - case 10: - r0 = (s.r___25440 + 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___25422); - s.offset___25511 = (r0); - r0 = (s.offset___25511 <= s.maxMove___25427); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_3 = r0; - r0 = (s.offset___25511 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 1064; s.pc = 28; return s.tmp_3; - case 28: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = true; - { step = 19; continue; } - { step = 12; continue; } - case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___25432); - case 12: - case 13: - case 14: - r0 = (s.l___25435 / s.sz___25422); - s.tmp_3 = r0; - r0 = pxsim.Math_.floor(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.sz___25422); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___25435); - s.offset___25536 = (r0); - r0 = (s.offset___25536 <= s.maxMove___25427); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_3 = r0; - r0 = (s.offset___25536 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 1067; s.pc = 29; return s.tmp_3; - case 29: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = true; - { step = 19; continue; } - { step = 16; continue; } - case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___25432); - case 16: - case 17: - case 18: - r0 = false; - case 19: - return leave(s, r0) + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["x"]; + return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P4865.info = {"start":25202,"length":2135,"line":688,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +info_PlayerInfo_x__P66834.info = {"start":26639,"length":59,"line":873,"column":8,"endLine":875,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"x","argumentNames":["this"]} +info_PlayerInfo_x__P66834.isGetter = true; -function ArcadePhysicsEngine_canResolveClipping__P4865_mk(s) { +function info_PlayerInfo_x__P66834_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P4865, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_x__P66834, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - hbox___25419: undefined, - sz___25422: undefined, - maxMove___25427: undefined, - origY___25429: undefined, - origX___25432: undefined, - l___25435: undefined, - r___25440: undefined, - t___25445: undefined, - b___25450: undefined, - offset___25455: undefined, - offset___25480: undefined, - offset___25511: undefined, - offset___25536: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Sprite_isStatic__P2375(s) { +function info_PlayerInfoImpl_id__P66804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58387,21 +59558,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.isStatic(s.tmp_0); + if (!checkSubtype(r0, info_PlayerInfoImpl__C66794_VT)) failedCast(r0); + r0 = s.arg0.fields["_player"]; return leave(s, r0) default: oops() } } } -Sprite_isStatic__P2375.info = {"start":9841,"length":57,"line":355,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +info_PlayerInfoImpl_id__P66804.info = {"start":21343,"length":57,"line":687,"column":8,"endLine":689,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} -function Sprite_isStatic__P2375_mk(s) { +function info_PlayerInfoImpl_id__P66804_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P2375, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_id__P66804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -58409,7 +59577,7 @@ function Sprite_isStatic__P2375_mk(s) { -function game_Hitbox_bottom__P2200(s) { +function statusbars_StatusHandler_constructor__P71309(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58421,44 +59589,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - r0 = s.arg0.fields["height"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P2198_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 347; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, statusbars_StatusHandler__C71307_VT)) failedCast(r0); + r0 = (s.arg0).fields["kind"] = (s.arg1); + r0 = (s.arg0).fields["comparison"] = (s.arg2); + r0 = (s.arg0).fields["comparisonType"] = (s.arg3); + r0 = (s.arg0).fields["percent"] = (s.arg4); + r0 = (s.arg0).fields["handler"] = (s.arg5); + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_Hitbox_bottom__P2200.info = {"start":786,"length":139,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} -game_Hitbox_bottom__P2200.isGetter = true; +statusbars_StatusHandler_constructor__P71309.info = {"start":24522,"length":257,"line":702,"column":8,"endLine":708,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","kind","comparison","comparisonType","percent","handler"]} -function game_Hitbox_bottom__P2200_mk(s) { +function statusbars_StatusHandler_constructor__P71309_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P2200, depth: s.depth + 1, + parent: s, fn: statusbars_StatusHandler_constructor__P71309, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function game_Hitbox_right__P2199(s) { +function particles_FireSource_updateParticle__P67374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58470,44 +59638,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - r0 = s.arg0.fields["width"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P2197_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 344; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, particles_FireSource__C67372_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_updateParticle__P69567_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 1853; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = s.arg1.fields["next"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = Math_FastRandom_percentChance__P67265_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 30; + s.callLocIdx = 1854; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; + case 2: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.arg1.fields["next"]; + r0 = r0.fields["vx"]; + s.tmp_3 = r0; + r0 = (s.arg1).fields["vx"] = (s.tmp_3); + r0 = s.arg1.fields["next"]; + r0 = r0.fields["vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + r0 = (s.arg1).fields["vy"] = (s.tmp_0); + case 3: + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_Hitbox_right__P2199.info = {"start":638,"length":138,"line":26,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} -game_Hitbox_right__P2199.isGetter = true; +particles_FireSource_updateParticle__P67374.info = {"start":10620,"length":240,"line":348,"column":8,"endLine":354,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} -function game_Hitbox_right__P2199_mk(s) { +function particles_FireSource_updateParticle__P67374_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P2199, depth: s.depth + 1, + parent: s, fn: particles_FireSource_updateParticle__P67374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_Hitbox_top__P2198(s) { +function particles_FireFactory_createParticle__P67421(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58517,39 +59714,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___87705 = undefined; + s.i___87717 = undefined; + s.r___87724 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - r0 = s.arg0.fields["oy"]; + if (!checkSubtype(r0, particles_FireFactory__C67419_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P67388_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1920; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.p___87705 = (r0); + s.tmp_1 = Math_FastRandom_randomBool__P67264_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1921; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_y"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 2; + { step = 4; continue; } + case 1: + s.tmp_3 = Math_FastRandom_randomBool__P67264_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1922; s.pc = 7; return s.tmp_3; + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = 4; + { step = 3; continue; } + case 2: + r0 = 5; + case 3: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = (s.p___87705).fields["color"] = (s.tmp_5); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + r0 = pxsim_Array__length(globals.cachedCos___69578); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1923; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.i___87717 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["minRadius"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["maxRadius"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 1924; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.r___87724 = (r0); + s.tmp_0 = r0 = s.p___87705; + s.tmp_3 = if_x_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1925; s.pc = 10; return s.tmp_3; } + } + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.r___87724 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(globals.cachedCos___69578, s.i___87717); + s.tmp_7 = r0; + r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); + s.tmp_8 = r0; + r0 = (s.tmp_8 >> 8); + s.tmp_4 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_9 = r0; + r0 = (s.tmp_9 + s.tmp_4); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -game_Hitbox_top__P2198.info = {"start":555,"length":73,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} -game_Hitbox_top__P2198.isGetter = true; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___87705; + s.tmp_3 = if_y_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1929; s.pc = 11; return s.tmp_3; } + } + case 11: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.r___87724 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(globals.cachedSin___69577, s.i___87717); + s.tmp_7 = r0; + r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); + s.tmp_8 = r0; + r0 = (s.tmp_8 >> 8); + s.tmp_4 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_9 = r0; + r0 = (s.tmp_9 + s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___87705; + r0 = pxsim.Math_.randomRange(0, 10); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___87705; + r0 = pxsim.Math_.randomRange(-5, 5); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + r0 = (s.p___87705).fields["lifespan"] = (1500); + r0 = s.p___87705; + return leave(s, r0) + default: oops() +} } } +particles_FireFactory_createParticle__P67421.info = {"start":8876,"length":662,"line":290,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function game_Hitbox_top__P2198_mk(s) { +function particles_FireFactory_createParticle__P67421_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P2198, depth: s.depth + 1, + parent: s, fn: particles_FireFactory_createParticle__P67421, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + p___87705: undefined, + i___87717: undefined, + r___87724: undefined, arg0: undefined, + arg1: undefined, } } -function game_Hitbox_left__P2197(s) { +function Math_FastRandom_randomBool__P67264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58564,34 +59907,77 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - r0 = s.arg0.fields["ox"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_x"]; + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); + s.tmp_3 = Math_FastRandom_next__P67261_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1631; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 1); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -game_Hitbox_left__P2197.info = {"start":471,"length":74,"line":18,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} -game_Hitbox_left__P2197.isGetter = true; +Math_FastRandom_randomBool__P67264.info = {"start":2627,"length":72,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomBool","argumentNames":["this"]} -function game_Hitbox_left__P2197_mk(s) { +function Math_FastRandom_randomBool__P67264_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P2197, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomBool__P67264, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function Fx_iadd__P64377(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_iadd__P64377.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} + +function Fx_iadd__P64377_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_iadd__P64377, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function ArcadePhysicsEngine_tilemapCollisions__P4863(s) { +function animation_MovementAnimation_constructor__P67559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58601,1011 +59987,1525 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___25679 = undefined; - s.hbox___25704 = undefined; - s.tileScale___25707 = undefined; - s.tileSize___25710 = undefined; - s.xDiff___25714 = undefined; - s.yDiff___25721 = undefined; - s.right___25737 = undefined; - s.x0___25741 = undefined; - s.collidedTiles___25756 = undefined; - s.y___25758 = undefined; - s.y0___25772 = undefined; - s.obstacle___25788 = undefined; - s.collisionDirection___25815 = undefined; - s.tile___25841 = undefined; - s.unnamed102___U14 = undefined; - s.unnamed103___U15 = undefined; - s.down___25932 = undefined; - s.y0___25936 = undefined; - s.collidedTiles___25951 = undefined; - s.x___25953 = undefined; - s.x0___25963 = undefined; - s.obstacle___25977 = undefined; - s.collisionDirection___26004 = undefined; - s.tile___26030 = undefined; - s.unnamed104___U24 = undefined; - s.unnamed105___U25 = undefined; - s.overlappedTiles___26124 = undefined; - s.x___26126 = undefined; - s.x0___26136 = undefined; - s.y___26146 = undefined; - s.y0___26156 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg1.fields["sprite"]; - s.s___25679 = (r0); - r0 = s.s___25679.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 256); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_5 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___25679; - s.callLocIdx = 930; s.pc = 97; return s.tmp_5; - case 97: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - s.tmp_6 = r0 = s.s___25679; - r0 = s.tmp_6.fields["flags"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 & -257); - s.tmp_7 = r0; - r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); + if (!checkSubtype(r0, animation_MovementAnimation__C67558_VT)) failedCast(r0); + r0 = (s.arg0).fields["path"] = (s.arg2); + r0 = (s.arg0).fields["nodeInterval"] = (s.arg3); + s.tmp_0 = animation_SpriteAnimation_constructor__P67552_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg4; + s.callLocIdx = 2075; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_x__P66553_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 2076; s.pc = 2; return s.tmp_2; case 2: - case 3: - case 4: - r0 = s.s___25679.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.isStatic(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite__C2321_v4_1_mk(s); - s.tmp_4.arg0 = s.s___25679; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2321_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; - s.pc = 98; return s.tmp_4; - case 98: r0 = s.retval; - case 5: - case 6: - r0 = s.s___25679.fields["_hitbox"]; - s.hbox___25704 = (r0); - r0 = s.arg2.fields["_scale"]; - s.tileScale___25707 = (r0); - r0 = (1 << s.tileScale___25707); - s.tileSize___25710 = (r0); - r0 = s.s___25679.fields["_x"]; - s.tmp_0 = r0; - r0 = s.s___25679.fields["_lastX"]; s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___25714 = (r0); - r0 = s.s___25679.fields["_y"]; - s.tmp_0 = r0; - r0 = s.s___25679.fields["_lastY"]; + r0 = (s.tmp_0).fields["startX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 2077; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___25721 = (r0); - r0 = s.s___25679.fields["flags"]; + r0 = (s.tmp_0).fields["startY"] = (s.tmp_1); + r0 = (s.arg0).fields["elapsedTime"] = (0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +animation_MovementAnimation_constructor__P67559.info = {"start":20275,"length":244,"line":555,"column":8,"endLine":560,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","path","nodeInterval","loop"]} + +function animation_MovementAnimation_constructor__P67559_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_MovementAnimation_constructor__P67559, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, +} } + + + + + +function animation_MovementAnimation_update__P67560(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.result___87810 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, animation_MovementAnimation__C67558_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["elapsedTime"]; + s.tmp_2 = r0; + s.tmp_4 = game_eventContext__P67201_mk(s); + s.callLocIdx = 2078; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + r0 = r0.fields["deltaTimeMillis"]; s.tmp_3 = r0; - r0 = (s.tmp_3 & 2818); + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["elapsedTime"] = (s.tmp_1); + s.tmp_0 = animation_Path_run__P67550_mk(s); + r0 = s.arg0.fields["path"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["nodeInterval"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["sprite"]; + s.tmp_0.arg2 = r0; + r0 = s.arg0.fields["elapsedTime"]; + s.tmp_0.arg3 = r0; + s.callLocIdx = 2079; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.result___87810 = (r0); + r0 = pxsim_numops_toBoolDecr(s.result___87810); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["loop"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 83; continue; } - r0 = (s.xDiff___25714 !== 0); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 43; continue; } - r0 = (s.xDiff___25714 > 0); - s.right___25737 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___25737); - if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P2199_mk(s); - s.tmp_1.arg0 = s.hbox___25704; - s.callLocIdx = 935; s.pc = 99; return s.tmp_1; - case 99: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 256); - { step = 8; continue; } - case 7: - s.tmp_3 = game_Hitbox_left__P2197_mk(s); - s.tmp_3.arg0 = s.hbox___25704; - s.callLocIdx = 937; s.pc = 100; return s.tmp_3; - case 100: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 256); + if (!r0) { step = 1; continue; } + r0 = true; + { step = 5; continue; } + case 1: + case 2: + r0 = (s.arg0).fields["elapsedTime"] = (0); + s.tmp_0 = animation_Path_reset__P67549_mk(s); + r0 = s.arg0.fields["path"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 2080; s.pc = 8; return s.tmp_0; case 8: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.tmp_4 + 128); - s.tmp_5 = r0; - r0 = (s.tileScale___25707 + 8); - s.tmp_6 = r0; - r0 = (s.tmp_5 >> s.tmp_6); - s.x0___25741 = (r0); - r0 = pxsim_Array__mk(); - s.collidedTiles___25756 = (r0); - s.tmp_1 = game_Hitbox_top__P2198_mk(s); - s.tmp_1.arg0 = s.hbox___25704; - s.callLocIdx = 941; s.pc = 101; return s.tmp_1; - case 101: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___25721); - s.y___25758 = (r0); + s.tmp_0 = Sprite_x__P66554_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["startX"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 2081; s.pc = 9; return s.tmp_0; case 9: - s.tmp_1 = r0 = s.y___25758; - s.tmp_3 = r0 = s.tileSize___25710; - s.tmp_6 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_6.arg0 = s.hbox___25704; - s.callLocIdx = 943; s.pc = 102; return s.tmp_6; - case 102: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___25721); - s.tmp_4 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_7 = r0; - r0 = (s.tmp_7 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P166_mk(s); - s.tmp_10.arg0 = s.y___25758; - s.tmp_12 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_12.arg0 = s.hbox___25704; - s.callLocIdx = 946; s.pc = 104; return s.tmp_12; - case 104: - r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___25721); - s.tmp_10.arg1 = r0; - s.callLocIdx = 948; s.pc = 103; return s.tmp_10; - case 103: r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_9 + 128); - s.tmp_8 = r0; - r0 = (s.tileScale___25707 + 8); - s.tmp_13 = r0; - r0 = (s.tmp_8 >> s.tmp_13); - s.y0___25772 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P2736_mk(s); - s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___25741; - s.tmp_1.arg2 = s.y0___25772; - s.callLocIdx = 951; s.pc = 105; return s.tmp_1; - case 105: + s.tmp_0 = Sprite_y__P66556_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["startY"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 2082; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; + case 3: + case 4: + r0 = false; + case 5: + return leave(s, r0) + default: oops() +} } } +animation_MovementAnimation_update__P67560.info = {"start":20529,"length":470,"line":562,"column":8,"endLine":574,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} + +function animation_MovementAnimation_update__P67560_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_MovementAnimation_update__P67560, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + result___87810: undefined, + arg0: undefined, +} } + + + + + +function animation_Path_run__P67550(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.nodeIndex___87882 = undefined; + s.nodeTime___87888 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + r0 = (s.arg3 / s.arg1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P2737_mk(s); - s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___25741; - s.tmp_2.arg2 = s.y0___25772; - s.callLocIdx = 952; s.pc = 106; return s.tmp_2; - case 106: - r0 = s.retval; - s.obstacle___25788 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P25796); + r0 = pxsim.Math_.floor(s.tmp_0); + s.nodeIndex___87882 = (r0); + r0 = (s.arg3 % s.arg1); + s.nodeTime___87888 = (r0); + r0 = s.arg0.fields["startX"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___25788); - s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.collidedTiles___25756; - s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 953; s.pc = 107; return s.tmp_4; - case 107: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.arg0; + s.tmp_4 = Sprite_x__P66553_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 2023; s.pc = 10; return s.tmp_4; + case 10: r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___25756, s.obstacle___25788); - case 10: + r0 = (s.tmp_2).fields["startX"] = (s.tmp_3); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2024; s.pc = 11; return s.tmp_2; case 11: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["startY"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_x__P66553_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2025; s.pc = 12; return s.tmp_2; case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2026; s.pc = 13; return s.tmp_2; case 13: - r0 = (s.tileSize___25710 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___25758); - s.y___25758 = (r0); - { step = 9; continue; } + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastY"] = (s.tmp_1); + r0 = (s.arg0).fields["commandIndex"] = (0); + s.tmp_0 = animation_Path_readNextCommand__P69648_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2027; s.pc = 14; return s.tmp_0; case 14: - r0 = pxsim_Array__length(s.collidedTiles___25756); + r0 = s.retval; + case 1: + case 2: + case 3: + r0 = s.arg0.fields["commandIndex"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.nodeIndex___87882); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 41; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___25737); - if (!r0) { step = 15; continue; } - r0 = 2; - { step = 16; continue; } + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["currentCommand"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_3 = animation_Path_runCurrentCommand__P69651_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.arg2; + s.tmp_3.arg2 = s.arg1; + s.tmp_3.arg3 = s.arg1; + s.callLocIdx = 2028; s.pc = 15; return s.tmp_3; case 15: - r0 = 0; + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_x__P66553_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2029; s.pc = 16; return s.tmp_2; case 16: - // jmp value (already in r0) - s.tmp_1 = r0; - s.collisionDirection___25815 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___25737); - if (!r0) { step = 17; continue; } - r0 = (s.x0___25741 << s.tileScale___25707); + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0 = r0; - r0 = s.hbox___25704.fields["width"]; - s.tmp_3 = r0; - r0 = (s.tmp_0 - s.tmp_3); - { step = 18; continue; } + r0 = (s.tmp_0).fields["lastX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P66555_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 2030; s.pc = 17; return s.tmp_2; case 17: - r0 = (s.x0___25741 + 1); - s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___25707); - s.tmp_4 = r0; - r0 = (s.tmp_4 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - case 18: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___25679; - r0 = s.hbox___25704.fields["ox"]; - s.tmp_10 = r0; - r0 = (s.tmp_7 - s.tmp_10); - s.tmp_9 = r0; - r0 = (s.tmp_8).fields["_x"] = (s.tmp_9); - s.tile___25841 = (undefined); - s.unnamed102___U14 = (s.collidedTiles___25756); - s.unnamed103___U15 = (0); - case 19: - s.tmp_0 = r0 = s.unnamed103___U15; - r0 = pxsim_Array__length(s.unnamed102___U14); + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 22; continue; } - r0 = pxsim_Array__getAt(s.unnamed102___U14, s.unnamed103___U15); - s.tile___25841 = (r0); - r0 = s.s___25679.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 2818); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = (s.tmp_0).fields["lastY"] = (s.tmp_1); + case 4: + case 5: + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["commandIndex"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 20; continue; } - s.tmp_6 = Sprite_registerObstacle__P2406_mk(s); - s.tmp_6.arg0 = s.s___25679; - s.tmp_6.arg1 = s.collisionDirection___25815; - s.tmp_6.arg2 = s.tile___25841; - s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 959; s.pc = 108; return s.tmp_6; - case 108: + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["commandIndex"] = (s.tmp_1); + s.tmp_0 = animation_Path_readNextCommand__P69648_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2031; s.pc = 18; return s.tmp_0; + case 18: r0 = s.retval; - case 20: - case 21: - r0 = (s.unnamed103___U15 + 1); - s.unnamed103___U15 = (r0); - { step = 19; continue; } - case 22: - s.unnamed102___U14 = (undefined); - r0 = s.s___25679.fields["flags"]; + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["length"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); + r0 = (s.nodeIndex___87882 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_2 = Sprite_destroy__P2408_mk(s); - s.tmp_2.arg0 = s.s___25679; - s.tmp_2.arg1 = undefined; - s.tmp_2.arg2 = undefined; - s.callLocIdx = 960; s.pc = 109; return s.tmp_2; - case 109: + if (!r0) { step = 7; continue; } + r0 = true; + { step = 9; continue; } + case 7: + case 8: + s.tmp_2 = animation_Path_runCurrentCommand__P69651_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.nodeTime___87888; + s.tmp_2.arg3 = s.arg1; + s.callLocIdx = 2032; s.pc = 19; return s.tmp_2; + case 19: r0 = s.retval; - { step = 40; continue; } - case 23: - r0 = s.s___25679.fields["_vx"]; - s.tmp_1 = r0; - r0 = s.arg1.fields["cachedVx"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 24; continue; } - r0 = s.tmp_0; - { step = 25; continue; } - case 24: - r0 = s.s___25679.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 2818); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - case 25: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 36; continue; } - r0 = s.s___25679.fields["flags"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 & 32); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 34; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___25737); - s.tmp_10 = r0; - r0 = pxsim_Boolean__bang(s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); + r0 = false; + case 9: + return leave(s, r0) + default: oops() +} } } +animation_Path_run__P67550.info = {"start":4368,"length":1111,"line":150,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"run","argumentNames":["this","interval","target","runningTime"]} + +function animation_Path_run__P67550_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_Path_run__P67550, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + nodeIndex___87882: undefined, + nodeTime___87888: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function animation_Path_runCurrentCommand__P69651(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + r0 = s.arg0.fields["currentCommand"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("M", s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq("m", s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq("L", s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq("l", s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq("H", s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq("h", s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq("V", s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq("v", s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq("Q", s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq("q", s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq("T", s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq("t", s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); + if (r0) { step = 17; continue; } + r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); + if (r0) { step = 18; continue; } + r0 = pxsim_pxtcore.switch_eq("S", s.tmp_0); + if (r0) { step = 19; continue; } + r0 = pxsim_pxtcore.switch_eq("s", s.tmp_0); + if (r0) { step = 22; continue; } + r0 = pxsim_pxtcore.switch_eq("Z", s.tmp_0); + if (r0) { step = 25; continue; } + r0 = pxsim_pxtcore.switch_eq("z", s.tmp_0); if (r0) { step = 26; continue; } - r0 = s.tmp_9; + r0 = s.tmp_0; { step = 27; continue; } - case 26: - s.tmp_12 = Sprite_vx__P2338_mk(s); - s.tmp_12.arg0 = s.s___25679; - s.callLocIdx = 961; s.pc = 110; return s.tmp_12; - case 110: - r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_11 < 0); - case 27: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = pxsim_numops_toBool(s.tmp_13); - if (!r0) { step = 28; continue; } - r0 = s.tmp_13; - { step = 31; continue; } + case 1: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_moveTo__P69653_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 1); + s.tmp_0.arg4 = r0; + s.callLocIdx = 2033; s.pc = 28; return s.tmp_0; case 28: - s.tmp_14 = r0 = s.right___25737; - r0 = pxsim_numops_toBool(s.tmp_14); - if (r0) { step = 29; continue; } - r0 = s.tmp_14; - { step = 30; continue; } + r0 = s.retval; + { step = 27; continue; } + case 2: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_moveTo__P69653_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, 1); + s.tmp_4 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_0.arg4 = r0; + s.callLocIdx = 2034; s.pc = 29; return s.tmp_0; case 29: - s.tmp_16 = Sprite_vx__P2338_mk(s); - s.tmp_16.arg0 = s.s___25679; - s.callLocIdx = 962; s.pc = 111; return s.tmp_16; - case 111: r0 = s.retval; - s.tmp_15 = r0; - r0 = (s.tmp_15 > 0); + { step = 27; continue; } + case 3: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 1); + s.tmp_0.arg6 = r0; + s.callLocIdx = 2035; s.pc = 30; return s.tmp_0; case 30: - // jmp value (already in r0) - s.tmp_17 = r0; - r0 = s.tmp_17; - case 31: - // jmp value (already in r0) - s.tmp_18 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_18); - if (!r0) { step = 32; continue; } - s.tmp_19 = r0 = s.s___25679; - r0 = s.s___25679.fields["_vx"]; - s.tmp_21 = r0; - r0 = (0 - s.tmp_21); - s.tmp_20 = r0; - r0 = (s.tmp_19).fields["_vx"] = (s.tmp_20); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["xStep"]; + r0 = s.retval; + { step = 27; continue; } + case 4: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + r0 = pxsim_Array__getAt(s.tmp_2, 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["xStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["dx"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, 1); + s.tmp_4 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_0.arg6 = r0; + s.callLocIdx = 2036; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + { step = 27; continue; } + case 5: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg6 = r0; + s.callLocIdx = 2037; s.pc = 32; return s.tmp_0; case 32: + r0 = s.retval; + { step = 27; continue; } + case 6: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg6 = r0; + s.callLocIdx = 2038; s.pc = 33; return s.tmp_0; case 33: - { step = 35; continue; } + r0 = s.retval; + { step = 27; continue; } + case 7: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg6 = r0; + s.callLocIdx = 2039; s.pc = 34; return s.tmp_0; case 34: - r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___25679).fields["_vx"] = (0); + r0 = s.retval; + { step = 27; continue; } + case 8: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg6 = r0; + s.callLocIdx = 2040; s.pc = 35; return s.tmp_0; case 35: - { step = 39; continue; } - case 36: - s.tmp_2 = Math_sign__P129_mk(s); - r0 = s.s___25679.fields["_vx"]; + r0 = s.retval; + { step = 27; continue; } + case 9: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + s.tmp_0 = animation_quadraticCurveTo__P69655_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 1); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; s.tmp_3 = r0; - r0 = (s.tmp_3 + 128); + r0 = pxsim_Array__getAt(s.tmp_3, 2); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_2.arg0 = r0; - s.callLocIdx = 967; s.pc = 112; return s.tmp_2; - case 112: + r0 = pxsim_Array__getAt(s.tmp_4, 3); + s.tmp_0.arg8 = r0; + s.callLocIdx = 2041; s.pc = 36; return s.tmp_0; + case 36: r0 = s.retval; + { step = 27; continue; } + case 10: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, 0); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - s.tmp_6 = Math_sign__P129_mk(s); - r0 = s.arg1.fields["cachedVx"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 + 128); - s.tmp_8 = r0; - r0 = (s.tmp_8 >> 8); - s.tmp_6.arg0 = r0; - s.callLocIdx = 969; s.pc = 113; return s.tmp_6; - case 113: - r0 = s.retval; + r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + s.tmp_0 = animation_quadraticCurveTo__P69655_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; s.tmp_5 = r0; - r0 = (s.tmp_1 === s.tmp_5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = (s.arg1).fields["dx"] = (0); + r0 = pxsim_Array__getAt(s.tmp_5, 1); + s.tmp_4 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_8, 2); + s.tmp_7 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_9 = r0; + r0 = (s.tmp_7 + s.tmp_9); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_11 = r0; + r0 = pxsim_Array__getAt(s.tmp_11, 3); + s.tmp_10 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_12 = r0; + r0 = (s.tmp_10 + s.tmp_12); + s.tmp_0.arg8 = r0; + s.callLocIdx = 2042; s.pc = 37; return s.tmp_0; case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - case 44: - r0 = (s.yDiff___25721 !== 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 81; continue; } - r0 = (s.yDiff___25721 > 0); - s.down___25932 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___25932); - if (!r0) { step = 45; continue; } - s.tmp_1 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_1.arg0 = s.hbox___25704; - s.callLocIdx = 970; s.pc = 114; return s.tmp_1; - case 114: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 256); - { step = 46; continue; } - case 45: - s.tmp_3 = game_Hitbox_top__P2198_mk(s); - s.tmp_3.arg0 = s.hbox___25704; - s.callLocIdx = 972; s.pc = 115; return s.tmp_3; - case 115: + { step = 27; continue; } + case 11: + s.tmp_0 = animation_Path_ensureControlPoint__P69652_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2043; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; + s.tmp_0 = animation_quadraticCurveTo__P69655_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - 256); - case 46: - // jmp value (already in r0) + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastControlX"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + 128); - s.tmp_5 = r0; - r0 = (s.tileScale___25707 + 8); + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; s.tmp_6 = r0; - r0 = (s.tmp_5 >> s.tmp_6); - s.y0___25936 = (r0); - r0 = pxsim_Array__mk(); - s.collidedTiles___25951 = (r0); - s.tmp_0 = game_Hitbox_left__P2197_mk(s); - s.tmp_0.arg0 = s.hbox___25704; - s.callLocIdx = 976; s.pc = 116; return s.tmp_0; - case 116: - r0 = s.retval; - s.x___25953 = (r0); - case 47: - s.tmp_1 = r0 = s.x___25953; - s.tmp_3 = r0 = s.tileSize___25710; - s.tmp_5 = game_Hitbox_right__P2199_mk(s); - s.tmp_5.arg0 = s.hbox___25704; - s.callLocIdx = 977; s.pc = 117; return s.tmp_5; - case 117: + r0 = s.arg0.fields["lastY"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = s.arg0.fields["lastControlY"]; + s.tmp_8 = r0; + r0 = (s.tmp_5 - s.tmp_8); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_9 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, 0); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_10, 1); + s.tmp_0.arg8 = r0; + s.callLocIdx = 2044; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; + r0 = (s.arg2 === s.arg3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.arg0.fields["lastX"]; s.tmp_4 = r0; - r0 = (s.tmp_3 << 8); + r0 = s.arg0.fields["lastX"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["lastControlX"]; s.tmp_6 = r0; - r0 = (s.tmp_6 + s.tmp_4); + r0 = (s.tmp_3 - s.tmp_6); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 52; continue; } - s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.x___25953; - s.tmp_10 = game_Hitbox_right__P2199_mk(s); - s.tmp_10.arg0 = s.hbox___25704; - s.callLocIdx = 979; s.pc = 119; return s.tmp_10; - case 119: - r0 = s.retval; - s.tmp_9.arg1 = r0; - s.callLocIdx = 980; s.pc = 118; return s.tmp_9; - case 118: + r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lastY"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastControlY"]; + s.tmp_5 = r0; + r0 = (s.tmp_2 - s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + case 12: + case 13: + { step = 27; continue; } + case 14: + s.tmp_0 = animation_Path_ensureControlPoint__P69652_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2045; s.pc = 40; return s.tmp_0; + case 40: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 + 128); + s.tmp_0 = animation_quadraticCurveTo__P69655_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastControlX"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["lastY"]; s.tmp_7 = r0; - r0 = (s.tileScale___25707 + 8); + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = s.arg0.fields["lastControlY"]; + s.tmp_8 = r0; + r0 = (s.tmp_5 - s.tmp_8); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_10, 0); + s.tmp_9 = r0; + r0 = s.arg0.fields["lastX"]; s.tmp_11 = r0; - r0 = (s.tmp_7 >> s.tmp_11); - s.x0___25963 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P2736_mk(s); - s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___25963; - s.tmp_1.arg2 = s.y0___25936; - s.callLocIdx = 983; s.pc = 120; return s.tmp_1; - case 120: + r0 = (s.tmp_9 + s.tmp_11); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_13 = r0; + r0 = pxsim_Array__getAt(s.tmp_13, 1); + s.tmp_12 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_14 = r0; + r0 = (s.tmp_12 + s.tmp_14); + s.tmp_0.arg8 = r0; + s.callLocIdx = 2046; s.pc = 41; return s.tmp_0; + case 41: r0 = s.retval; + r0 = (s.arg2 === s.arg3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 50; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P2737_mk(s); - s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___25963; - s.tmp_2.arg2 = s.y0___25936; - s.callLocIdx = 984; s.pc = 121; return s.tmp_2; - case 121: - r0 = s.retval; - s.obstacle___25977 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P25985); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___25977); - s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.collidedTiles___25951; - s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 985; s.pc = 122; return s.tmp_4; - case 122: - r0 = s.retval; + if (!r0) { step = 15; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.arg0.fields["lastX"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = s.arg0.fields["lastControlX"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lastY"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastControlY"]; + s.tmp_5 = r0; + r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 48; continue; } - r0 = pxsim_Array__push(s.collidedTiles___25951, s.obstacle___25977); - case 48: - case 49: - case 50: - case 51: - r0 = (s.tileSize___25710 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___25953); - s.x___25953 = (r0); - { step = 47; continue; } - case 52: - r0 = pxsim_Array__length(s.collidedTiles___25951); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 79; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___25932); - if (!r0) { step = 53; continue; } - r0 = 3; - { step = 54; continue; } - case 53: - r0 = 1; - case 54: - // jmp value (already in r0) + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + case 15: + case 16: + { step = 27; continue; } + case 17: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 2); s.tmp_1 = r0; - s.collisionDirection___26004 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___25932); - if (!r0) { step = 55; continue; } - r0 = (s.y0___25936 << s.tileScale___25707); + r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 3); s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + s.tmp_0 = animation_cubicCurveTo__P69656_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, 0); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0 = r0; - r0 = s.hbox___25704.fields["height"]; + r0 = pxsim_Array__getAt(s.tmp_2, 1); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; s.tmp_3 = r0; - r0 = (s.tmp_0 - s.tmp_3); - { step = 56; continue; } - case 55: - r0 = (s.y0___25936 + 1); + r0 = pxsim_Array__getAt(s.tmp_3, 2); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, 3); + s.tmp_0.arg8 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, 4); + s.tmp_0.arg9 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, 5); + s.tmp_0.arg10 = r0; + s.callLocIdx = 2047; s.pc = 42; return s.tmp_0; + case 42: + r0 = s.retval; + { step = 27; continue; } + case 18: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, 2); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, 3); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + s.tmp_0 = animation_cubicCurveTo__P69656_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["args"]; s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___25707); + r0 = pxsim_Array__getAt(s.tmp_5, 1); s.tmp_4 = r0; - r0 = (s.tmp_4 * 256); + r0 = s.arg0.fields["lastY"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_8, 2); + s.tmp_7 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_9 = r0; + r0 = (s.tmp_7 + s.tmp_9); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_11 = r0; + r0 = pxsim_Array__getAt(s.tmp_11, 3); + s.tmp_10 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_12 = r0; + r0 = (s.tmp_10 + s.tmp_12); + s.tmp_0.arg8 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_14 = r0; + r0 = pxsim_Array__getAt(s.tmp_14, 4); + s.tmp_13 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_15 = r0; + r0 = (s.tmp_13 + s.tmp_15); + s.tmp_0.arg9 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_17 = r0; + r0 = pxsim_Array__getAt(s.tmp_17, 5); + s.tmp_16 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_18 = r0; + r0 = (s.tmp_16 + s.tmp_18); + s.tmp_0.arg10 = r0; + s.callLocIdx = 2048; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + { step = 27; continue; } + case 19: + s.tmp_0 = animation_Path_ensureControlPoint__P69652_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2049; s.pc = 44; return s.tmp_0; + case 44: + r0 = s.retval; + s.tmp_0 = animation_cubicCurveTo__P69656_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastControlX"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - case 56: - // jmp value (already in r0) + r0 = s.arg0.fields["lastY"]; s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___25679; - r0 = s.hbox___25704.fields["oy"]; - s.tmp_10 = r0; - r0 = (s.tmp_7 - s.tmp_10); - s.tmp_9 = r0; - r0 = (s.tmp_8).fields["_y"] = (s.tmp_9); - s.tile___26030 = (undefined); - s.unnamed104___U24 = (s.collidedTiles___25951); - s.unnamed105___U25 = (0); - case 57: - s.tmp_0 = r0 = s.unnamed105___U25; - r0 = pxsim_Array__length(s.unnamed104___U24); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 60; continue; } - r0 = pxsim_Array__getAt(s.unnamed104___U24, s.unnamed105___U25); - s.tile___26030 = (r0); - r0 = s.s___25679.fields["flags"]; + r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; - r0 = (s.tmp_5 & 2818); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 58; continue; } - s.tmp_6 = Sprite_registerObstacle__P2406_mk(s); - s.tmp_6.arg0 = s.s___25679; - s.tmp_6.arg1 = s.collisionDirection___26004; - s.tmp_6.arg2 = s.tile___26030; - s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 991; s.pc = 123; return s.tmp_6; - case 123: + r0 = s.arg0.fields["lastControlY"]; + s.tmp_8 = r0; + r0 = (s.tmp_5 - s.tmp_8); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_9 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, 0); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_10, 1); + s.tmp_0.arg8 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_11 = r0; + r0 = pxsim_Array__getAt(s.tmp_11, 2); + s.tmp_0.arg9 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_12 = r0; + r0 = pxsim_Array__getAt(s.tmp_12, 3); + s.tmp_0.arg10 = r0; + s.callLocIdx = 2050; s.pc = 45; return s.tmp_0; + case 45: r0 = s.retval; - case 58: - case 59: - r0 = (s.unnamed105___U25 + 1); - s.unnamed105___U25 = (r0); - { step = 57; continue; } - case 60: - s.unnamed104___U24 = (undefined); - r0 = s.s___25679.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); + r0 = (s.arg2 === s.arg3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 61; continue; } - s.tmp_2 = Sprite_destroy__P2408_mk(s); - s.tmp_2.arg0 = s.s___25679; - s.tmp_2.arg1 = undefined; - s.tmp_2.arg2 = undefined; - s.callLocIdx = 992; s.pc = 124; return s.tmp_2; - case 124: - r0 = s.retval; - { step = 78; continue; } - case 61: - r0 = s.s___25679.fields["_vy"]; + if (!r0) { step = 20; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, 0); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, 1); s.tmp_1 = r0; - r0 = s.arg1.fields["cachedVy"]; + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + case 20: + case 21: + { step = 27; continue; } + case 22: + s.tmp_0 = animation_Path_ensureControlPoint__P69652_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 2051; s.pc = 46; return s.tmp_0; + case 46: + r0 = s.retval; + s.tmp_0 = animation_cubicCurveTo__P69656_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["lastX"]; s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 62; continue; } - r0 = s.tmp_0; - { step = 63; continue; } - case 62: - r0 = s.s___25679.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 2818); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = s.arg0.fields["lastX"]; s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - case 63: - // jmp value (already in r0) + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = s.arg0.fields["lastControlX"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["lastY"]; s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 74; continue; } - r0 = s.s___25679.fields["flags"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 & 32); + r0 = s.arg0.fields["lastY"]; s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 72; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___25932); + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = s.arg0.fields["lastControlY"]; + s.tmp_8 = r0; + r0 = (s.tmp_5 - s.tmp_8); + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["args"]; s.tmp_10 = r0; - r0 = pxsim_Boolean__bang(s.tmp_10); + r0 = pxsim_Array__getAt(s.tmp_10, 0); s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); - if (r0) { step = 64; continue; } - r0 = s.tmp_9; - { step = 65; continue; } - case 64: - s.tmp_12 = Sprite_vy__P2340_mk(s); - s.tmp_12.arg0 = s.s___25679; - s.callLocIdx = 993; s.pc = 125; return s.tmp_12; - case 125: - r0 = s.retval; + r0 = s.arg0.fields["lastX"]; s.tmp_11 = r0; - r0 = (s.tmp_11 < 0); - case 65: - // jmp value (already in r0) + r0 = (s.tmp_9 + s.tmp_11); + s.tmp_0.arg7 = r0; + r0 = s.arg0.fields["args"]; s.tmp_13 = r0; - r0 = pxsim_numops_toBool(s.tmp_13); - if (!r0) { step = 66; continue; } - r0 = s.tmp_13; - { step = 69; continue; } - case 66: - s.tmp_14 = r0 = s.down___25932; - r0 = pxsim_numops_toBool(s.tmp_14); - if (r0) { step = 67; continue; } - r0 = s.tmp_14; - { step = 68; continue; } - case 67: - s.tmp_16 = Sprite_vy__P2340_mk(s); - s.tmp_16.arg0 = s.s___25679; - s.callLocIdx = 994; s.pc = 126; return s.tmp_16; - case 126: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.tmp_13, 1); + s.tmp_12 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_14 = r0; + r0 = (s.tmp_12 + s.tmp_14); + s.tmp_0.arg8 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_16 = r0; + r0 = pxsim_Array__getAt(s.tmp_16, 2); s.tmp_15 = r0; - r0 = (s.tmp_15 > 0); - case 68: - // jmp value (already in r0) + r0 = s.arg0.fields["lastX"]; s.tmp_17 = r0; - r0 = s.tmp_17; - case 69: - // jmp value (already in r0) + r0 = (s.tmp_15 + s.tmp_17); + s.tmp_0.arg9 = r0; + r0 = s.arg0.fields["args"]; + s.tmp_19 = r0; + r0 = pxsim_Array__getAt(s.tmp_19, 3); s.tmp_18 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_18); - if (!r0) { step = 70; continue; } - s.tmp_19 = r0 = s.s___25679; - r0 = s.s___25679.fields["_vy"]; - s.tmp_21 = r0; - r0 = (0 - s.tmp_21); + r0 = s.arg0.fields["lastY"]; s.tmp_20 = r0; - r0 = (s.tmp_19).fields["_vy"] = (s.tmp_20); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["yStep"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["yStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["dy"]; + r0 = (s.tmp_18 + s.tmp_20); + s.tmp_0.arg10 = r0; + s.callLocIdx = 2052; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + r0 = (s.arg2 === s.arg3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, 0); + s.tmp_3 = r0; + r0 = s.arg0.fields["lastX"]; + s.tmp_5 = r0; + r0 = (s.tmp_3 + s.tmp_5); s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - case 70: - case 71: - { step = 73; continue; } - case 72: - r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___25679).fields["_vy"] = (0); - case 73: - { step = 77; continue; } - case 74: - s.tmp_2 = Math_sign__P129_mk(s); - r0 = s.s___25679.fields["_vy"]; + r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["args"]; s.tmp_3 = r0; - r0 = (s.tmp_3 + 128); + r0 = pxsim_Array__getAt(s.tmp_3, 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["lastY"]; s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_2.arg0 = r0; - s.callLocIdx = 999; s.pc = 127; return s.tmp_2; - case 127: - r0 = s.retval; + r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - s.tmp_6 = Math_sign__P129_mk(s); - r0 = s.arg1.fields["cachedVy"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 + 128); - s.tmp_8 = r0; - r0 = (s.tmp_8 >> 8); - s.tmp_6.arg0 = r0; - s.callLocIdx = 1001; s.pc = 128; return s.tmp_6; - case 128: + r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); + case 23: + case 24: + { step = 27; continue; } + case 25: + case 26: + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + s.tmp_0 = animation_lineTo__P69654_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + r0 = s.arg0.fields["lastX"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["lastY"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["startX"]; + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["startY"]; + s.tmp_0.arg6 = r0; + s.callLocIdx = 2053; s.pc = 48; return s.tmp_0; + case 48: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_1 === s.tmp_5); + case 27: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +animation_Path_runCurrentCommand__P69651.info = {"start":5489,"length":10309,"line":181,"column":8,"endLine":438,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"runCurrentCommand","argumentNames":["this","target","nodeTime","intervalTime"]} + +function animation_Path_runCurrentCommand__P69651_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_Path_runCurrentCommand__P69651, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function animation_cubicCurveTo__P69656(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.progress___88526 = undefined; + s.diff___88530 = undefined; + s.a___88534 = undefined; + s.b___88540 = undefined; + s.c___88548 = undefined; + s.d___88556 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.arg9 = (s.lambdaArgs[9]); + s.arg10 = (s.lambdaArgs[10]); + s.lambdaArgs = null; + } + r0 = (s.arg1 / s.arg2); + s.progress___88526 = (r0); + r0 = (1 - s.progress___88526); + s.diff___88530 = (r0); + r0 = (s.diff___88530 * s.diff___88530); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 75; continue; } - r0 = (s.arg1).fields["dy"] = (0); - case 75: - case 76: - case 77: - case 78: - case 79: - case 80: - case 81: - case 82: - case 83: - case 84: - r0 = s.s___25679.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 1538); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_0 * s.diff___88530); + s.a___88534 = (r0); + r0 = (3 * s.diff___88530); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 * s.diff___88530); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 95; continue; } - r0 = pxsim_Array__mk(); - s.overlappedTiles___26124 = (r0); - s.tmp_0 = game_Hitbox_left__P2197_mk(s); - s.tmp_0.arg0 = s.hbox___25704; - s.callLocIdx = 1002; s.pc = 129; return s.tmp_0; - case 129: - r0 = s.retval; - s.x___26126 = (r0); - case 85: - s.tmp_1 = r0 = s.x___26126; - s.tmp_3 = r0 = s.tileSize___25710; - s.tmp_5 = game_Hitbox_right__P2199_mk(s); - s.tmp_5.arg0 = s.hbox___25704; - s.callLocIdx = 1003; s.pc = 130; return s.tmp_5; - case 130: - r0 = s.retval; + r0 = (s.tmp_0 * s.progress___88526); + s.b___88540 = (r0); + r0 = (3 * s.diff___88530); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.progress___88526); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.progress___88526); + s.c___88548 = (r0); + r0 = (s.progress___88526 * s.progress___88526); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.progress___88526); + s.d___88556 = (r0); + s.tmp_0 = Sprite_setPosition__P66608_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.a___88534 * s.arg3); s.tmp_4 = r0; - r0 = (s.tmp_3 << 8); + r0 = (s.b___88540 * s.arg5); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = (s.c___88548 * s.arg7); s.tmp_6 = r0; - r0 = (s.tmp_6 + s.tmp_4); + r0 = (s.tmp_3 + s.tmp_6); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 92; continue; } - s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.x___26126; - s.tmp_10 = game_Hitbox_right__P2199_mk(s); - s.tmp_10.arg0 = s.hbox___25704; - s.callLocIdx = 1005; s.pc = 132; return s.tmp_10; - case 132: - r0 = s.retval; - s.tmp_9.arg1 = r0; - s.callLocIdx = 1006; s.pc = 131; return s.tmp_9; - case 131: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 + 128); + r0 = (s.d___88556 * s.arg9); s.tmp_7 = r0; - r0 = (s.tileScale___25707 + 8); + r0 = (s.tmp_2 + s.tmp_7); + s.tmp_1 = r0; + r0 = pxsim.Math_.round(s.tmp_1); + s.tmp_0.arg1 = r0; + r0 = (s.a___88534 * s.arg4); s.tmp_11 = r0; - r0 = (s.tmp_7 >> s.tmp_11); - s.x0___26136 = (r0); - s.tmp_0 = game_Hitbox_top__P2198_mk(s); - s.tmp_0.arg0 = s.hbox___25704; - s.callLocIdx = 1009; s.pc = 133; return s.tmp_0; - case 133: + r0 = (s.b___88540 * s.arg6); + s.tmp_12 = r0; + r0 = (s.tmp_11 + s.tmp_12); + s.tmp_10 = r0; + r0 = (s.c___88548 * s.arg8); + s.tmp_13 = r0; + r0 = (s.tmp_10 + s.tmp_13); + s.tmp_9 = r0; + r0 = (s.d___88556 * s.arg10); + s.tmp_14 = r0; + r0 = (s.tmp_9 + s.tmp_14); + s.tmp_8 = r0; + r0 = pxsim.Math_.round(s.tmp_8); + s.tmp_0.arg2 = r0; + s.callLocIdx = 2057; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.y___26146 = (r0); - case 86: - s.tmp_1 = r0 = s.y___26146; - s.tmp_3 = r0 = s.tileSize___25710; - s.tmp_5 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_5.arg0 = s.hbox___25704; - s.callLocIdx = 1010; s.pc = 134; return s.tmp_5; - case 134: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +animation_cubicCurveTo__P69656.info = {"start":16933,"length":599,"line":469,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"cubicCurveTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1","x2","y2","x3","y3"]} + +function animation_cubicCurveTo__P69656_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_cubicCurveTo__P69656, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + progress___88526: undefined, + diff___88530: undefined, + a___88534: undefined, + b___88540: undefined, + c___88548: undefined, + d___88556: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, + arg9: undefined, + arg10: undefined, +} } + + + + + +function animation_quadraticCurveTo__P69655(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.progress___88612 = undefined; + s.diff___88616 = undefined; + s.a___88620 = undefined; + s.b___88624 = undefined; + s.c___88630 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.lambdaArgs = null; + } + r0 = (s.arg1 / s.arg2); + s.progress___88612 = (r0); + r0 = (1 - s.progress___88612); + s.diff___88616 = (r0); + r0 = (s.diff___88616 * s.diff___88616); + s.a___88620 = (r0); + r0 = (2 * s.diff___88616); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.progress___88612); + s.b___88624 = (r0); + r0 = (s.progress___88612 * s.progress___88612); + s.c___88630 = (r0); + s.tmp_0 = Sprite_setPosition__P66608_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.a___88620 * s.arg3); + s.tmp_3 = r0; + r0 = (s.b___88624 * s.arg5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.c___88630 * s.arg7); + s.tmp_5 = r0; + r0 = (s.tmp_2 + s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim.Math_.round(s.tmp_1); + s.tmp_0.arg1 = r0; + r0 = (s.a___88620 * s.arg4); + s.tmp_8 = r0; + r0 = (s.b___88624 * s.arg6); + s.tmp_9 = r0; + r0 = (s.tmp_8 + s.tmp_9); + s.tmp_7 = r0; + r0 = (s.c___88630 * s.arg8); + s.tmp_10 = r0; + r0 = (s.tmp_7 + s.tmp_10); + s.tmp_6 = r0; + r0 = pxsim.Math_.round(s.tmp_6); + s.tmp_0.arg2 = r0; + s.callLocIdx = 2056; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +animation_quadraticCurveTo__P69655.info = {"start":16441,"length":486,"line":456,"column":4,"endLine":467,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"quadraticCurveTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1","x2","y2"]} + +function animation_quadraticCurveTo__P69655_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: animation_quadraticCurveTo__P69655, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + progress___88612: undefined, + diff___88616: undefined, + a___88620: undefined, + b___88624: undefined, + c___88630: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, +} } + + + + + +function animation_lineTo__P69654(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.lambdaArgs = null; + } + s.tmp_0 = Sprite_setPosition__P66608_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg5 - s.arg3); s.tmp_4 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_6 = r0; - r0 = (s.tmp_6 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 91; continue; } - s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.y___26146; - s.tmp_10 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_10.arg0 = s.hbox___25704; - s.callLocIdx = 1012; s.pc = 136; return s.tmp_10; - case 136: - r0 = s.retval; - s.tmp_9.arg1 = r0; - s.callLocIdx = 1013; s.pc = 135; return s.tmp_9; - case 135: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 + 128); - s.tmp_7 = r0; - r0 = (s.tileScale___25707 + 8); - s.tmp_11 = r0; - r0 = (s.tmp_7 >> s.tmp_11); - s.y0___26156 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P2736_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___26136; - s.tmp_3.arg2 = s.y0___26156; - s.callLocIdx = 1016; s.pc = 137; return s.tmp_3; - case 137: - r0 = s.retval; + r0 = (s.tmp_4 / s.arg2); + s.tmp_3 = r0; + r0 = (s.tmp_3 * s.arg1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim.Math_.round(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 87; continue; } - r0 = s.tmp_0; - { step = 88; continue; } - case 87: - r0 = s.s___25679.fields["flags"]; + r0 = (s.tmp_1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg6 - s.arg4); s.tmp_8 = r0; - r0 = (s.tmp_8 & 2048); + r0 = (s.tmp_8 / s.arg2); s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); + r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); + r0 = pxsim.Math_.round(s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 88: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 89; continue; } - s.tmp_10 = r0 = s.overlappedTiles___26124; - s.tmp_12 = tiles_TileMap_getTile__P2729_mk(s); - s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___26136; - s.tmp_12.arg2 = s.y0___26156; - s.callLocIdx = 1017; s.pc = 138; return s.tmp_12; - case 138: - r0 = s.retval; - s.tmp_11 = r0; - r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); - case 89: - case 90: - r0 = (s.tileSize___25710 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___26146); - s.y___26146 = (r0); - { step = 86; continue; } - case 91: - r0 = (s.tileSize___25710 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___26126); - s.x___26126 = (r0); - { step = 85; continue; } - case 92: - r0 = pxsim_Array__length(s.overlappedTiles___26124); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 93; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P4864_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___25679; - s.tmp_1.arg2 = s.overlappedTiles___26124; - s.callLocIdx = 1020; s.pc = 139; return s.tmp_1; - case 139: + r0 = (s.tmp_5 + s.arg4); + s.tmp_0.arg2 = r0; + s.callLocIdx = 2055; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 93: - case 94: - case 95: - case 96: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P4863.info = {"start":12929,"length":9654,"line":379,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +animation_lineTo__P69654.info = {"start":16146,"length":289,"line":449,"column":4,"endLine":454,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"lineTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1"]} -function ArcadePhysicsEngine_tilemapCollisions__P4863_mk(s) { +function animation_lineTo__P69654_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P4863, depth: s.depth + 1, + parent: s, fn: animation_lineTo__P69654, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -59616,60 +61516,20 @@ function ArcadePhysicsEngine_tilemapCollisions__P4863_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - s___25679: undefined, - hbox___25704: undefined, - tileScale___25707: undefined, - tileSize___25710: undefined, - xDiff___25714: undefined, - yDiff___25721: undefined, - right___25737: undefined, - x0___25741: undefined, - collidedTiles___25756: undefined, - y___25758: undefined, - y0___25772: undefined, - obstacle___25788: undefined, - collisionDirection___25815: undefined, - tile___25841: undefined, - unnamed102___U14: undefined, - unnamed103___U15: undefined, - down___25932: undefined, - y0___25936: undefined, - collidedTiles___25951: undefined, - x___25953: undefined, - x0___25963: undefined, - obstacle___25977: undefined, - collisionDirection___26004: undefined, - tile___26030: undefined, - unnamed104___U24: undefined, - unnamed105___U25: undefined, - overlappedTiles___26124: undefined, - x___26126: undefined, - x0___26136: undefined, - y___26146: undefined, - y0___26156: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function ArcadePhysicsEngine_tilemapCollisions_inline__P25796(s) { +function animation_moveTo__P69653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59681,33 +61541,50 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0.fields["tileIndex"]; + r0 = (s.arg1 >= s.arg2); s.tmp_0 = r0; - r0 = s.caps[0].fields["tileIndex"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = Sprite_setPosition__P66608_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg3; + s.tmp_1.arg2 = s.arg4; + s.callLocIdx = 2054; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P25796.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +animation_moveTo__P69653.info = {"start":15983,"length":157,"line":445,"column":4,"endLine":447,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"moveTo","argumentNames":["target","nodeTime","interval","x","y"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P25796_mk(s) { +function animation_moveTo__P69653_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P25796, depth: s.depth + 1, + parent: s, fn: animation_moveTo__P69653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function ArcadePhysicsEngine_tilemapCollisions_inline__P25985(s) { +function animation_Path_ensureControlPoint__P69652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59721,20 +61598,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["tileIndex"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["tileIndex"]; + r0 = s.arg0; + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + r0 = s.arg0.fields["lastControlX"]; s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore.throwValue("Invalid path command. S/s and T/t must follow either Q/q or C/c"); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P25985.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +animation_Path_ensureControlPoint__P69652.info = {"start":15808,"length":163,"line":440,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"ensureControlPoint","argumentNames":["this"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P25985_mk(s) { +function animation_Path_ensureControlPoint__P69652_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P25985, depth: s.depth + 1, + parent: s, fn: animation_Path_ensureControlPoint__P69652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -59745,7 +61629,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P25985_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P4864(s) { +function animation_Path_readNextCommand__P69648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59755,115 +61639,199 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___26203 = undefined; - s.tile___26206 = undefined; - s.unnamed106___U2 = undefined; - s.unnamed107___U3 = undefined; - s.tileOverlapHandlers___26227 = undefined; + s.numArgs___88729 = undefined; + s.i___88748 = undefined; + s.arg___88763 = undefined; + s.unnamed394___U3 = undefined; + s.unnamed395___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.alreadyHandled___26203 = (r0); - s.tile___26206 = (undefined); - s.unnamed106___U2 = (s.arg2); - s.unnamed107___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed107___U3; - r0 = pxsim_Array__length(s.unnamed106___U2); + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + r0 = s.arg0.fields["strIndex"]; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed106___U2, s.unnamed107___U3); - s.tile___26206 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P26210); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___26206); - s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___26203; - s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 1025; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; + r0 = s.arg0.fields["path"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 2; continue; } - { step = 6; continue; } + r0 = pxsim_String_.length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["currentCommand"] = (undefined); + { step = 13; continue; } + case 1: case 2: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = animation_Path_readNextToken__P69649_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 2018; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["currentCommand"] = (s.tmp_1); + r0 = s.arg0.fields["currentCommand"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 13; continue; } case 3: - r0 = pxsim_Array__push(s.alreadyHandled___26203, s.tile___26206); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1026; s.pc = 9; return s.tmp_0; - case 9: + case 4: + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["args"] = (s.tmp_4); + s.tmp_0 = animation_Path_commandToArgCount__P69650_mk(s); + r0 = s.arg0.fields["currentCommand"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 2019; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___26227 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___26227); - if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P26235); + s.numArgs___88729 = (r0); + r0 = (s.numArgs___88729 === -1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___26206); - r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P26249); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___26206); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___26227; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 1029; s.pc = 11; return s.tmp_3; - case 11: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.arg0.fields["currentCommand"]; + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 16: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1031; s.pc = 10; return s.tmp_2; - case 10: + s.tmp_4 = r0; + r0 = pxsim_String__concat("Unknown path command '", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 17: r0 = s.retval; - case 4: + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "'"); + s.tmp_1 = r0; + r0 = pxsim_pxtcore.throwValue(s.tmp_1); case 5: case 6: - r0 = (s.unnamed107___U3 + 1); - s.unnamed107___U3 = (r0); - { step = 1; continue; } + s.i___88748 = (0); case 7: - s.unnamed106___U2 = (undefined); + r0 = (s.i___88748 < s.numArgs___88729); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = s.arg0.fields["args"]; + s.tmp_1 = r0; + s.tmp_4 = animation_Path_readNextToken__P69649_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 2020; s.pc = 18; return s.tmp_4; + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String_.toNumber(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___88748 + 1); + s.i___88748 = (r0); + { step = 7; continue; } + case 8: + s.arg___88763 = (undefined); + r0 = s.arg0.fields["args"]; + s.unnamed394___U3 = (r0); + s.unnamed395___U4 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed395___U4; + r0 = pxsim_Array__length(s.unnamed394___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 12; continue; } + r0 = pxsim_Array__getAt(s.unnamed394___U3, s.unnamed395___U4); + s.arg___88763 = (r0); + s.tmp_3 = Number_isNaN__P64314_mk(s); + s.tmp_3.arg0 = s.arg___88763; + s.callLocIdx = 2021; s.pc = 19; return s.tmp_3; + case 19: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 10; continue; } + r0 = s.arg0.fields["currentCommand"]; + s.tmp_8 = r0; + if ((s.tmp_8) && (s.tmp_8).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.tmp_8); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_8) + ""; } + case 20: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_String__concat("Invalid argument for path command '", s.tmp_7); + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 21); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 21: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, "'"); + s.tmp_4 = r0; + r0 = pxsim_pxtcore.throwValue(s.tmp_4); + case 10: + case 11: + r0 = (s.unnamed395___U4 + 1); + s.unnamed395___U4 = (r0); + { step = 9; continue; } + case 12: + s.unnamed394___U3 = (undefined); + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P4864.info = {"start":22860,"length":707,"line":626,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +animation_Path_readNextCommand__P69648.info = {"start":1471,"length":776,"line":59,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"readNextCommand","argumentNames":["this"]} -function ArcadePhysicsEngine_tilemapOverlaps__P4864_mk(s) { +function animation_Path_readNextCommand__P69648_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P4864, depth: s.depth + 1, + parent: s, fn: animation_Path_readNextCommand__P69648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - alreadyHandled___26203: undefined, - tile___26206: undefined, - unnamed106___U2: undefined, - unnamed107___U3: undefined, - tileOverlapHandlers___26227: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + numArgs___88729: undefined, + i___88748: undefined, + arg___88763: undefined, + unnamed394___U3: undefined, + unnamed395___U4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function ArcadePhysicsEngine_tilemapOverlaps_inline__P26210(s) { +function animation_Path_commandToArgCount__P69650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59877,42 +61845,105 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["_col"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["_col"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq("M", s.tmp_0); if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq("m", s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq("L", s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq("l", s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq("H", s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq("h", s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq("V", s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq("v", s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq("Q", s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq("q", s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq("T", s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq("t", s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq("S", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("s", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); + if (r0) { step = 17; continue; } + r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); + if (r0) { step = 18; continue; } + r0 = pxsim_pxtcore.switch_eq("Z", s.tmp_0); + if (r0) { step = 19; continue; } + r0 = pxsim_pxtcore.switch_eq("z", s.tmp_0); + if (r0) { step = 20; continue; } r0 = s.tmp_0; - { step = 2; continue; } + { step = 21; continue; } case 1: - r0 = s.arg0.fields["_row"]; - s.tmp_3 = r0; - r0 = s.caps[0].fields["_row"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 === s.tmp_4); case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = 2; + { step = 22; continue; } + case 3: + case 4: + r0 = 2; + { step = 22; continue; } + case 5: + case 6: + r0 = 1; + { step = 22; continue; } + case 7: + case 8: + r0 = 1; + { step = 22; continue; } + case 9: + case 10: + r0 = 4; + { step = 22; continue; } + case 11: + case 12: + r0 = 2; + { step = 22; continue; } + case 13: + case 14: + r0 = 6; + { step = 22; continue; } + case 15: + case 16: + r0 = 4; + { step = 22; continue; } + case 17: + case 18: + r0 = 7; + { step = 22; continue; } + case 19: + case 20: + r0 = 0; + { step = 22; continue; } + case 21: + r0 = -1; + { step = 22; continue; } + r0 = undefined; + case 22: return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P26210.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +animation_Path_commandToArgCount__P69650.info = {"start":3204,"length":1154,"line":113,"column":8,"endLine":148,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"commandToArgCount","argumentNames":["command"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P26210_mk(s) { +function animation_Path_commandToArgCount__P69650_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P26210, depth: s.depth + 1, + parent: s, fn: animation_Path_commandToArgCount__P69650, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, } } @@ -59920,7 +61951,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P26210_mk(s) { -function forEach_inline__P26235(s) { +function animation_Path_readNextToken__P69649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59930,43 +61961,118 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tokenStart___88817 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["spriteKind"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["_kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + case 1: + r0 = s.arg0.fields["path"]; s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); + r0 = s.arg0.fields["strIndex"]; + s.tmp_3 = r0; + r0 = pxsim_String_.charCodeAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 32); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (r0) { step = 2; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["tileKind"]; - s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P2748_mk(s); - s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 1028; s.pc = 3; return s.tmp_5; + { step = 3; continue; } + case 2: + r0 = s.arg0.fields["strIndex"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["path"]; + s.tmp_6 = r0; + r0 = pxsim_String_.length(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_4 < s.tmp_5); case 3: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 4; continue; } + s.tmp_8 = r0 = s.arg0; + r0 = s.tmp_8.fields["strIndex"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 + 1); + s.tmp_9 = r0; + r0 = (s.tmp_8).fields["strIndex"] = (s.tmp_9); + { step = 1; continue; } + case 4: + r0 = s.arg0.fields["strIndex"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["path"]; + s.tmp_3 = r0; + r0 = pxsim_String_.length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = undefined; + { step = 11; continue; } + case 5: + case 6: + r0 = s.arg0.fields["strIndex"]; + s.tokenStart___88817 = (r0); + case 7: + r0 = s.arg0.fields["path"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["strIndex"]; + s.tmp_3 = r0; + r0 = pxsim_String_.charCodeAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 !== 32); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + r0 = s.arg0.fields["strIndex"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["path"]; + s.tmp_6 = r0; + r0 = pxsim_String_.length(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_4 < s.tmp_5); + case 9: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 10; continue; } + s.tmp_8 = r0 = s.arg0; + r0 = s.tmp_8.fields["strIndex"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 + 1); + s.tmp_9 = r0; + r0 = (s.tmp_8).fields["strIndex"] = (s.tmp_9); + { step = 7; continue; } + case 10: + s.tmp_0 = helpers_stringSubstr__P64337_mk(s); + r0 = s.arg0.fields["path"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.tokenStart___88817; + r0 = s.arg0.fields["strIndex"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.tokenStart___88817); + s.tmp_0.arg2 = r0; + s.callLocIdx = 2022; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.equals(s.tmp_3, s.tmp_4); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; + case 11: return leave(s, r0) default: oops() } } } -forEach_inline__P26235.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +animation_Path_readNextToken__P69649.info = {"start":2664,"length":530,"line":97,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"readNextToken","argumentNames":["this"]} -function forEach_inline__P26235_mk(s) { +function animation_Path_readNextToken__P69649_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P26235, depth: s.depth + 1, + parent: s, fn: animation_Path_readNextToken__P69649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -59975,6 +62081,11 @@ function forEach_inline__P26235_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tokenStart___88817: undefined, arg0: undefined, } } @@ -59982,55 +62093,7 @@ function forEach_inline__P26235_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P26249(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_handler_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.tmp_0.arg2 = s.caps[1]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); - s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1030; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P26249.info = {"start":23507,"length":28,"line":639,"column":29,"endLine":639,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} - -function ArcadePhysicsEngine_tilemapOverlaps_inline__P26249_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P26249, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function tiles_TileMap_getObstacle__P2737(s) { +function Number_isNaN__P64314(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60040,127 +62103,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___26358 = undefined; - s.tile___26370 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2709_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 1274; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = pxsim_pxtcore.typeOf(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 == "number"); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P2703_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 1275; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; + r0 = (s.arg0 !== s.arg0); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - s.index___26358 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P2706_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___26358; - s.callLocIdx = 1276; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tile___26370 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2478_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P2484_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___26370; - s.tmp_2 = r0 = s.arg2; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); - s.tmp_1.arg2 = r0; - s.tmp_4 = r0 = s.arg1; - r0 = s.arg0.fields["_scale"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 << s.tmp_5); - s.tmp_1.arg3 = r0; - r0 = s.arg0.fields["_layer"]; - s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___26358; - s.callLocIdx = 1280; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = s.tmp_0; + s.tmp_2 = r0; + r0 = s.tmp_2; return leave(s, r0) default: oops() } } } -tiles_TileMap_getObstacle__P2737.info = {"start":16453,"length":410,"line":522,"column":8,"endLine":532,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} +Number_isNaN__P64314.info = {"start":355,"length":93,"line":21,"column":4,"endLine":23,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isNaN","argumentNames":["x"]} -function tiles_TileMap_getObstacle__P2737_mk(s) { +function Number_isNaN__P64314_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P2737, depth: s.depth + 1, + parent: s, fn: Number_isNaN__P64314, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - index___26358: undefined, - tile___26370: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tiles_TileMap_layer__P2725(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = s.arg0.fields["_layer"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_layer__P2725.info = {"start":9967,"length":63,"line":341,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_TileMap_layer__P2725.isGetter = true; - -function tiles_TileMap_layer__P2725_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_layer__P2725, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -60168,7 +62141,7 @@ function tiles_TileMap_layer__P2725_mk(s) { -function sprites_StaticObstacle_constructor__P2484(s) { +function animation_Path_reset__P67549(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60180,44 +62153,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2478_VT)) failedCast(r0); - r0 = (s.arg0).fields["image"] = (s.arg1); - r0 = (s.arg0).fields["layer"] = (s.arg4); - r0 = (s.arg0).fields["top"] = (s.arg2); - r0 = (s.arg0).fields["left"] = (s.arg3); - r0 = (s.arg0).fields["tileIndex"] = (s.arg5); + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); + r0 = (s.arg0).fields["args"] = (undefined); + r0 = (s.arg0).fields["currentCommand"] = (undefined); + r0 = (s.arg0).fields["lastControlX"] = (undefined); + r0 = (s.arg0).fields["lastControlY"] = (undefined); + r0 = (s.arg0).fields["startX"] = (undefined); + r0 = (s.arg0).fields["startY"] = (undefined); + r0 = (s.arg0).fields["lastX"] = (undefined); + r0 = (s.arg0).fields["lastY"] = (undefined); + r0 = (s.arg0).fields["strIndex"] = (0); + r0 = (s.arg0).fields["commandIndex"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P2484.info = {"start":563,"length":261,"line":28,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"inline","argumentNames":["this","image","top","left","layer","tileIndex"]} +animation_Path_reset__P67549.info = {"start":2257,"length":397,"line":84,"column":8,"endLine":95,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"reset","argumentNames":["this"]} -function sprites_StaticObstacle_constructor__P2484_mk(s) { +function animation_Path_reset__P67549_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P2484, depth: s.depth + 1, + parent: s, fn: animation_Path_reset__P67549, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function tiles_TileMap_isObstacle__P2736(s) { +function animation_ImageAnimation_update__P67557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60227,66 +62195,119 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.frameIndex___88854 = undefined; + s.newImage___88879 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!checkSubtype(r0, animation_ImageAnimation__C67555_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["elapsedTime"]; + s.tmp_2 = r0; + s.tmp_4 = game_eventContext__P67201_mk(s); + s.callLocIdx = 2072; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + r0 = r0.fields["deltaTimeMillis"]; s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["elapsedTime"] = (s.tmp_1); + r0 = s.arg0.fields["elapsedTime"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["frameInterval"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.frameIndex___88854 = (r0); + r0 = s.arg0.fields["lastFrame"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 != s.frameIndex___88854); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["frames"]; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P2709_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = s.arg1; - s.tmp_8.arg2 = s.arg2; - s.callLocIdx = 1272; s.pc = 6; return s.tmp_8; - case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 5; continue; } + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["loop"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 3; continue; } + r0 = s.tmp_4; + { step = 4; continue; } case 3: - case 4: - r0 = s.arg0.fields["_map"]; + s.tmp_7 = r0 = s.frameIndex___88854; + r0 = s.arg0.fields["frames"]; s.tmp_9 = r0; - r0 = s.tmp_9.fields["layers"]; - s.tmp_11 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); + r0 = pxsim_Array__length(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7 >= s.tmp_8); + case 4: + // jmp value (already in r0) s.tmp_10 = r0; - r0 = (s.tmp_10 === 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 5; continue; } + r0 = true; + { step = 11; continue; } case 5: + case 6: + r0 = s.arg0.fields["frames"]; + s.tmp_11 = r0; + s.tmp_13 = r0 = s.frameIndex___88854; + r0 = s.arg0.fields["frames"]; + s.tmp_15 = r0; + r0 = pxsim_Array__length(s.tmp_15); + s.tmp_14 = r0; + r0 = (s.tmp_13 % s.tmp_14); + s.tmp_12 = r0; + r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_12); + s.newImage___88879 = (r0); + r0 = s.arg0.fields["sprite"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_image"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== s.newImage___88879); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_3 = Sprite_setImage__P66590_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.newImage___88879; + s.callLocIdx = 2074; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + case 7: + case 8: + case 9: + case 10: + r0 = (s.arg0).fields["lastFrame"] = (s.frameIndex___88854); + r0 = false; + case 11: return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P2736.info = {"start":16232,"length":211,"line":515,"column":8,"endLine":520,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +animation_ImageAnimation_update__P67557.info = {"start":19465,"length":664,"line":532,"column":8,"endLine":548,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} -function tiles_TileMap_isObstacle__P2736_mk(s) { +function animation_ImageAnimation_update__P67557_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P2736, depth: s.depth + 1, + parent: s, fn: animation_ImageAnimation_update__P67557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -60300,16 +62321,20 @@ function tiles_TileMap_isObstacle__P2736_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + frameIndex___88854: undefined, + newImage___88879: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_isWall__P2708(s) { +function music_SoundEffect_play__P65995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60319,41 +62344,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.toPlay___88904 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2697_VT)) failedCast(r0); - r0 = s.arg0.fields["layers"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); + if (!checkSubtype(r0, music_SoundEffect__C65984_VT)) failedCast(r0); + s.tmp_0 = music_SoundEffect_toBuffer__P65994_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = music_volume__P65840_mk(s); + s.callLocIdx = 136; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 137; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.toPlay___88904 = (r0); + r0 = (s.arg1 === 1); s.tmp_0 = r0; - r0 = (s.tmp_0 === 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.music.queuePlayInstructions(0, s.toPlay___88904); + { step = 4; continue; } + case 1: + r0 = (s.arg1 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim.music.queuePlayInstructions(0, s.toPlay___88904); + s.tmp_0 = pause__P64632_mk(s); + r0 = s.arg0.fields["duration"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 138; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + { step = 3; continue; } + case 2: + s.tmp_0 = music_Playable_loop__P66119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 139; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P2708.info = {"start":8218,"length":107,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +music_SoundEffect_play__P65995.info = {"start":1889,"length":455,"line":81,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"play","argumentNames":["this","playbackMode"]} -function tiles_TileMapData_isWall__P2708_mk(s) { +function music_SoundEffect_play__P65995_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P2708, depth: s.depth + 1, + parent: s, fn: music_SoundEffect_play__P65995, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + toPlay___88904: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Sprite_registerObstacle__P2406(s) { +function music_Playable_loop__P66119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60363,190 +62422,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___26271 = undefined; - s.wallCollisionHandlers___26278 = undefined; - s.wallHandlersToRun___26303 = undefined; - s.asTileLocation___26316 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_obstacles"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.arg2); - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 695; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = r0.fields["collisionHandlers"]; - s.tmp_0 = r0; - s.tmp_3 = if_tileIndex_1_mk(s); - s.tmp_3.arg0 = s.arg2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "tileIndex"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["tileIndex"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["tileIndex"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 696; s.pc = 10; return s.tmp_3; } - } - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___26271 = (r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 697; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___26278 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___26271); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P26286); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P26292); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___26271; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 699; s.pc = 13; return s.tmp_3; - case 13: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 701; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; + if (!checkSubtype(r0, music_Playable__C66115_VT)) failedCast(r0); + s.tmp_1 = music_state__P68847_mk(s); + s.callLocIdx = 171; s.pc = 1; return s.tmp_1; case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___26278); - if (!r0) { step = 7; continue; } - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_1 = game_currentScene__P2979_mk(s); - s.callLocIdx = 702; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P26305); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___26278; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 704; s.pc = 15; return s.tmp_1; - case 15: r0 = s.retval; - s.wallHandlersToRun___26303 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___26303); + r0 = r0.fields["looping"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P2729_mk(s); - s.tmp_1.arg0 = s.arg3; - s.tmp_3 = if_left_1_mk(s); - s.tmp_3.arg0 = s.arg2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "left"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["left"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["left"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 705; s.pc = 17; return s.tmp_3; } - } - case 17: - r0 = s.retval; - s.tmp_2 = r0; - r0 = s.arg3.fields["_scale"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 >> s.tmp_4); - s.tmp_1.arg1 = r0; - s.tmp_6 = if_top_1_mk(s); - s.tmp_6.arg0 = s.arg2; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "top"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["top"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["top"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 707; s.pc = 18; return s.tmp_6; } - } - case 18: - r0 = s.retval; - s.tmp_5 = r0; - r0 = s.arg3.fields["_scale"]; - s.tmp_7 = r0; - r0 = (s.tmp_5 >> s.tmp_7); - s.tmp_1.arg2 = r0; - s.callLocIdx = 709; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.asTileLocation___26316 = (r0); - r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P26332); + r0 = pxsim_Array__push(s.tmp_0, s.arg0); + r0 = (s.arg0).fields["stopped"] = (false); + r0 = pxsim_pxtcore_mkAction(1, music_Playable_loop_inline__P88936); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___26316); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___26303; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 711; s.pc = 19; return s.tmp_1; - case 19: - r0 = s.retval; - case 5: - case 6: - case 7: - case 8: + r0 = pxsim.control.runInParallel(s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P2406.info = {"start":24832,"length":965,"line":815,"column":4,"endLine":835,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +music_Playable_loop__P66119.info = {"start":1200,"length":264,"line":55,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"loop","argumentNames":["this"]} -function Sprite_registerObstacle__P2406_mk(s) { +function music_Playable_loop__P66119_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P2406, depth: s.depth + 1, + parent: s, fn: music_Playable_loop__P66119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - collisionHandlers___26271: undefined, - wallCollisionHandlers___26278: undefined, - wallHandlersToRun___26303: undefined, - asTileLocation___26316: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function forEach_inline__P26286(s) { +function music_Playable_loop_inline__P88936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60556,35 +62470,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; + case 1: + r0 = s.caps[0].fields["stopped"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_3 = music_Playable__C66115_v0_2_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.tmp_3.arg1 = 0; + if (!checkSubtype(s.tmp_3.arg0, music_Playable__C66115_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.play; + s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P26286.info = {"start":25230,"length":26,"line":822,"column":24,"endLine":822,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +music_Playable_loop_inline__P88936.info = {"start":1318,"length":134,"line":59,"column":34,"endLine":63,"endColumn":13,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} -function forEach_inline__P26286_mk(s) { +function music_Playable_loop_inline__P88936_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P26286, depth: s.depth + 1, + parent: s, fn: music_Playable_loop_inline__P88936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function Sprite_registerObstacle_inline__P26292(s) { +function music_state__P68847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60594,44 +62520,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 700; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 700; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 700; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 700; s.pc = 1; return s.tmp_0; } - } + s.tmp_0 = music__init__P68848_mk(s); + s.callLocIdx = 165; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_0 = r0 = globals.stateStack___68843; + r0 = pxsim_Array__length(globals.stateStack___68843); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P26292.info = {"start":25283,"length":20,"line":823,"column":25,"endLine":823,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +music_state__P68847.info = {"start":559,"length":91,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"state","argumentNames":[]} -function Sprite_registerObstacle_inline__P26292_mk(s) { +function music_state__P68847_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P26292, depth: s.depth + 1, + parent: s, fn: music_state__P68847, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function wallHandlersToRun_inline__P26305(s) { +function music__init__P68848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60640,36 +62558,55 @@ while (true) { if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; switch (step) { case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["spriteKind"]; + + r0 = pxsim_numops_toBoolDecr(globals.stateStack___68843); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C68844_VT); s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + s.tmp_1 = music_PlayableState_constructor__P68846_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 166; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.tmp_0); + globals.stateStack___68843 = (s.tmp_2); + s.tmp_0 = game_addScenePushHandler__P67217_mk(s); + s.tmp_0.arg0 = music__init_inline__P88954; + s.callLocIdx = 168; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = game_addScenePopHandler__P67219_mk(s); + s.tmp_0.arg0 = music__init_inline__P88961; + s.callLocIdx = 170; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -wallHandlersToRun_inline__P26305.info = {"start":25489,"length":32,"line":828,"column":24,"endLine":828,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +music__init__P68848.info = {"start":656,"length":366,"line":31,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"_init","argumentNames":[]} -function wallHandlersToRun_inline__P26305_mk(s) { +function music__init__P68848_mk(s) { checkStack(s.depth); return { - parent: s, fn: wallHandlersToRun_inline__P26305, depth: s.depth + 1, + parent: s, fn: music__init__P68848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, } } -function Sprite_registerObstacle_inline__P26332(s) { +function music__init_inline__P88954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60679,45 +62616,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = if_handler_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.tmp_0.arg2 = s.caps[1]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); - s.callLocIdx = 710; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 710; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 710; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 710; s.pc = 1; return s.tmp_0; } - } + r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C68844_VT); + s.tmp_0 = r0; + s.tmp_1 = music_PlayableState_constructor__P68846_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 167; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; + r0 = pxsim_Array__push(globals.stateStack___68843, s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P26332.info = {"start":25729,"length":36,"line":832,"column":29,"endLine":832,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +music__init_inline__P88954.info = {"start":785,"length":67,"line":35,"column":33,"endLine":37,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} -function Sprite_registerObstacle_inline__P26332_mk(s) { +function music__init_inline__P88954_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P26332, depth: s.depth + 1, + parent: s, fn: music__init_inline__P88954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, } } -function Fx_iadd__P158(s) { +function music__init_inline__P88961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60727,34 +62653,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 << 8); + r0 = pxsim_Array_.pop(globals.stateStack___68843); + r0 = pxsim_Array__length(globals.stateStack___68843); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 0); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C68844_VT); + s.tmp_2 = r0; + s.tmp_3 = music_PlayableState_constructor__P68846_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.callLocIdx = 169; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + r0 = pxsim_Array__push(globals.stateStack___68843, s.tmp_2); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_iadd__P158.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +music__init_inline__P88961.info = {"start":888,"length":126,"line":39,"column":32,"endLine":42,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} -function Fx_iadd__P158_mk(s) { +function music__init_inline__P88961_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P158, depth: s.depth + 1, + parent: s, fn: music__init_inline__P88961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function Math_sign__P129(s) { +function music_PlayableState_constructor__P68846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60768,33 +62705,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 5; continue; } - case 1: - case 2: - r0 = (s.arg0 > 0); + r0 = s.arg0; + if (!checkSubtype(r0, music_PlayableState__C68844_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 1; - { step = 5; continue; } - case 3: - case 4: - r0 = -1; - case 5: + r0 = (s.tmp_0).fields["looping"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_sign__P129.info = {"start":16355,"length":125,"line":547,"column":4,"endLine":551,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +music_PlayableState_constructor__P68846.info = {"start":333,"length":56,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} -function Math_sign__P129_mk(s) { +function music_PlayableState_constructor__P68846_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P129, depth: s.depth + 1, + parent: s, fn: music_PlayableState_constructor__P68846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -60805,7 +62731,7 @@ function Math_sign__P129_mk(s) { -function helpers_arraySome__P107(s) { +function music_SoundEffect_toBuffer__P65994(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60815,58 +62741,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___26340 = undefined; - s.i___26343 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.len___26340 = (r0); - s.i___26343 = (0); - case 1: - r0 = (s.i___26343 < s.len___26340); + r0 = s.arg0; + if (!checkSubtype(r0, music_SoundEffect__C65984_VT)) failedCast(r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = lambda_3_mk(s); - s.tmp_2.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___26343); - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___26343; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 5; s.pc = 6; return s.tmp_2; - case 6: + if (!r0) { step = 1; continue; } + s.tmp_1 = music_volume__P65840_mk(s); + s.callLocIdx = 134; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = true; - { step = 5; continue; } + s.arg1 = (r0); + case 1: case 2: - case 3: - r0 = (s.i___26343 + 1); - s.i___26343 = (r0); - { step = 1; continue; } + s.tmp_0 = music_soundToInstructionBuffer__P65998_mk(s); + r0 = s.arg0.fields["waveShape"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["startFrequency"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["endFrequency"]; + s.tmp_0.arg2 = r0; + r0 = s.arg0.fields["startVolume"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["endVolume"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["duration"]; + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["effect"]; + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["interpolation"]; + s.tmp_0.arg7 = r0; + s.tmp_0.arg8 = 20; + s.tmp_0.arg9 = 1; + s.tmp_0.arg10 = s.arg1; + s.callLocIdx = 135; s.pc = 4; return s.tmp_0; case 4: - r0 = false; - case 5: + r0 = s.retval; return leave(s, r0) default: oops() } } } -helpers_arraySome__P107.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} +music_SoundEffect_toBuffer__P65994.info = {"start":1390,"length":489,"line":63,"column":8,"endLine":79,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"toBuffer","argumentNames":["this","volume"]} -function helpers_arraySome__P107_mk(s) { +function music_SoundEffect_toBuffer__P65994_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P107, depth: s.depth + 1, + parent: s, fn: music_SoundEffect_toBuffer__P65994, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - len___26340: undefined, - i___26343: undefined, arg0: undefined, arg1: undefined, } } @@ -60875,7 +62802,7 @@ function helpers_arraySome__P107_mk(s) { -function tiles_TileMap_isOnWall__P2738(s) { +function music_soundToInstructionBuffer__P65998(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60885,176 +62812,551 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___25602 = undefined; - s.left___25605 = undefined; - s.right___25611 = undefined; - s.top___25617 = undefined; - s.bottom___25623 = undefined; - s.col___25629 = undefined; - s.row___25635 = undefined; + s.steps___89013 = undefined; + s.getVolumeAt___89047 = undefined; + s.getFrequencyAt___89064 = undefined; + s.timeSlice___89124 = undefined; + s.i___89128 = undefined; + s.newStep___89133 = undefined; + s.out___89215 = undefined; + s.stepDuration___89224 = undefined; + s.i___89232 = undefined; + s.offset___89239 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.arg9 = (s.lambdaArgs[9]); + s.arg10 = (s.lambdaArgs[10]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2715_VT)) failedCast(r0); - r0 = s.arg1.fields["_hitbox"]; - s.hbox___25602 = (r0); - s.tmp_1 = game_Hitbox_left__P2197_mk(s); - s.tmp_1.arg0 = s.hbox___25602; - s.callLocIdx = 1281; s.pc = 8; return s.tmp_1; + r0 = pxsim_Array__mk(); + s.steps___89013 = (r0); + r0 = (s.arg7 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg6 === 0); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtrt.mkMap(); + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "frequency", s.arg1); + r0 = (s.arg3 / 255); + s.tmp_4 = r0; + r0 = (s.tmp_4 * s.arg10); + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "volume", s.tmp_3); + r0 = pxsim_Array__push(s.steps___89013, s.tmp_2); + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "frequency", s.arg2); + r0 = (s.arg4 / 255); + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.arg10); + s.tmp_1 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "volume", s.tmp_1); + r0 = pxsim_Array__push(s.steps___89013, s.tmp_0); + { step = 22; continue; } + case 3: + s.tmp_0 = Math_min__P64350_mk(s); + s.tmp_0.arg0 = s.arg8; + r0 = (s.arg5 / 5); + s.tmp_1 = r0; + r0 = pxsim.Math_.floor(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 141; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.arg8 = (r0); + r0 = pxsim_pxtcore_mkAction(4, getVolumeAt_inline__P89048); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg3); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg4); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg10); + s.getVolumeAt___89047 = (s.tmp_0); + s.tmp_0 = r0 = s.arg7; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 4: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P89071); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg5); + s.getFrequencyAt___89064 = (s.tmp_1); + { step = 7; continue; } + case 5: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P89083); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); + s.getFrequencyAt___89064 = (s.tmp_0); + { step = 7; continue; } + case 6: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P89102); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg5); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); + s.getFrequencyAt___89064 = (s.tmp_0); + case 7: + r0 = (s.arg5 / s.arg8); + s.timeSlice___89124 = (r0); + s.i___89128 = (0); case 8: + r0 = (s.i___89128 < s.arg8); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 21; continue; } + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + s.tmp_3 = lambda_2_mk(s); + s.tmp_3.argL = s.getFrequencyAt___89064; + r0 = (s.i___89128 * s.timeSlice___89124); + s.tmp_3.arg0 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 142; s.pc = 26; return s.tmp_3; + case 26: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "frequency", s.tmp_2); + s.tmp_5 = lambda_2_mk(s); + s.tmp_5.argL = s.getVolumeAt___89047; + r0 = (s.i___89128 * s.timeSlice___89124); + s.tmp_5.arg0 = r0; + setupLambda(s.tmp_5, s.tmp_5.argL); + s.callLocIdx = 143; s.pc = 27; return s.tmp_5; + case 27: r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "volume", s.tmp_4); + s.newStep___89133 = (s.tmp_1); + r0 = (s.arg6 === 2); s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.i___89128 % 2); s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.left___25605 = (r0); - s.tmp_1 = game_Hitbox_right__P2199_mk(s); - s.tmp_1.arg0 = s.hbox___25602; - s.callLocIdx = 1284; s.pc = 9; return s.tmp_1; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_3 = if_volume_2_mk(s); + s.tmp_3.arg0 = s.newStep___89133; + s.tmp_4 = Math_max__P64349_mk(s); + s.tmp_6 = if_volume_1_mk(s); + s.tmp_6.arg0 = s.newStep___89133; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "volume"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["volume"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["volume"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 144; s.pc = 30; return s.tmp_6; } + } + case 30: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 500); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 145; s.pc = 29; return s.tmp_4; + case 29: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "volume", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/volume"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["volume"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 146; s.pc = 28; return s.tmp_3; } + } + case 28: + r0 = s.retval; + { step = 10; continue; } case 9: + s.tmp_0 = if_volume_2_mk(s); + s.tmp_0.arg0 = s.newStep___89133; + s.tmp_1 = Math_min__P64350_mk(s); + s.tmp_3 = if_volume_1_mk(s); + s.tmp_3.arg0 = s.newStep___89133; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 147; s.pc = 33; return s.tmp_3; } + } + case 33: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.arg9 * 500); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1023; + s.callLocIdx = 148; s.pc = 32; return s.tmp_1; + case 32: + r0 = s.retval; + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "volume", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/volume"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["volume"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 149; s.pc = 31; return s.tmp_0; } + } + case 31: + r0 = s.retval; + case 10: + { step = 20; continue; } + case 11: + r0 = (s.arg6 === 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___89128 % 2); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 12; continue; } + s.tmp_3 = if_frequency_2_mk(s); + s.tmp_3.arg0 = s.newStep___89133; + s.tmp_4 = Math_max__P64349_mk(s); + s.tmp_6 = if_frequency_1_mk(s); + s.tmp_6.arg0 = s.newStep___89133; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 150; s.pc = 36; return s.tmp_6; } + } + case 36: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 100); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 151; s.pc = 35; return s.tmp_4; + case 35: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 152; s.pc = 34; return s.tmp_3; } + } + case 34: + r0 = s.retval; + { step = 13; continue; } + case 12: + s.tmp_0 = if_frequency_2_mk(s); + s.tmp_0.arg0 = s.newStep___89133; + s.tmp_2 = if_frequency_1_mk(s); + s.tmp_2.arg0 = s.newStep___89133; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 153; s.pc = 38; return s.tmp_2; } + } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg9 * 100); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 154; s.pc = 37; return s.tmp_0; } + } + case 37: + r0 = s.retval; + case 13: + { step = 19; continue; } + case 14: + r0 = (s.arg6 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = (s.i___89128 % 2); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 15; continue; } + s.tmp_3 = if_frequency_2_mk(s); + s.tmp_3.arg0 = s.newStep___89133; + s.tmp_4 = Math_max__P64349_mk(s); + s.tmp_6 = if_frequency_1_mk(s); + s.tmp_6.arg0 = s.newStep___89133; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 155; s.pc = 41; return s.tmp_6; } + } + case 41: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 1000); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 156; s.pc = 40; return s.tmp_4; + case 40: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 157; s.pc = 39; return s.tmp_3; } + } + case 39: + r0 = s.retval; + { step = 16; continue; } + case 15: + s.tmp_0 = if_frequency_2_mk(s); + s.tmp_0.arg0 = s.newStep___89133; + s.tmp_2 = if_frequency_1_mk(s); + s.tmp_2.arg0 = s.newStep___89133; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 158; s.pc = 43; return s.tmp_2; } + } + case 43: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg9 * 1000); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 159; s.pc = 42; return s.tmp_0; } + } + case 42: + r0 = s.retval; + case 16: + case 17: + case 18: + case 19: + case 20: + r0 = pxsim_Array__push(s.steps___89013, s.newStep___89133); + r0 = (s.i___89128 + 1); + s.i___89128 = (r0); + { step = 8; continue; } + case 21: + case 22: + r0 = pxsim_Array__length(s.steps___89013); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (12 * s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim.control.createBuffer(s.tmp_0); + s.out___89215 = (r0); + s.tmp_1 = r0 = s.arg5; + r0 = pxsim_Array__length(s.steps___89013); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.stepDuration___89224 = (r0); + s.i___89232 = (0); + case 23: + s.tmp_1 = r0 = s.i___89232; + r0 = pxsim_Array__length(s.steps___89013); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + r0 = (s.i___89232 * 12); + s.offset___89239 = (r0); + s.tmp_0 = r0 = s.out___89215; + s.tmp_1 = r0 = s.offset___89239; + s.tmp_3 = music_waveToValue__P68815_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 160; s.pc = 44; return s.tmp_3; + case 44: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___89215; + r0 = (s.offset___89239 + 2); + s.tmp_1 = r0; + s.tmp_3 = if_frequency_1_mk(s); + r0 = pxsim_Array__getAt(s.steps___89013, s.i___89232); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 161; s.pc = 45; return s.tmp_3; } + } + case 45: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.right___25611 = (r0); - s.tmp_1 = game_Hitbox_top__P2198_mk(s); - s.tmp_1.arg0 = s.hbox___25602; - s.callLocIdx = 1287; s.pc = 10; return s.tmp_1; - case 10: + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___89215; + r0 = (s.offset___89239 + 4); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.stepDuration___89224); + s.tmp_0 = r0 = s.out___89215; + r0 = (s.offset___89239 + 6); + s.tmp_1 = r0; + s.tmp_3 = if_volume_1_mk(s); + r0 = pxsim_Array__getAt(s.steps___89013, s.i___89232); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 162; s.pc = 46; return s.tmp_3; } + } + case 46: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.top___25617 = (r0); - s.tmp_1 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_1.arg0 = s.hbox___25602; - s.callLocIdx = 1290; s.pc = 11; return s.tmp_1; - case 11: + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___89215; + r0 = (s.offset___89239 + 8); + s.tmp_1 = r0; + s.tmp_3 = if_volume_1_mk(s); + s.tmp_4 = r0 = s.steps___89013; + r0 = (s.i___89232 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 163; s.pc = 47; return s.tmp_3; } + } + case 47: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___25623 = (r0); - s.col___25629 = (s.left___25605); - case 1: - r0 = (s.col___25629 <= s.right___25611); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.row___25635 = (s.top___25617); - case 2: - r0 = (s.row___25635 <= s.bottom___25623); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P2736_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___25629; - s.tmp_2.arg2 = s.row___25635; - s.callLocIdx = 1293; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___89215; + r0 = (s.offset___89239 + 10); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 7; continue; } - case 3: - case 4: - r0 = (s.row___25635 + 1); - s.row___25635 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.col___25629 + 1); - s.col___25629 = (r0); - { step = 1; continue; } - case 6: - r0 = false; - case 7: + s.tmp_3 = if_frequency_1_mk(s); + s.tmp_4 = r0 = s.steps___89013; + r0 = (s.i___89232 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 164; s.pc = 48; return s.tmp_3; } + } + case 48: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + r0 = (s.i___89232 + 1); + s.i___89232 = (r0); + { step = 23; continue; } + case 24: + r0 = s.out___89215; return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P2738.info = {"start":16873,"length":627,"line":534,"column":8,"endLine":551,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +music_soundToInstructionBuffer__P65998.info = {"start":5638,"length":3866,"line":181,"column":5,"endLine":265,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"soundToInstructionBuffer","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation","fxSteps","fxRange","globalVolume"]} -function tiles_TileMap_isOnWall__P2738_mk(s) { +function music_soundToInstructionBuffer__P65998_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P2738, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer__P65998, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - hbox___25602: undefined, - left___25605: undefined, - right___25611: undefined, - top___25617: undefined, - bottom___25623: undefined, - col___25629: undefined, - row___25635: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function MovingSprite_constructor__P2506(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C2505_VT)) failedCast(r0); - r0 = (s.arg0).fields["sprite"] = (s.arg1); - r0 = (s.arg0).fields["cachedVx"] = (s.arg2); - r0 = (s.arg0).fields["cachedVy"] = (s.arg3); - r0 = (s.arg0).fields["dx"] = (s.arg4); - r0 = (s.arg0).fields["dy"] = (s.arg5); - r0 = (s.arg0).fields["xStep"] = (s.arg6); - r0 = (s.arg0).fields["yStep"] = (s.arg7); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -MovingSprite_constructor__P2506.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} - -function MovingSprite_constructor__P2506_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: MovingSprite_constructor__P2506, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + steps___89013: undefined, + getVolumeAt___89047: undefined, + getFrequencyAt___89064: undefined, + timeSlice___89124: undefined, + i___89128: undefined, + newStep___89133: undefined, + out___89215: undefined, + stepDuration___89224: undefined, + i___89232: undefined, + offset___89239: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -61063,13 +63365,16 @@ function MovingSprite_constructor__P2506_mk(s) { arg5: undefined, arg6: undefined, arg7: undefined, + arg8: undefined, + arg9: undefined, + arg10: undefined, } } -function ArcadePhysicsEngine_move__P2519(s) { +function getVolumeAt_inline__P89048(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61079,546 +63384,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___26414 = undefined; - s.dt2___26420 = undefined; - s.scene___26424 = undefined; - s.tileMap___26427 = undefined; - s.movingSprites___26430 = undefined; - s.MAX_STEP_COUNT___26461 = undefined; - s.overlapHandlers___26473 = undefined; - s.selected___26480 = undefined; - s.buffers___26481 = undefined; - s.count___26485 = undefined; - s.currMovers___26495 = undefined; - s.remainingMovers___26502 = undefined; - s.ms___26507 = undefined; - s.unnamed96___U13 = undefined; - s.unnamed97___U14 = undefined; - s.s___26509 = undefined; - s.stepX___26602 = undefined; - s.stepY___26616 = undefined; - s.bounce___26679 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = Math_min__P131_mk(s); - s.tmp_0.arg0 = 100; - r0 = (s.arg1 * 1000); - s.tmp_0.arg1 = r0; - s.callLocIdx = 822; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - s.dtMs___26414 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___26414, 2); - s.dt2___26420 = (r0); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 823; s.pc = 54; return s.tmp_0; - case 54: - r0 = s.retval; - s.scene___26424 = (r0); - r0 = s.scene___26424.fields["tileMap"]; - s.tileMap___26427 = (r0); - r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P26432); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___26414); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___26420); - s.tmp_1 = helpers_arrayMap__P106_mk(s); - r0 = s.arg0.fields["sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 825; s.pc = 55; return s.tmp_1; - case 55: - r0 = s.retval; - s.movingSprites___26430 = (r0); - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["sprites"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P26444; - s.callLocIdx = 829; s.pc = 56; return s.tmp_0; - case 56: - r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P2432_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 830; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P2431_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["sprites"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 831; s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["minSingleStep"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___26414); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 8); - s.MAX_STEP_COUNT___26461 = (r0); - s.tmp_0 = helpers_arraySlice__P115_mk(s); - r0 = s.scene___26424.fields["overlapHandlers"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 836; s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.overlapHandlers___26473 = (r0); - s.selected___26480 = (0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___26430); - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___26481 = (s.tmp_0); - s.count___26485 = (0); - case 1: - r0 = (s.count___26485 < s.MAX_STEP_COUNT___26461); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = pxsim_Array__getAt(s.buffers___26481, s.selected___26480); - s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 !== 0); - case 3: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 52; continue; } - r0 = pxsim_Array__getAt(s.buffers___26481, s.selected___26480); - s.currMovers___26495 = (r0); - r0 = (s.selected___26480 ^ 1); - s.selected___26480 = (r0); - r0 = pxsim_Array__getAt(s.buffers___26481, s.selected___26480); - s.remainingMovers___26502 = (r0); - s.ms___26507 = (undefined); - s.unnamed96___U13 = (s.currMovers___26495); - s.unnamed97___U14 = (0); - case 4: - s.tmp_0 = r0 = s.unnamed97___U14; - r0 = pxsim_Array__length(s.unnamed96___U13); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 49; continue; } - r0 = pxsim_Array__getAt(s.unnamed96___U13, s.unnamed97___U14); - s.ms___26507 = (r0); - r0 = s.ms___26507.fields["sprite"]; - s.s___26509 = (r0); - r0 = s.ms___26507.fields["cachedVx"]; - s.tmp_1 = r0; - r0 = s.s___26509.fields["_vx"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = s.s___26509.fields["_vx"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = (s.ms___26507).fields["dx"] = (0); - { step = 14; continue; } - case 5: - r0 = s.s___26509.fields["_vx"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = s.ms___26507.fields["cachedVx"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - case 7: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 8; continue; } - r0 = s.tmp_3; - { step = 11; continue; } - case 8: - r0 = s.s___26509.fields["_vx"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > 0); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 9; continue; } - r0 = s.tmp_4; - { step = 10; continue; } - case 9: - r0 = s.ms___26507.fields["cachedVx"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 < 0); - case 10: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 11: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 12; continue; } - s.tmp_9 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["dx"]; - s.tmp_11 = r0; - r0 = (0 - s.tmp_11); - s.tmp_10 = r0; - r0 = (s.tmp_9).fields["dx"] = (s.tmp_10); - s.tmp_0 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["xStep"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["xStep"] = (s.tmp_1); - case 12: - case 13: - case 14: - r0 = s.s___26509.fields["_vx"]; - s.tmp_0 = r0; - r0 = (s.ms___26507).fields["cachedVx"] = (s.tmp_0); - case 15: - case 16: - r0 = s.ms___26507.fields["cachedVy"]; - s.tmp_1 = r0; - r0 = s.s___26509.fields["_vy"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - r0 = s.s___26509.fields["_vy"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 17; continue; } - r0 = (s.ms___26507).fields["dy"] = (0); - { step = 26; continue; } - case 17: - r0 = s.s___26509.fields["_vy"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 18: - r0 = s.ms___26507.fields["cachedVy"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - case 19: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 20; continue; } - r0 = s.tmp_3; - { step = 23; continue; } - case 20: - r0 = s.s___26509.fields["_vy"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > 0); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 21; continue; } - r0 = s.tmp_4; - { step = 22; continue; } - case 21: - r0 = s.ms___26507.fields["cachedVy"]; + s.tmp_2 = r0 = s.caps[0]; + s.tmp_5 = r0 = s.arg0; + r0 = (s.caps[1] - s.caps[0]); s.tmp_6 = r0; - r0 = (s.tmp_6 < 0); - case 22: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 23: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 24; continue; } - s.tmp_9 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["dy"]; - s.tmp_11 = r0; - r0 = (0 - s.tmp_11); - s.tmp_10 = r0; - r0 = (s.tmp_9).fields["dy"] = (s.tmp_10); - s.tmp_0 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["yStep"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["yStep"] = (s.tmp_1); - case 24: - case 25: - case 26: - r0 = s.s___26509.fields["_vy"]; - s.tmp_0 = r0; - r0 = (s.ms___26507).fields["cachedVy"] = (s.tmp_0); - case 27: - case 28: - s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["xStep"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 841; s.pc = 60; return s.tmp_2; - case 60: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["dx"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 842; s.pc = 61; return s.tmp_4; - case 61: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 > s.tmp_3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 29; continue; } - r0 = s.ms___26507.fields["dx"]; - { step = 30; continue; } - case 29: - r0 = s.ms___26507.fields["xStep"]; - case 30: - // jmp value (already in r0) - s.tmp_5 = r0; - s.stepX___26602 = (s.tmp_5); - s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["yStep"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 843; s.pc = 62; return s.tmp_2; - case 62: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["dy"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 844; s.pc = 63; return s.tmp_4; - case 63: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 > s.tmp_3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = s.ms___26507.fields["dy"]; - { step = 32; continue; } - case 31: - r0 = s.ms___26507.fields["yStep"]; - case 32: - // jmp value (already in r0) - s.tmp_5 = r0; - s.stepY___26616 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["dx"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___26602); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___26507; - r0 = s.ms___26507.fields["dy"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___26616); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___26509.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.s___26509).fields["_lastX"] = (s.tmp_0); - r0 = s.s___26509.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.s___26509).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___26509; - r0 = s.s___26509.fields["_x"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___26602); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___26509; - r0 = s.s___26509.fields["_y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___26616); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___26509.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 4610); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 33; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P2433_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___26509; - s.callLocIdx = 849; s.pc = 64; return s.tmp_4; - case 64: - r0 = s.retval; - case 33: - case 34: - s.tmp_0 = r0 = s.tileMap___26427; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 35; continue; } - r0 = s.tmp_0; - { step = 36; continue; } - case 35: - r0 = s.tileMap___26427.fields["_map"]; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - case 36: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P4863_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___26507; - s.tmp_6.arg2 = s.tileMap___26427; - s.callLocIdx = 851; s.pc = 65; return s.tmp_6; - case 65: - r0 = s.retval; - case 37: - case 38: - r0 = s.s___26509.fields["flags"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & 32); - s.bounce___26679 = (r0); - r0 = s.s___26509.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 8); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 39; continue; } - r0 = s.tmp_0; - { step = 42; continue; } - case 39: - s.tmp_2 = r0 = s.bounce___26679; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 40; continue; } - r0 = s.tmp_2; - { step = 41; continue; } - case 40: - r0 = pxsim_numops_toBoolDecr(s.tileMap___26427); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - case 41: - // jmp value (already in r0) + r0 = (s.tmp_5 * s.tmp_6); s.tmp_4 = r0; - r0 = s.tmp_4; - case 42: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 43; continue; } - s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P4862_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___26507; - s.tmp_6.arg2 = s.bounce___26679; - r0 = s.scene___26424.fields["camera"]; - s.tmp_6.arg3 = r0; - s.callLocIdx = 852; s.pc = 66; return s.tmp_6; - case 66: - r0 = s.retval; - case 43: - case 44: - s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["dx"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 853; s.pc = 67; return s.tmp_2; - case 67: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___2501); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 45; continue; } - r0 = s.tmp_0; - { step = 46; continue; } - case 45: - s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___26507.fields["dy"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 854; s.pc = 68; return s.tmp_4; - case 68: - r0 = s.retval; + r0 = (s.tmp_4 / s.caps[2]); s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___2501); - case 46: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 47; continue; } - r0 = pxsim_Array__push(s.remainingMovers___26502, s.ms___26507); - case 47: - case 48: - r0 = (s.unnamed97___U14 + 1); - s.unnamed97___U14 = (r0); - { step = 4; continue; } - case 49: - s.unnamed96___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P4861_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___26495; - s.tmp_0.arg2 = s.overlapHandlers___26473; - s.callLocIdx = 855; s.pc = 69; return s.tmp_0; - case 69: - r0 = s.retval; - case 50: - r0 = pxsim_Array__length(s.currMovers___26495); + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 / 255); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 51; continue; } - r0 = pxsim_Array_.pop(s.currMovers___26495); - { step = 50; continue; } - case 51: - r0 = (s.count___26485 + 1); - s.count___26485 = (r0); - { step = 1; continue; } - case 52: - r0 = undefined; + r0 = (s.tmp_0 * s.caps[3]); return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P2519.info = {"start":2822,"length":4105,"line":112,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +getVolumeAt_inline__P89048.info = {"start":6507,"length":94,"line":199,"column":32,"endLine":199,"endColumn":126,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function ArcadePhysicsEngine_move__P2519_mk(s) { +function getVolumeAt_inline__P89048_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P2519, depth: s.depth + 1, + parent: s, fn: getVolumeAt_inline__P89048, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -61627,39 +63418,14 @@ function ArcadePhysicsEngine_move__P2519_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - dtMs___26414: undefined, - dt2___26420: undefined, - scene___26424: undefined, - tileMap___26427: undefined, - movingSprites___26430: undefined, - MAX_STEP_COUNT___26461: undefined, - overlapHandlers___26473: undefined, - selected___26480: undefined, - buffers___26481: undefined, - count___26485: undefined, - currMovers___26495: undefined, - remainingMovers___26502: undefined, - ms___26507: undefined, - unnamed96___U13: undefined, - unnamed97___U14: undefined, - s___26509: undefined, - stepX___26602: undefined, - stepY___26616: undefined, - bounce___26679: undefined, arg0: undefined, - arg1: undefined, } } -function movingSprites_inline__P26432(s) { +function music_soundToInstructionBuffer_inline__P89071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61673,25 +63439,30 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P4860_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.caps[1]; - s.tmp_0.arg3 = s.caps[2]; - s.callLocIdx = 824; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + s.tmp_0 = r0 = s.caps[0]; + s.tmp_3 = r0 = s.arg0; + r0 = (s.caps[1] - s.caps[0]); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 / s.caps[2]); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -movingSprites_inline__P26432.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +music_soundToInstructionBuffer_inline__P89071.info = {"start":6781,"length":68,"line":204,"column":37,"endLine":204,"endColumn":105,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function movingSprites_inline__P26432_mk(s) { +function music_soundToInstructionBuffer_inline__P89071_mk(s) { checkStack(s.depth); return { - parent: s, fn: movingSprites_inline__P26432, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P89071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -61699,7 +63470,7 @@ function movingSprites_inline__P26432_mk(s) { -function ArcadePhysicsEngine_move_inline__P26444(s) { +function music_soundToInstructionBuffer_inline__P89083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61713,50 +63484,34 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P2338_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 826; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_2 = Sprite_vy__P2340_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 827; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - case 2: - // jmp value (already in r0) + s.tmp_0 = r0 = s.caps[0]; + r0 = (s.caps[1] - s.caps[0]); + s.tmp_2 = r0; + r0 = (s.arg0 / s.caps[2]); + s.tmp_5 = r0; + r0 = (s.tmp_5 * 1.5707963267948966); + s.tmp_4 = r0; + r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P2405_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 828; s.pc = 7; return s.tmp_4; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move_inline__P26444.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +music_soundToInstructionBuffer_inline__P89083.info = {"start":6962,"length":94,"line":207,"column":37,"endLine":207,"endColumn":131,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function ArcadePhysicsEngine_move_inline__P26444_mk(s) { +function music_soundToInstructionBuffer_inline__P89083_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move_inline__P26444, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P89083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, arg0: undefined, } } @@ -61764,7 +63519,7 @@ function ArcadePhysicsEngine_move_inline__P26444_mk(s) { -function ArcadePhysicsEngine_screenEdgeCollisions__P4862(s) { +function music_soundToInstructionBuffer_inline__P89102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61774,280 +63529,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___27240 = undefined; - s.offset___27255 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg1.fields["sprite"]; - s.s___27240 = (r0); - r0 = s.s___27240.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.isStatic(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C2321_v4_1_mk(s); - s.tmp_4.arg0 = s.s___27240; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2321_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; - s.pc = 21; return s.tmp_4; - case 21: - r0 = s.retval; - case 1: - case 2: - s.tmp_3 = scene_Camera_isUpdated__P2777_mk(s); - s.tmp_3.arg0 = s.arg3; - s.callLocIdx = 900; s.pc = 22; return s.tmp_3; - case 22: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_4 = scene_Camera_update__P2778_mk(s); - s.tmp_4.arg0 = s.arg3; - s.callLocIdx = 901; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - case 3: - case 4: - s.tmp_2 = game_Hitbox_left__P2197_mk(s); - r0 = s.s___27240.fields["_hitbox"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 902; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); - s.tmp_0 = r0; - r0 = s.arg3.fields["_offsetX"]; - s.tmp_3 = r0; - r0 = (s.tmp_0 - s.tmp_3); - s.offset___27255 = (r0); - r0 = (s.offset___27255 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = Sprite_left__P2380_mk(s); - s.tmp_2 = r0 = s.s___27240; - s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_left__P2379_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 905; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.offset___27255); - s.tmp_1.arg1 = r0; - s.callLocIdx = 906; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 5; continue; } - s.tmp_0 = Sprite_vx__P2339_mk(s); - s.tmp_0.arg0 = s.s___27240; - s.tmp_2 = Sprite_vx__P2338_mk(s); - s.tmp_2.arg0 = s.s___27240; - s.callLocIdx = 907; s.pc = 28; return s.tmp_2; - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 908; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - case 5: - case 6: - { step = 12; continue; } - case 7: - s.tmp_4 = game_Hitbox_right__P2199_mk(s); - r0 = s.s___27240.fields["_hitbox"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 909; s.pc = 29; return s.tmp_4; - case 29: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 256); - s.tmp_2 = r0; - r0 = s.arg3.fields["_offsetX"]; - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); + s.tmp_0 = r0 = s.caps[0]; + r0 = (s.arg0 / s.caps[1]); s.tmp_6 = r0; - r0 = (s.tmp_1 - s.tmp_6); - s.tmp_0 = r0; - s.offset___27255 = (r0); - r0 = (s.tmp_0 > 0); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 10; continue; } - s.tmp_8 = Sprite_right__P2382_mk(s); - s.tmp_9 = r0 = s.s___27240; - s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_right__P2381_mk(s); - s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 912; s.pc = 31; return s.tmp_11; - case 31: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___27255); - s.tmp_8.arg1 = r0; - s.callLocIdx = 913; s.pc = 30; return s.tmp_8; - case 30: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 8; continue; } - s.tmp_0 = Sprite_vx__P2339_mk(s); - s.tmp_0.arg0 = s.s___27240; - s.tmp_2 = Sprite_vx__P2338_mk(s); - s.tmp_2.arg0 = s.s___27240; - s.callLocIdx = 914; s.pc = 33; return s.tmp_2; - case 33: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 915; s.pc = 32; return s.tmp_0; - case 32: - r0 = s.retval; - case 8: - case 9: - case 10: - case 11: - case 12: - s.tmp_3 = game_Hitbox_top__P2198_mk(s); - r0 = s.s___27240.fields["_hitbox"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 916; s.pc = 34; return s.tmp_3; - case 34: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 256); - s.tmp_1 = r0; - r0 = s.arg3.fields["_offsetY"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0 = r0; - s.offset___27255 = (r0); - r0 = (s.tmp_0 < 0); + r0 = (9 * s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 15; continue; } - s.tmp_6 = Sprite_top__P2384_mk(s); - s.tmp_7 = r0 = s.s___27240; - s.tmp_6.arg0 = r0; - s.tmp_9 = Sprite_top__P2383_mk(s); - s.tmp_9.arg0 = s.tmp_7; - s.callLocIdx = 919; s.pc = 36; return s.tmp_9; - case 36: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 - s.offset___27255); - s.tmp_6.arg1 = r0; - s.callLocIdx = 920; s.pc = 35; return s.tmp_6; - case 35: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vy__P2341_mk(s); - s.tmp_0.arg0 = s.s___27240; - s.tmp_2 = Sprite_vy__P2340_mk(s); - s.tmp_2.arg0 = s.s___27240; - s.callLocIdx = 921; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 922; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - case 13: - case 14: - { step = 20; continue; } - case 15: - s.tmp_4 = game_Hitbox_bottom__P2200_mk(s); - r0 = s.s___27240.fields["_hitbox"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 923; s.pc = 39; return s.tmp_4; - case 39: - r0 = s.retval; + r0 = (1 + s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim.Math_.log(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 / 256); - s.tmp_2 = r0; - r0 = s.arg3.fields["_offsetY"]; - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_6 = r0; - r0 = (s.tmp_1 - s.tmp_6); - s.tmp_0 = r0; - s.offset___27255 = (r0); - r0 = (s.tmp_0 > 0); + r0 = pxsim.Math_.log(10); s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 18; continue; } - s.tmp_8 = Sprite_bottom__P2386_mk(s); - s.tmp_9 = r0 = s.s___27240; - s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_bottom__P2385_mk(s); - s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 926; s.pc = 41; return s.tmp_11; - case 41: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___27255); - s.tmp_8.arg1 = r0; - s.callLocIdx = 927; s.pc = 40; return s.tmp_8; - case 40: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vy__P2341_mk(s); - s.tmp_0.arg0 = s.s___27240; - s.tmp_2 = Sprite_vy__P2340_mk(s); - s.tmp_2.arg0 = s.s___27240; - s.callLocIdx = 928; s.pc = 43; return s.tmp_2; - case 43: - r0 = s.retval; + r0 = (s.tmp_3 / s.tmp_7); + s.tmp_2 = r0; + r0 = (s.caps[2] - s.caps[0]); + s.tmp_8 = r0; + r0 = (s.tmp_2 * s.tmp_8); s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 929; s.pc = 42; return s.tmp_0; - case 42: - r0 = s.retval; - case 16: - case 17: - case 18: - case 19: - case 20: - r0 = undefined; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_screenEdgeCollisions__P4862.info = {"start":12018,"length":905,"line":355,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} +music_soundToInstructionBuffer_inline__P89102.info = {"start":7175,"length":105,"line":210,"column":37,"endLine":210,"endColumn":142,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function ArcadePhysicsEngine_screenEdgeCollisions__P4862_mk(s) { +function music_soundToInstructionBuffer_inline__P89102_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P4862, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P89102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -62058,22 +63570,14 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P4862_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - s___27240: undefined, - offset___27255: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function scene_Camera_isUpdated__P2777(s) { +function music_waveToValue__P68815(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62087,75 +63591,48 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 5; continue; } r0 = s.tmp_0; - { step = 4; continue; } + { step = 6; continue; } case 1: - s.tmp_5 = Sprite_x__P2334_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 1326; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.tmp_4 = r0; - r0 = s.arg0.fields["_lastUpdatedSpriteX"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 === s.tmp_6); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 2; continue; } - r0 = s.tmp_3; - { step = 3; continue; } + r0 = 15; + { step = 7; continue; } case 2: - s.tmp_8 = Sprite_y__P2336_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_8.arg0 = r0; - s.callLocIdx = 1327; s.pc = 6; return s.tmp_8; - case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = s.arg0.fields["_lastUpdatedSpriteY"]; - s.tmp_9 = r0; - r0 = (s.tmp_7 === s.tmp_9); + r0 = 3; + { step = 7; continue; } case 3: - // jmp value (already in r0) - s.tmp_10 = r0; - r0 = s.tmp_10; + r0 = 1; + { step = 7; continue; } case 4: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = s.tmp_11; + r0 = 18; + { step = 7; continue; } + case 5: + r0 = 2; + { step = 7; continue; } + case 6: + r0 = undefined; + case 7: return leave(s, r0) default: oops() } } } -scene_Camera_isUpdated__P2777.info = {"start":2403,"length":150,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"isUpdated","argumentNames":["this"]} +music_waveToValue__P68815.info = {"start":9510,"length":307,"line":267,"column":4,"endLine":275,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"waveToValue","argumentNames":["wave"]} -function scene_Camera_isUpdated__P2777_mk(s) { +function music_waveToValue__P68815_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_isUpdated__P2777, depth: s.depth + 1, + parent: s, fn: music_waveToValue__P68815, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, arg0: undefined, } } @@ -62163,7 +63640,7 @@ function scene_Camera_isUpdated__P2777_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P4861(s) { +function effects_ImageEffect_startScreenEffect__P67493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62173,18 +63650,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___26736 = undefined; - s.unnamed98___U1 = undefined; - s.unnamed99___U2 = undefined; - s.sprite___26738 = undefined; - s.overSprites___26745 = undefined; - s.overlapper___26753 = undefined; - s.unnamed100___U6 = undefined; - s.unnamed101___U7 = undefined; - s.thisKind___26759 = undefined; - s.otherKind___26763 = undefined; - s.higher___26776 = undefined; - s.lower___26785 = undefined; + s.wasRunning___89323 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -62192,8 +63658,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = pxsim_Array__length(s.arg2); + if (!checkSubtype(r0, effects_ImageEffect__C67489_VT)) failedCast(r0); + s.tmp_4 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1996; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + r0 = r0.fields["background"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_image"]; + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + s.tmp_7 = r0; + r0 = pxsim_Boolean__bang(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -62201,192 +63681,180 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 21; continue; } + { step = 7; continue; } case 1: case 2: - s.ms___26736 = (undefined); - s.unnamed98___U1 = (s.arg1); - s.unnamed99___U2 = (0); + r0 = s.arg0.fields["times"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 != undefined); + s.wasRunning___89323 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 3; continue; } + r0 = s.arg1; + { step = 4; continue; } case 3: - s.tmp_0 = r0 = s.unnamed99___U2; - r0 = pxsim_Array__length(s.unnamed98___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed98___U1, s.unnamed99___U2); - s.ms___26736 = (r0); - r0 = s.ms___26736.fields["sprite"]; - s.sprite___26738 = (r0); - r0 = s.sprite___26738.fields["flags"]; + r0 = 15; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["times"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.wasRunning___89323); s.tmp_1 = r0; - r0 = (s.tmp_1 & 4610); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - { step = 19; continue; } - case 4: + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkAction(2, effects_ImageEffect_startScreenEffect_inline__P89336); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg2); + r0 = pxsim.control.runInParallel(s.tmp_2); case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P2429_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_2.arg0 = r0; - r0 = s.ms___26736.fields["sprite"]; - s.tmp_2.arg1 = r0; - s.callLocIdx = 893; s.pc = 22; return s.tmp_2; - case 22: - r0 = s.retval; - s.overSprites___26745 = (r0); - s.overlapper___26753 = (undefined); - s.unnamed100___U6 = (s.overSprites___26745); - s.unnamed101___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed101___U7; - r0 = pxsim_Array__length(s.unnamed100___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed100___U6, s.unnamed101___U7); - s.overlapper___26753 = (r0); - r0 = s.overlapper___26753.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 4610); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 7; continue; } - { step = 17; continue; } case 7: - case 8: - r0 = s.sprite___26738.fields["_kind"]; - s.thisKind___26759 = (r0); - r0 = s.overlapper___26753.fields["_kind"]; - s.otherKind___26763 = (r0); - r0 = s.sprite___26738.fields["_kindsOverlappedWith"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___26763, undefined); - s.tmp_1 = r0; - r0 = (s.tmp_1 === -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - { step = 17; continue; } - case 9: - case 10: - r0 = s.sprite___26738.fields["id"]; - s.tmp_4 = r0; - r0 = s.overlapper___26753.fields["id"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 > s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 11; continue; } - r0 = s.sprite___26738; - { step = 12; continue; } - case 11: - r0 = s.overlapper___26753; - case 12: - // jmp value (already in r0) - s.tmp_6 = r0; - s.higher___26776 = (s.tmp_6); - r0 = (s.higher___26776 === s.sprite___26738); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = s.overlapper___26753; - { step = 14; continue; } - case 13: - r0 = s.sprite___26738; - case 14: - // jmp value (already in r0) - s.tmp_1 = r0; - s.lower___26785 = (s.tmp_1); - r0 = s.higher___26776.fields["_overlappers"]; - s.tmp_2 = r0; - r0 = s.lower___26785.fields["id"]; - s.tmp_3 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +effects_ImageEffect_startScreenEffect__P67493.info = {"start":1457,"length":637,"line":41,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"startScreenEffect","argumentNames":["this","times","delay"]} + +function effects_ImageEffect_startScreenEffect__P67493_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: effects_ImageEffect_startScreenEffect__P67493, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + wasRunning___89323: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function effects_ImageEffect_startScreenEffect_inline__P89336(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + case 1: + r0 = s.caps[0].fields["times"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === -1); + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P26805); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___26759); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___26763); - r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P26829); - s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___26776); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___26785); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___26738); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___26753); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___26759); - s.tmp_6 = helpers_arrayForEach__P109_mk(s); - s.tmp_7 = helpers_arrayFilter__P110_mk(s); - s.tmp_7.arg0 = s.arg2; - s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 896; s.pc = 24; return s.tmp_7; - case 24: + if (!r0) { step = 4; continue; } + s.tmp_2 = effects_ImageEffect_change__P67492_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_3 = scene_backgroundImage__P67085_mk(s); + s.callLocIdx = 1998; s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 898; s.pc = 23; return s.tmp_6; - case 23: + s.tmp_2.arg1 = r0; + s.callLocIdx = 1999; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; - case 15: - case 16: - case 17: - r0 = (s.unnamed101___U7 + 1); - s.unnamed101___U7 = (r0); - { step = 6; continue; } - case 18: - s.unnamed100___U6 = (undefined); - case 19: - r0 = (s.unnamed99___U2 + 1); - s.unnamed99___U2 = (r0); + r0 = pxsim_numops_toBoolDecr(s.caps[1]); + if (!r0) { step = 2; continue; } + r0 = s.caps[1]; { step = 3; continue; } - case 20: - s.unnamed98___U1 = (undefined); - case 21: + case 2: + r0 = s.caps[0].fields["preferredDelay"]; + case 3: + // jmp value (already in r0) + s.tmp_0 = r0; + s.tmp_1 = pause__P64632_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 2000; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["times"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["times"] = (s.tmp_1); + { step = 1; continue; } + case 4: + r0 = (s.caps[0]).fields["times"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P4861.info = {"start":9744,"length":2268,"line":309,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +effects_ImageEffect_startScreenEffect_inline__P89336.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_spriteCollisions__P4861_mk(s) { +function effects_ImageEffect_startScreenEffect_inline__P89336_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P4861, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_startScreenEffect_inline__P89336, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - ms___26736: undefined, - unnamed98___U1: undefined, - unnamed99___U2: undefined, - sprite___26738: undefined, - overSprites___26745: undefined, - overlapper___26753: undefined, - unnamed100___U6: undefined, - unnamed101___U7: undefined, - thisKind___26759: undefined, - otherKind___26763: undefined, - higher___26776: undefined, - lower___26785: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function forEach_inline__P26805(s) { +function scene_backgroundImage__P67085(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.scene___89355 = undefined; + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1376; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___89355 = (r0); + s.tmp_0 = scene_Background_image__P66874_mk(s); + r0 = s.scene___89355.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1377; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +scene_backgroundImage__P67085.info = {"start":2297,"length":130,"line":90,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"backgroundImage","argumentNames":[]} + +function scene_backgroundImage__P67085_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_backgroundImage__P67085, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + scene___89355: undefined, +} } + + + + + +function scene_Background_hasBackgroundImage__P66876(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62400,65 +63868,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C66868_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 === s.caps[0]); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["otherKind"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 === s.caps[1]); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["kind"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 === s.caps[1]); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 4; continue; } - r0 = s.tmp_4; - { step = 5; continue; } - case 4: - r0 = s.arg0.fields["otherKind"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 === s.caps[0]); - case 5: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = s.tmp_8; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -forEach_inline__P26805.info = {"start":11113,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +scene_Background_hasBackgroundImage__P66876.info = {"start":1081,"length":75,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"hasBackgroundImage","argumentNames":["this"]} -function forEach_inline__P26805_mk(s) { +function scene_Background_hasBackgroundImage__P66876_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P26805, depth: s.depth + 1, + parent: s, fn: scene_Background_hasBackgroundImage__P66876, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, } } @@ -62466,7 +63900,7 @@ function forEach_inline__P26805_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P26829(s) { +function particles_AshFactory_createParticle__P67432(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62476,45 +63910,183 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.index___89373 = undefined; + s.choice___89382 = undefined; + s.p___89387 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["_overlappers"]; - s.tmp_0 = r0; - r0 = s.caps[1].fields["id"]; + r0 = s.arg0; + if (!checkSubtype(r0, particles_AshFactory__C67430_VT)) failedCast(r0); + r0 = s.arg0.fields["colors"]; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P26839); + r0 = (s.tmp_1 === 0); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[2]); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.caps[3]); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.caps[4]); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.caps[0]); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.caps[1]); - r0 = pxsim.control.runInParallel(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = undefined; + { step = 7; continue; } + case 1: + case 2: + s.tmp_3 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = 0; + r0 = s.arg0.fields["colors"]; + s.tmp_5 = r0; + r0 = pxsim_Array__length(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1950; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.index___89373 = (r0); + r0 = s.arg0.fields["colors"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.index___89373); + s.choice___89382 = (r0); + s.tmp_0 = particles_AreaFactory_createParticle__P67402_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1951; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.p___89387 = (r0); + s.tmp_0 = r0 = s.choice___89382; + r0 = s.tmp_0.fields["count"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["count"] = (s.tmp_1); + r0 = s.choice___89382.fields["count"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["colors"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.removeAt(s.tmp_2, s.index___89373); + case 3: + case 4: + r0 = s.choice___89382.fields["color"]; + s.tmp_0 = r0; + r0 = (s.p___89387).fields["color"] = (s.tmp_0); + s.tmp_0 = r0 = s.p___89387; + s.tmp_3 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["yRange"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3.arg1 = r0; + r0 = s.arg0.fields["yRange"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 1952; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.p___89387.fields["_y"]; + s.tmp_5 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + s.tmp_1 = if_vx_1_mk(s); + s.tmp_1.arg0 = s.arg1; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "vx"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["vx"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["vx"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1954; s.pc = 11; return s.tmp_1; } + } + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_5 = if_vx_1_mk(s); + s.tmp_5.arg0 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "vx"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["vx"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["vx"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1955; s.pc = 12; return s.tmp_5; } + } + case 12: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 2); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = (s.p___89387).fields["vx"] = (s.tmp_7); + s.tmp_0 = r0 = s.p___89387; + s.tmp_3 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = -150; + s.tmp_3.arg2 = -50; + s.callLocIdx = 1958; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + r0 = s.p___89387; + case 7: return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P26829.info = {"start":11310,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +particles_AshFactory_createParticle__P67432.info = {"start":13251,"length":665,"line":425,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function ArcadePhysicsEngine_spriteCollisions_inline__P26829_mk(s) { +function particles_AshFactory_createParticle__P67432_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P26829, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_createParticle__P67432, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + index___89373: undefined, + choice___89382: undefined, + p___89387: undefined, arg0: undefined, + arg1: undefined, } } -function ArcadePhysicsEngine_spriteCollisions_inline__P26839(s) { +function particles_AreaFactory_createParticle__P67402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62524,78 +64096,123 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["flags"]; - s.tmp_4 = r0; - r0 = s.caps[1].fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 | s.tmp_5); + s.p___89442 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_AreaFactory__C67396_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P67392_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1895; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.p___89442 = (r0); + s.tmp_0 = r0 = s.p___89442; + s.tmp_2 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_2.arg0 = r0; + r0 = s.arg0.fields["minLifespan"]; + s.tmp_2.arg1 = r0; + r0 = s.arg0.fields["maxLifespan"]; + s.tmp_2.arg2 = r0; + s.callLocIdx = 1896; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___89442; + s.tmp_4 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + r0 = s.arg0.fields["xRange"]; + s.tmp_4.arg2 = r0; + s.callLocIdx = 1897; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 & 4610); + r0 = s.arg0.fields["xRange"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.p___89442.fields["_x"]; + s.tmp_7 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_8 = r0; + r0 = (s.tmp_8 + s.tmp_7); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_1 = if_height_1_mk(s); + s.tmp_1.arg0 = s.arg1; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "height"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1900; s.pc = 6; return s.tmp_1; } + } + case 6: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.caps[2].fields["kind"]; - s.tmp_7 = r0; - r0 = (s.caps[3] === s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 1; continue; } - r0 = s.caps[0]; + s.tmp_3 = if_height_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "height"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1901; s.pc = 7; return s.tmp_3; } + } + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); { step = 2; continue; } case 1: - r0 = s.caps[1]; + r0 = 0; case 2: // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = r0 = s.p___89442; + s.tmp_9 = Math_FastRandom_randomRange__P67262_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = 0; + r0 = s.arg0.fields["yRange"]; + s.tmp_9.arg2 = r0; + s.callLocIdx = 1899; s.pc = 8; return s.tmp_9; + case 8: + r0 = s.retval; s.tmp_8 = r0; - r0 = s.caps[2].fields["kind"]; + r0 = (s.tmp_8 - s.tmp_4); + s.tmp_7 = r0; + r0 = s.p___89442.fields["_y"]; s.tmp_10 = r0; - r0 = (s.caps[3] === s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 3; continue; } - r0 = s.caps[1]; - { step = 4; continue; } - case 3: - r0 = s.caps[0]; - case 4: - // jmp value (already in r0) + r0 = (s.tmp_7 << 8); s.tmp_11 = r0; - s.tmp_12 = if_handler_3_mk(s); - s.tmp_12.arg0 = s.caps[2]; - s.tmp_12.arg1 = s.tmp_8; - s.tmp_12.arg2 = s.tmp_11; - if (!s.tmp_12.arg0.vtable.iface) { - setupLambda(s.tmp_12, pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "handler"), 3); - s.callLocIdx = 897; s.pc = 7; return s.tmp_12; - } else { - s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["handler"]; - if (s.tmp_12.fn == null) { setupLambda(s.tmp_12, s.tmp_12.arg0.fields["handler"], 3); s.callLocIdx = 897; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 897; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 897; s.pc = 7; return s.tmp_12; } - } - case 7: - r0 = s.retval; - case 5: - case 6: - r0 = s.caps[4].fields["_overlappers"]; - s.tmp_0 = r0; - r0 = s.caps[5].fields["id"]; - s.tmp_1 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.tmp_1); - r0 = undefined; + r0 = (s.tmp_11 + s.tmp_10); + s.tmp_6 = r0; + r0 = (s.tmp_5).fields["_y"] = (s.tmp_6); + r0 = s.p___89442; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P26839.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +particles_AreaFactory_createParticle__P67402.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function ArcadePhysicsEngine_spriteCollisions_inline__P26839_mk(s) { +function particles_AreaFactory_createParticle__P67402_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P26839, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P67402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -62609,14 +64226,16 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P26839_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - tmp_12: undefined, + p___89442: undefined, + arg0: undefined, + arg1: undefined, } } -function sprites_SpriteMap_overlaps__P2429(s) { +function particles_SprayFactory_createParticle__P67392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62626,47 +64245,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___26873 = undefined; - s.o___26877 = undefined; + s.p___89490 = undefined; + s.angle___89494 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P2428_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C67390_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P67388_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 768; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1884; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___26873 = (r0); - r0 = pxsim_pxtcore_mkAction(1, o_inline__P26879); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_1.arg0 = s.n___26873; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 770; s.pc = 2; return s.tmp_1; + s.p___89490 = (r0); + r0 = s.arg0.fields["minAngle"]; + s.tmp_1 = r0; + s.tmp_3 = Math_FastRandom_randomRange__P67262_mk(s); + s.tmp_3.arg0 = globals.galois___69582; + s.tmp_3.arg1 = 0; + r0 = s.arg0.fields["spread"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 1885; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; - s.o___26877 = (r0); - r0 = s.o___26877; + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 % 100); + s.angle___89494 = (r0); + s.tmp_0 = r0 = s.p___89490; + r0 = pxsim_Array__getAt(globals.cachedSin___69577, s.angle___89494); + s.tmp_2 = r0; + r0 = s.arg0.fields["speed"]; + s.tmp_3 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___89490; + r0 = pxsim_Array__getAt(globals.cachedCos___69578, s.angle___89494); + s.tmp_2 = r0; + r0 = s.arg0.fields["speed"]; + s.tmp_3 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + r0 = s.p___89490; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P2429.info = {"start":923,"length":189,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"overlaps","argumentNames":["this","sprite"]} +particles_SprayFactory_createParticle__P67392.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function sprites_SpriteMap_overlaps__P2429_mk(s) { +function particles_SprayFactory_createParticle__P67392_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P2429, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P67392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___26873: undefined, - o___26877: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + p___89490: undefined, + angle___89494: undefined, arg0: undefined, arg1: undefined, } } @@ -62675,7 +64322,7 @@ function sprites_SpriteMap_overlaps__P2429_mk(s) { -function o_inline__P26879(s) { +function sprites_SpriteSet_toString__P66673(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62689,23 +64336,41 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P2400_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 769; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = s.arg0.fields["_sprites"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } case 1: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, " sprites"); return leave(s, r0) default: oops() } } } -o_inline__P26879.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +sprites_SpriteSet_toString__P66673.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function o_inline__P26879_mk(s) { +function sprites_SpriteSet_toString__P66673_mk(s) { checkStack(s.depth); return { - parent: s, fn: o_inline__P26879, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P66673, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -62713,7 +64378,7 @@ function o_inline__P26879_mk(s) { -function sprites_SpriteMap_neighbors__P2428(s) { +function sprites_SpriteSet_length__P66665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62723,121 +64388,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___27130 = undefined; - s.layer___27132 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.n___27130 = (r0); - r0 = s.arg1.fields["layer"]; - s.layer___27132 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4825_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P2379_mk(s); - s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 756; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P2383_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 757; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___27132; - s.tmp_0.arg4 = s.n___27130; - s.callLocIdx = 758; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4825_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P2379_mk(s); - s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 759; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P2385_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 760; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___27132; - s.tmp_0.arg4 = s.n___27130; - s.callLocIdx = 761; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4825_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P2381_mk(s); - s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 762; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P2383_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 763; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___27132; - s.tmp_0.arg4 = s.n___27130; - s.callLocIdx = 764; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4825_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P2381_mk(s); - s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 765; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P2385_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 766; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___27132; - s.tmp_0.arg4 = s.n___27130; - s.callLocIdx = 767; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___27130, s.arg1); - r0 = s.n___27130; - return leave(s, r0) + if (!checkSubtype(r0, sprites_SpriteSet__C66662_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P2428.info = {"start":376,"length":442,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"neighbors","argumentNames":["this","sprite"]} +sprites_SpriteSet_length__P66665.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} +sprites_SpriteSet_length__P66665.isGetter = true; -function sprites_SpriteMap_neighbors__P2428_mk(s) { +function sprites_SpriteSet_length__P66665_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P2428, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P66665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - n___27130: undefined, - layer___27132: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteMap_mergeAtKey__P4825(s) { +function sprites_SpriteMap_toString__P66653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62847,83 +64426,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___27173 = undefined; - s.bucket___27178 = undefined; - s.sprite___27185 = undefined; - s.unnamed94___U3 = undefined; - s.unnamed95___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P4823_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 794; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.k___27173 = (r0); + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + r0 = pxsim_String_.mkEmpty(); + s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___27173); - s.bucket___27178 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___27178); - if (!r0) { step = 7; continue; } - s.sprite___27185 = (undefined); - s.unnamed94___U3 = (s.bucket___27178); - s.unnamed95___U4 = (0); + s.tmp_6 = r0; + r0 = pxsim_Array__length(s.tmp_6); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } case 1: - s.tmp_0 = r0 = s.unnamed95___U4; - r0 = pxsim_Array__length(s.unnamed94___U3); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed94___U3, s.unnamed95___U4); - s.sprite___27185 = (r0); - r0 = s.sprite___27185.fields["layer"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & s.arg3); + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 3; continue; } + r0 = pxsim_String__concat(s.tmp_2, " buckets, "); + s.tmp_1 = r0; + s.tmp_10 = helpers_arrayFilter__P64329_mk(s); + r0 = s.arg0.fields["buckets"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = length_inline__P89535; + s.callLocIdx = 795; s.pc = 2; return s.tmp_10; case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___27185, undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 < 0); + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_Array__length(s.tmp_9); + s.tmp_8 = r0; + if ((s.tmp_8) && (s.tmp_8).vtable) { + setupResume(s, 3); + pxsim_String__stringConv(s.tmp_8); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_8) + ""; } case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.arg4, s.sprite___27185); - case 4: - case 5: - r0 = (s.unnamed95___U4 + 1); - s.unnamed95___U4 = (r0); - { step = 1; continue; } - case 6: - s.unnamed94___U3 = (undefined); - case 7: - case 8: - r0 = undefined; + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, " filled"); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P4825.info = {"start":3715,"length":384,"line":101,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"mergeAtKey","argumentNames":["this","x","y","layer","n"]} +sprites_SpriteMap_toString__P66653.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteMap_mergeAtKey__P4825_mk(s) { +function sprites_SpriteMap_toString__P66653_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P4825, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P66653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -62931,23 +64489,19 @@ function sprites_SpriteMap_mergeAtKey__P4825_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___27173: undefined, - bucket___27178: undefined, - sprite___27185: undefined, - unnamed94___U3: undefined, - unnamed95___U4: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function sprites_SpriteMap_key__P4823(s) { +function length_inline__P89535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62957,71 +64511,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___27206 = undefined; - s.yi___27218 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg0.fields["columnCount"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); - s.tmp_0.arg2 = r0; - s.callLocIdx = 782; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.xi___27206 = (r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg0.fields["rowCount"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); - s.tmp_0.arg2 = r0; - s.callLocIdx = 783; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.yi___27218 = (r0); - s.tmp_0 = r0 = s.xi___27206; - r0 = s.arg0.fields["columnCount"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = (s.yi___27218 * s.tmp_2); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P4823.info = {"start":2592,"length":270,"line":76,"column":8,"endLine":80,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"key","argumentNames":["this","x","y"]} +length_inline__P89535.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function sprites_SpriteMap_key__P4823_mk(s) { +function length_inline__P89535_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P4823, depth: s.depth + 1, + parent: s, fn: length_inline__P89535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___27206: undefined, - yi___27218: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Sprite_overlapsWith__P2400(s) { +function ArcadePhysicsEngine_moveSprite__P66740(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63031,447 +64552,206 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___26943 = undefined; - s.B___26944 = undefined; + s.tm___89567 = undefined; + s.maxDist___89575 = undefined; + s.ms___89595 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = (s.arg1 == s.arg0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 23; continue; } - case 1: - case 2: - r0 = s.arg0.fields["flags"]; + r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); + r0 = s.arg1.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & 4610); + r0 = (s.tmp_2 + s.arg2); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = false; - { step = 23; continue; } - case 3: - case 4: - r0 = s.arg1.fields["flags"]; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1034; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___89567 = (r0); + s.tmp_0 = r0 = s.tm___89567; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.tm___89567.fields["_map"]; s.tmp_4 = r0; - r0 = (s.tmp_4 & 4610); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = false; - { step = 23; continue; } - case 5: - case 6: - s.tmp_8 = game_Hitbox_overlapsWith__P2204_mk(s); - r0 = s.arg1.fields["_hitbox"]; - s.tmp_8.arg0 = r0; - r0 = s.arg0.fields["_hitbox"]; - s.tmp_8.arg1 = r0; - s.callLocIdx = 665; s.pc = 24; return s.tmp_8; - case 24: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 2: + // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 7; continue; } - r0 = false; - { step = 23; continue; } - case 7: - case 8: - s.tmp_12 = Sprite_isScaled__P4816_mk(s); - s.tmp_12.arg0 = s.arg0; - s.callLocIdx = 666; s.pc = 25; return s.tmp_12; - case 25: - r0 = s.retval; - s.tmp_11 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_11); - s.tmp_10 = r0; - r0 = pxsim_Boolean__bang(s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); - if (r0) { step = 9; continue; } - r0 = s.tmp_9; - { step = 10; continue; } - case 9: - s.tmp_15 = Sprite_isScaled__P4816_mk(s); - s.tmp_15.arg0 = s.arg1; - s.callLocIdx = 667; s.pc = 26; return s.tmp_15; - case 26: - r0 = s.retval; - s.tmp_14 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_14); - s.tmp_13 = r0; - r0 = pxsim_Boolean__bang(s.tmp_13); - case 10: - // jmp value (already in r0) - s.tmp_16 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_16); if (!r0) { step = 11; continue; } - r0 = s.arg1.fields["_image"]; - s.tmp_17 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_18 = r0; - s.tmp_21 = Sprite_left__P2379_mk(s); - s.tmp_21.arg0 = s.arg0; - s.callLocIdx = 668; s.pc = 27; return s.tmp_21; - case 27: - r0 = s.retval; - s.tmp_20 = r0; - s.tmp_23 = Sprite_left__P2379_mk(s); - s.tmp_23.arg0 = s.arg1; - s.callLocIdx = 669; s.pc = 28; return s.tmp_23; - case 28: - r0 = s.retval; - s.tmp_22 = r0; - r0 = (s.tmp_20 - s.tmp_22); - s.tmp_19 = r0; - s.tmp_26 = Sprite_top__P2383_mk(s); - s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 670; s.pc = 29; return s.tmp_26; - case 29: - r0 = s.retval; - s.tmp_25 = r0; - s.tmp_28 = Sprite_top__P2383_mk(s); - s.tmp_28.arg0 = s.arg1; - s.callLocIdx = 671; s.pc = 30; return s.tmp_28; - case 30: - r0 = s.retval; - s.tmp_27 = r0; - r0 = (s.tmp_25 - s.tmp_27); - s.tmp_24 = r0; - r0 = pxsim_ImageMethods.overlapsWith(s.tmp_17, s.tmp_18, s.tmp_19, s.tmp_24); - { step = 23; continue; } - { step = 22; continue; } - case 11: - s.tmp_31 = Sprite_sx__P2350_mk(s); - s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 672; s.pc = 31; return s.tmp_31; - case 31: - r0 = s.retval; - s.tmp_30 = r0; - r0 = (s.tmp_30 == 0); - s.tmp_29 = r0; - r0 = pxsim_numops_toBool(s.tmp_29); - if (!r0) { step = 12; continue; } - r0 = s.tmp_29; - { step = 13; continue; } - case 12: - s.tmp_33 = Sprite_sy__P2352_mk(s); - s.tmp_33.arg0 = s.arg0; - s.callLocIdx = 673; s.pc = 32; return s.tmp_33; - case 32: - r0 = s.retval; - s.tmp_32 = r0; - r0 = (s.tmp_32 == 0); - case 13: - // jmp value (already in r0) - s.tmp_34 = r0; - r0 = pxsim_numops_toBool(s.tmp_34); - if (!r0) { step = 14; continue; } - r0 = s.tmp_34; - { step = 15; continue; } + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 128); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 8); + s.maxDist___89575 = (r0); + s.tmp_2 = Math_abs__P64347_mk(s); + r0 = (s.arg2 + 128); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 8); + s.tmp_2.arg0 = r0; + s.callLocIdx = 1038; s.pc = 14; return s.tmp_2; case 14: - s.tmp_36 = Sprite_sx__P2350_mk(s); - s.tmp_36.arg0 = s.arg1; - s.callLocIdx = 674; s.pc = 33; return s.tmp_36; - case 33: - r0 = s.retval; - s.tmp_35 = r0; - r0 = (s.tmp_35 == 0); - case 15: - // jmp value (already in r0) - s.tmp_37 = r0; - r0 = pxsim_numops_toBool(s.tmp_37); - if (!r0) { step = 16; continue; } - r0 = s.tmp_37; - { step = 17; continue; } - case 16: - s.tmp_39 = Sprite_sy__P2352_mk(s); - s.tmp_39.arg0 = s.arg1; - s.callLocIdx = 675; s.pc = 34; return s.tmp_39; - case 34: - r0 = s.retval; - s.tmp_38 = r0; - r0 = (s.tmp_38 == 0); - case 17: - // jmp value (already in r0) - s.tmp_40 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_40); - if (!r0) { step = 18; continue; } - r0 = false; - { step = 23; continue; } - case 18: - case 19: - s.tmp_44 = Sprite_sx__P2350_mk(s); - s.tmp_44.arg0 = s.arg0; - s.callLocIdx = 676; s.pc = 35; return s.tmp_44; - case 35: - r0 = s.retval; - s.tmp_43 = r0; - s.tmp_46 = Sprite_sy__P2352_mk(s); - s.tmp_46.arg0 = s.arg0; - s.callLocIdx = 677; s.pc = 36; return s.tmp_46; - case 36: - r0 = s.retval; - s.tmp_45 = r0; - r0 = (s.tmp_43 * s.tmp_45); - s.tmp_42 = r0; - s.tmp_49 = Sprite_sx__P2350_mk(s); - s.tmp_49.arg0 = s.arg1; - s.callLocIdx = 678; s.pc = 37; return s.tmp_49; - case 37: - r0 = s.retval; - s.tmp_48 = r0; - s.tmp_51 = Sprite_sy__P2352_mk(s); - s.tmp_51.arg0 = s.arg1; - s.callLocIdx = 679; s.pc = 38; return s.tmp_51; - case 38: - r0 = s.retval; - s.tmp_50 = r0; - r0 = (s.tmp_48 * s.tmp_50); - s.tmp_47 = r0; - r0 = (s.tmp_42 < s.tmp_47); - s.tmp_41 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_41); - if (!r0) { step = 20; continue; } - s.A___26943 = (s.arg0); - s.B___26944 = (s.arg1); - { step = 21; continue; } - case 20: - s.A___26943 = (s.arg1); - s.B___26944 = (s.arg0); - case 21: - s.tmp_0 = helpers_imageBlit__P1936_mk(s); - r0 = s.A___26943.fields["_image"]; - s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_left__P2379_mk(s); - s.tmp_3.arg0 = s.B___26944; - s.callLocIdx = 681; s.pc = 40; return s.tmp_3; - case 40: - r0 = s.retval; - s.tmp_2 = r0; - s.tmp_5 = Sprite_left__P2379_mk(s); - s.tmp_5.arg0 = s.A___26943; - s.callLocIdx = 682; s.pc = 41; return s.tmp_5; - case 41: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); s.tmp_1 = r0; - s.tmp_7 = Sprite_sx__P2350_mk(s); - s.tmp_7.arg0 = s.A___26943; - s.callLocIdx = 683; s.pc = 42; return s.tmp_7; - case 42: - r0 = s.retval; + r0 = (s.tmp_1 <= s.maxDist___89575); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_5 = Math_abs__P64347_mk(s); + r0 = (s.arg3 + 128); s.tmp_6 = r0; - r0 = (s.tmp_1 / s.tmp_6); - s.tmp_0.arg1 = r0; - s.tmp_10 = Sprite_top__P2383_mk(s); - s.tmp_10.arg0 = s.B___26944; - s.callLocIdx = 684; s.pc = 43; return s.tmp_10; - case 43: - r0 = s.retval; - s.tmp_9 = r0; - s.tmp_12 = Sprite_top__P2383_mk(s); - s.tmp_12.arg0 = s.A___26943; - s.callLocIdx = 685; s.pc = 44; return s.tmp_12; - case 44: + r0 = (s.tmp_6 >> 8); + s.tmp_5.arg0 = r0; + s.callLocIdx = 1040; s.pc = 15; return s.tmp_5; + case 15: r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_9 - s.tmp_11); + s.tmp_4 = r0; + r0 = (s.tmp_4 <= s.maxDist___89575); + case 4: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C66724_VT); s.tmp_8 = r0; - s.tmp_14 = Sprite_sy__P2352_mk(s); - s.tmp_14.arg0 = s.A___26943; - s.callLocIdx = 686; s.pc = 45; return s.tmp_14; - case 45: - r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_8 / s.tmp_13); - s.tmp_0.arg2 = r0; - s.tmp_16 = Sprite_width__P2377_mk(s); - s.tmp_16.arg0 = s.B___26944; - s.callLocIdx = 687; s.pc = 46; return s.tmp_16; - case 46: - r0 = s.retval; - s.tmp_15 = r0; - s.tmp_18 = Sprite_sx__P2350_mk(s); - s.tmp_18.arg0 = s.A___26943; - s.callLocIdx = 688; s.pc = 47; return s.tmp_18; - case 47: - r0 = s.retval; - s.tmp_17 = r0; - r0 = (s.tmp_15 / s.tmp_17); - s.tmp_0.arg3 = r0; - s.tmp_20 = Sprite_height__P2378_mk(s); - s.tmp_20.arg0 = s.B___26944; - s.callLocIdx = 689; s.pc = 48; return s.tmp_20; - case 48: - r0 = s.retval; - s.tmp_19 = r0; - s.tmp_22 = Sprite_sy__P2352_mk(s); - s.tmp_22.arg0 = s.A___26943; - s.callLocIdx = 690; s.pc = 49; return s.tmp_22; - case 49: - r0 = s.retval; - s.tmp_21 = r0; - r0 = (s.tmp_19 / s.tmp_21); - s.tmp_0.arg4 = r0; - r0 = s.B___26944.fields["_image"]; - s.tmp_0.arg5 = r0; - s.tmp_0.arg6 = 0; - s.tmp_0.arg7 = 0; - r0 = s.B___26944.fields["_image"]; - s.tmp_23 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_23); - s.tmp_0.arg8 = r0; - r0 = s.B___26944.fields["_image"]; - s.tmp_24 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_24); - s.tmp_0.arg9 = r0; - s.tmp_0.arg10 = true; - s.tmp_0.arg11 = true; - s.callLocIdx = 694; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - { step = 23; continue; } - case 22: - r0 = undefined; - case 23: - return leave(s, r0) - default: oops() -} } } -Sprite_overlapsWith__P2400.info = {"start":20623,"length":1575,"line":689,"column":4,"endLine":736,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} - -function Sprite_overlapsWith__P2400_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_overlapsWith__P2400, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - tmp_23: undefined, - tmp_24: undefined, - tmp_25: undefined, - tmp_26: undefined, - tmp_27: undefined, - tmp_28: undefined, - tmp_29: undefined, - tmp_30: undefined, - tmp_31: undefined, - tmp_32: undefined, - tmp_33: undefined, - tmp_34: undefined, - tmp_35: undefined, - tmp_36: undefined, - tmp_37: undefined, - tmp_38: undefined, - tmp_39: undefined, - tmp_40: undefined, - tmp_41: undefined, - tmp_42: undefined, - tmp_43: undefined, - tmp_44: undefined, - tmp_45: undefined, - tmp_46: undefined, - tmp_47: undefined, - tmp_48: undefined, - tmp_49: undefined, - tmp_50: undefined, - tmp_51: undefined, - A___26943: undefined, - B___26944: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_isScaled__P4816(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== 256); + s.tmp_9 = MovingSprite_constructor__P66725_mk(s); + s.tmp_9.arg0 = s.tmp_8; + s.tmp_9.arg1 = s.arg1; + r0 = s.arg1.fields["_vx"]; + s.tmp_9.arg2 = r0; + r0 = s.arg1.fields["_vy"]; + s.tmp_9.arg3 = r0; + s.tmp_9.arg4 = s.arg2; + s.tmp_9.arg5 = s.arg3; + s.tmp_9.arg6 = s.arg2; + s.tmp_9.arg7 = s.arg3; + s.callLocIdx = 1041; s.pc = 16; return s.tmp_9; + case 16: + r0 = s.retval; + s.ms___89595 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P69082_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ms___89595; + s.tmp_0.arg2 = s.tm___89567; + s.callLocIdx = 1042; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + { step = 10; continue; } + case 5: + s.tmp_1 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_1.arg0 = s.tm___89567; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1043; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 6; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["_sy"]; + { step = 7; continue; } + case 6: + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P69084_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.tm___89567; + s.callLocIdx = 1044; s.pc = 19; return s.tmp_4; + case 19: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 !== 256); - case 2: + r0 = pxsim_Boolean__bang(s.tmp_2); + case 7: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 8; continue; } + s.tmp_6 = r0 = s.arg1; + r0 = s.tmp_6.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 | 256); + s.tmp_7 = r0; + r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); + { step = 9; continue; } + case 8: + s.tmp_0 = r0 = s.arg1; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -257); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 9: + case 10: + case 11: + case 12: + r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_isScaled__P4816.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} +ArcadePhysicsEngine_moveSprite__P66740.info = {"start":23898,"length":1208,"line":654,"column":4,"endLine":685,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function Sprite_isScaled__P4816_mk(s) { +function ArcadePhysicsEngine_moveSprite__P66740_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isScaled__P4816, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P66740, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tm___89567: undefined, + maxDist___89575: undefined, + ms___89595: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_Hitbox_overlapsWith__P2204(s) { +function ArcadePhysicsEngine_canResolveClipping__P69084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63481,226 +64761,281 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.hbox___89640 = undefined; + s.sz___89643 = undefined; + s.maxMove___89648 = undefined; + s.origY___89650 = undefined; + s.origX___89653 = undefined; + s.l___89656 = undefined; + s.r___89661 = undefined; + s.t___89666 = undefined; + s.b___89671 = undefined; + s.offset___89676 = undefined; + s.offset___89701 = undefined; + s.offset___89732 = undefined; + s.offset___89757 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - s.tmp_0 = game_Hitbox_updateIfInvalid__P2203_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 371; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = game_Hitbox_updateIfInvalid__P2203_mk(s); - s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 372; s.pc = 19; return s.tmp_0; - case 19: + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg1.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_4 = Sprite__C66540_v4_1_mk(s); + s.tmp_4.arg0 = s.arg1; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C66540_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; + s.pc = 20; return s.tmp_4; + case 20: r0 = s.retval; - s.tmp_1 = game_Hitbox_contains__P2202_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = game_Hitbox_left__P2197_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 373; s.pc = 21; return s.tmp_2; + case 1: + case 2: + r0 = s.arg1.fields["_hitbox"]; + s.hbox___89640 = (r0); + r0 = s.arg2.fields["_scale"]; + s.tmp_0 = r0; + r0 = (1 << s.tmp_0); + s.sz___89643 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P66732_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1047; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.tmp_1.arg1 = r0; - s.tmp_3 = game_Hitbox_top__P2198_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 374; s.pc = 22; return s.tmp_3; + s.maxMove___89648 = (r0); + r0 = s.arg1.fields["_y"]; + s.origY___89650 = (r0); + r0 = s.arg1.fields["_x"]; + s.origX___89653 = (r0); + s.tmp_1 = game_Hitbox_left__P66416_mk(s); + s.tmp_1.arg0 = s.hbox___89640; + s.callLocIdx = 1048; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - s.tmp_1.arg2 = r0; - s.callLocIdx = 375; s.pc = 20; return s.tmp_1; - case 20: + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.l___89656 = (r0); + s.tmp_1 = game_Hitbox_right__P66418_mk(s); + s.tmp_1.arg0 = s.hbox___89640; + s.callLocIdx = 1050; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = true; - { step = 17; continue; } - case 1: - case 2: - s.tmp_5 = game_Hitbox_contains__P2202_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_6 = game_Hitbox_left__P2197_mk(s); - s.tmp_6.arg0 = s.arg1; - s.callLocIdx = 376; s.pc = 24; return s.tmp_6; + r0 = (s.tmp_0 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.r___89661 = (r0); + s.tmp_1 = game_Hitbox_top__P66417_mk(s); + s.tmp_1.arg0 = s.hbox___89640; + s.callLocIdx = 1052; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_5.arg1 = r0; - s.tmp_7 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_7.arg0 = s.arg1; - s.callLocIdx = 377; s.pc = 25; return s.tmp_7; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.t___89666 = (r0); + s.tmp_1 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_1.arg0 = s.hbox___89640; + s.callLocIdx = 1054; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - s.tmp_5.arg2 = r0; - s.callLocIdx = 378; s.pc = 23; return s.tmp_5; - case 23: - r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.b___89671 = (r0); + r0 = (s.b___89671 + 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.sz___89643); + s.offset___89676 = (r0); + r0 = (s.offset___89676 <= s.maxMove___89648); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_3 = r0; + r0 = (s.offset___89676 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 1058; s.pc = 26; return s.tmp_3; + case 26: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } r0 = true; - { step = 17; continue; } + { step = 19; continue; } + { step = 4; continue; } case 3: + r0 = (s.arg1).fields["_y"] = (s.origY___89650); case 4: - s.tmp_9 = game_Hitbox_contains__P2202_mk(s); - s.tmp_9.arg0 = s.arg0; - s.tmp_10 = game_Hitbox_right__P2199_mk(s); - s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 379; s.pc = 27; return s.tmp_10; - case 27: - r0 = s.retval; - s.tmp_9.arg1 = r0; - s.tmp_11 = game_Hitbox_top__P2198_mk(s); - s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 380; s.pc = 28; return s.tmp_11; - case 28: - r0 = s.retval; - s.tmp_9.arg2 = r0; - s.callLocIdx = 381; s.pc = 26; return s.tmp_9; - case 26: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 5; continue; } - r0 = true; - { step = 17; continue; } case 5: case 6: - s.tmp_13 = game_Hitbox_contains__P2202_mk(s); - s.tmp_13.arg0 = s.arg0; - s.tmp_14 = game_Hitbox_right__P2199_mk(s); - s.tmp_14.arg0 = s.arg1; - s.callLocIdx = 382; s.pc = 30; return s.tmp_14; - case 30: - r0 = s.retval; - s.tmp_13.arg1 = r0; - s.tmp_15 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_15.arg0 = s.arg1; - s.callLocIdx = 383; s.pc = 31; return s.tmp_15; - case 31: - r0 = s.retval; - s.tmp_13.arg2 = r0; - s.callLocIdx = 384; s.pc = 29; return s.tmp_13; - case 29: + r0 = (s.t___89666 / s.sz___89643); + s.tmp_3 = r0; + r0 = pxsim.Math_.floor(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.sz___89643); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.t___89666); + s.offset___89701 = (r0); + r0 = (s.offset___89701 <= s.maxMove___89648); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_3 = r0; + r0 = (s.offset___89701 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 1061; s.pc = 27; return s.tmp_3; + case 27: r0 = s.retval; - s.tmp_12 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_12); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } r0 = true; - { step = 17; continue; } + { step = 19; continue; } + { step = 8; continue; } case 7: + r0 = (s.arg1).fields["_y"] = (s.origY___89650); case 8: - s.tmp_17 = game_Hitbox_contains__P2202_mk(s); - s.tmp_17.arg0 = s.arg1; - s.tmp_18 = game_Hitbox_left__P2197_mk(s); - s.tmp_18.arg0 = s.arg0; - s.callLocIdx = 385; s.pc = 33; return s.tmp_18; - case 33: - r0 = s.retval; - s.tmp_17.arg1 = r0; - s.tmp_19 = game_Hitbox_top__P2198_mk(s); - s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 386; s.pc = 34; return s.tmp_19; - case 34: - r0 = s.retval; - s.tmp_17.arg2 = r0; - s.callLocIdx = 387; s.pc = 32; return s.tmp_17; - case 32: - r0 = s.retval; - s.tmp_16 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_16); - if (!r0) { step = 9; continue; } - r0 = true; - { step = 17; continue; } case 9: case 10: - s.tmp_21 = game_Hitbox_contains__P2202_mk(s); - s.tmp_21.arg0 = s.arg1; - s.tmp_22 = game_Hitbox_left__P2197_mk(s); - s.tmp_22.arg0 = s.arg0; - s.callLocIdx = 388; s.pc = 36; return s.tmp_22; - case 36: - r0 = s.retval; - s.tmp_21.arg1 = r0; - s.tmp_23 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 389; s.pc = 37; return s.tmp_23; - case 37: - r0 = s.retval; - s.tmp_21.arg2 = r0; - s.callLocIdx = 390; s.pc = 35; return s.tmp_21; - case 35: + r0 = (s.r___89661 + 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.sz___89643); + s.offset___89732 = (r0); + r0 = (s.offset___89732 <= s.maxMove___89648); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.offset___89732 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 1064; s.pc = 28; return s.tmp_3; + case 28: r0 = s.retval; - s.tmp_20 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_20); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } r0 = true; - { step = 17; continue; } + { step = 19; continue; } + { step = 12; continue; } case 11: + r0 = (s.arg1).fields["_x"] = (s.origX___89653); case 12: - s.tmp_25 = game_Hitbox_contains__P2202_mk(s); - s.tmp_25.arg0 = s.arg1; - s.tmp_26 = game_Hitbox_right__P2199_mk(s); - s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 391; s.pc = 39; return s.tmp_26; - case 39: - r0 = s.retval; - s.tmp_25.arg1 = r0; - s.tmp_27 = game_Hitbox_top__P2198_mk(s); - s.tmp_27.arg0 = s.arg0; - s.callLocIdx = 392; s.pc = 40; return s.tmp_27; - case 40: - r0 = s.retval; - s.tmp_25.arg2 = r0; - s.callLocIdx = 393; s.pc = 38; return s.tmp_25; - case 38: - r0 = s.retval; - s.tmp_24 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_24); - if (!r0) { step = 13; continue; } - r0 = true; - { step = 17; continue; } case 13: case 14: - s.tmp_29 = game_Hitbox_contains__P2202_mk(s); - s.tmp_29.arg0 = s.arg1; - s.tmp_30 = game_Hitbox_right__P2199_mk(s); - s.tmp_30.arg0 = s.arg0; - s.callLocIdx = 394; s.pc = 42; return s.tmp_30; - case 42: - r0 = s.retval; - s.tmp_29.arg1 = r0; - s.tmp_31 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 395; s.pc = 43; return s.tmp_31; - case 43: - r0 = s.retval; - s.tmp_29.arg2 = r0; - s.callLocIdx = 396; s.pc = 41; return s.tmp_29; - case 41: + r0 = (s.l___89656 / s.sz___89643); + s.tmp_3 = r0; + r0 = pxsim.Math_.floor(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.sz___89643); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.l___89656); + s.offset___89757 = (r0); + r0 = (s.offset___89757 <= s.maxMove___89648); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.offset___89757 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 1067; s.pc = 29; return s.tmp_3; + case 29: r0 = s.retval; - s.tmp_28 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_28); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } r0 = true; - { step = 17; continue; } + { step = 19; continue; } + { step = 16; continue; } case 15: + r0 = (s.arg1).fields["_x"] = (s.origX___89653); case 16: - r0 = false; case 17: + case 18: + r0 = false; + case 19: return leave(s, r0) default: oops() } } } -game_Hitbox_overlapsWith__P2204.info = {"start":2515,"length":695,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +ArcadePhysicsEngine_canResolveClipping__P69084.info = {"start":25202,"length":2135,"line":688,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function game_Hitbox_overlapsWith__P2204_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P69084_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_overlapsWith__P2204, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P69084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -63708,41 +65043,29 @@ function game_Hitbox_overlapsWith__P2204_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - tmp_23: undefined, - tmp_24: undefined, - tmp_25: undefined, - tmp_26: undefined, - tmp_27: undefined, - tmp_28: undefined, - tmp_29: undefined, - tmp_30: undefined, - tmp_31: undefined, + hbox___89640: undefined, + sz___89643: undefined, + maxMove___89648: undefined, + origY___89650: undefined, + origX___89653: undefined, + l___89656: undefined, + r___89661: undefined, + t___89666: undefined, + b___89671: undefined, + offset___89676: undefined, + offset___89701: undefined, + offset___89732: undefined, + offset___89757: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function game_Hitbox_contains__P2202(s) { +function Sprite_isStatic__P66594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63754,106 +65077,130 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2189_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = game_Hitbox_left__P2197_mk(s); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_0); + return leave(s, r0) + default: oops() +} } } +Sprite_isStatic__P66594.info = {"start":9841,"length":57,"line":355,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} + +function Sprite_isStatic__P66594_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_isStatic__P66594, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_bottom__P66419(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + r0 = s.arg0.fields["height"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_top__P66417_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 351; s.pc = 7; return s.tmp_3; - case 7: + s.callLocIdx = 347; s.pc = 1; return s.tmp_3; + case 1: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); + r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) + default: oops() +} } } +game_Hitbox_bottom__P66419.info = {"start":786,"length":139,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} +game_Hitbox_bottom__P66419.isGetter = true; + +function game_Hitbox_bottom__P66419_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_bottom__P66419, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_right__P66418(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + r0 = s.arg0.fields["width"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_left__P66416_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 344; s.pc = 1; return s.tmp_3; case 1: - s.tmp_4 = r0 = s.arg1; - s.tmp_6 = game_Hitbox_right__P2199_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 352; s.pc = 8; return s.tmp_6; - case 8: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 <= s.tmp_5); - case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBool(s.tmp_7); - if (r0) { step = 3; continue; } - r0 = s.tmp_7; - { step = 4; continue; } - case 3: - s.tmp_8 = r0 = s.arg2; - s.tmp_10 = game_Hitbox_top__P2198_mk(s); - s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 353; s.pc = 9; return s.tmp_10; - case 9: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_8 >= s.tmp_9); - case 4: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = pxsim_numops_toBool(s.tmp_11); - if (r0) { step = 5; continue; } - r0 = s.tmp_11; - { step = 6; continue; } - case 5: - s.tmp_12 = r0 = s.arg2; - s.tmp_14 = game_Hitbox_bottom__P2200_mk(s); - s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 354; s.pc = 10; return s.tmp_14; - case 10: r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_12 <= s.tmp_13); - case 6: - // jmp value (already in r0) - s.tmp_15 = r0; - r0 = s.tmp_15; - return leave(s, r0) + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_contains__P2202.info = {"start":1034,"length":144,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"contains","argumentNames":["this","x","y"]} +game_Hitbox_right__P66418.info = {"start":638,"length":138,"line":26,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} +game_Hitbox_right__P66418.isGetter = true; -function game_Hitbox_contains__P2202_mk(s) { +function game_Hitbox_right__P66418_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_contains__P2202, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P66418, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_imageBlit__P1936(s) { +function game_Hitbox_top__P66417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63865,114 +65212,79 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); - s.arg9 = (s.lambdaArgs[9]); - s.arg10 = (s.lambdaArgs[10]); - s.arg11 = (s.lambdaArgs[11]); s.lambdaArgs = null; } - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__mk(); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - globals._blitArgs___4645 = (s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg1 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 0, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg2 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 1, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg3 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 2, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg4 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 3, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg6 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 4, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg7 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 5, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg8 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 6, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4645; - r0 = (s.arg9 | 0); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.arg10); - if (!r0) { step = 3; continue; } - r0 = 1; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___4645, 8, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg11); - if (!r0) { step = 5; continue; } - r0 = 1; - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_y"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +game_Hitbox_top__P66417.info = {"start":555,"length":73,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} +game_Hitbox_top__P66417.isGetter = true; + +function game_Hitbox_top__P66417_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_top__P66417, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_left__P66416(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___4645, 9, s.tmp_0); - r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___4645); - return leave(s, r0) + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_x"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -helpers_imageBlit__P1936.info = {"start":3839,"length":642,"line":136,"column":4,"endLine":149,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} +game_Hitbox_left__P66416.info = {"start":471,"length":74,"line":18,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} +game_Hitbox_left__P66416.isGetter = true; -function helpers_imageBlit__P1936_mk(s) { +function game_Hitbox_left__P66416_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageBlit__P1936, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P66416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, - arg9: undefined, - arg10: undefined, - arg11: undefined, } } -function ArcadePhysicsEngine_createMovingSprite__P4860(s) { +function ArcadePhysicsEngine_tilemapCollisions__P69082(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63982,592 +65294,1011 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___27549 = undefined; - s.ovy___27554 = undefined; - s.fx___27581 = undefined; - s.c___27588 = undefined; - s.fy___27631 = undefined; - s.c___27638 = undefined; - s.dx___27677 = undefined; - s.dy___27690 = undefined; - s.xStep___27703 = undefined; - s.yStep___27705 = undefined; + s.s___89900 = undefined; + s.hbox___89925 = undefined; + s.tileScale___89928 = undefined; + s.tileSize___89931 = undefined; + s.xDiff___89935 = undefined; + s.yDiff___89942 = undefined; + s.right___89958 = undefined; + s.x0___89962 = undefined; + s.collidedTiles___89977 = undefined; + s.y___89979 = undefined; + s.y0___89993 = undefined; + s.obstacle___90009 = undefined; + s.collisionDirection___90036 = undefined; + s.tile___90062 = undefined; + s.unnamed374___U14 = undefined; + s.unnamed375___U15 = undefined; + s.down___90153 = undefined; + s.y0___90157 = undefined; + s.collidedTiles___90172 = undefined; + s.x___90174 = undefined; + s.x0___90184 = undefined; + s.obstacle___90198 = undefined; + s.collisionDirection___90225 = undefined; + s.tile___90251 = undefined; + s.unnamed376___U24 = undefined; + s.unnamed377___U25 = undefined; + s.overlappedTiles___90345 = undefined; + s.x___90347 = undefined; + s.x0___90357 = undefined; + s.y___90367 = undefined; + s.y0___90377 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P4866_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg1.fields["_vx"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 856; s.pc = 25; return s.tmp_0; - case 25: + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg1.fields["sprite"]; + s.s___89900 = (r0); + r0 = s.s___89900.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 256); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_5 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_5.arg0 = s.arg2; + s.tmp_5.arg1 = s.s___89900; + s.callLocIdx = 930; s.pc = 97; return s.tmp_5; + case 97: r0 = s.retval; - s.ovx___27549 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P4866_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg1.fields["_vy"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 857; s.pc = 26; return s.tmp_0; - case 26: + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + s.tmp_6 = r0 = s.s___89900; + r0 = s.tmp_6.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 & -257); + s.tmp_7 = r0; + r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); + case 1: + case 2: + case 3: + case 4: + r0 = s.s___89900.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = Sprite__C66540_v4_1_mk(s); + s.tmp_4.arg0 = s.s___89900; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C66540_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; + s.pc = 98; return s.tmp_4; + case 98: r0 = s.retval; - s.ovy___27554 = (r0); - r0 = s.arg1.fields["_x"]; + case 5: + case 6: + r0 = s.s___89900.fields["_hitbox"]; + s.hbox___89925 = (r0); + r0 = s.arg2.fields["_scale"]; + s.tileScale___89928 = (r0); + r0 = (1 << s.tileScale___89928); + s.tileSize___89931 = (r0); + r0 = s.s___89900.fields["_x"]; s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); - r0 = s.arg1.fields["_y"]; + r0 = s.s___89900.fields["_lastX"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.xDiff___89935 = (r0); + r0 = s.s___89900.fields["_y"]; s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); - r0 = s.arg1.fields["_ax"]; + r0 = s.s___89900.fields["_lastY"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.yDiff___89942 = (r0); + r0 = s.s___89900.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 2818); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_vx"]; - s.tmp_3 = r0; - r0 = s.arg1.fields["_ax"]; + if (!r0) { step = 83; continue; } + r0 = (s.xDiff___89935 !== 0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 43; continue; } + r0 = (s.xDiff___89935 > 0); + s.right___89958 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___89958); + if (!r0) { step = 7; continue; } + s.tmp_1 = game_Hitbox_right__P66418_mk(s); + s.tmp_1.arg0 = s.hbox___89925; + s.callLocIdx = 935; s.pc = 99; return s.tmp_1; + case 99: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 256); + { step = 8; continue; } + case 7: + s.tmp_3 = game_Hitbox_left__P66416_mk(s); + s.tmp_3.arg0 = s.hbox___89925; + s.callLocIdx = 937; s.pc = 100; return s.tmp_3; + case 100: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 256); + case 8: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.tmp_4 + 128); + s.tmp_5 = r0; + r0 = (s.tileScale___89928 + 8); s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); + r0 = (s.tmp_5 >> s.tmp_6); + s.x0___89962 = (r0); + r0 = pxsim_Array__mk(); + s.collidedTiles___89977 = (r0); + s.tmp_1 = game_Hitbox_top__P66417_mk(s); + s.tmp_1.arg0 = s.hbox___89925; + s.callLocIdx = 941; s.pc = 101; return s.tmp_1; + case 101: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.yDiff___89942); + s.y___89979 = (r0); + case 9: + s.tmp_1 = r0 = s.y___89979; + s.tmp_3 = r0 = s.tileSize___89931; + s.tmp_6 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_6.arg0 = s.hbox___89925; + s.callLocIdx = 943; s.pc = 102; return s.tmp_6; + case 102: + r0 = s.retval; s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + r0 = (s.tmp_5 - s.yDiff___89942); s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); + r0 = (s.tmp_3 << 8); + s.tmp_7 = r0; + r0 = (s.tmp_7 + s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); - { step = 8; continue; } - case 1: - r0 = s.arg1.fields["_fx"]; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg1.fields["_fx"]; + if (!r0) { step = 14; continue; } + s.tmp_10 = Fx_min__P64385_mk(s); + s.tmp_10.arg0 = s.y___89979; + s.tmp_12 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_12.arg0 = s.hbox___89925; + s.callLocIdx = 946; s.pc = 104; return s.tmp_12; + case 104: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_11 - s.yDiff___89942); + s.tmp_10.arg1 = r0; + s.callLocIdx = 948; s.pc = 103; return s.tmp_10; + case 103: + r0 = s.retval; + s.tmp_9 = r0; + r0 = (s.tmp_9 + 128); + s.tmp_8 = r0; + r0 = (s.tileScale___89928 + 8); + s.tmp_13 = r0; + r0 = (s.tmp_8 >> s.tmp_13); + s.y0___89993 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P66955_mk(s); + s.tmp_1.arg0 = s.arg2; + s.tmp_1.arg1 = s.x0___89962; + s.tmp_1.arg2 = s.y0___89993; + s.callLocIdx = 951; s.pc = 105; return s.tmp_1; + case 105: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_2 = tiles_TileMap_getObstacle__P66956_mk(s); + s.tmp_2.arg0 = s.arg2; + s.tmp_2.arg1 = s.x0___89962; + s.tmp_2.arg2 = s.y0___89993; + s.callLocIdx = 952; s.pc = 106; return s.tmp_2; + case 106: + r0 = s.retval; + s.obstacle___90009 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P90017); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___90009); + s.tmp_4 = helpers_arraySome__P64326_mk(s); + s.tmp_4.arg0 = s.collidedTiles___89977; + s.tmp_4.arg1 = s.tmp_0; + s.callLocIdx = 953; s.pc = 107; return s.tmp_4; + case 107: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___27581 = (r0); - r0 = s.arg1.fields["_vx"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__push(s.collidedTiles___89977, s.obstacle___90009); + case 10: + case 11: + case 12: + case 13: + r0 = (s.tileSize___89931 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___27581); - s.c___27588 = (r0); - r0 = (s.c___27588 < 0); + r0 = (s.tmp_0 + s.y___89979); + s.y___89979 = (r0); + { step = 9; continue; } + case 14: + r0 = pxsim_Array__length(s.collidedTiles___89977); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_min__P166_mk(s); - s.tmp_3.arg0 = 0; - r0 = s.arg1.fields["_vx"]; + if (!r0) { step = 41; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___89958); + if (!r0) { step = 15; continue; } + r0 = 2; + { step = 16; continue; } + case 15: + r0 = 0; + case 16: + // jmp value (already in r0) + s.tmp_1 = r0; + s.collisionDirection___90036 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___89958); + if (!r0) { step = 17; continue; } + r0 = (s.x0___89962 << s.tileScale___89928); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_0 = r0; + r0 = s.hbox___89925.fields["width"]; + s.tmp_3 = r0; + r0 = (s.tmp_0 - s.tmp_3); + { step = 18; continue; } + case 17: + r0 = (s.x0___89962 + 1); + s.tmp_5 = r0; + r0 = (s.tmp_5 << s.tileScale___89928); s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___27581); - s.tmp_3.arg1 = r0; - s.callLocIdx = 865; s.pc = 27; return s.tmp_3; - case 27: - r0 = s.retval; + r0 = (s.tmp_4 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + case 18: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.s___89900; + r0 = s.hbox___89925.fields["ox"]; + s.tmp_10 = r0; + r0 = (s.tmp_7 - s.tmp_10); + s.tmp_9 = r0; + r0 = (s.tmp_8).fields["_x"] = (s.tmp_9); + s.tile___90062 = (undefined); + s.unnamed374___U14 = (s.collidedTiles___89977); + s.unnamed375___U15 = (0); + case 19: + s.tmp_0 = r0 = s.unnamed375___U15; + r0 = pxsim_Array__length(s.unnamed374___U14); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 22; continue; } + r0 = pxsim_Array__getAt(s.unnamed374___U14, s.unnamed375___U15); + s.tile___90062 = (r0); + r0 = s.s___89900.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); - { step = 5; continue; } - case 2: - r0 = (s.c___27588 > 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 20; continue; } + s.tmp_6 = Sprite_registerObstacle__P66625_mk(s); + s.tmp_6.arg0 = s.s___89900; + s.tmp_6.arg1 = s.collisionDirection___90036; + s.tmp_6.arg2 = s.tile___90062; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 959; s.pc = 108; return s.tmp_6; + case 108: + r0 = s.retval; + case 20: + case 21: + r0 = (s.unnamed375___U15 + 1); + s.unnamed375___U15 = (r0); + { step = 19; continue; } + case 22: + s.unnamed374___U14 = (undefined); + r0 = s.s___89900.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 16); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_max__P167_mk(s); - s.tmp_3.arg0 = 0; - r0 = s.arg1.fields["_vx"]; + if (!r0) { step = 23; continue; } + s.tmp_2 = Sprite_destroy__P66627_mk(s); + s.tmp_2.arg0 = s.s___89900; + s.tmp_2.arg1 = undefined; + s.tmp_2.arg2 = undefined; + s.callLocIdx = 960; s.pc = 109; return s.tmp_2; + case 109: + r0 = s.retval; + { step = 40; continue; } + case 23: + r0 = s.s___89900.fields["_vx"]; + s.tmp_1 = r0; + r0 = s.arg1.fields["cachedVx"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 24; continue; } + r0 = s.tmp_0; + { step = 25; continue; } + case 24: + r0 = s.s___89900.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___27581); - s.tmp_3.arg1 = r0; - s.callLocIdx = 867; s.pc = 28; return s.tmp_3; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + case 25: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 36; continue; } + r0 = s.s___89900.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 & 32); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 34; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___89958); + s.tmp_10 = r0; + r0 = pxsim_Boolean__bang(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (r0) { step = 26; continue; } + r0 = s.tmp_9; + { step = 27; continue; } + case 26: + s.tmp_12 = Sprite_vx__P66557_mk(s); + s.tmp_12.arg0 = s.s___89900; + s.callLocIdx = 961; s.pc = 110; return s.tmp_12; + case 110: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_11 < 0); + case 27: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBool(s.tmp_13); + if (!r0) { step = 28; continue; } + r0 = s.tmp_13; + { step = 31; continue; } case 28: + s.tmp_14 = r0 = s.right___89958; + r0 = pxsim_numops_toBool(s.tmp_14); + if (r0) { step = 29; continue; } + r0 = s.tmp_14; + { step = 30; continue; } + case 29: + s.tmp_16 = Sprite_vx__P66557_mk(s); + s.tmp_16.arg0 = s.s___89900; + s.callLocIdx = 962; s.pc = 111; return s.tmp_16; + case 111: r0 = s.retval; + s.tmp_15 = r0; + r0 = (s.tmp_15 > 0); + case 30: + // jmp value (already in r0) + s.tmp_17 = r0; + r0 = s.tmp_17; + case 31: + // jmp value (already in r0) + s.tmp_18 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_18); + if (!r0) { step = 32; continue; } + s.tmp_19 = r0 = s.s___89900; + r0 = s.s___89900.fields["_vx"]; + s.tmp_21 = r0; + r0 = (0 - s.tmp_21); + s.tmp_20 = r0; + r0 = (s.tmp_19).fields["_vx"] = (s.tmp_20); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["xStep"]; s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); - { step = 4; continue; } - case 3: - r0 = (s.arg1).fields["_vx"] = (0); - case 4: - case 5: - case 6: - case 7: - case 8: - r0 = s.arg1.fields["_ay"]; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["xStep"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["dx"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); + case 32: + case 33: + { step = 35; continue; } + case 34: + r0 = (s.arg1).fields["dx"] = (0); + r0 = (s.s___89900).fields["_vx"] = (0); + case 35: + { step = 39; continue; } + case 36: + s.tmp_2 = Math_sign__P64348_mk(s); + r0 = s.s___89900.fields["_vx"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 128); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_2.arg0 = r0; + s.callLocIdx = 967; s.pc = 112; return s.tmp_2; + case 112: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_6 = Math_sign__P64348_mk(s); + r0 = s.arg1.fields["cachedVx"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 + 128); + s.tmp_8 = r0; + r0 = (s.tmp_8 >> 8); + s.tmp_6.arg0 = r0; + s.callLocIdx = 969; s.pc = 113; return s.tmp_6; + case 113: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_1 === s.tmp_5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 37; continue; } + r0 = (s.arg1).fields["dx"] = (0); + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + r0 = (s.yDiff___89942 !== 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 81; continue; } + r0 = (s.yDiff___89942 > 0); + s.down___90153 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___90153); + if (!r0) { step = 45; continue; } + s.tmp_1 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_1.arg0 = s.hbox___89925; + s.callLocIdx = 970; s.pc = 114; return s.tmp_1; + case 114: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = r0 = s.arg1; - r0 = s.arg1.fields["_vy"]; - s.tmp_3 = r0; - r0 = s.arg1.fields["_ay"]; - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); + r0 = (s.tmp_0 + 256); + { step = 46; continue; } + case 45: + s.tmp_3 = game_Hitbox_top__P66417_mk(s); + s.tmp_3.arg0 = s.hbox___89925; + s.callLocIdx = 972; s.pc = 115; return s.tmp_3; + case 115: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 256); + case 46: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + r0 = (s.tileScale___89928 + 8); + s.tmp_6 = r0; + r0 = (s.tmp_5 >> s.tmp_6); + s.y0___90157 = (r0); + r0 = pxsim_Array__mk(); + s.collidedTiles___90172 = (r0); + s.tmp_0 = game_Hitbox_left__P66416_mk(s); + s.tmp_0.arg0 = s.hbox___89925; + s.callLocIdx = 976; s.pc = 116; return s.tmp_0; + case 116: + r0 = s.retval; + s.x___90174 = (r0); + case 47: + s.tmp_1 = r0 = s.x___90174; + s.tmp_3 = r0 = s.tileSize___89931; + s.tmp_5 = game_Hitbox_right__P66418_mk(s); + s.tmp_5.arg0 = s.hbox___89925; + s.callLocIdx = 977; s.pc = 117; return s.tmp_5; + case 117: + r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); + r0 = (s.tmp_3 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); - { step = 16; continue; } - case 9: - r0 = s.arg1.fields["_fy"]; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = s.arg1.fields["_fy"]; - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___27631 = (r0); - r0 = s.arg1.fields["_vy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___27631); - s.c___27638 = (r0); - r0 = (s.c___27638 < 0); + if (!r0) { step = 52; continue; } + s.tmp_9 = Fx_min__P64385_mk(s); + s.tmp_9.arg0 = s.x___90174; + s.tmp_10 = game_Hitbox_right__P66418_mk(s); + s.tmp_10.arg0 = s.hbox___89925; + s.callLocIdx = 979; s.pc = 119; return s.tmp_10; + case 119: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.callLocIdx = 980; s.pc = 118; return s.tmp_9; + case 118: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_8 + 128); + s.tmp_7 = r0; + r0 = (s.tileScale___89928 + 8); + s.tmp_11 = r0; + r0 = (s.tmp_7 >> s.tmp_11); + s.x0___90184 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P66955_mk(s); + s.tmp_1.arg0 = s.arg2; + s.tmp_1.arg1 = s.x0___90184; + s.tmp_1.arg2 = s.y0___90157; + s.callLocIdx = 983; s.pc = 120; return s.tmp_1; + case 120: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_min__P166_mk(s); - s.tmp_3.arg0 = 0; - r0 = s.arg1.fields["_vy"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___27631); - s.tmp_3.arg1 = r0; - s.callLocIdx = 875; s.pc = 29; return s.tmp_3; - case 29: + if (!r0) { step = 50; continue; } + s.tmp_2 = tiles_TileMap_getObstacle__P66956_mk(s); + s.tmp_2.arg0 = s.arg2; + s.tmp_2.arg1 = s.x0___90184; + s.tmp_2.arg2 = s.y0___90157; + s.callLocIdx = 984; s.pc = 121; return s.tmp_2; + case 121: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); - { step = 13; continue; } - case 10: - r0 = (s.c___27638 > 0); + s.obstacle___90198 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P90206); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_max__P167_mk(s); - s.tmp_3.arg0 = 0; - r0 = s.arg1.fields["_vy"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___27631); - s.tmp_3.arg1 = r0; - s.callLocIdx = 877; s.pc = 30; return s.tmp_3; - case 30: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___90198); + s.tmp_4 = helpers_arraySome__P64326_mk(s); + s.tmp_4.arg0 = s.collidedTiles___90172; + s.tmp_4.arg1 = s.tmp_0; + s.callLocIdx = 985; s.pc = 122; return s.tmp_4; + case 122: r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); - { step = 12; continue; } - case 11: - r0 = (s.arg1).fields["_vy"] = (0); - case 12: - case 13: - case 14: - case 15: - case 16: - s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P4866_mk(s); - s.tmp_2.arg0 = s.arg0; - r0 = s.arg1.fields["_vx"]; - s.tmp_2.arg1 = r0; - s.callLocIdx = 878; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P4866_mk(s); - s.tmp_2.arg0 = s.arg0; - r0 = s.arg1.fields["_vy"]; - s.tmp_2.arg1 = r0; - s.callLocIdx = 879; s.pc = 32; return s.tmp_2; - case 32: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 48; continue; } + r0 = pxsim_Array__push(s.collidedTiles___90172, s.obstacle___90198); + case 48: + case 49: + case 50: + case 51: + r0 = (s.tileSize___89931 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.x___90174); + s.x___90174 = (r0); + { step = 47; continue; } + case 52: + r0 = pxsim_Array__length(s.collidedTiles___90172); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 79; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___90153); + if (!r0) { step = 53; continue; } + r0 = 3; + { step = 54; continue; } + case 53: + r0 = 1; + case 54: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - r0 = s.arg1.fields["_vx"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovx___27549); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 * s.arg3); + s.collisionDirection___90225 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___90153); + if (!r0) { step = 55; continue; } + r0 = (s.y0___90157 << s.tileScale___89928); s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); + r0 = (s.tmp_1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); + r0 = s.hbox___89925.fields["height"]; + s.tmp_3 = r0; + r0 = (s.tmp_0 - s.tmp_3); + { step = 56; continue; } + case 55: + r0 = (s.y0___90157 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.dx___27677 = (r0); - r0 = s.arg1.fields["_vy"]; + r0 = (s.tmp_5 << s.tileScale___89928); + s.tmp_4 = r0; + r0 = (s.tmp_4 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + case 56: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.s___89900; + r0 = s.hbox___89925.fields["oy"]; + s.tmp_10 = r0; + r0 = (s.tmp_7 - s.tmp_10); + s.tmp_9 = r0; + r0 = (s.tmp_8).fields["_y"] = (s.tmp_9); + s.tile___90251 = (undefined); + s.unnamed376___U24 = (s.collidedTiles___90172); + s.unnamed377___U25 = (0); + case 57: + s.tmp_0 = r0 = s.unnamed377___U25; + r0 = pxsim_Array__length(s.unnamed376___U24); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 60; continue; } + r0 = pxsim_Array__getAt(s.unnamed376___U24, s.unnamed377___U25); + s.tile___90251 = (r0); + r0 = s.s___89900.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___27554); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 / 256); + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 * s.arg3); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 58; continue; } + s.tmp_6 = Sprite_registerObstacle__P66625_mk(s); + s.tmp_6.arg0 = s.s___89900; + s.tmp_6.arg1 = s.collisionDirection___90225; + s.tmp_6.arg2 = s.tile___90251; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 991; s.pc = 123; return s.tmp_6; + case 123: + r0 = s.retval; + case 58: + case 59: + r0 = (s.unnamed377___U25 + 1); + s.unnamed377___U25 = (r0); + { step = 57; continue; } + case 60: + s.unnamed376___U24 = (undefined); + r0 = s.s___89900.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); + r0 = (s.tmp_1 & 16); s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.dy___27690 = (r0); - s.xStep___27703 = (s.dx___27677); - s.yStep___27705 = (s.dy___27690); - case 17: - s.tmp_2 = Fx_abs__P165_mk(s); - s.tmp_2.arg0 = s.xStep___27703; - s.callLocIdx = 886; s.pc = 33; return s.tmp_2; - case 33: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 61; continue; } + s.tmp_2 = Sprite_destroy__P66627_mk(s); + s.tmp_2.arg0 = s.s___89900; + s.tmp_2.arg1 = undefined; + s.tmp_2.arg2 = undefined; + s.callLocIdx = 992; s.pc = 124; return s.tmp_2; + case 124: r0 = s.retval; + { step = 78; continue; } + case 61: + r0 = s.s___89900.fields["_vy"]; s.tmp_1 = r0; - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 > s.tmp_3); + r0 = s.arg1.fields["cachedVy"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 18; continue; } + if (r0) { step = 62; continue; } r0 = s.tmp_0; - { step = 19; continue; } - case 18: - s.tmp_5 = Fx_abs__P165_mk(s); - s.tmp_5.arg0 = s.yStep___27705; - s.callLocIdx = 887; s.pc = 34; return s.tmp_5; - case 34: - r0 = s.retval; + { step = 63; continue; } + case 62: + r0 = s.s___89900.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); - case 19: + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + case 63: // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 74; continue; } + r0 = s.s___89900.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 & 32); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P165_mk(s); - s.tmp_10.arg0 = s.xStep___27703; - s.callLocIdx = 888; s.pc = 35; return s.tmp_10; - case 35: - r0 = s.retval; + if (!r0) { step = 72; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___90153); + s.tmp_10 = r0; + r0 = pxsim_Boolean__bang(s.tmp_10); s.tmp_9 = r0; - r0 = s.arg0.fields["minSingleStep"]; + r0 = pxsim_numops_toBool(s.tmp_9); + if (r0) { step = 64; continue; } + r0 = s.tmp_9; + { step = 65; continue; } + case 64: + s.tmp_12 = Sprite_vy__P66559_mk(s); + s.tmp_12.arg0 = s.s___89900; + s.callLocIdx = 993; s.pc = 125; return s.tmp_12; + case 125: + r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_9 > s.tmp_11); - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 20; continue; } - r0 = pxsim.Math_.idiv(s.xStep___27703, 2); - s.xStep___27703 = (r0); - case 20: - case 21: - s.tmp_2 = Fx_abs__P165_mk(s); - s.tmp_2.arg0 = s.yStep___27705; - s.callLocIdx = 890; s.pc = 36; return s.tmp_2; - case 36: + r0 = (s.tmp_11 < 0); + case 65: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBool(s.tmp_13); + if (!r0) { step = 66; continue; } + r0 = s.tmp_13; + { step = 69; continue; } + case 66: + s.tmp_14 = r0 = s.down___90153; + r0 = pxsim_numops_toBool(s.tmp_14); + if (r0) { step = 67; continue; } + r0 = s.tmp_14; + { step = 68; continue; } + case 67: + s.tmp_16 = Sprite_vy__P66559_mk(s); + s.tmp_16.arg0 = s.s___89900; + s.callLocIdx = 994; s.pc = 126; return s.tmp_16; + case 126: r0 = s.retval; + s.tmp_15 = r0; + r0 = (s.tmp_15 > 0); + case 68: + // jmp value (already in r0) + s.tmp_17 = r0; + r0 = s.tmp_17; + case 69: + // jmp value (already in r0) + s.tmp_18 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_18); + if (!r0) { step = 70; continue; } + s.tmp_19 = r0 = s.s___89900; + r0 = s.s___89900.fields["_vy"]; + s.tmp_21 = r0; + r0 = (0 - s.tmp_21); + s.tmp_20 = r0; + r0 = (s.tmp_19).fields["_vy"] = (s.tmp_20); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["yStep"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["minSingleStep"]; + r0 = (s.tmp_0).fields["yStep"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["dy"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); + case 70: + case 71: + { step = 73; continue; } + case 72: + r0 = (s.arg1).fields["dy"] = (0); + r0 = (s.s___89900).fields["_vy"] = (0); + case 73: + { step = 77; continue; } + case 74: + s.tmp_2 = Math_sign__P64348_mk(s); + r0 = s.s___89900.fields["_vy"]; s.tmp_3 = r0; - r0 = (s.tmp_1 > s.tmp_3); + r0 = (s.tmp_3 + 128); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_2.arg0 = r0; + s.callLocIdx = 999; s.pc = 127; return s.tmp_2; + case 127: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_6 = Math_sign__P64348_mk(s); + r0 = s.arg1.fields["cachedVy"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 + 128); + s.tmp_8 = r0; + r0 = (s.tmp_8 >> 8); + s.tmp_6.arg0 = r0; + s.callLocIdx = 1001; s.pc = 128; return s.tmp_6; + case 128: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_1 === s.tmp_5); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = pxsim.Math_.idiv(s.yStep___27705, 2); - s.yStep___27705 = (r0); - case 22: - case 23: - { step = 17; continue; } - case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2505_VT); + if (!r0) { step = 75; continue; } + r0 = (s.arg1).fields["dy"] = (0); + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + r0 = s.s___89900.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 1538); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P2506_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - r0 = s.arg1.fields["_vx"]; - s.tmp_1.arg2 = r0; - r0 = s.arg1.fields["_vy"]; - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.dx___27677; - s.tmp_1.arg5 = s.dy___27690; - s.tmp_1.arg6 = s.xStep___27703; - s.tmp_1.arg7 = s.yStep___27705; - s.callLocIdx = 892; s.pc = 37; return s.tmp_1; - case 37: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 95; continue; } + r0 = pxsim_Array__mk(); + s.overlappedTiles___90345 = (r0); + s.tmp_0 = game_Hitbox_left__P66416_mk(s); + s.tmp_0.arg0 = s.hbox___89925; + s.callLocIdx = 1002; s.pc = 129; return s.tmp_0; + case 129: r0 = s.retval; - r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -ArcadePhysicsEngine_createMovingSprite__P4860.info = {"start":6933,"length":2805,"line":217,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} - -function ArcadePhysicsEngine_createMovingSprite__P4860_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P4860, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - ovx___27549: undefined, - ovy___27554: undefined, - fx___27581: undefined, - c___27588: undefined, - fy___27631: undefined, - c___27638: undefined, - dx___27677: undefined, - dy___27690: undefined, - xStep___27703: undefined, - yStep___27705: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function ArcadePhysicsEngine_constrain__P4866(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P167_mk(s); - s.tmp_1 = Fx_min__P166_mk(s); - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1068; s.pc = 2; return s.tmp_1; - case 2: + s.x___90347 = (r0); + case 85: + s.tmp_1 = r0 = s.x___90347; + s.tmp_3 = r0 = s.tileSize___89931; + s.tmp_5 = game_Hitbox_right__P66418_mk(s); + s.tmp_5.arg0 = s.hbox___89925; + s.callLocIdx = 1003; s.pc = 130; return s.tmp_5; + case 130: r0 = s.retval; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["maxNegativeVelocity"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1069; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_4 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 92; continue; } + s.tmp_9 = Fx_min__P64385_mk(s); + s.tmp_9.arg0 = s.x___90347; + s.tmp_10 = game_Hitbox_right__P66418_mk(s); + s.tmp_10.arg0 = s.hbox___89925; + s.callLocIdx = 1005; s.pc = 132; return s.tmp_10; + case 132: r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -ArcadePhysicsEngine_constrain__P4866.info = {"start":27343,"length":193,"line":761,"column":4,"endLine":769,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} - -function ArcadePhysicsEngine_constrain__P4866_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_constrain__P4866, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Fx_compare__P164(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 - s.arg1); - return leave(s, r0) - default: oops() -} } } -Fx_compare__P164.info = {"start":1395,"length":106,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"compare","argumentNames":["a","b"]} - -function Fx_compare__P164_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_compare__P164, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function sprites_SpriteMap_insertAABB__P2433(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.left___27369 = undefined; - s.top___27372 = undefined; - s.xn___27375 = undefined; - s.yn___27386 = undefined; - s.x___27397 = undefined; - s.y___27402 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2379_mk(s); - s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 785; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_9.arg1 = r0; + s.callLocIdx = 1006; s.pc = 131; return s.tmp_9; + case 131: r0 = s.retval; - s.left___27369 = (r0); - s.tmp_0 = Sprite_top__P2383_mk(s); - s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 786; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_8 = r0; + r0 = (s.tmp_8 + 128); + s.tmp_7 = r0; + r0 = (s.tileScale___89928 + 8); + s.tmp_11 = r0; + r0 = (s.tmp_7 >> s.tmp_11); + s.x0___90357 = (r0); + s.tmp_0 = game_Hitbox_top__P66417_mk(s); + s.tmp_0.arg0 = s.hbox___89925; + s.callLocIdx = 1009; s.pc = 133; return s.tmp_0; + case 133: r0 = s.retval; - s.top___27372 = (r0); - s.tmp_3 = Sprite_width__P2377_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 787; s.pc = 7; return s.tmp_3; - case 7: + s.y___90367 = (r0); + case 86: + s.tmp_1 = r0 = s.y___90367; + s.tmp_3 = r0 = s.tileSize___89931; + s.tmp_5 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_5.arg0 = s.hbox___89925; + s.callLocIdx = 1010; s.pc = 134; return s.tmp_5; + case 134: r0 = s.retval; - s.tmp_2 = r0; - r0 = s.arg0.fields["cellWidth"]; s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); + r0 = (s.tmp_3 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___27375 = (r0); - s.tmp_3 = Sprite_height__P2378_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 788; s.pc = 8; return s.tmp_3; - case 8: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 91; continue; } + s.tmp_9 = Fx_min__P64385_mk(s); + s.tmp_9.arg0 = s.y___90367; + s.tmp_10 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_10.arg0 = s.hbox___89925; + s.callLocIdx = 1012; s.pc = 136; return s.tmp_10; + case 136: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.callLocIdx = 1013; s.pc = 135; return s.tmp_9; + case 135: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_8 + 128); + s.tmp_7 = r0; + r0 = (s.tileScale___89928 + 8); + s.tmp_11 = r0; + r0 = (s.tmp_7 >> s.tmp_11); + s.y0___90377 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P66955_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.x0___90357; + s.tmp_3.arg2 = s.y0___90377; + s.callLocIdx = 1016; s.pc = 137; return s.tmp_3; + case 137: r0 = s.retval; s.tmp_2 = r0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = s.arg0.fields["cellHeight"]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 87; continue; } + r0 = s.tmp_0; + { step = 88; continue; } + case 87: + r0 = s.s___89900.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 & 2048); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___27386 = (r0); - s.x___27397 = (0); - case 1: - r0 = (s.x___27397 <= s.xn___27375); + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 88: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 89; continue; } + s.tmp_10 = r0 = s.overlappedTiles___90345; + s.tmp_12 = tiles_TileMap_getTile__P66948_mk(s); + s.tmp_12.arg0 = s.arg2; + s.tmp_12.arg1 = s.x0___90357; + s.tmp_12.arg2 = s.y0___90377; + s.callLocIdx = 1017; s.pc = 138; return s.tmp_12; + case 138: + r0 = s.retval; + s.tmp_11 = r0; + r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); + case 89: + case 90: + r0 = (s.tileSize___89931 << 8); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.y___27402 = (0); - case 2: - r0 = (s.y___27402 <= s.yn___27386); + r0 = (s.tmp_0 + s.y___90367); + s.y___90367 = (r0); + { step = 86; continue; } + case 91: + r0 = (s.tileSize___89931 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.x___90347); + s.x___90347 = (r0); + { step = 85; continue; } + case 92: + r0 = pxsim_Array__length(s.overlappedTiles___90345); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P4824_mk(s); + if (!r0) { step = 93; continue; } + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P69083_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___27369; - s.tmp_4 = Math_min__P131_mk(s); - s.tmp_5 = Sprite_width__P2377_mk(s); - s.tmp_5.arg0 = s.arg1; - s.callLocIdx = 789; s.pc = 11; return s.tmp_5; - case 11: - r0 = s.retval; - s.tmp_4.arg0 = r0; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_6 = r0; - r0 = (s.x___27397 * s.tmp_6); - s.tmp_4.arg1 = r0; - s.callLocIdx = 790; s.pc = 10; return s.tmp_4; - case 10: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___27372; - s.tmp_9 = Math_min__P131_mk(s); - s.tmp_10 = Sprite_height__P2378_mk(s); - s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 791; s.pc = 13; return s.tmp_10; - case 13: - r0 = s.retval; - s.tmp_9.arg0 = r0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_11 = r0; - r0 = (s.y___27402 * s.tmp_11); - s.tmp_9.arg1 = r0; - s.callLocIdx = 792; s.pc = 12; return s.tmp_9; - case 12: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 + s.tmp_8); - s.tmp_1.arg2 = r0; - s.tmp_1.arg3 = s.arg1; - s.callLocIdx = 793; s.pc = 9; return s.tmp_1; - case 9: + s.tmp_1.arg1 = s.s___89900; + s.tmp_1.arg2 = s.overlappedTiles___90345; + s.callLocIdx = 1020; s.pc = 139; return s.tmp_1; + case 139: r0 = s.retval; - r0 = (s.y___27402 + 1); - s.y___27402 = (r0); - { step = 2; continue; } - case 3: - r0 = (s.x___27397 + 1); - s.x___27397 = (r0); - { step = 1; continue; } - case 4: + case 93: + case 94: + case 95: + case 96: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P2433.info = {"start":3184,"length":521,"line":91,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAABB","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_tilemapCollisions__P69082.info = {"start":12929,"length":9654,"line":379,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function sprites_SpriteMap_insertAABB__P2433_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P69082_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P2433, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P69082, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64581,21 +66312,57 @@ function sprites_SpriteMap_insertAABB__P2433_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___27369: undefined, - top___27372: undefined, - xn___27375: undefined, - yn___27386: undefined, - x___27397: undefined, - y___27402: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + s___89900: undefined, + hbox___89925: undefined, + tileScale___89928: undefined, + tileSize___89931: undefined, + xDiff___89935: undefined, + yDiff___89942: undefined, + right___89958: undefined, + x0___89962: undefined, + collidedTiles___89977: undefined, + y___89979: undefined, + y0___89993: undefined, + obstacle___90009: undefined, + collisionDirection___90036: undefined, + tile___90062: undefined, + unnamed374___U14: undefined, + unnamed375___U15: undefined, + down___90153: undefined, + y0___90157: undefined, + collidedTiles___90172: undefined, + x___90174: undefined, + x0___90184: undefined, + obstacle___90198: undefined, + collisionDirection___90225: undefined, + tile___90251: undefined, + unnamed376___U24: undefined, + unnamed377___U25: undefined, + overlappedTiles___90345: undefined, + x___90347: undefined, + x0___90357: undefined, + y___90367: undefined, + y0___90377: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function sprites_SpriteMap_insertAtKey__P4824(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P90017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64605,82 +66372,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___27437 = undefined; - s.bucket___27442 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P4823_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 784; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.k___27437 = (r0); - r0 = s.arg0.fields["buckets"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___27437); - s.bucket___27442 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___27442); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0.fields["tileIndex"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["buckets"]; - s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___27437; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___27442 = (s.tmp_4); - case 1: - case 2: - r0 = pxsim_Array_.indexOf(s.bucket___27442, s.arg3, undefined); + r0 = s.caps[0].fields["tileIndex"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__push(s.bucket___27442, s.arg3); - case 3: - case 4: - r0 = undefined; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P4824.info = {"start":2872,"length":302,"line":82,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAtKey","argumentNames":["this","x","y","sprite"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P90017.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function sprites_SpriteMap_insertAtKey__P4824_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P90017_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P4824, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P90017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - k___27437: undefined, - bucket___27442: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function sprites_SpriteMap_clear__P2432(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P90206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64694,22 +66414,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = s.arg0.fields["tileIndex"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["tileIndex"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P2432.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P90206.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function sprites_SpriteMap_clear__P2432_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P90206_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P2432, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P90206, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64720,7 +66438,7 @@ function sprites_SpriteMap_clear__P2432_mk(s) { -function sprites_SpriteMap_resizeBuckets__P2431(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P69083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64730,179 +66448,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___27472 = undefined; - s.maxHeight___27473 = undefined; - s.sprite___27475 = undefined; - s.unnamed92___U3 = undefined; - s.unnamed93___U4 = undefined; - s.tMap___27491 = undefined; - s.areaWidth___27495 = undefined; - s.areaHeight___27502 = undefined; + s.alreadyHandled___90424 = undefined; + s.tile___90427 = undefined; + s.unnamed378___U2 = undefined; + s.unnamed379___U3 = undefined; + s.tileOverlapHandlers___90448 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.maxWidth___27472 = (0); - s.maxHeight___27473 = (0); - s.sprite___27475 = (undefined); - s.unnamed92___U3 = (s.arg1); - s.unnamed93___U4 = (0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.alreadyHandled___90424 = (r0); + s.tile___90427 = (undefined); + s.unnamed378___U2 = (s.arg2); + s.unnamed379___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed93___U4; - r0 = pxsim_Array__length(s.unnamed92___U3); + s.tmp_0 = r0 = s.unnamed379___U3; + r0 = pxsim_Array__length(s.unnamed378___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed92___U3, s.unnamed93___U4); - s.sprite___27475 = (r0); - s.tmp_4 = Sprite_width__P2377_mk(s); - s.tmp_4.arg0 = s.sprite___27475; - s.callLocIdx = 773; s.pc = 11; return s.tmp_4; - case 11: + if (!r0) { step = 7; continue; } + r0 = pxsim_Array__getAt(s.unnamed378___U2, s.unnamed379___U3); + s.tile___90427 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P90431); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___90427); + s.tmp_4 = helpers_arraySome__P64326_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___90424; + s.tmp_4.arg1 = s.tmp_2; + s.callLocIdx = 1025; s.pc = 8; return s.tmp_4; + case 8: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___27472); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } - s.tmp_5 = Sprite_width__P2377_mk(s); - s.tmp_5.arg0 = s.sprite___27475; - s.callLocIdx = 774; s.pc = 12; return s.tmp_5; - case 12: - r0 = s.retval; - s.maxWidth___27472 = (r0); + { step = 6; continue; } case 2: case 3: - s.tmp_2 = Sprite_height__P2378_mk(s); - s.tmp_2.arg0 = s.sprite___27475; - s.callLocIdx = 775; s.pc = 13; return s.tmp_2; - case 13: + r0 = pxsim_Array__push(s.alreadyHandled___90424, s.tile___90427); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 1026; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___27473); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = r0.fields["tileOverlapHandlers"]; + s.tileOverlapHandlers___90448 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___90448); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_height__P2378_mk(s); - s.tmp_3.arg0 = s.sprite___27475; - s.callLocIdx = 776; s.pc = 14; return s.tmp_3; - case 14: + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P90456); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___90427); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P90470); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___90427); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_3 = helpers_arrayFilter__P64329_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___90448; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 1029; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1031; s.pc = 10; return s.tmp_2; + case 10: r0 = s.retval; - s.maxHeight___27473 = (r0); case 4: case 5: - r0 = (s.unnamed93___U4 + 1); - s.unnamed93___U4 = (r0); - { step = 1; continue; } case 6: - s.unnamed92___U3 = (undefined); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 777; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tMap___27491 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___27491); - if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P2723_mk(s); - s.tmp_0.arg0 = s.tMap___27491; - s.callLocIdx = 778; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - { step = 8; continue; } + r0 = (s.unnamed379___U3 + 1); + s.unnamed379___U3 = (r0); + { step = 1; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___2013); - case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - s.areaWidth___27495 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___27491); - if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P2724_mk(s); - s.tmp_0.arg0 = s.tMap___27491; - s.callLocIdx = 779; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - { step = 10; continue; } - case 9: - r0 = pxsim_ImageMethods.height(globals.screen___2013); - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - s.areaHeight___27502 = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___27495 >> 2); - s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___27472 * 2); - s.tmp_2.arg2 = r0; - s.callLocIdx = 780; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___27502 >> 2); - s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___27473 * 2); - s.tmp_2.arg2 = r0; - s.callLocIdx = 781; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cellHeight"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___27502, s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["rowCount"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaWidth___27495, s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["columnCount"] = (s.tmp_1); + s.unnamed378___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_resizeBuckets__P2431.info = {"start":1696,"length":826,"line":52,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"resizeBuckets","argumentNames":["this","sprites"]} +ArcadePhysicsEngine_tilemapOverlaps__P69083.info = {"start":22860,"length":707,"line":626,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function sprites_SpriteMap_resizeBuckets__P2431_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P69083_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P2431, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P69083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - maxWidth___27472: undefined, - maxHeight___27473: undefined, - sprite___27475: undefined, - unnamed92___U3: undefined, - unnamed93___U4: undefined, - tMap___27491: undefined, - areaWidth___27495: undefined, - areaHeight___27502: undefined, + alreadyHandled___90424: undefined, + tile___90427: undefined, + unnamed378___U2: undefined, + unnamed379___U3: undefined, + tileOverlapHandlers___90448: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_clearObstacles__P2405(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P90431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64916,25 +66570,42 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); - r0 = undefined; + r0 = s.caps[0].fields["_col"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_row"]; + s.tmp_3 = r0; + r0 = s.caps[0].fields["_row"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 === s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P2405.info = {"start":24772,"length":54,"line":811,"column":4,"endLine":813,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P90431.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function Sprite_clearObstacles__P2405_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P90431_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P2405, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P90431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, } } @@ -64942,7 +66613,7 @@ function Sprite_clearObstacles__P2405_mk(s) { -function Fx_idiv__P163(s) { +function forEach_inline__P90456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64954,29 +66625,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.idiv(s.arg0, s.arg1); + r0 = s.arg0.fields["spriteKind"]; + s.tmp_1 = r0; + r0 = s.caps[0].fields["_kind"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["tileKind"]; + s.tmp_3 = r0; + s.tmp_5 = tiles_getTileImage__P66967_mk(s); + s.tmp_5.arg0 = s.caps[1]; + s.callLocIdx = 1028; s.pc = 3; return s.tmp_5; + case 3: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.equals(s.tmp_3, s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = s.tmp_6; return leave(s, r0) default: oops() } } } -Fx_idiv__P163.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} +forEach_inline__P90456.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function Fx_idiv__P163_mk(s) { +function forEach_inline__P90456_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P163, depth: s.depth + 1, + parent: s, fn: forEach_inline__P90456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_draw__P2518(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P90470(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64990,24 +66689,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P2430_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 821; s.pc = 1; return s.tmp_0; + s.tmp_0 = if_handler_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.tmp_0.arg2 = s.caps[1]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); + s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1030; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1030; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P2518.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P90470.info = {"start":23507,"length":28,"line":639,"column":29,"endLine":639,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function ArcadePhysicsEngine_draw__P2518_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P90470_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P2518, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P90470, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -65017,7 +66723,7 @@ function ArcadePhysicsEngine_draw__P2518_mk(s) { -function sprites_SpriteMap_draw__P2430(s) { +function tiles_TileMap_getObstacle__P66956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65027,156 +66733,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___27770 = undefined; - s.y___27776 = undefined; - s.left___27782 = undefined; - s.top___27787 = undefined; - s.k___27792 = undefined; - s.b___27797 = undefined; + s.index___90579 = undefined; + s.tile___90591 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2426_VT)) failedCast(r0); - s.x___27770 = (0); - case 1: - r0 = s.arg0.fields["columnCount"]; - s.tmp_1 = r0; - r0 = (s.x___27770 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___27776 = (0); - case 2: - r0 = s.arg0.fields["rowCount"]; - s.tmp_1 = r0; - r0 = (s.y___27776 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["cellWidth"]; - s.tmp_2 = r0; - r0 = (s.x___27770 * s.tmp_2); - s.left___27782 = (r0); - r0 = s.arg0.fields["cellHeight"]; - s.tmp_0 = r0; - r0 = (s.y___27776 * s.tmp_0); - s.top___27787 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P4823_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___27782; - s.tmp_0.arg2 = s.top___27787; - s.callLocIdx = 771; s.pc = 9; return s.tmp_0; - case 9: + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P66928_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 1274; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.k___27792 = (r0); - r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___27792); - s.b___27797 = (r0); - s.tmp_0 = r0 = s.b___27797; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = pxsim_Array__length(s.b___27797); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 2; continue; } + case 1: + s.tmp_2 = tiles_TileMapData_getTile__P66922_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 1275; s.pc = 4; return s.tmp_2; case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_imageDrawRect__P1942_mk(s); - s.tmp_2.arg0 = globals.screen___2013; - s.tmp_2.arg1 = s.left___27782; - s.tmp_2.arg2 = s.top___27787; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_2.arg3 = r0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_2.arg4 = r0; - s.tmp_2.arg5 = 5; - s.callLocIdx = 772; s.pc = 10; return s.tmp_2; - case 10: r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.index___90579 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P66925_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___90579; + s.callLocIdx = 1276; s.pc = 5; return s.tmp_0; case 5: + r0 = s.retval; + s.tile___90591 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C66697_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_StaticObstacle_constructor__P66703_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.tile___90591; + s.tmp_2 = r0 = s.arg2; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1.arg2 = r0; + s.tmp_4 = r0 = s.arg1; + r0 = s.arg0.fields["_scale"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 << s.tmp_5); + s.tmp_1.arg3 = r0; + r0 = s.arg0.fields["_layer"]; + s.tmp_1.arg4 = r0; + s.tmp_1.arg5 = s.index___90579; + s.callLocIdx = 1280; s.pc = 6; return s.tmp_1; case 6: - r0 = (s.y___27776 + 1); - s.y___27776 = (r0); - { step = 2; continue; } - case 7: - r0 = (s.x___27770 + 1); - s.x___27770 = (r0); - { step = 1; continue; } - case 8: - r0 = undefined; + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P2430.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} +tiles_TileMap_getObstacle__P66956.info = {"start":16453,"length":410,"line":522,"column":8,"endLine":532,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function sprites_SpriteMap_draw__P2430_mk(s) { +function tiles_TileMap_getObstacle__P66956_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P2430, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P66956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___27770: undefined, - y___27776: undefined, - left___27782: undefined, - top___27787: undefined, - k___27792: undefined, - b___27797: undefined, - arg0: undefined, -} } - - - - - -function ArcadePhysicsEngine_removeSprite__P2517(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -ArcadePhysicsEngine_removeSprite__P2517.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} - -function ArcadePhysicsEngine_removeSprite__P2517_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P2517, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + index___90579: undefined, + tile___90591: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_addSprite__P2516(s) { +function tiles_TileMap_layer__P66944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65186,75 +66836,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___27834 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2507_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 819; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___27834 = (r0); - s.tmp_0 = r0 = s.tm___27834; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = tiles_TileMap_isOnWall__P2738_mk(s); - s.tmp_1.arg0 = s.tm___27834; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 820; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = s.tmp_3.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 | 256); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["flags"] = (s.tmp_4); - case 3: - case 4: - r0 = undefined; - return leave(s, r0) + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = s.arg0.fields["_layer"]; + return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P2516.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +tiles_TileMap_layer__P66944.info = {"start":9967,"length":63,"line":341,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} +tiles_TileMap_layer__P66944.isGetter = true; -function ArcadePhysicsEngine_addSprite__P2516_mk(s) { +function tiles_TileMap_layer__P66944_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P2516, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P66944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tm___27834: undefined, arg0: undefined, - arg1: undefined, } } -function scene_BackgroundLayer_constructor__P2666(s) { +function sprites_StaticObstacle_constructor__P66703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65269,78 +66876,41 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C2659_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 1190; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); - r0 = (s.arg0).fields["img"] = (s.arg3); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 1: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 2: - case 3: - r0 = (s.arg0).fields["repeatX"] = (false); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (s.arg2); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 4: - case 5: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (false); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (s.arg2); - case 6: + if (!checkSubtype(r0, sprites_StaticObstacle__C66697_VT)) failedCast(r0); + r0 = (s.arg0).fields["image"] = (s.arg1); + r0 = (s.arg0).fields["layer"] = (s.arg4); + r0 = (s.arg0).fields["top"] = (s.arg2); + r0 = (s.arg0).fields["left"] = (s.arg3); + r0 = (s.arg0).fields["tileIndex"] = (s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_constructor__P2666.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]} +sprites_StaticObstacle_constructor__P66703.info = {"start":563,"length":261,"line":28,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"inline","argumentNames":["this","image","top","left","layer","tileIndex"]} -function scene_BackgroundLayer_constructor__P2666_mk(s) { +function sprites_StaticObstacle_constructor__P66703_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_constructor__P2666, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P66703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function info_PlayerInfo_id__P2624(s) { +function tiles_TileMap_isObstacle__P66955(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65352,32 +66922,87 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["impl"]; + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = s.tmp_0.fields["_player"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } + case 1: + case 2: + s.tmp_8 = tiles_TileMapData_isOutsideMap__P66928_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = s.arg1; + s.tmp_8.arg2 = s.arg2; + s.callLocIdx = 1272; s.pc = 6; return s.tmp_8; + case 6: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_map"]; + s.tmp_9 = r0; + r0 = s.tmp_9.fields["layers"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); + s.tmp_10 = r0; + r0 = (s.tmp_10 === 2); + case 5: return leave(s, r0) default: oops() } } } -info_PlayerInfo_id__P2624.info = {"start":27406,"length":59,"line":911,"column":8,"endLine":913,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} +tiles_TileMap_isObstacle__P66955.info = {"start":16232,"length":211,"line":515,"column":8,"endLine":520,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function info_PlayerInfo_id__P2624_mk(s) { +function tiles_TileMap_isObstacle__P66955_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_id__P2624, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P66955, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function info_PlayerInfo_y__P2618(s) { +function tiles_TileMapData_isWall__P66927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65390,34 +67015,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["impl"]; + if (!checkSubtype(r0, tiles_TileMapData__C66916_VT)) failedCast(r0); + r0 = s.arg0.fields["layers"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); s.tmp_0 = r0; - r0 = (s.tmp_0).fields["y"] = (s.arg1); - r0 = undefined; + r0 = (s.tmp_0 === 2); return leave(s, r0) default: oops() } } } -info_PlayerInfo_y__P2618.info = {"start":26852,"length":65,"line":885,"column":8,"endLine":887,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"y","argumentNames":["this","value"]} +tiles_TileMapData_isWall__P66927.info = {"start":8218,"length":107,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} -function info_PlayerInfo_y__P2618_mk(s) { +function tiles_TileMapData_isWall__P66927_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_y__P2618, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P66927, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function info_PlayerInfo_y__P2617(s) { +function Sprite_registerObstacle__P66625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65427,33 +67056,190 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.collisionHandlers___90492 = undefined; + s.wallCollisionHandlers___90499 = undefined; + s.wallHandlersToRun___90524 = undefined; + s.asTileLocation___90537 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["y"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_obstacles"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.arg2); + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 695; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = r0.fields["collisionHandlers"]; + s.tmp_0 = r0; + s.tmp_3 = if_tileIndex_1_mk(s); + s.tmp_3.arg0 = s.arg2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "tileIndex"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["tileIndex"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["tileIndex"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 696; s.pc = 10; return s.tmp_3; } + } + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + s.collisionHandlers___90492 = (r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 697; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = r0.fields["wallCollisionHandlers"]; + s.wallCollisionHandlers___90499 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___90492); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P90507); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P90513); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P64328_mk(s); + s.tmp_3 = helpers_arrayFilter__P64329_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___90492; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 699; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 701; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___90499); + if (!r0) { step = 7; continue; } + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_1 = game_currentScene__P67198_mk(s); + s.callLocIdx = 702; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg3 = (s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P90526); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayFilter__P64329_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___90499; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 704; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.wallHandlersToRun___90524 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___90524); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = tiles_TileMap_getTile__P66948_mk(s); + s.tmp_1.arg0 = s.arg3; + s.tmp_3 = if_left_1_mk(s); + s.tmp_3.arg0 = s.arg2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "left"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["left"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["left"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 705; s.pc = 17; return s.tmp_3; } + } + case 17: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.arg3.fields["_scale"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 >> s.tmp_4); + s.tmp_1.arg1 = r0; + s.tmp_6 = if_top_1_mk(s); + s.tmp_6.arg0 = s.arg2; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "top"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["top"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["top"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 707; s.pc = 18; return s.tmp_6; } + } + case 18: + r0 = s.retval; + s.tmp_5 = r0; + r0 = s.arg3.fields["_scale"]; + s.tmp_7 = r0; + r0 = (s.tmp_5 >> s.tmp_7); + s.tmp_1.arg2 = r0; + s.callLocIdx = 709; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.asTileLocation___90537 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P90553); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___90537); + s.tmp_1 = helpers_arrayForEach__P64328_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___90524; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 711; s.pc = 19; return s.tmp_1; + case 19: + r0 = s.retval; + case 5: + case 6: + case 7: + case 8: + r0 = undefined; + return leave(s, r0) default: oops() } } } -info_PlayerInfo_y__P2617.info = {"start":26783,"length":59,"line":881,"column":8,"endLine":883,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"y","argumentNames":["this"]} -info_PlayerInfo_y__P2617.isGetter = true; +Sprite_registerObstacle__P66625.info = {"start":24832,"length":965,"line":815,"column":4,"endLine":835,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function info_PlayerInfo_y__P2617_mk(s) { +function Sprite_registerObstacle__P66625_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_y__P2617, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P66625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + collisionHandlers___90492: undefined, + wallCollisionHandlers___90499: undefined, + wallHandlersToRun___90524: undefined, + asTileLocation___90537: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function info_PlayerInfo_x__P2616(s) { +function forEach_inline__P90507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65465,35 +67251,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["impl"]; + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = (s.tmp_0).fields["x"] = (s.arg1); - r0 = undefined; + r0 = s.caps[0].fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -info_PlayerInfo_x__P2616.info = {"start":26708,"length":65,"line":877,"column":8,"endLine":879,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"x","argumentNames":["this","value"]} +forEach_inline__P90507.info = {"start":25230,"length":26,"line":822,"column":24,"endLine":822,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function info_PlayerInfo_x__P2616_mk(s) { +function forEach_inline__P90507_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_x__P2616, depth: s.depth + 1, + parent: s, fn: forEach_inline__P90507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function info_PlayerInfo_x__P2615(s) { +function Sprite_registerObstacle_inline__P90513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65507,21 +67291,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["x"]; - return leaveAccessor(s, r0) + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 700; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 700; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 700; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 700; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -info_PlayerInfo_x__P2615.info = {"start":26639,"length":59,"line":873,"column":8,"endLine":875,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"x","argumentNames":["this"]} -info_PlayerInfo_x__P2615.isGetter = true; +Sprite_registerObstacle_inline__P90513.info = {"start":25283,"length":20,"line":823,"column":25,"endLine":823,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function info_PlayerInfo_x__P2615_mk(s) { +function Sprite_registerObstacle_inline__P90513_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_x__P2615, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P90513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -65529,7 +67324,7 @@ function info_PlayerInfo_x__P2615_mk(s) { -function info_PlayerInfoImpl_id__P2585(s) { +function wallHandlersToRun_inline__P90526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65543,19 +67338,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2575_VT)) failedCast(r0); - r0 = s.arg0.fields["_player"]; + r0 = s.arg0.fields["spriteKind"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_id__P2585.info = {"start":21343,"length":57,"line":687,"column":8,"endLine":689,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} +wallHandlersToRun_inline__P90526.info = {"start":25489,"length":32,"line":828,"column":24,"endLine":828,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function info_PlayerInfoImpl_id__P2585_mk(s) { +function wallHandlersToRun_inline__P90526_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_id__P2585, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P90526, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -65563,7 +67362,7 @@ function info_PlayerInfoImpl_id__P2585_mk(s) { -function statusbars_StatusHandler_constructor__P7090(s) { +function Sprite_registerObstacle_inline__P90553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65575,44 +67374,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusHandler__C7088_VT)) failedCast(r0); - r0 = (s.arg0).fields["kind"] = (s.arg1); - r0 = (s.arg0).fields["comparison"] = (s.arg2); - r0 = (s.arg0).fields["comparisonType"] = (s.arg3); - r0 = (s.arg0).fields["percent"] = (s.arg4); - r0 = (s.arg0).fields["handler"] = (s.arg5); + s.tmp_0 = if_handler_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.tmp_0.arg2 = s.caps[1]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); + s.callLocIdx = 710; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 710; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 710; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 710; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusHandler_constructor__P7090.info = {"start":24522,"length":257,"line":702,"column":8,"endLine":708,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","kind","comparison","comparisonType","percent","handler"]} +Sprite_registerObstacle_inline__P90553.info = {"start":25729,"length":36,"line":832,"column":29,"endLine":832,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function statusbars_StatusHandler_constructor__P7090_mk(s) { +function Sprite_registerObstacle_inline__P90553_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusHandler_constructor__P7090, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P90553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function particles_FireSource_updateParticle__P3155(s) { +function Math_sign__P64348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65624,73 +67422,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_FireSource__C3153_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_updateParticle__P5348_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 1853; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = s.arg1.fields["next"]; + r0 = (s.arg0 == 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 5; continue; } case 1: - s.tmp_1 = Math_FastRandom_percentChance__P3046_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 30; - s.callLocIdx = 1854; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.arg0 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = s.arg1.fields["next"]; - r0 = r0.fields["vx"]; - s.tmp_3 = r0; - r0 = (s.arg1).fields["vx"] = (s.tmp_3); - r0 = s.arg1.fields["next"]; - r0 = r0.fields["vy"]; - s.tmp_0 = r0; - r0 = (s.arg1).fields["vy"] = (s.tmp_0); + r0 = 1; + { step = 5; continue; } case 3: case 4: - r0 = undefined; + r0 = -1; + case 5: return leave(s, r0) default: oops() } } } -particles_FireSource_updateParticle__P3155.info = {"start":10620,"length":240,"line":348,"column":8,"endLine":354,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +Math_sign__P64348.info = {"start":16355,"length":125,"line":547,"column":4,"endLine":551,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function particles_FireSource_updateParticle__P3155_mk(s) { +function Math_sign__P64348_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireSource_updateParticle__P3155, depth: s.depth + 1, + parent: s, fn: Math_sign__P64348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_FireFactory_createParticle__P3202(s) { +function helpers_arraySome__P64326(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65700,176 +67471,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___23484 = undefined; - s.i___23496 = undefined; - s.r___23503 = undefined; + s.len___90561 = undefined; + s.i___90564 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_FireFactory__C3200_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P3169_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1920; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.p___23484 = (r0); - s.tmp_1 = Math_FastRandom_randomBool__P3045_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1921; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + r0 = pxsim_Array__length(s.arg0); + s.len___90561 = (r0); + s.i___90564 = (0); + case 1: + r0 = (s.i___90564 < s.len___90561); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 2; - { step = 4; continue; } - case 1: - s.tmp_3 = Math_FastRandom_randomBool__P3045_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 1922; s.pc = 7; return s.tmp_3; - case 7: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = 4; - { step = 3; continue; } - case 2: - r0 = 5; - case 3: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - case 4: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.p___23484).fields["color"] = (s.tmp_5); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - r0 = pxsim_Array__length(globals.cachedCos___5359); - s.tmp_0.arg2 = r0; - s.callLocIdx = 1923; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.i___23496 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["minRadius"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["maxRadius"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 1924; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.r___23503 = (r0); - s.tmp_0 = r0 = s.p___23484; - s.tmp_3 = if_x_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1925; s.pc = 10; return s.tmp_3; } - } - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.r___23503 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedCos___5359, s.i___23496); - s.tmp_7 = r0; - r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); - s.tmp_8 = r0; - r0 = (s.tmp_8 >> 8); - s.tmp_4 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_9 = r0; - r0 = (s.tmp_9 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___23484; - s.tmp_3 = if_y_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1929; s.pc = 11; return s.tmp_3; } - } - case 11: + if (!r0) { step = 4; continue; } + s.tmp_2 = lambda_3_mk(s); + s.tmp_2.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___90564); + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.i___90564; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 5; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.r___23503 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedSin___5358, s.i___23496); - s.tmp_7 = r0; - r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); - s.tmp_8 = r0; - r0 = (s.tmp_8 >> 8); - s.tmp_4 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_9 = r0; - r0 = (s.tmp_9 + s.tmp_4); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___23484; - r0 = pxsim.Math_.randomRange(0, 10); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___23484; - r0 = pxsim.Math_.randomRange(-5, 5); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - r0 = (s.p___23484).fields["lifespan"] = (1500); - r0 = s.p___23484; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = true; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___90564 + 1); + s.i___90564 = (r0); + { step = 1; continue; } + case 4: + r0 = false; + case 5: return leave(s, r0) default: oops() } } } -particles_FireFactory_createParticle__P3202.info = {"start":8876,"length":662,"line":290,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +helpers_arraySome__P64326.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} -function particles_FireFactory_createParticle__P3202_mk(s) { +function helpers_arraySome__P64326_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireFactory_createParticle__P3202, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P64326, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - p___23484: undefined, - i___23496: undefined, - r___23503: undefined, + len___90561: undefined, + i___90564: undefined, arg0: undefined, arg1: undefined, } } @@ -65878,7 +67531,7 @@ function particles_FireFactory_createParticle__P3202_mk(s) { -function Math_FastRandom_randomBool__P3045(s) { +function tiles_TileMap_isOnWall__P66957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65888,45 +67541,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.hbox___89823 = undefined; + s.left___89826 = undefined; + s.right___89832 = undefined; + s.top___89838 = undefined; + s.bottom___89844 = undefined; + s.col___89850 = undefined; + s.row___89856 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); - s.tmp_3 = Math_FastRandom_next__P3042_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1631; s.pc = 1; return s.tmp_3; - case 1: + if (!checkSubtype(r0, tiles_TileMap__C66934_VT)) failedCast(r0); + r0 = s.arg1.fields["_hitbox"]; + s.hbox___89823 = (r0); + s.tmp_1 = game_Hitbox_left__P66416_mk(s); + s.tmp_1.arg0 = s.hbox___89823; + s.callLocIdx = 1281; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & 1); + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.left___89826 = (r0); + s.tmp_1 = game_Hitbox_right__P66418_mk(s); + s.tmp_1.arg0 = s.hbox___89823; + s.callLocIdx = 1284; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.right___89832 = (r0); + s.tmp_1 = game_Hitbox_top__P66417_mk(s); + s.tmp_1.arg0 = s.hbox___89823; + s.callLocIdx = 1287; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.top___89838 = (r0); + s.tmp_1 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_1.arg0 = s.hbox___89823; + s.callLocIdx = 1290; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.bottom___89844 = (r0); + s.col___89850 = (s.left___89826); + case 1: + r0 = (s.col___89850 <= s.right___89832); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.row___89856 = (s.top___89838); + case 2: + r0 = (s.row___89856 <= s.bottom___89844); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = tiles_TileMap_isObstacle__P66955_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.col___89850; + s.tmp_2.arg2 = s.row___89856; + s.callLocIdx = 1293; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 7; continue; } + case 3: + case 4: + r0 = (s.row___89856 + 1); + s.row___89856 = (r0); + { step = 2; continue; } + case 5: + r0 = (s.col___89850 + 1); + s.col___89850 = (r0); + { step = 1; continue; } + case 6: + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -Math_FastRandom_randomBool__P3045.info = {"start":2627,"length":72,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomBool","argumentNames":["this"]} +tiles_TileMap_isOnWall__P66957.info = {"start":16873,"length":627,"line":534,"column":8,"endLine":551,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function Math_FastRandom_randomBool__P3045_mk(s) { +function tiles_TileMap_isOnWall__P66957_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomBool__P3045, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P66957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + hbox___89823: undefined, + left___89826: undefined, + right___89832: undefined, + top___89838: undefined, + bottom___89844: undefined, + col___89850: undefined, + row___89856: undefined, arg0: undefined, + arg1: undefined, } } -function animation_MovementAnimation_constructor__P3340(s) { +function MovingSprite_constructor__P66725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65942,62 +67686,46 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_MovementAnimation__C3339_VT)) failedCast(r0); - r0 = (s.arg0).fields["path"] = (s.arg2); - r0 = (s.arg0).fields["nodeInterval"] = (s.arg3); - s.tmp_0 = animation_SpriteAnimation_constructor__P3333_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 2075; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_x__P2334_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 2076; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["startX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 2077; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["startY"] = (s.tmp_1); - r0 = (s.arg0).fields["elapsedTime"] = (0); + if (!checkSubtype(r0, MovingSprite__C66724_VT)) failedCast(r0); + r0 = (s.arg0).fields["sprite"] = (s.arg1); + r0 = (s.arg0).fields["cachedVx"] = (s.arg2); + r0 = (s.arg0).fields["cachedVy"] = (s.arg3); + r0 = (s.arg0).fields["dx"] = (s.arg4); + r0 = (s.arg0).fields["dy"] = (s.arg5); + r0 = (s.arg0).fields["xStep"] = (s.arg6); + r0 = (s.arg0).fields["yStep"] = (s.arg7); r0 = undefined; return leave(s, r0) default: oops() } } } -animation_MovementAnimation_constructor__P3340.info = {"start":20275,"length":244,"line":555,"column":8,"endLine":560,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","path","nodeInterval","loop"]} +MovingSprite_constructor__P66725.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function animation_MovementAnimation_constructor__P3340_mk(s) { +function MovingSprite_constructor__P66725_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_MovementAnimation_constructor__P3340, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P66725, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, } } -function animation_MovementAnimation_update__P3341(s) { +function ArcadePhysicsEngine_move__P66738(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66007,103 +67735,587 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.result___23589 = undefined; + s.dtMs___90635 = undefined; + s.dt2___90641 = undefined; + s.scene___90645 = undefined; + s.tileMap___90648 = undefined; + s.movingSprites___90651 = undefined; + s.MAX_STEP_COUNT___90682 = undefined; + s.overlapHandlers___90694 = undefined; + s.selected___90701 = undefined; + s.buffers___90702 = undefined; + s.count___90706 = undefined; + s.currMovers___90716 = undefined; + s.remainingMovers___90723 = undefined; + s.ms___90728 = undefined; + s.unnamed368___U13 = undefined; + s.unnamed369___U14 = undefined; + s.s___90730 = undefined; + s.stepX___90823 = undefined; + s.stepY___90837 = undefined; + s.bounce___90900 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_MovementAnimation__C3339_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["elapsedTime"]; - s.tmp_2 = r0; - s.tmp_4 = game_eventContext__P2982_mk(s); - s.callLocIdx = 2078; s.pc = 6; return s.tmp_4; - case 6: + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = Math_min__P64350_mk(s); + s.tmp_0.arg0 = 100; + r0 = (s.arg1 * 1000); + s.tmp_0.arg1 = r0; + s.callLocIdx = 822; s.pc = 53; return s.tmp_0; + case 53: r0 = s.retval; - r0 = r0.fields["deltaTimeMillis"]; + s.dtMs___90635 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___90635, 2); + s.dt2___90641 = (r0); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 823; s.pc = 54; return s.tmp_0; + case 54: + r0 = s.retval; + s.scene___90645 = (r0); + r0 = s.scene___90645.fields["tileMap"]; + s.tileMap___90648 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P90653); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___90635); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___90641); + s.tmp_1 = helpers_arrayMap__P64325_mk(s); + r0 = s.arg0.fields["sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 825; s.pc = 55; return s.tmp_1; + case 55: + r0 = s.retval; + s.movingSprites___90651 = (r0); + s.tmp_0 = helpers_arrayForEach__P64328_mk(s); + r0 = s.arg0.fields["sprites"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P90665; + s.callLocIdx = 829; s.pc = 56; return s.tmp_0; + case 56: + r0 = s.retval; + s.tmp_0 = sprites_SpriteMap_clear__P66651_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 830; s.pc = 57; return s.tmp_0; + case 57: + r0 = s.retval; + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P66650_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["sprites"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 831; s.pc = 58; return s.tmp_0; + case 58: + r0 = s.retval; + r0 = s.arg0.fields["maxVelocity"]; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___90635); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["elapsedTime"] = (s.tmp_1); - s.tmp_0 = animation_Path_run__P3331_mk(s); - r0 = s.arg0.fields["path"]; + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 8); + s.MAX_STEP_COUNT___90682 = (r0); + s.tmp_0 = helpers_arraySlice__P64334_mk(s); + r0 = s.scene___90645.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["nodeInterval"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["sprite"]; - s.tmp_0.arg2 = r0; - r0 = s.arg0.fields["elapsedTime"]; - s.tmp_0.arg3 = r0; - s.callLocIdx = 2079; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 836; s.pc = 59; return s.tmp_0; + case 59: + r0 = s.retval; + s.overlapHandlers___90694 = (r0); + s.selected___90701 = (0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___90651); + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.buffers___90702 = (s.tmp_0); + s.count___90706 = (0); + case 1: + r0 = (s.count___90706 < s.MAX_STEP_COUNT___90682); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = pxsim_Array__getAt(s.buffers___90702, s.selected___90701); + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 !== 0); + case 3: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 52; continue; } + r0 = pxsim_Array__getAt(s.buffers___90702, s.selected___90701); + s.currMovers___90716 = (r0); + r0 = (s.selected___90701 ^ 1); + s.selected___90701 = (r0); + r0 = pxsim_Array__getAt(s.buffers___90702, s.selected___90701); + s.remainingMovers___90723 = (r0); + s.ms___90728 = (undefined); + s.unnamed368___U13 = (s.currMovers___90716); + s.unnamed369___U14 = (0); + case 4: + s.tmp_0 = r0 = s.unnamed369___U14; + r0 = pxsim_Array__length(s.unnamed368___U13); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 49; continue; } + r0 = pxsim_Array__getAt(s.unnamed368___U13, s.unnamed369___U14); + s.ms___90728 = (r0); + r0 = s.ms___90728.fields["sprite"]; + s.s___90730 = (r0); + r0 = s.ms___90728.fields["cachedVx"]; + s.tmp_1 = r0; + r0 = s.s___90730.fields["_vx"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = s.s___90730.fields["_vx"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 == 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = (s.ms___90728).fields["dx"] = (0); + { step = 14; continue; } + case 5: + r0 = s.s___90730.fields["_vx"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + r0 = s.ms___90728.fields["cachedVx"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); case 7: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 8; continue; } + r0 = s.tmp_3; + { step = 11; continue; } + case 8: + r0 = s.s___90730.fields["_vx"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 > 0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 9; continue; } + r0 = s.tmp_4; + { step = 10; continue; } + case 9: + r0 = s.ms___90728.fields["cachedVx"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 < 0); + case 10: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 11: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 12; continue; } + s.tmp_9 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["dx"]; + s.tmp_11 = r0; + r0 = (0 - s.tmp_11); + s.tmp_10 = r0; + r0 = (s.tmp_9).fields["dx"] = (s.tmp_10); + s.tmp_0 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["xStep"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["xStep"] = (s.tmp_1); + case 12: + case 13: + case 14: + r0 = s.s___90730.fields["_vx"]; + s.tmp_0 = r0; + r0 = (s.ms___90728).fields["cachedVx"] = (s.tmp_0); + case 15: + case 16: + r0 = s.ms___90728.fields["cachedVy"]; + s.tmp_1 = r0; + r0 = s.s___90730.fields["_vy"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + r0 = s.s___90730.fields["_vy"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 == 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 17; continue; } + r0 = (s.ms___90728).fields["dy"] = (0); + { step = 26; continue; } + case 17: + r0 = s.s___90730.fields["_vy"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = s.ms___90728.fields["cachedVy"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + case 19: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 20; continue; } + r0 = s.tmp_3; + { step = 23; continue; } + case 20: + r0 = s.s___90730.fields["_vy"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 > 0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 21; continue; } + r0 = s.tmp_4; + { step = 22; continue; } + case 21: + r0 = s.ms___90728.fields["cachedVy"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 < 0); + case 22: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 23: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 24; continue; } + s.tmp_9 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["dy"]; + s.tmp_11 = r0; + r0 = (0 - s.tmp_11); + s.tmp_10 = r0; + r0 = (s.tmp_9).fields["dy"] = (s.tmp_10); + s.tmp_0 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["yStep"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["yStep"] = (s.tmp_1); + case 24: + case 25: + case 26: + r0 = s.s___90730.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.ms___90728).fields["cachedVy"] = (s.tmp_0); + case 27: + case 28: + s.tmp_2 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["xStep"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 841; s.pc = 60; return s.tmp_2; + case 60: r0 = s.retval; - s.result___23589 = (r0); - r0 = pxsim_numops_toBoolDecr(s.result___23589); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["loop"]; + s.tmp_1 = r0; + s.tmp_4 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["dx"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 842; s.pc = 61; return s.tmp_4; + case 61: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 > s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 29; continue; } + r0 = s.ms___90728.fields["dx"]; + { step = 30; continue; } + case 29: + r0 = s.ms___90728.fields["xStep"]; + case 30: + // jmp value (already in r0) + s.tmp_5 = r0; + s.stepX___90823 = (s.tmp_5); + s.tmp_2 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["yStep"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 843; s.pc = 62; return s.tmp_2; + case 62: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["dy"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 844; s.pc = 63; return s.tmp_4; + case 63: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 > s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = s.ms___90728.fields["dy"]; + { step = 32; continue; } + case 31: + r0 = s.ms___90728.fields["yStep"]; + case 32: + // jmp value (already in r0) + s.tmp_5 = r0; + s.stepY___90837 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["dx"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.stepX___90823); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); + s.tmp_0 = r0 = s.ms___90728; + r0 = s.ms___90728.fields["dy"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.stepY___90837); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); + r0 = s.s___90730.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.s___90730).fields["_lastX"] = (s.tmp_0); + r0 = s.s___90730.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.s___90730).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___90730; + r0 = s.s___90730.fields["_x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.stepX___90823); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.s___90730; + r0 = s.s___90730.fields["_y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.stepY___90837); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.s___90730.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = true; - { step = 5; continue; } - case 1: - case 2: - r0 = (s.arg0).fields["elapsedTime"] = (0); - s.tmp_0 = animation_Path_reset__P3330_mk(s); - r0 = s.arg0.fields["path"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 2080; s.pc = 8; return s.tmp_0; - case 8: + if (!r0) { step = 33; continue; } + s.tmp_4 = sprites_SpriteMap_insertAABB__P66652_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.s___90730; + s.callLocIdx = 849; s.pc = 64; return s.tmp_4; + case 64: r0 = s.retval; - s.tmp_0 = Sprite_x__P2335_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["startX"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 2081; s.pc = 9; return s.tmp_0; - case 9: + case 33: + case 34: + s.tmp_0 = r0 = s.tileMap___90648; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 35; continue; } + r0 = s.tmp_0; + { step = 36; continue; } + case 35: + r0 = s.tileMap___90648.fields["_map"]; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 36: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 37; continue; } + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P69082_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.ms___90728; + s.tmp_6.arg2 = s.tileMap___90648; + s.callLocIdx = 851; s.pc = 65; return s.tmp_6; + case 65: r0 = s.retval; - s.tmp_0 = Sprite_y__P2337_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["startY"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 2082; s.pc = 10; return s.tmp_0; - case 10: + case 37: + case 38: + r0 = s.s___90730.fields["flags"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & 32); + s.bounce___90900 = (r0); + r0 = s.s___90730.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 8); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 39; continue; } + r0 = s.tmp_0; + { step = 42; continue; } + case 39: + s.tmp_2 = r0 = s.bounce___90900; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 40; continue; } + r0 = s.tmp_2; + { step = 41; continue; } + case 40: + r0 = pxsim_numops_toBoolDecr(s.tileMap___90648); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + case 41: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 42: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 43; continue; } + s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P69081_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.ms___90728; + s.tmp_6.arg2 = s.bounce___90900; + r0 = s.scene___90645.fields["camera"]; + s.tmp_6.arg3 = r0; + s.callLocIdx = 852; s.pc = 66; return s.tmp_6; + case 66: r0 = s.retval; - case 3: - case 4: - r0 = false; - case 5: + case 43: + case 44: + s.tmp_2 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["dx"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 853; s.pc = 67; return s.tmp_2; + case 67: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___66720); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 45; continue; } + r0 = s.tmp_0; + { step = 46; continue; } + case 45: + s.tmp_4 = Fx_abs__P64384_mk(s); + r0 = s.ms___90728.fields["dy"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 854; s.pc = 68; return s.tmp_4; + case 68: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___66720); + case 46: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 47; continue; } + r0 = pxsim_Array__push(s.remainingMovers___90723, s.ms___90728); + case 47: + case 48: + r0 = (s.unnamed369___U14 + 1); + s.unnamed369___U14 = (r0); + { step = 4; continue; } + case 49: + s.unnamed368___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P69080_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.currMovers___90716; + s.tmp_0.arg2 = s.overlapHandlers___90694; + s.callLocIdx = 855; s.pc = 69; return s.tmp_0; + case 69: + r0 = s.retval; + case 50: + r0 = pxsim_Array__length(s.currMovers___90716); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 51; continue; } + r0 = pxsim_Array_.pop(s.currMovers___90716); + { step = 50; continue; } + case 51: + r0 = (s.count___90706 + 1); + s.count___90706 = (r0); + { step = 1; continue; } + case 52: + r0 = undefined; return leave(s, r0) default: oops() } } } -animation_MovementAnimation_update__P3341.info = {"start":20529,"length":470,"line":562,"column":8,"endLine":574,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} +ArcadePhysicsEngine_move__P66738.info = {"start":2822,"length":4105,"line":112,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function animation_MovementAnimation_update__P3341_mk(s) { +function ArcadePhysicsEngine_move__P66738_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_MovementAnimation_update__P3341, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P66738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - result___23589: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + dtMs___90635: undefined, + dt2___90641: undefined, + scene___90645: undefined, + tileMap___90648: undefined, + movingSprites___90651: undefined, + MAX_STEP_COUNT___90682: undefined, + overlapHandlers___90694: undefined, + selected___90701: undefined, + buffers___90702: undefined, + count___90706: undefined, + currMovers___90716: undefined, + remainingMovers___90723: undefined, + ms___90728: undefined, + unnamed368___U13: undefined, + unnamed369___U14: undefined, + s___90730: undefined, + stepX___90823: undefined, + stepY___90837: undefined, + bounce___90900: undefined, arg0: undefined, + arg1: undefined, } } -function animation_Path_run__P3331(s) { +function movingSprites_inline__P90653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66113,167 +68325,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.nodeIndex___23661 = undefined; - s.nodeTime___23667 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - r0 = (s.arg3 / s.arg1); - s.tmp_0 = r0; - r0 = pxsim.Math_.floor(s.tmp_0); - s.nodeIndex___23661 = (r0); - r0 = (s.arg3 % s.arg1); - s.nodeTime___23667 = (r0); - r0 = s.arg0.fields["startX"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.arg0; - s.tmp_4 = Sprite_x__P2334_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 2023; s.pc = 10; return s.tmp_4; - case 10: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["startX"] = (s.tmp_3); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2024; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["startY"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_x__P2334_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2025; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2026; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastY"] = (s.tmp_1); - r0 = (s.arg0).fields["commandIndex"] = (0); - s.tmp_0 = animation_Path_readNextCommand__P5429_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2027; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P69079_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.caps[1]; + s.tmp_0.arg3 = s.caps[2]; + s.callLocIdx = 824; s.pc = 1; return s.tmp_0; case 1: - case 2: - case 3: - r0 = s.arg0.fields["commandIndex"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.nodeIndex___23661); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["currentCommand"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_3 = animation_Path_runCurrentCommand__P5432_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.arg2; - s.tmp_3.arg2 = s.arg1; - s.tmp_3.arg3 = s.arg1; - s.callLocIdx = 2028; s.pc = 15; return s.tmp_3; - case 15: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_x__P2334_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2029; s.pc = 16; return s.tmp_2; - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2336_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 2030; s.pc = 17; return s.tmp_2; - case 17: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastY"] = (s.tmp_1); - case 4: + return leave(s, r0) + default: oops() +} } } +movingSprites_inline__P90653.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} + +function movingSprites_inline__P90653_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: movingSprites_inline__P90653, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_move_inline__P90665(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_1 = Sprite_vx__P66557_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 826; s.pc = 5; return s.tmp_1; case 5: - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["commandIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["commandIndex"] = (s.tmp_1); - s.tmp_0 = animation_Path_readNextCommand__P5429_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2031; s.pc = 18; return s.tmp_0; - case 18: r0 = s.retval; - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["length"]; - s.tmp_1 = r0; - r0 = (s.nodeIndex___23661 >= s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = true; - { step = 9; continue; } - case 7: - case 8: - s.tmp_2 = animation_Path_runCurrentCommand__P5432_mk(s); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = Sprite_vy__P66559_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg2; - s.tmp_2.arg2 = s.nodeTime___23667; - s.tmp_2.arg3 = s.arg1; - s.callLocIdx = 2032; s.pc = 19; return s.tmp_2; - case 19: + s.callLocIdx = 827; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; - r0 = false; - case 9: + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.tmp_4 = Sprite_clearObstacles__P66624_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 828; s.pc = 7; return s.tmp_4; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -animation_Path_run__P3331.info = {"start":4368,"length":1111,"line":150,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"run","argumentNames":["this","interval","target","runningTime"]} +ArcadePhysicsEngine_move_inline__P90665.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function animation_Path_run__P3331_mk(s) { +function ArcadePhysicsEngine_move_inline__P90665_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_run__P3331, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P90665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - nodeIndex___23661: undefined, - nodeTime___23667: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function animation_Path_runCurrentCommand__P5432(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P69081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66283,6 +68430,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___91461 = undefined; + s.offset___91476 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -66291,833 +68440,578 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - r0 = s.arg0.fields["currentCommand"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("M", s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq("m", s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq("L", s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq("l", s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq("H", s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq("h", s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq("V", s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq("v", s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq("Q", s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq("q", s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq("T", s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq("t", s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); - if (r0) { step = 17; continue; } - r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); - if (r0) { step = 18; continue; } - r0 = pxsim_pxtcore.switch_eq("S", s.tmp_0); - if (r0) { step = 19; continue; } - r0 = pxsim_pxtcore.switch_eq("s", s.tmp_0); - if (r0) { step = 22; continue; } - r0 = pxsim_pxtcore.switch_eq("Z", s.tmp_0); - if (r0) { step = 25; continue; } - r0 = pxsim_pxtcore.switch_eq("z", s.tmp_0); - if (r0) { step = 26; continue; } - r0 = s.tmp_0; - { step = 27; continue; } - case 1: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_moveTo__P5434_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["args"]; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg1.fields["sprite"]; + s.s___91461 = (r0); + r0 = s.s___91461.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); - s.tmp_0.arg4 = r0; - s.callLocIdx = 2033; s.pc = 28; return s.tmp_0; - case 28: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_4 = Sprite__C66540_v4_1_mk(s); + s.tmp_4.arg0 = s.s___91461; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C66540_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; + s.pc = 21; return s.tmp_4; + case 21: r0 = s.retval; - { step = 27; continue; } + case 1: case 2: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_moveTo__P5434_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["args"]; + s.tmp_3 = scene_Camera_isUpdated__P66996_mk(s); + s.tmp_3.arg0 = s.arg3; + s.callLocIdx = 900; s.pc = 22; return s.tmp_3; + case 22: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, 1); - s.tmp_4 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_0.arg4 = r0; - s.callLocIdx = 2034; s.pc = 29; return s.tmp_0; - case 29: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_4 = scene_Camera_update__P66997_mk(s); + s.tmp_4.arg0 = s.arg3; + s.callLocIdx = 901; s.pc = 23; return s.tmp_4; + case 23: r0 = s.retval; - { step = 27; continue; } case 3: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); - s.tmp_0.arg6 = r0; - s.callLocIdx = 2035; s.pc = 30; return s.tmp_0; - case 30: - r0 = s.retval; - { step = 27; continue; } case 4: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, 1); - s.tmp_4 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_0.arg6 = r0; - s.callLocIdx = 2036; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - { step = 27; continue; } - case 5: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg6 = r0; - s.callLocIdx = 2037; s.pc = 32; return s.tmp_0; - case 32: + s.tmp_2 = game_Hitbox_left__P66416_mk(s); + r0 = s.s___91461.fields["_hitbox"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 902; s.pc = 24; return s.tmp_2; + case 24: r0 = s.retval; - { step = 27; continue; } - case 6: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); s.tmp_1 = r0; - r0 = s.arg0.fields["lastX"]; + r0 = (s.tmp_1 / 256); + s.tmp_0 = r0; + r0 = s.arg3.fields["_offsetX"]; s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg6 = r0; - s.callLocIdx = 2038; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - { step = 27; continue; } - case 7: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg6 = r0; - s.callLocIdx = 2039; s.pc = 34; return s.tmp_0; - case 34: + r0 = (s.tmp_0 - s.tmp_3); + s.offset___91476 = (r0); + r0 = (s.offset___91476 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = Sprite_left__P66599_mk(s); + s.tmp_2 = r0 = s.s___91461; + s.tmp_1.arg0 = r0; + s.tmp_4 = Sprite_left__P66598_mk(s); + s.tmp_4.arg0 = s.tmp_2; + s.callLocIdx = 905; s.pc = 26; return s.tmp_4; + case 26: r0 = s.retval; - { step = 27; continue; } - case 8: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["lastY"]; s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg6 = r0; - s.callLocIdx = 2040; s.pc = 35; return s.tmp_0; - case 35: + r0 = (s.tmp_3 - s.offset___91476); + s.tmp_1.arg1 = r0; + s.callLocIdx = 906; s.pc = 25; return s.tmp_1; + case 25: r0 = s.retval; - { step = 27; continue; } - case 9: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - s.tmp_0 = animation_quadraticCurveTo__P5436_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 2); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, 3); - s.tmp_0.arg8 = r0; - s.callLocIdx = 2041; s.pc = 36; return s.tmp_0; - case 36: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 5; continue; } + s.tmp_0 = Sprite_vx__P66558_mk(s); + s.tmp_0.arg0 = s.s___91461; + s.tmp_2 = Sprite_vx__P66557_mk(s); + s.tmp_2.arg0 = s.s___91461; + s.callLocIdx = 907; s.pc = 28; return s.tmp_2; + case 28: r0 = s.retval; - { step = 27; continue; } - case 10: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 0); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 1); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - s.tmp_0 = animation_quadraticCurveTo__P5436_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); s.tmp_1 = r0; - r0 = s.arg0.fields["lastX"]; + r0 = (0 - s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 908; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + case 5: + case 6: + { step = 12; continue; } + case 7: + s.tmp_4 = game_Hitbox_right__P66418_mk(s); + r0 = s.s___91461.fields["_hitbox"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 909; s.pc = 29; return s.tmp_4; + case 29: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; + r0 = (s.tmp_3 / 256); + s.tmp_2 = r0; + r0 = s.arg3.fields["_offsetX"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, 1); - s.tmp_4 = r0; - r0 = s.arg0.fields["lastY"]; + r0 = (s.tmp_2 - s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_8, 2); + r0 = (s.tmp_1 - s.tmp_6); + s.tmp_0 = r0; + s.offset___91476 = (r0); + r0 = (s.tmp_0 > 0); s.tmp_7 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_9 = r0; - r0 = (s.tmp_7 + s.tmp_9); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_11 = r0; - r0 = pxsim_Array__getAt(s.tmp_11, 3); + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 10; continue; } + s.tmp_8 = Sprite_right__P66601_mk(s); + s.tmp_9 = r0 = s.s___91461; + s.tmp_8.arg0 = r0; + s.tmp_11 = Sprite_right__P66600_mk(s); + s.tmp_11.arg0 = s.tmp_9; + s.callLocIdx = 912; s.pc = 31; return s.tmp_11; + case 31: + r0 = s.retval; s.tmp_10 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_12 = r0; - r0 = (s.tmp_10 + s.tmp_12); - s.tmp_0.arg8 = r0; - s.callLocIdx = 2042; s.pc = 37; return s.tmp_0; - case 37: + r0 = (s.tmp_10 - s.offset___91476); + s.tmp_8.arg1 = r0; + s.callLocIdx = 913; s.pc = 30; return s.tmp_8; + case 30: r0 = s.retval; - { step = 27; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 8; continue; } + s.tmp_0 = Sprite_vx__P66558_mk(s); + s.tmp_0.arg0 = s.s___91461; + s.tmp_2 = Sprite_vx__P66557_mk(s); + s.tmp_2.arg0 = s.s___91461; + s.callLocIdx = 914; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (0 - s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 915; s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + case 8: + case 9: + case 10: case 11: - s.tmp_0 = animation_Path_ensureControlPoint__P5433_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2043; s.pc = 38; return s.tmp_0; - case 38: + case 12: + s.tmp_3 = game_Hitbox_top__P66417_mk(s); + r0 = s.s___91461.fields["_hitbox"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 916; s.pc = 34; return s.tmp_3; + case 34: r0 = s.retval; - s.tmp_0 = animation_quadraticCurveTo__P5436_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_2 / 256); s.tmp_1 = r0; - r0 = s.arg0.fields["lastControlX"]; + r0 = s.arg3.fields["_offsetY"]; s.tmp_4 = r0; r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); + s.tmp_0 = r0; + s.offset___91476 = (r0); + r0 = (s.tmp_0 < 0); s.tmp_5 = r0; - r0 = s.arg0.fields["lastControlY"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 15; continue; } + s.tmp_6 = Sprite_top__P66603_mk(s); + s.tmp_7 = r0 = s.s___91461; + s.tmp_6.arg0 = r0; + s.tmp_9 = Sprite_top__P66602_mk(s); + s.tmp_9.arg0 = s.tmp_7; + s.callLocIdx = 919; s.pc = 36; return s.tmp_9; + case 36: + r0 = s.retval; s.tmp_8 = r0; - r0 = (s.tmp_5 - s.tmp_8); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_9 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, 0); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_10, 1); - s.tmp_0.arg8 = r0; - s.callLocIdx = 2044; s.pc = 39; return s.tmp_0; - case 39: + r0 = (s.tmp_8 - s.offset___91476); + s.tmp_6.arg1 = r0; + s.callLocIdx = 920; s.pc = 35; return s.tmp_6; + case 35: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 13; continue; } + s.tmp_0 = Sprite_vy__P66560_mk(s); + s.tmp_0.arg0 = s.s___91461; + s.tmp_2 = Sprite_vy__P66559_mk(s); + s.tmp_2.arg0 = s.s___91461; + s.callLocIdx = 921; s.pc = 38; return s.tmp_2; + case 38: r0 = s.retval; - r0 = (s.arg2 === s.arg3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.arg0.fields["lastX"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["lastControlX"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lastY"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastControlY"]; - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - case 12: + r0 = (0 - s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 922; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; case 13: - { step = 27; continue; } case 14: - s.tmp_0 = animation_Path_ensureControlPoint__P5433_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2045; s.pc = 40; return s.tmp_0; - case 40: + { step = 20; continue; } + case 15: + s.tmp_4 = game_Hitbox_bottom__P66419_mk(s); + r0 = s.s___91461.fields["_hitbox"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 923; s.pc = 39; return s.tmp_4; + case 39: r0 = s.retval; - s.tmp_0 = animation_quadraticCurveTo__P5436_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_3 / 256); + s.tmp_2 = r0; + r0 = s.arg3.fields["_offsetY"]; + s.tmp_5 = r0; + r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = s.arg0.fields["lastControlX"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; + r0 = pxsim_ImageMethods.height(globals.screen___66232); s.tmp_6 = r0; - r0 = s.arg0.fields["lastY"]; + r0 = (s.tmp_1 - s.tmp_6); + s.tmp_0 = r0; + s.offset___91476 = (r0); + r0 = (s.tmp_0 > 0); s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = s.arg0.fields["lastControlY"]; - s.tmp_8 = r0; - r0 = (s.tmp_5 - s.tmp_8); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_10, 0); - s.tmp_9 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_11 = r0; - r0 = (s.tmp_9 + s.tmp_11); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_13 = r0; - r0 = pxsim_Array__getAt(s.tmp_13, 1); - s.tmp_12 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_14 = r0; - r0 = (s.tmp_12 + s.tmp_14); - s.tmp_0.arg8 = r0; - s.callLocIdx = 2046; s.pc = 41; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 18; continue; } + s.tmp_8 = Sprite_bottom__P66605_mk(s); + s.tmp_9 = r0 = s.s___91461; + s.tmp_8.arg0 = r0; + s.tmp_11 = Sprite_bottom__P66604_mk(s); + s.tmp_11.arg0 = s.tmp_9; + s.callLocIdx = 926; s.pc = 41; return s.tmp_11; case 41: r0 = s.retval; - r0 = (s.arg2 === s.arg3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.arg0.fields["lastX"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["lastControlX"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lastY"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastControlY"]; - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - case 15: - case 16: - { step = 27; continue; } - case 17: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - s.tmp_0 = animation_cubicCurveTo__P5437_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 - s.offset___91476); + s.tmp_8.arg1 = r0; + s.callLocIdx = 927; s.pc = 40; return s.tmp_8; + case 40: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 16; continue; } + s.tmp_0 = Sprite_vy__P66560_mk(s); + s.tmp_0.arg0 = s.s___91461; + s.tmp_2 = Sprite_vy__P66559_mk(s); + s.tmp_2.arg0 = s.s___91461; + s.callLocIdx = 928; s.pc = 43; return s.tmp_2; + case 43: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, 0); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 2); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, 3); - s.tmp_0.arg8 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, 4); - s.tmp_0.arg9 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, 5); - s.tmp_0.arg10 = r0; - s.callLocIdx = 2047; s.pc = 42; return s.tmp_0; + r0 = (0 - s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 929; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - { step = 27; continue; } + case 16: + case 17: case 18: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 2); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 3); - s.tmp_2 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - s.tmp_0 = animation_cubicCurveTo__P5437_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["args"]; + case 19: + case 20: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_screenEdgeCollisions__P69081.info = {"start":12018,"length":905,"line":355,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} + +function ArcadePhysicsEngine_screenEdgeCollisions__P69081_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P69081, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + s___91461: undefined, + offset___91476: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function scene_Camera_isUpdated__P66996(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, 1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 1: + s.tmp_5 = Sprite_x__P66553_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 1326; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; s.tmp_4 = r0; - r0 = s.arg0.fields["lastY"]; + r0 = s.arg0.fields["_lastUpdatedSpriteX"]; s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_8, 2); + r0 = (s.tmp_4 === s.tmp_6); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 2; continue; } + r0 = s.tmp_3; + { step = 3; continue; } + case 2: + s.tmp_8 = Sprite_y__P66555_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_8.arg0 = r0; + s.callLocIdx = 1327; s.pc = 6; return s.tmp_8; + case 6: + r0 = s.retval; s.tmp_7 = r0; - r0 = s.arg0.fields["lastX"]; + r0 = s.arg0.fields["_lastUpdatedSpriteY"]; s.tmp_9 = r0; - r0 = (s.tmp_7 + s.tmp_9); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_11 = r0; - r0 = pxsim_Array__getAt(s.tmp_11, 3); + r0 = (s.tmp_7 === s.tmp_9); + case 3: + // jmp value (already in r0) s.tmp_10 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_12 = r0; - r0 = (s.tmp_10 + s.tmp_12); - s.tmp_0.arg8 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_14 = r0; - r0 = pxsim_Array__getAt(s.tmp_14, 4); - s.tmp_13 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_15 = r0; - r0 = (s.tmp_13 + s.tmp_15); - s.tmp_0.arg9 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_17 = r0; - r0 = pxsim_Array__getAt(s.tmp_17, 5); - s.tmp_16 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_18 = r0; - r0 = (s.tmp_16 + s.tmp_18); - s.tmp_0.arg10 = r0; - s.callLocIdx = 2048; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - { step = 27; continue; } - case 19: - s.tmp_0 = animation_Path_ensureControlPoint__P5433_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2049; s.pc = 44; return s.tmp_0; - case 44: - r0 = s.retval; - s.tmp_0 = animation_cubicCurveTo__P5437_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; + r0 = s.tmp_10; + case 4: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + return leave(s, r0) + default: oops() +} } } +scene_Camera_isUpdated__P66996.info = {"start":2403,"length":150,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"isUpdated","argumentNames":["this"]} + +function scene_Camera_isUpdated__P66996_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_isUpdated__P66996, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_spriteCollisions__P69080(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ms___90957 = undefined; + s.unnamed370___U1 = undefined; + s.unnamed371___U2 = undefined; + s.sprite___90959 = undefined; + s.overSprites___90966 = undefined; + s.overlapper___90974 = undefined; + s.unnamed372___U6 = undefined; + s.unnamed373___U7 = undefined; + s.thisKind___90980 = undefined; + s.otherKind___90984 = undefined; + s.higher___90997 = undefined; + s.lower___91006 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["lastControlX"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = s.arg0.fields["lastControlY"]; - s.tmp_8 = r0; - r0 = (s.tmp_5 - s.tmp_8); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_9 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, 0); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_10, 1); - s.tmp_0.arg8 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_11 = r0; - r0 = pxsim_Array__getAt(s.tmp_11, 2); - s.tmp_0.arg9 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_12 = r0; - r0 = pxsim_Array__getAt(s.tmp_12, 3); - s.tmp_0.arg10 = r0; - s.callLocIdx = 2050; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - r0 = (s.arg2 === s.arg3); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 21; continue; } + case 1: + case 2: + s.ms___90957 = (undefined); + s.unnamed370___U1 = (s.arg1); + s.unnamed371___U2 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed371___U2; + r0 = pxsim_Array__length(s.unnamed370___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 0); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, 1); + r0 = pxsim_Array__getAt(s.unnamed370___U1, s.unnamed371___U2); + s.ms___90957 = (r0); + r0 = s.ms___90957.fields["sprite"]; + s.sprite___90959 = (r0); + r0 = s.sprite___90959.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - case 20: - case 21: - { step = 27; continue; } + r0 = (s.tmp_1 & 4610); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + { step = 19; continue; } + case 4: + case 5: + s.tmp_2 = sprites_SpriteMap_overlaps__P66648_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_2.arg0 = r0; + r0 = s.ms___90957.fields["sprite"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 893; s.pc = 22; return s.tmp_2; case 22: - s.tmp_0 = animation_Path_ensureControlPoint__P5433_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 2051; s.pc = 46; return s.tmp_0; - case 46: r0 = s.retval; - s.tmp_0 = animation_cubicCurveTo__P5437_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["lastX"]; + s.overSprites___90966 = (r0); + s.overlapper___90974 = (undefined); + s.unnamed372___U6 = (s.overSprites___90966); + s.unnamed373___U7 = (0); + case 6: + s.tmp_0 = r0 = s.unnamed373___U7; + r0 = pxsim_Array__length(s.unnamed372___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 18; continue; } + r0 = pxsim_Array__getAt(s.unnamed372___U6, s.unnamed373___U7); + s.overlapper___90974 = (r0); + r0 = s.overlapper___90974.fields["flags"]; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_3 & 4610); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 7; continue; } + { step = 17; continue; } + case 7: + case 8: + r0 = s.sprite___90959.fields["_kind"]; + s.thisKind___90980 = (r0); + r0 = s.overlapper___90974.fields["_kind"]; + s.otherKind___90984 = (r0); + r0 = s.sprite___90959.fields["_kindsOverlappedWith"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___90984, undefined); s.tmp_1 = r0; - r0 = s.arg0.fields["lastControlX"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = s.arg0.fields["lastControlY"]; - s.tmp_8 = r0; - r0 = (s.tmp_5 - s.tmp_8); - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_10, 0); - s.tmp_9 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_11 = r0; - r0 = (s.tmp_9 + s.tmp_11); - s.tmp_0.arg7 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_13 = r0; - r0 = pxsim_Array__getAt(s.tmp_13, 1); - s.tmp_12 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_14 = r0; - r0 = (s.tmp_12 + s.tmp_14); - s.tmp_0.arg8 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_16 = r0; - r0 = pxsim_Array__getAt(s.tmp_16, 2); - s.tmp_15 = r0; - r0 = s.arg0.fields["lastX"]; - s.tmp_17 = r0; - r0 = (s.tmp_15 + s.tmp_17); - s.tmp_0.arg9 = r0; - r0 = s.arg0.fields["args"]; - s.tmp_19 = r0; - r0 = pxsim_Array__getAt(s.tmp_19, 3); - s.tmp_18 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_20 = r0; - r0 = (s.tmp_18 + s.tmp_20); - s.tmp_0.arg10 = r0; - s.callLocIdx = 2052; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - r0 = (s.arg2 === s.arg3); + r0 = (s.tmp_1 === -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; + if (!r0) { step = 9; continue; } + { step = 17; continue; } + case 9: + case 10: + r0 = s.sprite___90959.fields["id"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, 0); - s.tmp_3 = r0; - r0 = s.arg0.fields["lastX"]; + r0 = s.overlapper___90974.fields["id"]; s.tmp_5 = r0; - r0 = (s.tmp_3 + s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["lastControlX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["args"]; + r0 = (s.tmp_4 > s.tmp_5); s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 11; continue; } + r0 = s.sprite___90959; + { step = 12; continue; } + case 11: + r0 = s.overlapper___90974; + case 12: + // jmp value (already in r0) + s.tmp_6 = r0; + s.higher___90997 = (s.tmp_6); + r0 = (s.higher___90997 === s.sprite___90959); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = s.overlapper___90974; + { step = 14; continue; } + case 13: + r0 = s.sprite___90959; + case 14: + // jmp value (already in r0) + s.tmp_1 = r0; + s.lower___91006 = (s.tmp_1); + r0 = s.higher___90997.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + r0 = s.lower___91006.fields["id"]; + s.tmp_3 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastControlY"] = (s.tmp_1); - case 23: + r0 = (s.tmp_1 === -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P91026); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___90980); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___90984); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P91050); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___90997); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___91006); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___90959); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___90974); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___90980); + s.tmp_6 = helpers_arrayForEach__P64328_mk(s); + s.tmp_7 = helpers_arrayFilter__P64329_mk(s); + s.tmp_7.arg0 = s.arg2; + s.tmp_7.arg1 = s.tmp_4; + s.callLocIdx = 896; s.pc = 24; return s.tmp_7; case 24: - { step = 27; continue; } - case 25: - case 26: - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - s.tmp_0 = animation_lineTo__P5435_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - r0 = s.arg0.fields["lastX"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["lastY"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["startX"]; - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["startY"]; - s.tmp_0.arg6 = r0; - s.callLocIdx = 2053; s.pc = 48; return s.tmp_0; - case 48: r0 = s.retval; - case 27: + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = s.tmp_5; + s.callLocIdx = 898; s.pc = 23; return s.tmp_6; + case 23: + r0 = s.retval; + case 15: + case 16: + case 17: + r0 = (s.unnamed373___U7 + 1); + s.unnamed373___U7 = (r0); + { step = 6; continue; } + case 18: + s.unnamed372___U6 = (undefined); + case 19: + r0 = (s.unnamed371___U2 + 1); + s.unnamed371___U2 = (r0); + { step = 3; continue; } + case 20: + s.unnamed370___U1 = (undefined); + case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -animation_Path_runCurrentCommand__P5432.info = {"start":5489,"length":10309,"line":181,"column":8,"endLine":438,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"runCurrentCommand","argumentNames":["this","target","nodeTime","intervalTime"]} +ArcadePhysicsEngine_spriteCollisions__P69080.info = {"start":9744,"length":2268,"line":309,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function animation_Path_runCurrentCommand__P5432_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P69080_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_runCurrentCommand__P5432, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P69080, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67127,30 +69021,28 @@ function animation_Path_runCurrentCommand__P5432_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, + ms___90957: undefined, + unnamed370___U1: undefined, + unnamed371___U2: undefined, + sprite___90959: undefined, + overSprites___90966: undefined, + overlapper___90974: undefined, + unnamed372___U6: undefined, + unnamed373___U7: undefined, + thisKind___90980: undefined, + otherKind___90984: undefined, + higher___90997: undefined, + lower___91006: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function animation_cubicCurveTo__P5437(s) { +function forEach_inline__P91026(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67160,97 +69052,206 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.progress___24305 = undefined; - s.diff___24309 = undefined; - s.a___24313 = undefined; - s.b___24319 = undefined; - s.c___24327 = undefined; - s.d___24335 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); - s.arg9 = (s.lambdaArgs[9]); - s.arg10 = (s.lambdaArgs[10]); s.lambdaArgs = null; } - r0 = (s.arg1 / s.arg2); - s.progress___24305 = (r0); - r0 = (1 - s.progress___24305); - s.diff___24309 = (r0); - r0 = (s.diff___24309 * s.diff___24309); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.diff___24309); - s.a___24313 = (r0); - r0 = (3 * s.diff___24309); + r0 = s.arg0.fields["kind"]; s.tmp_1 = r0; - r0 = (s.tmp_1 * s.diff___24309); + r0 = (s.tmp_1 === s.caps[0]); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.progress___24305); - s.b___24319 = (r0); - r0 = (3 * s.diff___24309); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.progress___24305); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["otherKind"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 === s.caps[1]); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 3: + r0 = s.arg0.fields["kind"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 === s.caps[1]); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 4; continue; } + r0 = s.tmp_4; + { step = 5; continue; } + case 4: + r0 = s.arg0.fields["otherKind"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 === s.caps[0]); + case 5: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 6: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = s.tmp_8; + return leave(s, r0) + default: oops() +} } } +forEach_inline__P91026.info = {"start":11113,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} + +function forEach_inline__P91026_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: forEach_inline__P91026, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_spriteCollisions_inline__P91050(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.caps[0].fields["_overlappers"]; s.tmp_0 = r0; - r0 = (s.tmp_0 * s.progress___24305); - s.c___24327 = (r0); - r0 = (s.progress___24305 * s.progress___24305); + r0 = s.caps[1].fields["id"]; + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P91060); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.progress___24305); - s.d___24335 = (r0); - s.tmp_0 = Sprite_setPosition__P2389_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.a___24313 * s.arg3); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[2]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.caps[3]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.caps[4]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.caps[0]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.caps[1]); + r0 = pxsim.control.runInParallel(s.tmp_0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_spriteCollisions_inline__P91050.info = {"start":11310,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} + +function ArcadePhysicsEngine_spriteCollisions_inline__P91050_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P91050, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_spriteCollisions_inline__P91060(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = s.caps[0].fields["flags"]; s.tmp_4 = r0; - r0 = (s.b___24319 * s.arg5); + r0 = s.caps[1].fields["flags"]; s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); + r0 = (s.tmp_4 | s.tmp_5); s.tmp_3 = r0; - r0 = (s.c___24327 * s.arg7); - s.tmp_6 = r0; - r0 = (s.tmp_3 + s.tmp_6); + r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; - r0 = (s.d___24335 * s.arg9); - s.tmp_7 = r0; - r0 = (s.tmp_2 + s.tmp_7); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.Math_.round(s.tmp_1); - s.tmp_0.arg1 = r0; - r0 = (s.a___24313 * s.arg4); - s.tmp_11 = r0; - r0 = (s.b___24319 * s.arg6); - s.tmp_12 = r0; - r0 = (s.tmp_11 + s.tmp_12); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.caps[2].fields["kind"]; + s.tmp_7 = r0; + r0 = (s.caps[3] === s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 1; continue; } + r0 = s.caps[0]; + { step = 2; continue; } + case 1: + r0 = s.caps[1]; + case 2: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = s.caps[2].fields["kind"]; s.tmp_10 = r0; - r0 = (s.c___24327 * s.arg8); - s.tmp_13 = r0; - r0 = (s.tmp_10 + s.tmp_13); + r0 = (s.caps[3] === s.tmp_10); s.tmp_9 = r0; - r0 = (s.d___24335 * s.arg10); - s.tmp_14 = r0; - r0 = (s.tmp_9 + s.tmp_14); - s.tmp_8 = r0; - r0 = pxsim.Math_.round(s.tmp_8); - s.tmp_0.arg2 = r0; - s.callLocIdx = 2057; s.pc = 1; return s.tmp_0; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 3; continue; } + r0 = s.caps[1]; + { step = 4; continue; } + case 3: + r0 = s.caps[0]; + case 4: + // jmp value (already in r0) + s.tmp_11 = r0; + s.tmp_12 = if_handler_3_mk(s); + s.tmp_12.arg0 = s.caps[2]; + s.tmp_12.arg1 = s.tmp_8; + s.tmp_12.arg2 = s.tmp_11; + if (!s.tmp_12.arg0.vtable.iface) { + setupLambda(s.tmp_12, pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "handler"), 3); + s.callLocIdx = 897; s.pc = 7; return s.tmp_12; + } else { + s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["handler"]; + if (s.tmp_12.fn == null) { setupLambda(s.tmp_12, s.tmp_12.arg0.fields["handler"], 3); s.callLocIdx = 897; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 897; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 897; s.pc = 7; return s.tmp_12; } + } + case 7: r0 = s.retval; + case 5: + case 6: + r0 = s.caps[4].fields["_overlappers"]; + s.tmp_0 = r0; + r0 = s.caps[5].fields["id"]; + s.tmp_1 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -animation_cubicCurveTo__P5437.info = {"start":16933,"length":599,"line":469,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"cubicCurveTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1","x2","y2","x3","y3"]} +ArcadePhysicsEngine_spriteCollisions_inline__P91060.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function animation_cubicCurveTo__P5437_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P91060_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_cubicCurveTo__P5437, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P91060, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67265,32 +69266,13 @@ function animation_cubicCurveTo__P5437_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - progress___24305: undefined, - diff___24309: undefined, - a___24313: undefined, - b___24319: undefined, - c___24327: undefined, - d___24335: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, - arg9: undefined, - arg10: undefined, } } -function animation_quadraticCurveTo__P5436(s) { +function sprites_SpriteMap_overlaps__P66648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67300,107 +69282,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.progress___24391 = undefined; - s.diff___24395 = undefined; - s.a___24399 = undefined; - s.b___24403 = undefined; - s.c___24409 = undefined; + s.n___91094 = undefined; + s.o___91098 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); s.lambdaArgs = null; } - r0 = (s.arg1 / s.arg2); - s.progress___24391 = (r0); - r0 = (1 - s.progress___24391); - s.diff___24395 = (r0); - r0 = (s.diff___24395 * s.diff___24395); - s.a___24399 = (r0); - r0 = (2 * s.diff___24395); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.progress___24391); - s.b___24403 = (r0); - r0 = (s.progress___24391 * s.progress___24391); - s.c___24409 = (r0); - s.tmp_0 = Sprite_setPosition__P2389_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P66647_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.a___24399 * s.arg3); - s.tmp_3 = r0; - r0 = (s.b___24403 * s.arg5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = (s.c___24409 * s.arg7); - s.tmp_5 = r0; - r0 = (s.tmp_2 + s.tmp_5); - s.tmp_1 = r0; - r0 = pxsim.Math_.round(s.tmp_1); - s.tmp_0.arg1 = r0; - r0 = (s.a___24399 * s.arg4); - s.tmp_8 = r0; - r0 = (s.b___24403 * s.arg6); - s.tmp_9 = r0; - r0 = (s.tmp_8 + s.tmp_9); - s.tmp_7 = r0; - r0 = (s.c___24409 * s.arg8); - s.tmp_10 = r0; - r0 = (s.tmp_7 + s.tmp_10); - s.tmp_6 = r0; - r0 = pxsim.Math_.round(s.tmp_6); - s.tmp_0.arg2 = r0; - s.callLocIdx = 2056; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 768; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.n___91094 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P91100); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayFilter__P64329_mk(s); + s.tmp_1.arg0 = s.n___91094; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 770; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.o___91098 = (r0); + r0 = s.o___91098; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_overlaps__P66648.info = {"start":923,"length":189,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"overlaps","argumentNames":["this","sprite"]} + +function sprites_SpriteMap_overlaps__P66648_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_overlaps__P66648, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + n___91094: undefined, + o___91098: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function o_inline__P91100(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Sprite_overlapsWith__P66619_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 769; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -animation_quadraticCurveTo__P5436.info = {"start":16441,"length":486,"line":456,"column":4,"endLine":467,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"quadraticCurveTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1","x2","y2"]} +o_inline__P91100.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} -function animation_quadraticCurveTo__P5436_mk(s) { +function o_inline__P91100_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_quadraticCurveTo__P5436, depth: s.depth + 1, + parent: s, fn: o_inline__P91100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - progress___24391: undefined, - diff___24395: undefined, - a___24399: undefined, - b___24403: undefined, - c___24409: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, } } -function animation_lineTo__P5435(s) { +function sprites_SpriteMap_neighbors__P66647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67410,75 +69379,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.n___91351 = undefined; + s.layer___91353 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_setPosition__P2389_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.n___91351 = (r0); + r0 = s.arg1.fields["layer"]; + s.layer___91353 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P69044_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.arg5 - s.arg3); - s.tmp_4 = r0; - r0 = (s.tmp_4 / s.arg2); - s.tmp_3 = r0; - r0 = (s.tmp_3 * s.arg1); - s.tmp_2 = r0; - r0 = pxsim.Math_.round(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.arg3); + s.tmp_1 = Sprite_left__P66598_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 756; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; s.tmp_0.arg1 = r0; - r0 = (s.arg6 - s.arg4); - s.tmp_8 = r0; - r0 = (s.tmp_8 / s.arg2); - s.tmp_7 = r0; - r0 = (s.tmp_7 * s.arg1); - s.tmp_6 = r0; - r0 = pxsim.Math_.round(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg4); + s.tmp_2 = Sprite_top__P66602_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 757; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; s.tmp_0.arg2 = r0; - s.callLocIdx = 2055; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___91353; + s.tmp_0.arg4 = s.n___91351; + s.callLocIdx = 758; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P69044_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = Sprite_left__P66598_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 759; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_bottom__P66604_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 760; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.layer___91353; + s.tmp_0.arg4 = s.n___91351; + s.callLocIdx = 761; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P69044_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = Sprite_right__P66600_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 762; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_top__P66602_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 763; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.layer___91353; + s.tmp_0.arg4 = s.n___91351; + s.callLocIdx = 764; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P69044_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = Sprite_right__P66600_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 765; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_bottom__P66604_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 766; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.layer___91353; + s.tmp_0.arg4 = s.n___91351; + s.callLocIdx = 767; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + r0 = pxsim_Array_.removeElement(s.n___91351, s.arg1); + r0 = s.n___91351; return leave(s, r0) default: oops() } } } -animation_lineTo__P5435.info = {"start":16146,"length":289,"line":449,"column":4,"endLine":454,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"lineTo","argumentNames":["target","nodeTime","interval","x0","y0","x1","y1"]} +sprites_SpriteMap_neighbors__P66647.info = {"start":376,"length":442,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"neighbors","argumentNames":["this","sprite"]} -function animation_lineTo__P5435_mk(s) { +function sprites_SpriteMap_neighbors__P66647_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_lineTo__P5435, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P66647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + n___91351: undefined, + layer___91353: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function animation_moveTo__P5434(s) { +function sprites_SpriteMap_mergeAtKey__P69044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67488,6 +69503,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.k___91394 = undefined; + s.bucket___91399 = undefined; + s.sprite___91406 = undefined; + s.unnamed366___U3 = undefined; + s.unnamed367___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -67496,32 +69516,82 @@ switch (step) { s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = (s.arg1 >= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_setPosition__P2389_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg3; - s.tmp_1.arg2 = s.arg4; - s.callLocIdx = 2054; s.pc = 3; return s.tmp_1; - case 3: + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P69042_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 794; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; + s.k___91394 = (r0); + r0 = s.arg0.fields["buckets"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___91394); + s.bucket___91399 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___91399); + if (!r0) { step = 7; continue; } + s.sprite___91406 = (undefined); + s.unnamed366___U3 = (s.bucket___91399); + s.unnamed367___U4 = (0); case 1: + s.tmp_0 = r0 = s.unnamed367___U4; + r0 = pxsim_Array__length(s.unnamed366___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed366___U3, s.unnamed367___U4); + s.sprite___91406 = (r0); + r0 = s.sprite___91406.fields["layer"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & s.arg3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } case 2: + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___91406, undefined); + s.tmp_4 = r0; + r0 = (s.tmp_4 < 0); + case 3: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__push(s.arg4, s.sprite___91406); + case 4: + case 5: + r0 = (s.unnamed367___U4 + 1); + s.unnamed367___U4 = (r0); + { step = 1; continue; } + case 6: + s.unnamed366___U3 = (undefined); + case 7: + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -animation_moveTo__P5434.info = {"start":15983,"length":157,"line":445,"column":4,"endLine":447,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"moveTo","argumentNames":["target","nodeTime","interval","x","y"]} +sprites_SpriteMap_mergeAtKey__P69044.info = {"start":3715,"length":384,"line":101,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"mergeAtKey","argumentNames":["this","x","y","layer","n"]} -function animation_moveTo__P5434_mk(s) { +function sprites_SpriteMap_mergeAtKey__P69044_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_moveTo__P5434, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P69044, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + k___91394: undefined, + bucket___91399: undefined, + sprite___91406: undefined, + unnamed366___U3: undefined, + unnamed367___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -67533,7 +69603,7 @@ function animation_moveTo__P5434_mk(s) { -function animation_Path_ensureControlPoint__P5433(s) { +function sprites_SpriteMap_key__P69042(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67543,42 +69613,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.xi___91427 = undefined; + s.yi___91439 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - r0 = s.arg0.fields["lastControlX"]; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P64346_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg0.fields["columnCount"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["cellWidth"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore.throwValue("Invalid path command. S/s and T/t must follow either Q/q or C/c"); + r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); + s.tmp_0.arg2 = r0; + s.callLocIdx = 782; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.xi___91427 = (r0); + s.tmp_0 = Math_clamp__P64346_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg0.fields["rowCount"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["cellHeight"]; + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); + s.tmp_0.arg2 = r0; + s.callLocIdx = 783; s.pc = 2; return s.tmp_0; case 2: - r0 = undefined; + r0 = s.retval; + s.yi___91439 = (r0); + s.tmp_0 = r0 = s.xi___91427; + r0 = s.arg0.fields["columnCount"]; + s.tmp_2 = r0; + r0 = (s.yi___91439 * s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -animation_Path_ensureControlPoint__P5433.info = {"start":15808,"length":163,"line":440,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"ensureControlPoint","argumentNames":["this"]} +sprites_SpriteMap_key__P69042.info = {"start":2592,"length":270,"line":76,"column":8,"endLine":80,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"key","argumentNames":["this","x","y"]} -function animation_Path_ensureControlPoint__P5433_mk(s) { +function sprites_SpriteMap_key__P69042_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_ensureControlPoint__P5433, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P69042, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + xi___91427: undefined, + yi___91439: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function animation_Path_readNextCommand__P5429(s) { +function Sprite_overlapsWith__P66619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67588,176 +69687,330 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.numArgs___24508 = undefined; - s.i___24527 = undefined; - s.arg___24542 = undefined; - s.unnamed122___U3 = undefined; - s.unnamed123___U4 = undefined; + s.A___91164 = undefined; + s.B___91165 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - r0 = s.arg0.fields["strIndex"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["path"]; - s.tmp_3 = r0; - r0 = pxsim_String_.length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["currentCommand"] = (undefined); - { step = 13; continue; } + r0 = false; + { step = 23; continue; } case 1: case 2: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = animation_Path_readNextToken__P5430_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 2018; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["currentCommand"] = (s.tmp_1); - r0 = s.arg0.fields["currentCommand"]; + r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 & 4610); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - { step = 13; continue; } + r0 = false; + { step = 23; continue; } case 3: case 4: - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["args"] = (s.tmp_4); - s.tmp_0 = animation_Path_commandToArgCount__P5431_mk(s); - r0 = s.arg0.fields["currentCommand"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 2019; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.numArgs___24508 = (r0); - r0 = (s.numArgs___24508 === -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.arg0.fields["currentCommand"]; - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 16: - r0 = s.retval; + r0 = s.arg1.fields["flags"]; s.tmp_4 = r0; - r0 = pxsim_String__concat("Unknown path command '", s.tmp_4); + r0 = (s.tmp_4 & 4610); s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 17: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "'"); - s.tmp_1 = r0; - r0 = pxsim_pxtcore.throwValue(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = false; + { step = 23; continue; } case 5: case 6: - s.i___24527 = (0); - case 7: - r0 = (s.i___24527 < s.numArgs___24508); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = s.arg0.fields["args"]; - s.tmp_1 = r0; - s.tmp_4 = animation_Path_readNextToken__P5430_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 2020; s.pc = 18; return s.tmp_4; - case 18: + s.tmp_8 = game_Hitbox_overlapsWith__P66423_mk(s); + r0 = s.arg1.fields["_hitbox"]; + s.tmp_8.arg0 = r0; + r0 = s.arg0.fields["_hitbox"]; + s.tmp_8.arg1 = r0; + s.callLocIdx = 665; s.pc = 24; return s.tmp_8; + case 24: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.toNumber(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___24527 + 1); - s.i___24527 = (r0); - { step = 7; continue; } + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 7; continue; } + r0 = false; + { step = 23; continue; } + case 7: case 8: - s.arg___24542 = (undefined); - r0 = s.arg0.fields["args"]; - s.unnamed122___U3 = (r0); - s.unnamed123___U4 = (0); + s.tmp_12 = Sprite_isScaled__P69035_mk(s); + s.tmp_12.arg0 = s.arg0; + s.callLocIdx = 666; s.pc = 25; return s.tmp_12; + case 25: + r0 = s.retval; + s.tmp_11 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_11); + s.tmp_10 = r0; + r0 = pxsim_Boolean__bang(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (r0) { step = 9; continue; } + r0 = s.tmp_9; + { step = 10; continue; } case 9: - s.tmp_0 = r0 = s.unnamed123___U4; - r0 = pxsim_Array__length(s.unnamed122___U3); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + s.tmp_15 = Sprite_isScaled__P69035_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 667; s.pc = 26; return s.tmp_15; + case 26: + r0 = s.retval; + s.tmp_14 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_14); + s.tmp_13 = r0; + r0 = pxsim_Boolean__bang(s.tmp_13); + case 10: + // jmp value (already in r0) + s.tmp_16 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_16); + if (!r0) { step = 11; continue; } + r0 = s.arg1.fields["_image"]; + s.tmp_17 = r0; + r0 = s.arg0.fields["_image"]; + s.tmp_18 = r0; + s.tmp_21 = Sprite_left__P66598_mk(s); + s.tmp_21.arg0 = s.arg0; + s.callLocIdx = 668; s.pc = 27; return s.tmp_21; + case 27: + r0 = s.retval; + s.tmp_20 = r0; + s.tmp_23 = Sprite_left__P66598_mk(s); + s.tmp_23.arg0 = s.arg1; + s.callLocIdx = 669; s.pc = 28; return s.tmp_23; + case 28: + r0 = s.retval; + s.tmp_22 = r0; + r0 = (s.tmp_20 - s.tmp_22); + s.tmp_19 = r0; + s.tmp_26 = Sprite_top__P66602_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 670; s.pc = 29; return s.tmp_26; + case 29: + r0 = s.retval; + s.tmp_25 = r0; + s.tmp_28 = Sprite_top__P66602_mk(s); + s.tmp_28.arg0 = s.arg1; + s.callLocIdx = 671; s.pc = 30; return s.tmp_28; + case 30: + r0 = s.retval; + s.tmp_27 = r0; + r0 = (s.tmp_25 - s.tmp_27); + s.tmp_24 = r0; + r0 = pxsim_ImageMethods.overlapsWith(s.tmp_17, s.tmp_18, s.tmp_19, s.tmp_24); + { step = 23; continue; } + { step = 22; continue; } + case 11: + s.tmp_31 = Sprite_sx__P66569_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 672; s.pc = 31; return s.tmp_31; + case 31: + r0 = s.retval; + s.tmp_30 = r0; + r0 = (s.tmp_30 == 0); + s.tmp_29 = r0; + r0 = pxsim_numops_toBool(s.tmp_29); if (!r0) { step = 12; continue; } - r0 = pxsim_Array__getAt(s.unnamed122___U3, s.unnamed123___U4); - s.arg___24542 = (r0); - s.tmp_3 = Number_isNaN__P95_mk(s); - s.tmp_3.arg0 = s.arg___24542; - s.callLocIdx = 2021; s.pc = 19; return s.tmp_3; + r0 = s.tmp_29; + { step = 13; continue; } + case 12: + s.tmp_33 = Sprite_sy__P66571_mk(s); + s.tmp_33.arg0 = s.arg0; + s.callLocIdx = 673; s.pc = 32; return s.tmp_33; + case 32: + r0 = s.retval; + s.tmp_32 = r0; + r0 = (s.tmp_32 == 0); + case 13: + // jmp value (already in r0) + s.tmp_34 = r0; + r0 = pxsim_numops_toBool(s.tmp_34); + if (!r0) { step = 14; continue; } + r0 = s.tmp_34; + { step = 15; continue; } + case 14: + s.tmp_36 = Sprite_sx__P66569_mk(s); + s.tmp_36.arg0 = s.arg1; + s.callLocIdx = 674; s.pc = 33; return s.tmp_36; + case 33: + r0 = s.retval; + s.tmp_35 = r0; + r0 = (s.tmp_35 == 0); + case 15: + // jmp value (already in r0) + s.tmp_37 = r0; + r0 = pxsim_numops_toBool(s.tmp_37); + if (!r0) { step = 16; continue; } + r0 = s.tmp_37; + { step = 17; continue; } + case 16: + s.tmp_39 = Sprite_sy__P66571_mk(s); + s.tmp_39.arg0 = s.arg1; + s.callLocIdx = 675; s.pc = 34; return s.tmp_39; + case 34: + r0 = s.retval; + s.tmp_38 = r0; + r0 = (s.tmp_38 == 0); + case 17: + // jmp value (already in r0) + s.tmp_40 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_40); + if (!r0) { step = 18; continue; } + r0 = false; + { step = 23; continue; } + case 18: case 19: + s.tmp_44 = Sprite_sx__P66569_mk(s); + s.tmp_44.arg0 = s.arg0; + s.callLocIdx = 676; s.pc = 35; return s.tmp_44; + case 35: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 10; continue; } - r0 = s.arg0.fields["currentCommand"]; - s.tmp_8 = r0; - if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.tmp_8); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_8) + ""; } + s.tmp_43 = r0; + s.tmp_46 = Sprite_sy__P66571_mk(s); + s.tmp_46.arg0 = s.arg0; + s.callLocIdx = 677; s.pc = 36; return s.tmp_46; + case 36: + r0 = s.retval; + s.tmp_45 = r0; + r0 = (s.tmp_43 * s.tmp_45); + s.tmp_42 = r0; + s.tmp_49 = Sprite_sx__P66569_mk(s); + s.tmp_49.arg0 = s.arg1; + s.callLocIdx = 678; s.pc = 37; return s.tmp_49; + case 37: + r0 = s.retval; + s.tmp_48 = r0; + s.tmp_51 = Sprite_sy__P66571_mk(s); + s.tmp_51.arg0 = s.arg1; + s.callLocIdx = 679; s.pc = 38; return s.tmp_51; + case 38: + r0 = s.retval; + s.tmp_50 = r0; + r0 = (s.tmp_48 * s.tmp_50); + s.tmp_47 = r0; + r0 = (s.tmp_42 < s.tmp_47); + s.tmp_41 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_41); + if (!r0) { step = 20; continue; } + s.A___91164 = (s.arg0); + s.B___91165 = (s.arg1); + { step = 21; continue; } case 20: + s.A___91164 = (s.arg1); + s.B___91165 = (s.arg0); + case 21: + s.tmp_0 = helpers_imageBlit__P66155_mk(s); + r0 = s.A___91164.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_left__P66598_mk(s); + s.tmp_3.arg0 = s.B___91165; + s.callLocIdx = 681; s.pc = 40; return s.tmp_3; + case 40: + r0 = s.retval; + s.tmp_2 = r0; + s.tmp_5 = Sprite_left__P66598_mk(s); + s.tmp_5.arg0 = s.A___91164; + s.callLocIdx = 682; s.pc = 41; return s.tmp_5; + case 41: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1 = r0; + s.tmp_7 = Sprite_sx__P66569_mk(s); + s.tmp_7.arg0 = s.A___91164; + s.callLocIdx = 683; s.pc = 42; return s.tmp_7; + case 42: r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat("Invalid argument for path command '", s.tmp_7); s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 21); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 21: + r0 = (s.tmp_1 / s.tmp_6); + s.tmp_0.arg1 = r0; + s.tmp_10 = Sprite_top__P66602_mk(s); + s.tmp_10.arg0 = s.B___91165; + s.callLocIdx = 684; s.pc = 43; return s.tmp_10; + case 43: + r0 = s.retval; + s.tmp_9 = r0; + s.tmp_12 = Sprite_top__P66602_mk(s); + s.tmp_12.arg0 = s.A___91164; + s.callLocIdx = 685; s.pc = 44; return s.tmp_12; + case 44: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_9 - s.tmp_11); + s.tmp_8 = r0; + s.tmp_14 = Sprite_sy__P66571_mk(s); + s.tmp_14.arg0 = s.A___91164; + s.callLocIdx = 686; s.pc = 45; return s.tmp_14; + case 45: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_8 / s.tmp_13); + s.tmp_0.arg2 = r0; + s.tmp_16 = Sprite_width__P66596_mk(s); + s.tmp_16.arg0 = s.B___91165; + s.callLocIdx = 687; s.pc = 46; return s.tmp_16; + case 46: + r0 = s.retval; + s.tmp_15 = r0; + s.tmp_18 = Sprite_sx__P66569_mk(s); + s.tmp_18.arg0 = s.A___91164; + s.callLocIdx = 688; s.pc = 47; return s.tmp_18; + case 47: + r0 = s.retval; + s.tmp_17 = r0; + r0 = (s.tmp_15 / s.tmp_17); + s.tmp_0.arg3 = r0; + s.tmp_20 = Sprite_height__P66597_mk(s); + s.tmp_20.arg0 = s.B___91165; + s.callLocIdx = 689; s.pc = 48; return s.tmp_20; + case 48: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, "'"); - s.tmp_4 = r0; - r0 = pxsim_pxtcore.throwValue(s.tmp_4); - case 10: - case 11: - r0 = (s.unnamed123___U4 + 1); - s.unnamed123___U4 = (r0); - { step = 9; continue; } - case 12: - s.unnamed122___U3 = (undefined); - case 13: + s.tmp_19 = r0; + s.tmp_22 = Sprite_sy__P66571_mk(s); + s.tmp_22.arg0 = s.A___91164; + s.callLocIdx = 690; s.pc = 49; return s.tmp_22; + case 49: + r0 = s.retval; + s.tmp_21 = r0; + r0 = (s.tmp_19 / s.tmp_21); + s.tmp_0.arg4 = r0; + r0 = s.B___91165.fields["_image"]; + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = 0; + s.tmp_0.arg7 = 0; + r0 = s.B___91165.fields["_image"]; + s.tmp_23 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_23); + s.tmp_0.arg8 = r0; + r0 = s.B___91165.fields["_image"]; + s.tmp_24 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_24); + s.tmp_0.arg9 = r0; + s.tmp_0.arg10 = true; + s.tmp_0.arg11 = true; + s.callLocIdx = 694; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + { step = 23; continue; } + case 22: r0 = undefined; + case 23: return leave(s, r0) default: oops() } } } -animation_Path_readNextCommand__P5429.info = {"start":1471,"length":776,"line":59,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"readNextCommand","argumentNames":["this"]} +Sprite_overlapsWith__P66619.info = {"start":20623,"length":1575,"line":689,"column":4,"endLine":736,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function animation_Path_readNextCommand__P5429_mk(s) { +function Sprite_overlapsWith__P66619_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_readNextCommand__P5429, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P66619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67768,19 +70021,60 @@ function animation_Path_readNextCommand__P5429_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - numArgs___24508: undefined, - i___24527: undefined, - arg___24542: undefined, - unnamed122___U3: undefined, - unnamed123___U4: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + tmp_25: undefined, + tmp_26: undefined, + tmp_27: undefined, + tmp_28: undefined, + tmp_29: undefined, + tmp_30: undefined, + tmp_31: undefined, + tmp_32: undefined, + tmp_33: undefined, + tmp_34: undefined, + tmp_35: undefined, + tmp_36: undefined, + tmp_37: undefined, + tmp_38: undefined, + tmp_39: undefined, + tmp_40: undefined, + tmp_41: undefined, + tmp_42: undefined, + tmp_43: undefined, + tmp_44: undefined, + tmp_45: undefined, + tmp_46: undefined, + tmp_47: undefined, + tmp_48: undefined, + tmp_49: undefined, + tmp_50: undefined, + tmp_51: undefined, + A___91164: undefined, + B___91165: undefined, arg0: undefined, + arg1: undefined, } } -function animation_Path_commandToArgCount__P5431(s) { +function Sprite_isScaled__P69035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67794,105 +70088,38 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq("M", s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq("m", s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq("L", s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq("l", s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq("H", s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq("h", s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq("V", s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq("v", s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq("Q", s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq("q", s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq("T", s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq("t", s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq("S", s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("s", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); - if (r0) { step = 17; continue; } - r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); - if (r0) { step = 18; continue; } - r0 = pxsim_pxtcore.switch_eq("Z", s.tmp_0); - if (r0) { step = 19; continue; } - r0 = pxsim_pxtcore.switch_eq("z", s.tmp_0); - if (r0) { step = 20; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== 256); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 21; continue; } + { step = 2; continue; } case 1: + r0 = s.arg0.fields["_sy"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== 256); case 2: - r0 = 2; - { step = 22; continue; } - case 3: - case 4: - r0 = 2; - { step = 22; continue; } - case 5: - case 6: - r0 = 1; - { step = 22; continue; } - case 7: - case 8: - r0 = 1; - { step = 22; continue; } - case 9: - case 10: - r0 = 4; - { step = 22; continue; } - case 11: - case 12: - r0 = 2; - { step = 22; continue; } - case 13: - case 14: - r0 = 6; - { step = 22; continue; } - case 15: - case 16: - r0 = 4; - { step = 22; continue; } - case 17: - case 18: - r0 = 7; - { step = 22; continue; } - case 19: - case 20: - r0 = 0; - { step = 22; continue; } - case 21: - r0 = -1; - { step = 22; continue; } - r0 = undefined; - case 22: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -animation_Path_commandToArgCount__P5431.info = {"start":3204,"length":1154,"line":113,"column":8,"endLine":148,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"commandToArgCount","argumentNames":["command"]} +Sprite_isScaled__P69035.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} -function animation_Path_commandToArgCount__P5431_mk(s) { +function Sprite_isScaled__P69035_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_commandToArgCount__P5431, depth: s.depth + 1, + parent: s, fn: Sprite_isScaled__P69035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, } } @@ -67900,7 +70127,7 @@ function animation_Path_commandToArgCount__P5431_mk(s) { -function animation_Path_readNextToken__P5430(s) { +function game_Hitbox_overlapsWith__P66423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67910,118 +70137,226 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tokenStart___24596 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["path"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["strIndex"]; - s.tmp_3 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_2, s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 32); + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + s.tmp_0 = game_Hitbox_updateIfInvalid__P66422_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 371; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = game_Hitbox_updateIfInvalid__P66422_mk(s); + s.tmp_0.arg0 = s.arg1; + s.callLocIdx = 372; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_1 = game_Hitbox_contains__P66421_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = game_Hitbox_left__P66416_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 373; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_3 = game_Hitbox_top__P66417_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 374; s.pc = 22; return s.tmp_3; + case 22: + r0 = s.retval; + s.tmp_1.arg2 = r0; + s.callLocIdx = 375; s.pc = 20; return s.tmp_1; + case 20: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = true; + { step = 17; continue; } + case 1: case 2: - r0 = s.arg0.fields["strIndex"]; + s.tmp_5 = game_Hitbox_contains__P66421_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_6 = game_Hitbox_left__P66416_mk(s); + s.tmp_6.arg0 = s.arg1; + s.callLocIdx = 376; s.pc = 24; return s.tmp_6; + case 24: + r0 = s.retval; + s.tmp_5.arg1 = r0; + s.tmp_7 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_7.arg0 = s.arg1; + s.callLocIdx = 377; s.pc = 25; return s.tmp_7; + case 25: + r0 = s.retval; + s.tmp_5.arg2 = r0; + s.callLocIdx = 378; s.pc = 23; return s.tmp_5; + case 23: + r0 = s.retval; s.tmp_4 = r0; - r0 = s.arg0.fields["path"]; - s.tmp_6 = r0; - r0 = pxsim_String_.length(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_4 < s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 17; continue; } case 3: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 4; continue; } - s.tmp_8 = r0 = s.arg0; - r0 = s.tmp_8.fields["strIndex"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 + 1); - s.tmp_9 = r0; - r0 = (s.tmp_8).fields["strIndex"] = (s.tmp_9); - { step = 1; continue; } case 4: - r0 = s.arg0.fields["strIndex"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["path"]; - s.tmp_3 = r0; - r0 = pxsim_String_.length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_9 = game_Hitbox_contains__P66421_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_10 = game_Hitbox_right__P66418_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 379; s.pc = 27; return s.tmp_10; + case 27: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.tmp_11 = game_Hitbox_top__P66417_mk(s); + s.tmp_11.arg0 = s.arg1; + s.callLocIdx = 380; s.pc = 28; return s.tmp_11; + case 28: + r0 = s.retval; + s.tmp_9.arg2 = r0; + s.callLocIdx = 381; s.pc = 26; return s.tmp_9; + case 26: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 5; continue; } - r0 = undefined; - { step = 11; continue; } + r0 = true; + { step = 17; continue; } case 5: case 6: - r0 = s.arg0.fields["strIndex"]; - s.tokenStart___24596 = (r0); + s.tmp_13 = game_Hitbox_contains__P66421_mk(s); + s.tmp_13.arg0 = s.arg0; + s.tmp_14 = game_Hitbox_right__P66418_mk(s); + s.tmp_14.arg0 = s.arg1; + s.callLocIdx = 382; s.pc = 30; return s.tmp_14; + case 30: + r0 = s.retval; + s.tmp_13.arg1 = r0; + s.tmp_15 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 383; s.pc = 31; return s.tmp_15; + case 31: + r0 = s.retval; + s.tmp_13.arg2 = r0; + s.callLocIdx = 384; s.pc = 29; return s.tmp_13; + case 29: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_12); + if (!r0) { step = 7; continue; } + r0 = true; + { step = 17; continue; } case 7: - r0 = s.arg0.fields["path"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["strIndex"]; - s.tmp_3 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_2, s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 !== 32); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } case 8: - r0 = s.arg0.fields["strIndex"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["path"]; - s.tmp_6 = r0; - r0 = pxsim_String_.length(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_4 < s.tmp_5); + s.tmp_17 = game_Hitbox_contains__P66421_mk(s); + s.tmp_17.arg0 = s.arg1; + s.tmp_18 = game_Hitbox_left__P66416_mk(s); + s.tmp_18.arg0 = s.arg0; + s.callLocIdx = 385; s.pc = 33; return s.tmp_18; + case 33: + r0 = s.retval; + s.tmp_17.arg1 = r0; + s.tmp_19 = game_Hitbox_top__P66417_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 386; s.pc = 34; return s.tmp_19; + case 34: + r0 = s.retval; + s.tmp_17.arg2 = r0; + s.callLocIdx = 387; s.pc = 32; return s.tmp_17; + case 32: + r0 = s.retval; + s.tmp_16 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_16); + if (!r0) { step = 9; continue; } + r0 = true; + { step = 17; continue; } case 9: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 10; continue; } - s.tmp_8 = r0 = s.arg0; - r0 = s.tmp_8.fields["strIndex"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 + 1); - s.tmp_9 = r0; - r0 = (s.tmp_8).fields["strIndex"] = (s.tmp_9); - { step = 7; continue; } case 10: - s.tmp_0 = helpers_stringSubstr__P118_mk(s); - r0 = s.arg0.fields["path"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.tokenStart___24596; - r0 = s.arg0.fields["strIndex"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.tokenStart___24596); - s.tmp_0.arg2 = r0; - s.callLocIdx = 2022; s.pc = 12; return s.tmp_0; - case 12: + s.tmp_21 = game_Hitbox_contains__P66421_mk(s); + s.tmp_21.arg0 = s.arg1; + s.tmp_22 = game_Hitbox_left__P66416_mk(s); + s.tmp_22.arg0 = s.arg0; + s.callLocIdx = 388; s.pc = 36; return s.tmp_22; + case 36: + r0 = s.retval; + s.tmp_21.arg1 = r0; + s.tmp_23 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_23.arg0 = s.arg0; + s.callLocIdx = 389; s.pc = 37; return s.tmp_23; + case 37: + r0 = s.retval; + s.tmp_21.arg2 = r0; + s.callLocIdx = 390; s.pc = 35; return s.tmp_21; + case 35: r0 = s.retval; + s.tmp_20 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_20); + if (!r0) { step = 11; continue; } + r0 = true; + { step = 17; continue; } case 11: + case 12: + s.tmp_25 = game_Hitbox_contains__P66421_mk(s); + s.tmp_25.arg0 = s.arg1; + s.tmp_26 = game_Hitbox_right__P66418_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 391; s.pc = 39; return s.tmp_26; + case 39: + r0 = s.retval; + s.tmp_25.arg1 = r0; + s.tmp_27 = game_Hitbox_top__P66417_mk(s); + s.tmp_27.arg0 = s.arg0; + s.callLocIdx = 392; s.pc = 40; return s.tmp_27; + case 40: + r0 = s.retval; + s.tmp_25.arg2 = r0; + s.callLocIdx = 393; s.pc = 38; return s.tmp_25; + case 38: + r0 = s.retval; + s.tmp_24 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_24); + if (!r0) { step = 13; continue; } + r0 = true; + { step = 17; continue; } + case 13: + case 14: + s.tmp_29 = game_Hitbox_contains__P66421_mk(s); + s.tmp_29.arg0 = s.arg1; + s.tmp_30 = game_Hitbox_right__P66418_mk(s); + s.tmp_30.arg0 = s.arg0; + s.callLocIdx = 394; s.pc = 42; return s.tmp_30; + case 42: + r0 = s.retval; + s.tmp_29.arg1 = r0; + s.tmp_31 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 395; s.pc = 43; return s.tmp_31; + case 43: + r0 = s.retval; + s.tmp_29.arg2 = r0; + s.callLocIdx = 396; s.pc = 41; return s.tmp_29; + case 41: + r0 = s.retval; + s.tmp_28 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_28); + if (!r0) { step = 15; continue; } + r0 = true; + { step = 17; continue; } + case 15: + case 16: + r0 = false; + case 17: return leave(s, r0) default: oops() } } } -animation_Path_readNextToken__P5430.info = {"start":2664,"length":530,"line":97,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"readNextToken","argumentNames":["this"]} +game_Hitbox_overlapsWith__P66423.info = {"start":2515,"length":695,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function animation_Path_readNextToken__P5430_mk(s) { +function game_Hitbox_overlapsWith__P66423_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_readNextToken__P5430, depth: s.depth + 1, + parent: s, fn: game_Hitbox_overlapsWith__P66423, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68034,107 +70369,36 @@ function animation_Path_readNextToken__P5430_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - tokenStart___24596: undefined, - arg0: undefined, -} } - - - - - -function Number_isNaN__P95(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtcore.typeOf(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 == "number"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg0 !== s.arg0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - return leave(s, r0) - default: oops() -} } } -Number_isNaN__P95.info = {"start":355,"length":93,"line":21,"column":4,"endLine":23,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isNaN","argumentNames":["x"]} - -function Number_isNaN__P95_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Number_isNaN__P95, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function animation_Path_reset__P3330(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); - r0 = (s.arg0).fields["args"] = (undefined); - r0 = (s.arg0).fields["currentCommand"] = (undefined); - r0 = (s.arg0).fields["lastControlX"] = (undefined); - r0 = (s.arg0).fields["lastControlY"] = (undefined); - r0 = (s.arg0).fields["startX"] = (undefined); - r0 = (s.arg0).fields["startY"] = (undefined); - r0 = (s.arg0).fields["lastX"] = (undefined); - r0 = (s.arg0).fields["lastY"] = (undefined); - r0 = (s.arg0).fields["strIndex"] = (0); - r0 = (s.arg0).fields["commandIndex"] = (0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -animation_Path_reset__P3330.info = {"start":2257,"length":397,"line":84,"column":8,"endLine":95,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"reset","argumentNames":["this"]} - -function animation_Path_reset__P3330_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: animation_Path_reset__P3330, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + tmp_25: undefined, + tmp_26: undefined, + tmp_27: undefined, + tmp_28: undefined, + tmp_29: undefined, + tmp_30: undefined, + tmp_31: undefined, arg0: undefined, + arg1: undefined, } } -function animation_ImageAnimation_update__P3338(s) { +function game_Hitbox_contains__P66421(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68144,119 +70408,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.frameIndex___24633 = undefined; - s.newImage___24658 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_ImageAnimation__C3336_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["elapsedTime"]; - s.tmp_2 = r0; - s.tmp_4 = game_eventContext__P2982_mk(s); - s.callLocIdx = 2072; s.pc = 12; return s.tmp_4; - case 12: + if (!checkSubtype(r0, game_Hitbox__C66408_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = game_Hitbox_left__P66416_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 351; s.pc = 7; return s.tmp_3; + case 7: r0 = s.retval; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["elapsedTime"] = (s.tmp_1); - r0 = s.arg0.fields["elapsedTime"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["frameInterval"]; s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.floor(s.tmp_0); - s.frameIndex___24633 = (r0); - r0 = s.arg0.fields["lastFrame"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != s.frameIndex___24633); + r0 = (s.tmp_1 >= s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["frames"]; - s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); + s.tmp_4 = r0 = s.arg1; + s.tmp_6 = game_Hitbox_right__P66418_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 352; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 <= s.tmp_5); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } - r0 = s.arg0.fields["loop"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); if (r0) { step = 3; continue; } - r0 = s.tmp_4; + r0 = s.tmp_7; { step = 4; continue; } case 3: - s.tmp_7 = r0 = s.frameIndex___24633; - r0 = s.arg0.fields["frames"]; + s.tmp_8 = r0 = s.arg2; + s.tmp_10 = game_Hitbox_top__P66417_mk(s); + s.tmp_10.arg0 = s.arg0; + s.callLocIdx = 353; s.pc = 9; return s.tmp_10; + case 9: + r0 = s.retval; s.tmp_9 = r0; - r0 = pxsim_Array__length(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7 >= s.tmp_8); + r0 = (s.tmp_8 >= s.tmp_9); case 4: // jmp value (already in r0) - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 5; continue; } - r0 = true; - { step = 11; continue; } + s.tmp_11 = r0; + r0 = pxsim_numops_toBool(s.tmp_11); + if (r0) { step = 5; continue; } + r0 = s.tmp_11; + { step = 6; continue; } case 5: + s.tmp_12 = r0 = s.arg2; + s.tmp_14 = game_Hitbox_bottom__P66419_mk(s); + s.tmp_14.arg0 = s.arg0; + s.callLocIdx = 354; s.pc = 10; return s.tmp_14; + case 10: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_12 <= s.tmp_13); case 6: - r0 = s.arg0.fields["frames"]; - s.tmp_11 = r0; - s.tmp_13 = r0 = s.frameIndex___24633; - r0 = s.arg0.fields["frames"]; + // jmp value (already in r0) s.tmp_15 = r0; - r0 = pxsim_Array__length(s.tmp_15); - s.tmp_14 = r0; - r0 = (s.tmp_13 % s.tmp_14); - s.tmp_12 = r0; - r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_12); - s.newImage___24658 = (r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_image"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.newImage___24658); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_3 = Sprite_setImage__P2371_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.newImage___24658; - s.callLocIdx = 2074; s.pc = 13; return s.tmp_3; - case 13: - r0 = s.retval; - case 7: - case 8: - case 9: - case 10: - r0 = (s.arg0).fields["lastFrame"] = (s.frameIndex___24633); - r0 = false; - case 11: + r0 = s.tmp_15; return leave(s, r0) default: oops() } } } -animation_ImageAnimation_update__P3338.info = {"start":19465,"length":664,"line":532,"column":8,"endLine":548,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} +game_Hitbox_contains__P66421.info = {"start":1034,"length":144,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"contains","argumentNames":["this","x","y"]} -function animation_ImageAnimation_update__P3338_mk(s) { +function game_Hitbox_contains__P66421_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_ImageAnimation_update__P3338, depth: s.depth + 1, + parent: s, fn: game_Hitbox_contains__P66421, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68274,16 +70500,16 @@ function animation_ImageAnimation_update__P3338_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - frameIndex___24633: undefined, - newImage___24658: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function music_SoundEffect_play__P1776(s) { +function helpers_imageBlit__P66155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68293,75 +70519,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.toPlay___24683 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.arg9 = (s.lambdaArgs[9]); + s.arg10 = (s.lambdaArgs[10]); + s.arg11 = (s.lambdaArgs[11]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_SoundEffect__C1765_VT)) failedCast(r0); - s.tmp_0 = music_SoundEffect_toBuffer__P1775_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = music_volume__P1621_mk(s); - s.callLocIdx = 136; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 137; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.toPlay___24683 = (r0); - r0 = (s.arg1 === 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim.music.queuePlayInstructions(0, s.toPlay___24683); - { step = 4; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = (s.arg1 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim.music.queuePlayInstructions(0, s.toPlay___24683); - s.tmp_0 = pause__P413_mk(s); - r0 = s.arg0.fields["duration"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 138; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - { step = 3; continue; } + r0 = pxsim_Array__mk(); case 2: - s.tmp_0 = music_Playable_loop__P1900_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 139; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_1 = r0; + globals._blitArgs___68864 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg1 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 0, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg2 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 1, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg3 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 2, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg4 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 3, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg6 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 4, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg7 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 5, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg8 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 6, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___68864; + r0 = (s.arg9 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.arg10); + if (!r0) { step = 3; continue; } + r0 = 1; + { step = 4; continue; } case 3: + r0 = 0; case 4: - r0 = undefined; + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(globals._blitArgs___68864, 8, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg11); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(globals._blitArgs___68864, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___68864); return leave(s, r0) default: oops() } } } -music_SoundEffect_play__P1776.info = {"start":1889,"length":455,"line":81,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"play","argumentNames":["this","playbackMode"]} +helpers_imageBlit__P66155.info = {"start":3839,"length":642,"line":136,"column":4,"endLine":149,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} -function music_SoundEffect_play__P1776_mk(s) { +function helpers_imageBlit__P66155_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_SoundEffect_play__P1776, depth: s.depth + 1, + parent: s, fn: helpers_imageBlit__P66155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - toPlay___24683: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, + arg9: undefined, + arg10: undefined, + arg11: undefined, } } -function music_Playable_loop__P1900(s) { +function ArcadePhysicsEngine_createMovingSprite__P69079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68371,276 +70638,369 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ovx___91770 = undefined; + s.ovy___91775 = undefined; + s.fx___91802 = undefined; + s.c___91809 = undefined; + s.fy___91852 = undefined; + s.c___91859 = undefined; + s.dx___91898 = undefined; + s.dy___91911 = undefined; + s.xStep___91924 = undefined; + s.yStep___91926 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Playable__C1896_VT)) failedCast(r0); - s.tmp_1 = music_state__P4628_mk(s); - s.callLocIdx = 171; s.pc = 1; return s.tmp_1; - case 1: + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P69085_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg1.fields["_vx"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 856; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - r0 = r0.fields["looping"]; + s.ovx___91770 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P69085_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg1.fields["_vy"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 857; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.ovy___91775 = (r0); + r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg0); - r0 = (s.arg0).fields["stopped"] = (false); - r0 = pxsim_pxtcore_mkAction(1, music_Playable_loop_inline__P24715); + r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); + r0 = s.arg1.fields["_y"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim.control.runInParallel(s.tmp_0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -music_Playable_loop__P1900.info = {"start":1200,"length":264,"line":55,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"loop","argumentNames":["this"]} - -function music_Playable_loop__P1900_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_Playable_loop__P1900, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function music_Playable_loop_inline__P24715(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - + r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); + r0 = s.arg1.fields["_ax"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_vx"]; + s.tmp_3 = r0; + r0 = s.arg1.fields["_ax"]; + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); + { step = 8; continue; } case 1: - r0 = s.caps[0].fields["stopped"]; + r0 = s.arg1.fields["_fx"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg1.fields["_fx"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.fx___91802 = (r0); + r0 = s.arg1.fields["_vx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.fx___91802); + s.c___91809 = (r0); + r0 = (s.c___91809 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_3 = music_Playable__C1896_v0_2_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.tmp_3.arg1 = 0; - if (!checkSubtype(s.tmp_3.arg0, music_Playable__C1896_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.play; - s.pc = 3; return s.tmp_3; - case 3: + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Fx_min__P64385_mk(s); + s.tmp_3.arg0 = 0; + r0 = s.arg1.fields["_vx"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.fx___91802); + s.tmp_3.arg1 = r0; + s.callLocIdx = 865; s.pc = 27; return s.tmp_3; + case 27: r0 = s.retval; - { step = 1; continue; } + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); + { step = 5; continue; } case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -music_Playable_loop_inline__P24715.info = {"start":1318,"length":134,"line":59,"column":34,"endLine":63,"endColumn":13,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} - -function music_Playable_loop_inline__P24715_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_Playable_loop_inline__P24715, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, -} } - - - - - -function music_state__P4628(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = music__init__P4629_mk(s); - s.callLocIdx = 165; s.pc = 1; return s.tmp_0; - case 1: + r0 = (s.c___91809 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Fx_max__P64386_mk(s); + s.tmp_3.arg0 = 0; + r0 = s.arg1.fields["_vx"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.fx___91802); + s.tmp_3.arg1 = r0; + s.callLocIdx = 867; s.pc = 28; return s.tmp_3; + case 28: r0 = s.retval; - s.tmp_0 = r0 = globals.stateStack___4624; - r0 = pxsim_Array__length(globals.stateStack___4624); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); + { step = 4; continue; } + case 3: + r0 = (s.arg1).fields["_vx"] = (0); + case 4: + case 5: + case 6: + case 7: + case 8: + r0 = s.arg1.fields["_ay"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = r0 = s.arg1; + r0 = s.arg1.fields["_vy"]; + s.tmp_3 = r0; + r0 = s.arg1.fields["_ay"]; + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); + { step = 16; continue; } + case 9: + r0 = s.arg1.fields["_fy"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = s.arg1.fields["_fy"]; + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leave(s, r0) - default: oops() -} } } -music_state__P4628.info = {"start":559,"length":91,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"state","argumentNames":[]} - -function music_state__P4628_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_state__P4628, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function music__init__P4629(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.stateStack___4624); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C4625_VT); + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.fy___91852 = (r0); + r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - s.tmp_1 = music_PlayableState_constructor__P4627_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 166; s.pc = 4; return s.tmp_1; - case 4: + r0 = (s.tmp_0 - s.fy___91852); + s.c___91859 = (r0); + r0 = (s.c___91859 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Fx_min__P64385_mk(s); + s.tmp_3.arg0 = 0; + r0 = s.arg1.fields["_vy"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.fy___91852); + s.tmp_3.arg1 = r0; + s.callLocIdx = 875; s.pc = 29; return s.tmp_3; + case 29: r0 = s.retval; - r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.tmp_0); - globals.stateStack___4624 = (s.tmp_2); - s.tmp_0 = game_addScenePushHandler__P2998_mk(s); - s.tmp_0.arg0 = music__init_inline__P24733; - s.callLocIdx = 168; s.pc = 5; return s.tmp_0; - case 5: + r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); + { step = 13; continue; } + case 10: + r0 = (s.c___91859 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Fx_max__P64386_mk(s); + s.tmp_3.arg0 = 0; + r0 = s.arg1.fields["_vy"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.fy___91852); + s.tmp_3.arg1 = r0; + s.callLocIdx = 877; s.pc = 30; return s.tmp_3; + case 30: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); + { step = 12; continue; } + case 11: + r0 = (s.arg1).fields["_vy"] = (0); + case 12: + case 13: + case 14: + case 15: + case 16: + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = ArcadePhysicsEngine_constrain__P69085_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vx"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 878; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = ArcadePhysicsEngine_constrain__P69085_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vy"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 879; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = s.arg1.fields["_vx"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.ovx___91770); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_1 / 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.dx___91898 = (r0); + r0 = s.arg1.fields["_vy"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.ovy___91775); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_1 / 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.dy___91911 = (r0); + s.xStep___91924 = (s.dx___91898); + s.yStep___91926 = (s.dy___91911); + case 17: + s.tmp_2 = Fx_abs__P64384_mk(s); + s.tmp_2.arg0 = s.xStep___91924; + s.callLocIdx = 886; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 > s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + s.tmp_5 = Fx_abs__P64384_mk(s); + s.tmp_5.arg0 = s.yStep___91926; + s.callLocIdx = 887; s.pc = 34; return s.tmp_5; + case 34: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P3000_mk(s); - s.tmp_0.arg0 = music__init_inline__P24740; - s.callLocIdx = 170; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_4 = r0; + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 > s.tmp_6); + case 19: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 24; continue; } + s.tmp_10 = Fx_abs__P64384_mk(s); + s.tmp_10.arg0 = s.xStep___91924; + s.callLocIdx = 888; s.pc = 35; return s.tmp_10; + case 35: r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -music__init__P4629.info = {"start":656,"length":366,"line":31,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"_init","argumentNames":[]} - -function music__init__P4629_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music__init__P4629, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function music__init_inline__P24733(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C4625_VT); - s.tmp_0 = r0; - s.tmp_1 = music_PlayableState_constructor__P4627_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 167; s.pc = 1; return s.tmp_1; - case 1: + s.tmp_9 = r0; + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_11 = r0; + r0 = (s.tmp_9 > s.tmp_11); + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 20; continue; } + r0 = pxsim.Math_.idiv(s.xStep___91924, 2); + s.xStep___91924 = (r0); + case 20: + case 21: + s.tmp_2 = Fx_abs__P64384_mk(s); + s.tmp_2.arg0 = s.yStep___91926; + s.callLocIdx = 890; s.pc = 36; return s.tmp_2; + case 36: r0 = s.retval; - r0 = pxsim_Array__push(globals.stateStack___4624, s.tmp_0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -music__init_inline__P24733.info = {"start":785,"length":67,"line":35,"column":33,"endLine":37,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} - -function music__init_inline__P24733_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music__init_inline__P24733, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function music__init_inline__P24740(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_Array_.pop(globals.stateStack___4624); - r0 = pxsim_Array__length(globals.stateStack___4624); s.tmp_1 = r0; - r0 = (s.tmp_1 === 0); + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 > s.tmp_3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(music_PlayableState__C4625_VT); - s.tmp_2 = r0; - s.tmp_3 = music_PlayableState_constructor__P4627_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.callLocIdx = 169; s.pc = 3; return s.tmp_3; - case 3: + if (!r0) { step = 22; continue; } + r0 = pxsim.Math_.idiv(s.yStep___91926, 2); + s.yStep___91926 = (r0); + case 22: + case 23: + { step = 17; continue; } + case 24: + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C66724_VT); + s.tmp_0 = r0; + s.tmp_1 = MovingSprite_constructor__P66725_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + r0 = s.arg1.fields["_vx"]; + s.tmp_1.arg2 = r0; + r0 = s.arg1.fields["_vy"]; + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.dx___91898; + s.tmp_1.arg5 = s.dy___91911; + s.tmp_1.arg6 = s.xStep___91924; + s.tmp_1.arg7 = s.yStep___91926; + s.callLocIdx = 892; s.pc = 37; return s.tmp_1; + case 37: r0 = s.retval; - r0 = pxsim_Array__push(globals.stateStack___4624, s.tmp_2); - case 1: - case 2: - r0 = undefined; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -music__init_inline__P24740.info = {"start":888,"length":126,"line":39,"column":32,"endLine":42,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_createMovingSprite__P69079.info = {"start":6933,"length":2805,"line":217,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function music__init_inline__P24740_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P69079_mk(s) { checkStack(s.depth); return { - parent: s, fn: music__init_inline__P24740, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P69079, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + ovx___91770: undefined, + ovy___91775: undefined, + fx___91802: undefined, + c___91809: undefined, + fy___91852: undefined, + c___91859: undefined, + dx___91898: undefined, + dy___91911: undefined, + xStep___91924: undefined, + yStep___91926: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function music_PlayableState_constructor__P4627(s) { +function ArcadePhysicsEngine_constrain__P69085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68652,35 +71012,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_PlayableState__C4625_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["looping"] = (s.tmp_1); - r0 = undefined; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P64386_mk(s); + s.tmp_1 = Fx_min__P64385_mk(s); + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1068; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["maxNegativeVelocity"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1069; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -music_PlayableState_constructor__P4627.info = {"start":333,"length":56,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} +ArcadePhysicsEngine_constrain__P69085.info = {"start":27343,"length":193,"line":761,"column":4,"endLine":769,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function music_PlayableState_constructor__P4627_mk(s) { +function ArcadePhysicsEngine_constrain__P69085_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_PlayableState_constructor__P4627, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P69085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function music_SoundEffect_toBuffer__P1775(s) { +function Fx_compare__P64383(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68695,54 +71066,17 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_SoundEffect__C1765_VT)) failedCast(r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = music_volume__P1621_mk(s); - s.callLocIdx = 134; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.arg1 = (r0); - case 1: - case 2: - s.tmp_0 = music_soundToInstructionBuffer__P1779_mk(s); - r0 = s.arg0.fields["waveShape"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["startFrequency"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["endFrequency"]; - s.tmp_0.arg2 = r0; - r0 = s.arg0.fields["startVolume"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["endVolume"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["duration"]; - s.tmp_0.arg5 = r0; - r0 = s.arg0.fields["effect"]; - s.tmp_0.arg6 = r0; - r0 = s.arg0.fields["interpolation"]; - s.tmp_0.arg7 = r0; - s.tmp_0.arg8 = 20; - s.tmp_0.arg9 = 1; - s.tmp_0.arg10 = s.arg1; - s.callLocIdx = 135; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + r0 = (s.arg0 - s.arg1); return leave(s, r0) default: oops() } } } -music_SoundEffect_toBuffer__P1775.info = {"start":1390,"length":489,"line":63,"column":8,"endLine":79,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"toBuffer","argumentNames":["this","volume"]} +Fx_compare__P64383.info = {"start":1395,"length":106,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"compare","argumentNames":["a","b"]} -function music_SoundEffect_toBuffer__P1775_mk(s) { +function Fx_compare__P64383_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_SoundEffect_toBuffer__P1775, depth: s.depth + 1, + parent: s, fn: Fx_compare__P64383, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -68751,542 +71085,145 @@ function music_SoundEffect_toBuffer__P1775_mk(s) { -function music_soundToInstructionBuffer__P1779(s) { +function sprites_SpriteMap_insertAABB__P66652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.steps___24792 = undefined; - s.getVolumeAt___24826 = undefined; - s.getFrequencyAt___24843 = undefined; - s.timeSlice___24903 = undefined; - s.i___24907 = undefined; - s.newStep___24912 = undefined; - s.out___24994 = undefined; - s.stepDuration___25003 = undefined; - s.i___25011 = undefined; - s.offset___25018 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); - s.arg9 = (s.lambdaArgs[9]); - s.arg10 = (s.lambdaArgs[10]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.steps___24792 = (r0); - r0 = (s.arg7 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg6 === 0); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtrt.mkMap(); - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "frequency", s.arg1); - r0 = (s.arg3 / 255); - s.tmp_4 = r0; - r0 = (s.tmp_4 * s.arg10); - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "volume", s.tmp_3); - r0 = pxsim_Array__push(s.steps___24792, s.tmp_2); - r0 = pxsim_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "frequency", s.arg2); - r0 = (s.arg4 / 255); - s.tmp_2 = r0; - r0 = (s.tmp_2 * s.arg10); - s.tmp_1 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "volume", s.tmp_1); - r0 = pxsim_Array__push(s.steps___24792, s.tmp_0); - { step = 22; continue; } - case 3: - s.tmp_0 = Math_min__P131_mk(s); - s.tmp_0.arg0 = s.arg8; - r0 = (s.arg5 / 5); - s.tmp_1 = r0; - r0 = pxsim.Math_.floor(s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 141; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.arg8 = (r0); - r0 = pxsim_pxtcore_mkAction(4, getVolumeAt_inline__P24827); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg3); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg4); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg10); - s.getVolumeAt___24826 = (s.tmp_0); - s.tmp_0 = r0 = s.arg7; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 4: - r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P24850); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg5); - s.getFrequencyAt___24843 = (s.tmp_1); - { step = 7; continue; } - case 5: - r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P24862); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); - s.getFrequencyAt___24843 = (s.tmp_0); - { step = 7; continue; } - case 6: - r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P24881); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg5); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); - s.getFrequencyAt___24843 = (s.tmp_0); - case 7: - r0 = (s.arg5 / s.arg8); - s.timeSlice___24903 = (r0); - s.i___24907 = (0); - case 8: - r0 = (s.i___24907 < s.arg8); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 21; continue; } - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - s.tmp_3 = lambda_2_mk(s); - s.tmp_3.argL = s.getFrequencyAt___24843; - r0 = (s.i___24907 * s.timeSlice___24903); - s.tmp_3.arg0 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 142; s.pc = 26; return s.tmp_3; - case 26: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "frequency", s.tmp_2); - s.tmp_5 = lambda_2_mk(s); - s.tmp_5.argL = s.getVolumeAt___24826; - r0 = (s.i___24907 * s.timeSlice___24903); - s.tmp_5.arg0 = r0; - setupLambda(s.tmp_5, s.tmp_5.argL); - s.callLocIdx = 143; s.pc = 27; return s.tmp_5; - case 27: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "volume", s.tmp_4); - s.newStep___24912 = (s.tmp_1); - r0 = (s.arg6 === 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.i___24907 % 2); - s.tmp_2 = r0; - r0 = (s.tmp_2 === 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - s.tmp_3 = if_volume_2_mk(s); - s.tmp_3.arg0 = s.newStep___24912; - s.tmp_4 = Math_max__P130_mk(s); - s.tmp_6 = if_volume_1_mk(s); - s.tmp_6.arg0 = s.newStep___24912; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "volume"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["volume"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["volume"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 144; s.pc = 30; return s.tmp_6; } - } - case 30: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.arg9 * 500); - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = 0; - s.callLocIdx = 145; s.pc = 29; return s.tmp_4; - case 29: - r0 = s.retval; - s.tmp_3.arg1 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "volume", s.tmp_3.arg1); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/volume"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["volume"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 146; s.pc = 28; return s.tmp_3; } - } - case 28: - r0 = s.retval; - { step = 10; continue; } - case 9: - s.tmp_0 = if_volume_2_mk(s); - s.tmp_0.arg0 = s.newStep___24912; - s.tmp_1 = Math_min__P131_mk(s); - s.tmp_3 = if_volume_1_mk(s); - s.tmp_3.arg0 = s.newStep___24912; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 147; s.pc = 33; return s.tmp_3; } - } - case 33: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.arg9 * 500); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 1023; - s.callLocIdx = 148; s.pc = 32; return s.tmp_1; - case 32: - r0 = s.retval; - s.tmp_0.arg1 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "volume", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/volume"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["volume"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 149; s.pc = 31; return s.tmp_0; } - } - case 31: - r0 = s.retval; - case 10: - { step = 20; continue; } - case 11: - r0 = (s.arg6 === 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.i___24907 % 2); - s.tmp_2 = r0; - r0 = (s.tmp_2 === 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 12; continue; } - s.tmp_3 = if_frequency_2_mk(s); - s.tmp_3.arg0 = s.newStep___24912; - s.tmp_4 = Math_max__P130_mk(s); - s.tmp_6 = if_frequency_1_mk(s); - s.tmp_6.arg0 = s.newStep___24912; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 150; s.pc = 36; return s.tmp_6; } - } - case 36: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.arg9 * 100); - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = 0; - s.callLocIdx = 151; s.pc = 35; return s.tmp_4; - case 35: - r0 = s.retval; - s.tmp_3.arg1 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 152; s.pc = 34; return s.tmp_3; } - } - case 34: - r0 = s.retval; - { step = 13; continue; } - case 12: - s.tmp_0 = if_frequency_2_mk(s); - s.tmp_0.arg0 = s.newStep___24912; - s.tmp_2 = if_frequency_1_mk(s); - s.tmp_2.arg0 = s.newStep___24912; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 153; s.pc = 38; return s.tmp_2; } - } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg9 * 100); - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg1 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 154; s.pc = 37; return s.tmp_0; } - } - case 37: - r0 = s.retval; - case 13: - { step = 19; continue; } - case 14: - r0 = (s.arg6 === 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = (s.i___24907 % 2); - s.tmp_2 = r0; - r0 = (s.tmp_2 === 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 15; continue; } - s.tmp_3 = if_frequency_2_mk(s); - s.tmp_3.arg0 = s.newStep___24912; - s.tmp_4 = Math_max__P130_mk(s); - s.tmp_6 = if_frequency_1_mk(s); - s.tmp_6.arg0 = s.newStep___24912; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 155; s.pc = 41; return s.tmp_6; } - } - case 41: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.arg9 * 1000); - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = 0; - s.callLocIdx = 156; s.pc = 40; return s.tmp_4; - case 40: - r0 = s.retval; - s.tmp_3.arg1 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 157; s.pc = 39; return s.tmp_3; } - } - case 39: - r0 = s.retval; - { step = 16; continue; } - case 15: - s.tmp_0 = if_frequency_2_mk(s); - s.tmp_0.arg0 = s.newStep___24912; - s.tmp_2 = if_frequency_1_mk(s); - s.tmp_2.arg0 = s.newStep___24912; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 158; s.pc = 43; return s.tmp_2; } - } - case 43: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg9 * 1000); - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg1 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 159; s.pc = 42; return s.tmp_0; } +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.left___91590 = undefined; + s.top___91593 = undefined; + s.xn___91596 = undefined; + s.yn___91607 = undefined; + s.x___91618 = undefined; + s.y___91623 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 42: + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P66598_mk(s); + s.tmp_0.arg0 = s.arg1; + s.callLocIdx = 785; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.left___91590 = (r0); + s.tmp_0 = Sprite_top__P66602_mk(s); + s.tmp_0.arg0 = s.arg1; + s.callLocIdx = 786; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.top___91593 = (r0); + s.tmp_3 = Sprite_width__P66596_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 787; s.pc = 7; return s.tmp_3; + case 7: r0 = s.retval; - case 16: - case 17: - case 18: - case 19: - case 20: - r0 = pxsim_Array__push(s.steps___24792, s.newStep___24912); - r0 = (s.i___24907 + 1); - s.i___24907 = (r0); - { step = 8; continue; } - case 21: - case 22: - r0 = pxsim_Array__length(s.steps___24792); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = s.arg0.fields["cellWidth"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - r0 = (12 * s.tmp_1); + r0 = (s.tmp_1 - 1); s.tmp_0 = r0; - r0 = pxsim.control.createBuffer(s.tmp_0); - s.out___24994 = (r0); - s.tmp_1 = r0 = s.arg5; - r0 = pxsim_Array__length(s.steps___24792); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + r0 = s.arg0.fields["cellWidth"]; + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); + s.xn___91596 = (r0); + s.tmp_3 = Sprite_height__P66597_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 788; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); + r0 = s.arg0.fields["cellHeight"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); s.tmp_0 = r0; - r0 = pxsim.Math_.floor(s.tmp_0); - s.stepDuration___25003 = (r0); - s.i___25011 = (0); - case 23: - s.tmp_1 = r0 = s.i___25011; - r0 = pxsim_Array__length(s.steps___24792); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0.fields["cellHeight"]; + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); + s.yn___91607 = (r0); + s.x___91618 = (0); + case 1: + r0 = (s.x___91618 <= s.xn___91596); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - r0 = (s.i___25011 * 12); - s.offset___25018 = (r0); - s.tmp_0 = r0 = s.out___24994; - s.tmp_1 = r0 = s.offset___25018; - s.tmp_3 = music_waveToValue__P4596_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 160; s.pc = 44; return s.tmp_3; - case 44: + if (!r0) { step = 4; continue; } + s.y___91623 = (0); + case 2: + r0 = (s.y___91623 <= s.yn___91607); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = sprites_SpriteMap_insertAtKey__P69043_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = r0 = s.left___91590; + s.tmp_4 = Math_min__P64350_mk(s); + s.tmp_5 = Sprite_width__P66596_mk(s); + s.tmp_5.arg0 = s.arg1; + s.callLocIdx = 789; s.pc = 11; return s.tmp_5; + case 11: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.out___24994; - r0 = (s.offset___25018 + 2); - s.tmp_1 = r0; - s.tmp_3 = if_frequency_1_mk(s); - r0 = pxsim_Array__getAt(s.steps___24792, s.i___25011); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 161; s.pc = 45; return s.tmp_3; } - } - case 45: + s.tmp_4.arg0 = r0; + r0 = s.arg0.fields["cellWidth"]; + s.tmp_6 = r0; + r0 = (s.x___91618 * s.tmp_6); + s.tmp_4.arg1 = r0; + s.callLocIdx = 790; s.pc = 10; return s.tmp_4; + case 10: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.out___24994; - r0 = (s.offset___25018 + 4); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.stepDuration___25003); - s.tmp_0 = r0 = s.out___24994; - r0 = (s.offset___25018 + 6); - s.tmp_1 = r0; - s.tmp_3 = if_volume_1_mk(s); - r0 = pxsim_Array__getAt(s.steps___24792, s.i___25011); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 162; s.pc = 46; return s.tmp_3; } - } - case 46: + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1.arg1 = r0; + s.tmp_7 = r0 = s.top___91593; + s.tmp_9 = Math_min__P64350_mk(s); + s.tmp_10 = Sprite_height__P66597_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 791; s.pc = 13; return s.tmp_10; + case 13: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.out___24994; - r0 = (s.offset___25018 + 8); - s.tmp_1 = r0; - s.tmp_3 = if_volume_1_mk(s); - s.tmp_4 = r0 = s.steps___24792; - r0 = (s.i___25011 + 1); - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 163; s.pc = 47; return s.tmp_3; } - } - case 47: + s.tmp_9.arg0 = r0; + r0 = s.arg0.fields["cellHeight"]; + s.tmp_11 = r0; + r0 = (s.y___91623 * s.tmp_11); + s.tmp_9.arg1 = r0; + s.callLocIdx = 792; s.pc = 12; return s.tmp_9; + case 12: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.out___24994; - r0 = (s.offset___25018 + 10); - s.tmp_1 = r0; - s.tmp_3 = if_frequency_1_mk(s); - s.tmp_4 = r0 = s.steps___24792; - r0 = (s.i___25011 + 1); - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 164; s.pc = 48; return s.tmp_3; } - } - case 48: + s.tmp_8 = r0; + r0 = (s.tmp_7 + s.tmp_8); + s.tmp_1.arg2 = r0; + s.tmp_1.arg3 = s.arg1; + s.callLocIdx = 793; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - r0 = (s.i___25011 + 1); - s.i___25011 = (r0); - { step = 23; continue; } - case 24: - r0 = s.out___24994; + r0 = (s.y___91623 + 1); + s.y___91623 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.x___91618 + 1); + s.x___91618 = (r0); + { step = 1; continue; } + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -music_soundToInstructionBuffer__P1779.info = {"start":5638,"length":3866,"line":181,"column":5,"endLine":265,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"soundToInstructionBuffer","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation","fxSteps","fxRange","globalVolume"]} +sprites_SpriteMap_insertAABB__P66652.info = {"start":3184,"length":521,"line":91,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAABB","argumentNames":["this","sprite"]} -function music_soundToInstructionBuffer__P1779_mk(s) { +function sprites_SpriteMap_insertAABB__P66652_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_soundToInstructionBuffer__P1779, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P66652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -69296,34 +71233,25 @@ function music_soundToInstructionBuffer__P1779_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - steps___24792: undefined, - getVolumeAt___24826: undefined, - getFrequencyAt___24843: undefined, - timeSlice___24903: undefined, - i___24907: undefined, - newStep___24912: undefined, - out___24994: undefined, - stepDuration___25003: undefined, - i___25011: undefined, - offset___25018: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + left___91590: undefined, + top___91593: undefined, + xn___91596: undefined, + yn___91607: undefined, + x___91618: undefined, + y___91623: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, - arg9: undefined, - arg10: undefined, } } -function getVolumeAt_inline__P24827(s) { +function sprites_SpriteMap_insertAtKey__P69043(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69333,48 +71261,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.k___91658 = undefined; + s.bucket___91663 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_2 = r0 = s.caps[0]; - s.tmp_5 = r0 = s.arg0; - r0 = (s.caps[1] - s.caps[0]); - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P69042_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 784; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.k___91658 = (r0); + r0 = s.arg0.fields["buckets"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___91658); + s.bucket___91663 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___91663); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["buckets"]; + s.tmp_2 = r0; + s.tmp_3 = r0 = s.k___91658; + r0 = pxsim_Array__mk(); s.tmp_4 = r0; - r0 = (s.tmp_4 / s.caps[2]); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); + s.bucket___91663 = (s.tmp_4); + case 1: + case 2: + r0 = pxsim_Array_.indexOf(s.bucket___91663, s.arg3, undefined); s.tmp_1 = r0; - r0 = (s.tmp_1 / 255); + r0 = (s.tmp_1 < 0); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.caps[3]); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__push(s.bucket___91663, s.arg3); + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -getVolumeAt_inline__P24827.info = {"start":6507,"length":94,"line":199,"column":32,"endLine":199,"endColumn":126,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} +sprites_SpriteMap_insertAtKey__P69043.info = {"start":2872,"length":302,"line":82,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAtKey","argumentNames":["this","x","y","sprite"]} -function getVolumeAt_inline__P24827_mk(s) { +function sprites_SpriteMap_insertAtKey__P69043_mk(s) { checkStack(s.depth); return { - parent: s, fn: getVolumeAt_inline__P24827, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P69043, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, + k___91658: undefined, + bucket___91663: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function music_soundToInstructionBuffer_inline__P24850(s) { +function sprites_SpriteMap_clear__P66651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69388,30 +71350,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.caps[0]; - s.tmp_3 = r0 = s.arg0; - r0 = (s.caps[1] - s.caps[0]); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 / s.caps[2]); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_soundToInstructionBuffer_inline__P24850.info = {"start":6781,"length":68,"line":204,"column":37,"endLine":204,"endColumn":105,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} +sprites_SpriteMap_clear__P66651.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} -function music_soundToInstructionBuffer_inline__P24850_mk(s) { +function sprites_SpriteMap_clear__P66651_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_soundToInstructionBuffer_inline__P24850, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P66651, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, } } @@ -69419,7 +71376,7 @@ function music_soundToInstructionBuffer_inline__P24850_mk(s) { -function music_soundToInstructionBuffer_inline__P24862(s) { +function sprites_SpriteMap_resizeBuckets__P66650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69429,31 +71386,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.maxWidth___91693 = undefined; + s.maxHeight___91694 = undefined; + s.sprite___91696 = undefined; + s.unnamed364___U3 = undefined; + s.unnamed365___U4 = undefined; + s.tMap___91712 = undefined; + s.areaWidth___91716 = undefined; + s.areaHeight___91723 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.caps[0]; - r0 = (s.caps[1] - s.caps[0]); - s.tmp_2 = r0; - r0 = (s.arg0 / s.caps[2]); - s.tmp_5 = r0; - r0 = (s.tmp_5 * 1.5707963267948966); - s.tmp_4 = r0; - r0 = pxsim.Math_.sin(s.tmp_4); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.maxWidth___91693 = (0); + s.maxHeight___91694 = (0); + s.sprite___91696 = (undefined); + s.unnamed364___U3 = (s.arg1); + s.unnamed365___U4 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed365___U4; + r0 = pxsim_Array__length(s.unnamed364___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed364___U3, s.unnamed365___U4); + s.sprite___91696 = (r0); + s.tmp_4 = Sprite_width__P66596_mk(s); + s.tmp_4.arg0 = s.sprite___91696; + s.callLocIdx = 773; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); + r0 = (s.tmp_3 > s.maxWidth___91693); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + s.tmp_5 = Sprite_width__P66596_mk(s); + s.tmp_5.arg0 = s.sprite___91696; + s.callLocIdx = 774; s.pc = 12; return s.tmp_5; + case 12: + r0 = s.retval; + s.maxWidth___91693 = (r0); + case 2: + case 3: + s.tmp_2 = Sprite_height__P66597_mk(s); + s.tmp_2.arg0 = s.sprite___91696; + s.callLocIdx = 775; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); + r0 = (s.tmp_1 > s.maxHeight___91694); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = Sprite_height__P66597_mk(s); + s.tmp_3.arg0 = s.sprite___91696; + s.callLocIdx = 776; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; + s.maxHeight___91694 = (r0); + case 4: + case 5: + r0 = (s.unnamed365___U4 + 1); + s.unnamed365___U4 = (r0); + { step = 1; continue; } + case 6: + s.unnamed364___U3 = (undefined); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 777; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tMap___91712 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___91712); + if (!r0) { step = 7; continue; } + s.tmp_0 = tiles_TileMap_areaWidth__P66942_mk(s); + s.tmp_0.arg0 = s.tMap___91712; + s.callLocIdx = 778; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + { step = 8; continue; } + case 7: + r0 = pxsim_ImageMethods.width(globals.screen___66232); + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + s.areaWidth___91716 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___91712); + if (!r0) { step = 9; continue; } + s.tmp_0 = tiles_TileMap_areaHeight__P66943_mk(s); + s.tmp_0.arg0 = s.tMap___91712; + s.callLocIdx = 779; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + { step = 10; continue; } + case 9: + r0 = pxsim_ImageMethods.height(globals.screen___66232); + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + s.areaHeight___91723 = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_clamp__P64346_mk(s); + s.tmp_2.arg0 = 8; + r0 = (s.areaWidth___91716 >> 2); + s.tmp_2.arg1 = r0; + r0 = (s.maxWidth___91693 * 2); + s.tmp_2.arg2 = r0; + s.callLocIdx = 780; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_clamp__P64346_mk(s); + s.tmp_2.arg0 = 8; + r0 = (s.areaHeight___91723 >> 2); + s.tmp_2.arg1 = r0; + r0 = (s.maxHeight___91694 * 2); + s.tmp_2.arg2 = r0; + s.callLocIdx = 781; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cellHeight"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["cellHeight"]; + s.tmp_2 = r0; + r0 = pxsim.Math_.idiv(s.areaHeight___91723, s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["rowCount"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["cellWidth"]; + s.tmp_2 = r0; + r0 = pxsim.Math_.idiv(s.areaWidth___91716, s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["columnCount"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_soundToInstructionBuffer_inline__P24862.info = {"start":6962,"length":94,"line":207,"column":37,"endLine":207,"endColumn":131,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} +sprites_SpriteMap_resizeBuckets__P66650.info = {"start":1696,"length":826,"line":52,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"resizeBuckets","argumentNames":["this","sprites"]} -function music_soundToInstructionBuffer_inline__P24862_mk(s) { +function sprites_SpriteMap_resizeBuckets__P66650_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_soundToInstructionBuffer_inline__P24862, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P66650, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -69461,14 +71542,23 @@ function music_soundToInstructionBuffer_inline__P24862_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + maxWidth___91693: undefined, + maxHeight___91694: undefined, + sprite___91696: undefined, + unnamed364___U3: undefined, + unnamed365___U4: undefined, + tMap___91712: undefined, + areaWidth___91716: undefined, + areaHeight___91723: undefined, arg0: undefined, + arg1: undefined, } } -function music_soundToInstructionBuffer_inline__P24881(s) { +function Sprite_clearObstacles__P66624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69482,43 +71572,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.caps[0]; - r0 = (s.arg0 / s.caps[1]); - s.tmp_6 = r0; - r0 = (9 * s.tmp_6); - s.tmp_5 = r0; - r0 = (1 + s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim.Math_.log(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim.Math_.log(10); - s.tmp_7 = r0; - r0 = (s.tmp_3 / s.tmp_7); - s.tmp_2 = r0; - r0 = (s.caps[2] - s.caps[0]); - s.tmp_8 = r0; - r0 = (s.tmp_2 * s.tmp_8); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_soundToInstructionBuffer_inline__P24881.info = {"start":7175,"length":105,"line":210,"column":37,"endLine":210,"endColumn":142,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} +Sprite_clearObstacles__P66624.info = {"start":24772,"length":54,"line":811,"column":4,"endLine":813,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function music_soundToInstructionBuffer_inline__P24881_mk(s) { +function Sprite_clearObstacles__P66624_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_soundToInstructionBuffer_inline__P24881, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P66624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, } } @@ -69526,7 +71598,7 @@ function music_soundToInstructionBuffer_inline__P24881_mk(s) { -function music_waveToValue__P4596(s) { +function Fx_idiv__P64382(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69538,58 +71610,229 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + r0 = pxsim.Math_.idiv(s.arg0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_idiv__P64382.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} + +function Fx_idiv__P64382_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_idiv__P64382, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function ArcadePhysicsEngine_draw__P66737(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P66649_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 821; s.pc = 1; return s.tmp_0; case 1: - r0 = 15; - { step = 7; continue; } + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_draw__P66737.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} + +function ArcadePhysicsEngine_draw__P66737_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_draw__P66737, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_SpriteMap_draw__P66649(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.x___91991 = undefined; + s.y___91997 = undefined; + s.left___92003 = undefined; + s.top___92008 = undefined; + s.k___92013 = undefined; + s.b___92018 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C66645_VT)) failedCast(r0); + s.x___91991 = (0); + case 1: + r0 = s.arg0.fields["columnCount"]; + s.tmp_1 = r0; + r0 = (s.x___91991 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___91997 = (0); case 2: - r0 = 3; - { step = 7; continue; } + r0 = s.arg0.fields["rowCount"]; + s.tmp_1 = r0; + r0 = (s.y___91997 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["cellWidth"]; + s.tmp_2 = r0; + r0 = (s.x___91991 * s.tmp_2); + s.left___92003 = (r0); + r0 = s.arg0.fields["cellHeight"]; + s.tmp_0 = r0; + r0 = (s.y___91997 * s.tmp_0); + s.top___92008 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P69042_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.left___92003; + s.tmp_0.arg2 = s.top___92008; + s.callLocIdx = 771; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.k___92013 = (r0); + r0 = s.arg0.fields["buckets"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___92013); + s.b___92018 = (r0); + s.tmp_0 = r0 = s.b___92018; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: - r0 = 1; - { step = 7; continue; } + r0 = pxsim_Array__length(s.b___92018); case 4: - r0 = 18; - { step = 7; continue; } + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_imageDrawRect__P66161_mk(s); + s.tmp_2.arg0 = globals.screen___66232; + s.tmp_2.arg1 = s.left___92003; + s.tmp_2.arg2 = s.top___92008; + r0 = s.arg0.fields["cellWidth"]; + s.tmp_2.arg3 = r0; + r0 = s.arg0.fields["cellHeight"]; + s.tmp_2.arg4 = r0; + s.tmp_2.arg5 = 5; + s.callLocIdx = 772; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; case 5: - r0 = 2; - { step = 7; continue; } case 6: + r0 = (s.y___91997 + 1); + s.y___91997 = (r0); + { step = 2; continue; } + case 7: + r0 = (s.x___91991 + 1); + s.x___91991 = (r0); + { step = 1; continue; } + case 8: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_draw__P66649.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} + +function sprites_SpriteMap_draw__P66649_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_draw__P66649, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + x___91991: undefined, + y___91997: undefined, + left___92003: undefined, + top___92008: undefined, + k___92013: undefined, + b___92018: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_removeSprite__P66736(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg0.fields["sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); r0 = undefined; - case 7: return leave(s, r0) default: oops() } } } -music_waveToValue__P4596.info = {"start":9510,"length":307,"line":267,"column":4,"endLine":275,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"waveToValue","argumentNames":["wave"]} +ArcadePhysicsEngine_removeSprite__P66736.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function music_waveToValue__P4596_mk(s) { +function ArcadePhysicsEngine_removeSprite__P66736_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_waveToValue__P4596, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P66736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function effects_ImageEffect_startScreenEffect__P3274(s) { +function ArcadePhysicsEngine_addSprite__P66735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69599,78 +71842,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wasRunning___25102 = undefined; + s.tm___92055 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C3270_VT)) failedCast(r0); - s.tmp_4 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1996; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - r0 = r0.fields["background"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_image"]; - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - s.tmp_7 = r0; - r0 = pxsim_Boolean__bang(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!checkSubtype(r0, ArcadePhysicsEngine__C66726_VT)) failedCast(r0); + r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = game_currentScene__P67198_mk(s); + s.callLocIdx = 819; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___92055 = (r0); + s.tmp_0 = r0 = s.tm___92055; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = tiles_TileMap_isOnWall__P66957_mk(s); + s.tmp_1.arg0 = s.tm___92055; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 820; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; case 2: - r0 = s.arg0.fields["times"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 != undefined); - s.wasRunning___25102 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = s.arg1; - { step = 4; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = s.tmp_3.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 | 256); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["flags"] = (s.tmp_4); case 3: - r0 = 15; case 4: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["times"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.wasRunning___25102); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkAction(2, effects_ImageEffect_startScreenEffect_inline__P25115); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg2); - r0 = pxsim.control.runInParallel(s.tmp_2); - case 5: - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_startScreenEffect__P3274.info = {"start":1457,"length":637,"line":41,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"startScreenEffect","argumentNames":["this","times","delay"]} +ArcadePhysicsEngine_addSprite__P66735.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function effects_ImageEffect_startScreenEffect__P3274_mk(s) { +function ArcadePhysicsEngine_addSprite__P66735_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_startScreenEffect__P3274, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P66735, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -69678,21 +71901,16 @@ function effects_ImageEffect_startScreenEffect__P3274_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - wasRunning___25102: undefined, + tm___92055: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function effects_ImageEffect_startScreenEffect_inline__P25115(s) { +function scene_BackgroundLayer_constructor__P66885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69702,68 +71920,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - case 1: - r0 = s.caps[0].fields["times"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = effects_ImageEffect_change__P3273_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_3 = scene_backgroundImage__P2866_mk(s); - s.callLocIdx = 1998; s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.callLocIdx = 1999; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.caps[1]); - if (!r0) { step = 2; continue; } - r0 = s.caps[1]; - { step = 3; continue; } - case 2: - r0 = s.caps[0].fields["preferredDelay"]; - case 3: - // jmp value (already in r0) - s.tmp_0 = r0; - s.tmp_1 = pause__P413_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 2000; s.pc = 7; return s.tmp_1; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_BackgroundLayer__C66878_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_max__P64349_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 1190; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["times"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["times"] = (s.tmp_1); - { step = 1; continue; } + r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); + r0 = (s.arg0).fields["img"] = (s.arg3); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 1: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 2: + case 3: + r0 = (s.arg0).fields["repeatX"] = (false); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (s.arg2); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } case 4: - r0 = (s.caps[0]).fields["times"] = (undefined); + case 5: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (false); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (s.arg2); + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_startScreenEffect_inline__P25115.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} +scene_BackgroundLayer_constructor__P66885.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]} -function effects_ImageEffect_startScreenEffect_inline__P25115_mk(s) { +function scene_BackgroundLayer_constructor__P66885_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_startScreenEffect_inline__P25115, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P66885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_backgroundImage__P2866(s) { +function scene_Camera_y__P66990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69773,37 +72006,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___25134 = undefined; - s.tmp_0 = game_currentScene__P2979_mk(s); - s.callLocIdx = 1376; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___25134 = (r0); - s.tmp_0 = scene_Background_image__P2655_mk(s); - r0 = s.scene___25134.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1377; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___66232); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_backgroundImage__P2866.info = {"start":2297,"length":130,"line":90,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"backgroundImage","argumentNames":[]} +scene_Camera_y__P66990.info = {"start":1536,"length":75,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} +scene_Camera_y__P66990.isGetter = true; -function scene_backgroundImage__P2866_mk(s) { +function scene_Camera_y__P66990_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_backgroundImage__P2866, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P66990, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___25134: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function scene_Background_hasBackgroundImage__P2657(s) { +function scene_Camera_x__P66989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69818,30 +72055,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2649_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_Background_hasBackgroundImage__P2657.info = {"start":1081,"length":75,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"hasBackgroundImage","argumentNames":["this"]} +scene_Camera_x__P66989.info = {"start":1453,"length":74,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} +scene_Camera_x__P66989.isGetter = true; -function scene_Background_hasBackgroundImage__P2657_mk(s) { +function scene_Camera_x__P66989_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_hasBackgroundImage__P2657, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P66989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, arg0: undefined, } } @@ -69849,7 +72084,7 @@ function scene_Background_hasBackgroundImage__P2657_mk(s) { -function particles_ParticleSource_factory__P3149(s) { +function particles_ParticleSource_factory__P67368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69864,18 +72099,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); r0 = s.arg0.fields["_factory"]; return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource_factory__P3149.info = {"start":7951,"length":76,"line":264,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"factory","argumentNames":["this"]} -particles_ParticleSource_factory__P3149.isGetter = true; +particles_ParticleSource_factory__P67368.info = {"start":7951,"length":76,"line":264,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"factory","argumentNames":["this"]} +particles_ParticleSource_factory__P67368.isGetter = true; -function particles_ParticleSource_factory__P3149_mk(s) { +function particles_ParticleSource_factory__P67368_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_factory__P3149, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_factory__P67368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -69884,7 +72119,7 @@ function particles_ParticleSource_factory__P3149_mk(s) { -function particles_ParticleSource___draw__P3137(s) { +function particles_ParticleSource___draw__P67356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69894,18 +72129,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___27901 = undefined; - s.left___27904 = undefined; - s.top___27914 = undefined; + s.current___92122 = undefined; + s.left___92125 = undefined; + s.top___92135 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___27901 = (r0); + s.current___92122 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -69923,7 +72158,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___27904 = (s.tmp_4); + s.left___92125 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -69941,49 +72176,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___27914 = (s.tmp_4); + s.top___92135 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___27901); + r0 = pxsim_numops_toBoolDecr(s.current___92122); if (!r0) { step = 8; continue; } - r0 = s.current___27901.fields["lifespan"]; + r0 = s.current___92122.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_2 = particles_ParticleSource_drawParticle__P5349_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P69568_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___27901; - s.tmp_2.arg2 = s.left___27904; - s.tmp_2.arg3 = s.top___27914; + s.tmp_2.arg1 = s.current___92122; + s.tmp_2.arg2 = s.left___92125; + s.tmp_2.arg3 = s.top___92135; s.callLocIdx = 1814; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___27901.fields["next"]; - s.current___27901 = (r0); + r0 = s.current___92122.fields["next"]; + s.current___92122 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P3137.info = {"start":3216,"length":468,"line":112,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} +particles_ParticleSource___draw__P67356.info = {"start":3216,"length":468,"line":112,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} -function particles_ParticleSource___draw__P3137_mk(s) { +function particles_ParticleSource___draw__P67356_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P3137, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P67356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - current___27901: undefined, - left___27904: undefined, - top___27914: undefined, + current___92122: undefined, + left___92125: undefined, + top___92135: undefined, arg0: undefined, arg1: undefined, } } @@ -69992,7 +72227,7 @@ function particles_ParticleSource___draw__P3137_mk(s) { -function particles_ParticleSource_drawParticle__P5349(s) { +function particles_ParticleSource_drawParticle__P69568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70010,8 +72245,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C3131_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C3167_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C67350_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C67386_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -70023,7 +72258,7 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 - s.arg3); s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C3167_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C67386_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawParticle; s.pc = 1; return s.tmp_0; case 1: @@ -70032,12 +72267,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P5349.info = {"start":8615,"length":174,"line":287,"column":8,"endLine":289,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} +particles_ParticleSource_drawParticle__P69568.info = {"start":8615,"length":174,"line":287,"column":8,"endLine":289,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} -function particles_ParticleSource_drawParticle__P5349_mk(s) { +function particles_ParticleSource_drawParticle__P69568_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P5349, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P69568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70052,7 +72287,7 @@ function particles_ParticleSource_drawParticle__P5349_mk(s) { -function particles_ParticleFactory_drawParticle__P3170(s) { +function particles_ParticleFactory_drawParticle__P67389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70070,8 +72305,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C3167_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2013; + if (!checkSubtype(r0, particles_ParticleFactory__C67386_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___66232; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -70085,12 +72320,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P3170.info = {"start":2265,"length":118,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} +particles_ParticleFactory_drawParticle__P67389.info = {"start":2265,"length":118,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} -function particles_ParticleFactory_drawParticle__P3170_mk(s) { +function particles_ParticleFactory_drawParticle__P67389_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P3170, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P67389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70107,7 +72342,7 @@ function particles_ParticleFactory_drawParticle__P3170_mk(s) { -function particles_AshFactory_createParticle__P3213(s) { +function game_Dialog_drawTextCore__P67130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70117,309 +72352,215 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___25152 = undefined; - s.choice___25161 = undefined; - s.p___25166 = undefined; + s.lines___92193 = undefined; + s.availableWidth___92199 = undefined; + s.availableHeight___92202 = undefined; + s.charactersPerRow___92205 = undefined; + s.rowsOfCharacters___92213 = undefined; + s.textLeft___92224 = undefined; + s.textTop___92246 = undefined; + s.row___92261 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C3211_VT)) failedCast(r0); - r0 = s.arg0.fields["colors"]; + if (!checkSubtype(r0, game_Dialog__C67120_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 === 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 7; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); case 2: - s.tmp_3 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = 0; - r0 = s.arg0.fields["colors"]; + // jmp value (already in r0) s.tmp_5 = r0; - r0 = pxsim_Array__length(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - s.tmp_3.arg2 = r0; - s.callLocIdx = 1950; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.index___25152 = (r0); - r0 = s.arg0.fields["colors"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.index___25152); - s.choice___25161 = (r0); - s.tmp_0 = particles_AreaFactory_createParticle__P3183_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1951; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.p___25166 = (r0); - s.tmp_0 = r0 = s.choice___25161; - r0 = s.tmp_0.fields["count"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["count"] = (s.tmp_1); - r0 = s.choice___25161.fields["count"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["colors"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.removeAt(s.tmp_2, s.index___25152); + { step = 9; continue; } case 3: case 4: - r0 = s.choice___25161.fields["color"]; - s.tmp_0 = r0; - r0 = (s.p___25166).fields["color"] = (s.tmp_0); - s.tmp_0 = r0 = s.p___25166; - s.tmp_3 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_3.arg0 = r0; - r0 = s.arg0.fields["yRange"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3.arg1 = r0; - r0 = s.arg0.fields["yRange"]; - s.tmp_3.arg2 = r0; - s.callLocIdx = 1952; s.pc = 10; return s.tmp_3; + r0 = s.arg0.fields["chunks"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.lines___92193 = (r0); + s.tmp_0 = game_BaseDialog_textAreaWidth__P69194_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1431; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_2 = r0; - r0 = s.p___25166.fields["_y"]; - s.tmp_5 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_6 = r0; - r0 = (s.tmp_6 + s.tmp_5); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_1 = if_vx_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "vx"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["vx"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["vx"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1954; s.pc = 11; return s.tmp_1; } - } + s.availableWidth___92199 = (r0); + s.tmp_0 = game_BaseDialog_textAreaHeight__P69195_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1432; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_5 = if_vx_1_mk(s); - s.tmp_5.arg0 = s.arg1; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "vx"); + s.availableHeight___92202 = (r0); + s.tmp_1 = r0 = s.availableWidth___92199; + s.tmp_3 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["vx"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["vx"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1955; s.pc = 12; return s.tmp_5; } + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1433; s.pc = 12; return s.tmp_3; } } case 12: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 2); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = (s.p___25166).fields["vx"] = (s.tmp_7); - s.tmp_0 = r0 = s.p___25166; - s.tmp_3 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = -150; - s.tmp_3.arg2 = -50; - s.callLocIdx = 1958; s.pc = 13; return s.tmp_3; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerRow___92205 = (r0); + s.tmp_1 = r0 = s.availableHeight___92202; + s.tmp_3 = game_BaseDialog_rowHeight__P69193_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1434; s.pc = 13; return s.tmp_3; case 13: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.rowsOfCharacters___92213 = (r0); + r0 = s.arg0.fields["unit"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___25166; - case 7: - return leave(s, r0) - default: oops() -} } } -particles_AshFactory_createParticle__P3213.info = {"start":13251,"length":665,"line":425,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} - -function particles_AshFactory_createParticle__P3213_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_AshFactory_createParticle__P3213, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - index___25152: undefined, - choice___25161: undefined, - p___25166: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_AreaFactory_createParticle__P3183(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.p___25221 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C3177_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P3173_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1895; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.p___25221 = (r0); - s.tmp_0 = r0 = s.p___25221; - s.tmp_2 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_2.arg0 = r0; - r0 = s.arg0.fields["minLifespan"]; - s.tmp_2.arg1 = r0; - r0 = s.arg0.fields["maxLifespan"]; - s.tmp_2.arg2 = r0; - s.callLocIdx = 1896; s.pc = 4; return s.tmp_2; - case 4: + r0 = (s.tmp_1 > 12); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = game_BaseDialog_drawBorder__P69188_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1435; s.pc = 14; return s.tmp_2; + case 14: r0 = s.retval; + case 5: + case 6: + r0 = s.arg0.fields["innerLeft"]; + s.tmp_2 = r0; + r0 = (1 + s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___25221; - s.tmp_4 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; + s.tmp_4 = Math_min__P64350_mk(s); + r0 = s.arg0.fields["unit"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = 0; - r0 = s.arg0.fields["xRange"]; - s.tmp_4.arg2 = r0; - s.callLocIdx = 1897; s.pc = 5; return s.tmp_4; - case 5: + s.tmp_4.arg1 = 12; + s.callLocIdx = 1436; s.pc = 15; return s.tmp_4; + case 15: r0 = s.retval; s.tmp_3 = r0; - r0 = s.arg0.fields["xRange"]; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0 = r0; + s.tmp_7 = r0 = s.availableWidth___92199; + s.tmp_9 = r0 = s.charactersPerRow___92205; + s.tmp_11 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_11.arg0 = r0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charWidth"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charWidth"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charWidth"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1437; s.pc = 16; return s.tmp_11; } + } + case 16: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_9 * s.tmp_10); + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); s.tmp_6 = r0; r0 = (s.tmp_6 >> 1); s.tmp_5 = r0; - r0 = (s.tmp_3 - s.tmp_5); + r0 = (s.tmp_0 + s.tmp_5); + s.textLeft___92224 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_3); s.tmp_2 = r0; - r0 = s.p___25221.fields["_x"]; - s.tmp_7 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_8 = r0; - r0 = (s.tmp_8 + s.tmp_7); + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_1 = if_height_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "height"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1900; s.pc = 6; return s.tmp_1; } - } - case 6: - r0 = s.retval; + r0 = (1 + s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = if_height_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "height"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1901; s.pc = 7; return s.tmp_3; } - } - case 7: + r0 = pxsim_Array__length(s.lines___92193); + s.tmp_6 = r0; + s.tmp_8 = game_BaseDialog_rowHeight__P69193_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1438; s.pc = 17; return s.tmp_8; + case 17: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___25221; - s.tmp_9 = Math_FastRandom_randomRange__P3043_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = 0; - r0 = s.arg0.fields["yRange"]; - s.tmp_9.arg2 = r0; - s.callLocIdx = 1899; s.pc = 8; return s.tmp_9; - case 8: + r0 = (s.tmp_0 - s.tmp_4); + s.textTop___92246 = (r0); + s.row___92261 = (0); + case 7: + s.tmp_1 = r0 = s.row___92261; + r0 = pxsim_Array__length(s.lines___92193); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_3 = helpers_imagePrint__P66190_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.lines___92193, s.row___92261); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.textLeft___92224; + s.tmp_4 = r0 = s.textTop___92246; + s.tmp_6 = r0 = s.row___92261; + s.tmp_8 = game_BaseDialog_rowHeight__P69193_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1439; s.pc = 19; return s.tmp_8; + case 19: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 - s.tmp_4); s.tmp_7 = r0; - r0 = s.p___25221.fields["_y"]; - s.tmp_10 = r0; - r0 = (s.tmp_7 << 8); - s.tmp_11 = r0; - r0 = (s.tmp_11 + s.tmp_10); - s.tmp_6 = r0; - r0 = (s.tmp_5).fields["_y"] = (s.tmp_6); - r0 = s.p___25221; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3.arg3 = r0; + r0 = s.arg0.fields["textColor"]; + s.tmp_3.arg4 = r0; + r0 = s.arg0.fields["font"]; + s.tmp_3.arg5 = r0; + s.tmp_3.arg6 = undefined; + s.callLocIdx = 1440; s.pc = 18; return s.tmp_3; + case 18: + r0 = s.retval; + r0 = (s.row___92261 + 1); + s.row___92261 = (r0); + { step = 7; continue; } + case 8: + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P3183.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +game_Dialog_drawTextCore__P67130.info = {"start":7867,"length":1045,"line":247,"column":8,"endLine":269,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function particles_AreaFactory_createParticle__P3183_mk(s) { +function game_Dialog_drawTextCore__P67130_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P3183, depth: s.depth + 1, + parent: s, fn: game_Dialog_drawTextCore__P67130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70433,16 +72574,22 @@ function particles_AreaFactory_createParticle__P3183_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___25221: undefined, + lines___92193: undefined, + availableWidth___92199: undefined, + availableHeight___92202: undefined, + charactersPerRow___92205: undefined, + rowsOfCharacters___92213: undefined, + textLeft___92224: undefined, + textTop___92246: undefined, + row___92261: undefined, arg0: undefined, - arg1: undefined, } } -function particles_SprayFactory_createParticle__P3173(s) { +function game_BaseDialog_setText__P67117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70452,75 +72599,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___25269 = undefined; - s.angle___25273 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C3171_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P3169_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1884; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.p___25269 = (r0); - r0 = s.arg0.fields["minAngle"]; - s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P3043_mk(s); - s.tmp_3.arg0 = globals.galois___5363; - s.tmp_3.arg1 = 0; - r0 = s.arg0.fields["spread"]; - s.tmp_3.arg2 = r0; - s.callLocIdx = 1885; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 % 100); - s.angle___25273 = (r0); - s.tmp_0 = r0 = s.p___25269; - r0 = pxsim_Array__getAt(globals.cachedSin___5358, s.angle___25273); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___25269; - r0 = pxsim_Array__getAt(globals.cachedCos___5359, s.angle___25273); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___25269; + if (!checkSubtype(r0, game_BaseDialog__C67102_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P3173.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +game_BaseDialog_setText__P67117.info = {"start":2302,"length":77,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} -function particles_SprayFactory_createParticle__P3173_mk(s) { +function game_BaseDialog_setText__P67117_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P3173, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setText__P67117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - p___25269: undefined, - angle___25273: undefined, arg0: undefined, arg1: undefined, } } @@ -70529,189 +72625,7 @@ function particles_SprayFactory_createParticle__P3173_mk(s) { -function sprites_SpriteSet_toString__P2454(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, " sprites"); - return leave(s, r0) - default: oops() -} } } -sprites_SpriteSet_toString__P2454.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} - -function sprites_SpriteSet_toString__P2454_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteSet_toString__P2454, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } - - - - - -function sprites_SpriteSet_length__P2446(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2443_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_SpriteSet_length__P2446.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} -sprites_SpriteSet_length__P2446.isGetter = true; - -function sprites_SpriteSet_length__P2446_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteSet_length__P2446, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function scene_Camera_y__P2771(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_y__P2771.info = {"start":1536,"length":75,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} -scene_Camera_y__P2771.isGetter = true; - -function scene_Camera_y__P2771_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_y__P2771, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function scene_Camera_x__P2770(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_x__P2770.info = {"start":1453,"length":74,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} -scene_Camera_x__P2770.isGetter = true; - -function scene_Camera_x__P2770_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_x__P2770, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function statusbars_StatusBar_image__P4371(s) { +function statusbars_StatusBar_image__P68590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70727,17 +72641,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4345_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C68564_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_image__P4371.info = {"start":17585,"length":86,"line":512,"column":8,"endLine":514,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this","v"]} +statusbars_StatusBar_image__P68590.info = {"start":17585,"length":86,"line":512,"column":8,"endLine":514,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this","v"]} -function statusbars_StatusBar_image__P4371_mk(s) { +function statusbars_StatusBar_image__P68590_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_image__P4371, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_image__P68590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -70747,7 +72661,7 @@ function statusbars_StatusBar_image__P4371_mk(s) { -function music_MelodyPlayable_play__P1903(s) { +function music_MelodyPlayable_play__P66122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70763,15 +72677,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayable__C1901_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayable__C66120_VT)) failedCast(r0); r0 = (s.arg1 === 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_Melody_play__P1633_mk(s); + s.tmp_1 = music_Melody_play__P65852_mk(s); r0 = s.arg0.fields["melody"]; s.tmp_1.arg0 = r0; - s.tmp_2 = music_volume__P1621_mk(s); + s.tmp_2 = music_volume__P65840_mk(s); s.callLocIdx = 173; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; @@ -70785,10 +72699,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = music_Melody_playUntilDone__P1634_mk(s); + s.tmp_1 = music_Melody_playUntilDone__P65853_mk(s); r0 = s.arg0.fields["melody"]; s.tmp_1.arg0 = r0; - s.tmp_2 = music_volume__P1621_mk(s); + s.tmp_2 = music_volume__P65840_mk(s); s.callLocIdx = 175; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; @@ -70798,10 +72712,10 @@ switch (step) { r0 = s.retval; { step = 3; continue; } case 2: - s.tmp_0 = music_Melody_loop__P1632_mk(s); + s.tmp_0 = music_Melody_loop__P65851_mk(s); r0 = s.arg0.fields["melody"]; s.tmp_0.arg0 = r0; - s.tmp_1 = music_volume__P1621_mk(s); + s.tmp_1 = music_volume__P65840_mk(s); s.callLocIdx = 177; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; @@ -70815,12 +72729,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_MelodyPlayable_play__P1903.info = {"start":1608,"length":390,"line":72,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["this","playbackMode"]} +music_MelodyPlayable_play__P66122.info = {"start":1608,"length":390,"line":72,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"play","argumentNames":["this","playbackMode"]} -function music_MelodyPlayable_play__P1903_mk(s) { +function music_MelodyPlayable_play__P66122_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayable_play__P1903, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayable_play__P66122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70833,7 +72747,7 @@ function music_MelodyPlayable_play__P1903_mk(s) { -function music_Melody_playUntilDone__P1634(s) { +function music_Melody_playUntilDone__P65853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70843,42 +72757,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___28118 = undefined; + s.p___92339 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_stop__P1631_mk(s); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + s.tmp_0 = music_Melody_stop__P65850_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 99; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C1637_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C65856_VT); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayer_constructor__P1640_mk(s); + s.tmp_1 = music_MelodyPlayer_constructor__P65859_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 100; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; r0 = (s.arg0).fields["_player"] = (s.tmp_0); - s.p___28118 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(2, music_Melody_playUntilDone_inline__P28127); + s.p___92339 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(2, music_Melody_playUntilDone_inline__P92348); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.p___28118); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.p___92339); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); r0 = s.arg0.fields["_player"]; s.tmp_1 = r0; r0 = (s.tmp_1).fields["onPlayFinished"] = (s.tmp_0); - s.tmp_0 = music_Melody_registerMelody__P4567_mk(s); + s.tmp_0 = music_Melody_registerMelody__P68786_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 102; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = music_MelodyPlayer_play__P1642_mk(s); + s.tmp_0 = music_MelodyPlayer_play__P65861_mk(s); r0 = s.arg0.fields["_player"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -70889,16 +72803,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_Melody_playUntilDone__P1634.info = {"start":9869,"length":344,"line":307,"column":8,"endLine":316,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playUntilDone","argumentNames":["this","volume"]} +music_Melody_playUntilDone__P65853.info = {"start":9869,"length":344,"line":307,"column":8,"endLine":316,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playUntilDone","argumentNames":["this","volume"]} -function music_Melody_playUntilDone__P1634_mk(s) { +function music_Melody_playUntilDone__P65853_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playUntilDone__P1634, depth: s.depth + 1, + parent: s, fn: music_Melody_playUntilDone__P65853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___28118: undefined, + p___92339: undefined, arg0: undefined, arg1: undefined, } } @@ -70907,7 +72821,7 @@ function music_Melody_playUntilDone__P1634_mk(s) { -function music_Melody_playUntilDone_inline__P28127(s) { +function music_Melody_playUntilDone_inline__P92348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70923,7 +72837,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = music_Melody_unregisterMelody__P4568_mk(s); + s.tmp_2 = music_Melody_unregisterMelody__P68787_mk(s); s.tmp_2.arg0 = s.caps[1]; s.callLocIdx = 101; s.pc = 3; return s.tmp_2; case 3: @@ -70934,12 +72848,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_Melody_playUntilDone_inline__P28127.info = {"start":10025,"length":105,"line":310,"column":42,"endLine":313,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +music_Melody_playUntilDone_inline__P92348.info = {"start":10025,"length":105,"line":310,"column":42,"endLine":313,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function music_Melody_playUntilDone_inline__P28127_mk(s) { +function music_Melody_playUntilDone_inline__P92348_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playUntilDone_inline__P28127, depth: s.depth + 1, + parent: s, fn: music_Melody_playUntilDone_inline__P92348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70950,7 +72864,7 @@ function music_Melody_playUntilDone_inline__P28127_mk(s) { -function music_Melody_loop__P1632(s) { +function music_Melody_loop__P65851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70966,8 +72880,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_playCore__P4569_mk(s); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); + s.tmp_0 = music_Melody_playCore__P68788_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = true; @@ -70978,12 +72892,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_Melody_loop__P1632.info = {"start":8990,"length":70,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"loop","argumentNames":["this","volume"]} +music_Melody_loop__P65851.info = {"start":8990,"length":70,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"loop","argumentNames":["this","volume"]} -function music_Melody_loop__P1632_mk(s) { +function music_Melody_loop__P65851_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_loop__P1632, depth: s.depth + 1, + parent: s, fn: music_Melody_loop__P65851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -70994,7 +72908,7 @@ function music_Melody_loop__P1632_mk(s) { -function music_Melody_toString__P1635(s) { +function music_Melody_toString__P65854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71009,17 +72923,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C65845_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P1635.info = {"start":10223,"length":53,"line":318,"column":8,"endLine":320,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +music_Melody_toString__P65854.info = {"start":10223,"length":53,"line":318,"column":8,"endLine":320,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function music_Melody_toString__P1635_mk(s) { +function music_Melody_toString__P65854_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P1635, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P65854, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -71028,7 +72942,7 @@ function music_Melody_toString__P1635_mk(s) { -function Sprite_toString__P2414(s) { +function Sprite_toString__P66633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71043,7 +72957,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -71061,7 +72975,7 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P2334_mk(s); + s.tmp_14 = Sprite_x__P66553_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 724; s.pc = 2; return s.tmp_14; case 2: @@ -71080,7 +72994,7 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P2336_mk(s); + s.tmp_17 = Sprite_y__P66555_mk(s); s.tmp_17.arg0 = s.arg0; s.callLocIdx = 725; s.pc = 4; return s.tmp_17; case 4: @@ -71099,7 +73013,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P2338_mk(s); + s.tmp_20 = Sprite_vx__P66557_mk(s); s.tmp_20.arg0 = s.arg0; s.callLocIdx = 726; s.pc = 6; return s.tmp_20; case 6: @@ -71118,7 +73032,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P2340_mk(s); + s.tmp_23 = Sprite_vy__P66559_mk(s); s.tmp_23.arg0 = s.arg0; s.callLocIdx = 727; s.pc = 8; return s.tmp_23; case 8: @@ -71139,12 +73053,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P2414.info = {"start":33951,"length":93,"line":1064,"column":4,"endLine":1066,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P66633.info = {"start":33951,"length":93,"line":1064,"column":4,"endLine":1066,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P2414_mk(s) { +function Sprite_toString__P66633_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P2414, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P66633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71177,7 +73091,7 @@ function Sprite_toString__P2414_mk(s) { -function Sprite___update__P2396(s) { +function Sprite___update__P66615(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71194,7 +73108,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -71216,7 +73130,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = Sprite__destroyCore__P2409_mk(s); + s.tmp_0 = Sprite__destroyCore__P66628_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 662; s.pc = 11; return s.tmp_0; case 11: @@ -71234,7 +73148,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P2394_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P66613_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 663; s.pc = 12; return s.tmp_2; @@ -71245,7 +73159,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P2408_mk(s); + s.tmp_4 = Sprite_destroy__P66627_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; @@ -71258,13 +73172,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_1 = sprites_BaseSpriteSayRenderer__C2240_v1_4_mk(s); + s.tmp_1 = sprites_BaseSpriteSayRenderer__C66459_v1_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg2; s.tmp_1.arg2 = s.arg1; s.tmp_1.arg3 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.update; s.pc = 14; return s.tmp_1; case 14: @@ -71275,12 +73189,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P2396.info = {"start":18662,"length":483,"line":628,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P66615.info = {"start":18662,"length":483,"line":628,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P2396_mk(s) { +function Sprite___update__P66615_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P2396, depth: s.depth + 1, + parent: s, fn: Sprite___update__P66615, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71297,7 +73211,7 @@ function Sprite___update__P2396_mk(s) { -function Sprite_isOutOfScreen__P2394(s) { +function Sprite_isOutOfScreen__P66613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71307,15 +73221,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___28213 = undefined; - s.oy___28221 = undefined; + s.ox___92434 = undefined; + s.oy___92442 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -71329,7 +73243,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___28213 = (s.tmp_2); + s.ox___92434 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -71343,14 +73257,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___28221 = (s.tmp_2); - s.tmp_3 = Sprite_right__P2381_mk(s); + s.oy___92442 = (s.tmp_2); + s.tmp_3 = Sprite_right__P66600_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 653; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___28213); + r0 = (s.tmp_2 - s.ox___92434); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -71359,13 +73273,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P2385_mk(s); + s.tmp_6 = Sprite_bottom__P66604_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 654; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___28221); + r0 = (s.tmp_5 - s.oy___92442); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -71376,15 +73290,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P2379_mk(s); + s.tmp_10 = Sprite_left__P66598_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 655; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___28213); + r0 = (s.tmp_9 - s.ox___92434); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -71395,15 +73309,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P2383_mk(s); + s.tmp_15 = Sprite_top__P66602_mk(s); s.tmp_15.arg0 = s.arg0; s.callLocIdx = 656; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___28221); + r0 = (s.tmp_14 - s.oy___92442); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); + r0 = pxsim_ImageMethods.height(globals.screen___66232); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -71413,12 +73327,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P2394.info = {"start":17830,"length":358,"line":607,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P66613.info = {"start":17830,"length":358,"line":607,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P2394_mk(s) { +function Sprite_isOutOfScreen__P66613_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P2394, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P66613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71438,8 +73352,8 @@ function Sprite_isOutOfScreen__P2394_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___28213: undefined, - oy___28221: undefined, + ox___92434: undefined, + oy___92442: undefined, arg0: undefined, arg1: undefined, } } @@ -71448,7 +73362,7 @@ function Sprite_isOutOfScreen__P2394_mk(s) { -function sprites_BaseSpriteSayRenderer_update__P2243(s) { +function sprites_BaseSpriteSayRenderer_update__P66462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71466,17 +73380,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_update__P2243.info = {"start":250,"length":68,"line":9,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"update","argumentNames":["this","dt","camera","owner"]} +sprites_BaseSpriteSayRenderer_update__P66462.info = {"start":250,"length":68,"line":9,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"update","argumentNames":["this","dt","camera","owner"]} -function sprites_BaseSpriteSayRenderer_update__P2243_mk(s) { +function sprites_BaseSpriteSayRenderer_update__P66462_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_update__P2243, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_update__P66462, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -71488,7 +73402,7 @@ function sprites_BaseSpriteSayRenderer_update__P2243_mk(s) { -function Sprite_data__P2357(s) { +function Sprite_data__P66576(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71504,18 +73418,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P2357.info = {"start":6536,"length":56,"line":241,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P66576.info = {"start":6536,"length":56,"line":241,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P2357_mk(s) { +function Sprite_data__P66576_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P2357, depth: s.depth + 1, + parent: s, fn: Sprite_data__P66576, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -71525,7 +73439,7 @@ function Sprite_data__P2357_mk(s) { -function sprites_BaseSprite___update__P2083(s) { +function sprites_BaseSprite___update__P66302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71542,17 +73456,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P2083.info = {"start":1027,"length":46,"line":45,"column":8,"endLine":45,"endColumn":54,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +sprites_BaseSprite___update__P66302.info = {"start":1027,"length":46,"line":45,"column":8,"endLine":45,"endColumn":54,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function sprites_BaseSprite___update__P2083_mk(s) { +function sprites_BaseSprite___update__P66302_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P2083, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P66302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -71563,7 +73477,7 @@ function sprites_BaseSprite___update__P2083_mk(s) { -function sprites_BaseSprite___draw__P2081(s) { +function sprites_BaseSprite___draw__P66300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71579,10 +73493,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C2075_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C66294_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C2075_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C66294_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.__visible; s.pc = 3; return s.tmp_1; case 3: @@ -71590,10 +73504,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C2075_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C66294_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C2075_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C66294_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.__drawCore; s.pc = 4; return s.tmp_2; case 4: @@ -71604,12 +73518,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P2081.info = {"start":840,"length":131,"line":37,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__draw","argumentNames":["this","camera"]} +sprites_BaseSprite___draw__P66300.info = {"start":840,"length":131,"line":37,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__draw","argumentNames":["this","camera"]} -function sprites_BaseSprite___draw__P2081_mk(s) { +function sprites_BaseSprite___draw__P66300_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P2081, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P66300, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71622,7 +73536,7 @@ function sprites_BaseSprite___draw__P2081_mk(s) { -function sprites_BaseSprite___drawCore__P2082(s) { +function sprites_BaseSprite___drawCore__P66301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71638,17 +73552,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P2082.info = {"start":981,"length":36,"line":43,"column":8,"endLine":43,"endColumn":44,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +sprites_BaseSprite___drawCore__P66301.info = {"start":981,"length":36,"line":43,"column":8,"endLine":43,"endColumn":44,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function sprites_BaseSprite___drawCore__P2082_mk(s) { +function sprites_BaseSprite___drawCore__P66301_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P2082, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P66301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -71658,7 +73572,7 @@ function sprites_BaseSprite___drawCore__P2082_mk(s) { -function sprites_BaseSprite___visible__P2078(s) { +function sprites_BaseSprite___visible__P66297(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71673,17 +73587,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2075_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C66294_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P2078.info = {"start":524,"length":57,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__visible","argumentNames":["this"]} +sprites_BaseSprite___visible__P66297.info = {"start":524,"length":57,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__visible","argumentNames":["this"]} -function sprites_BaseSprite___visible__P2078_mk(s) { +function sprites_BaseSprite___visible__P66297_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P2078, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P66297, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -71692,7 +73606,7 @@ function sprites_BaseSprite___visible__P2078_mk(s) { -function controller_AnyButton_isPressed__P4797(s) { +function controller_AnyButton_isPressed__P69016(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71702,36 +73616,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___28269 = undefined; - s.b___28273 = undefined; - s.unnamed84___U2 = undefined; - s.unnamed85___U3 = undefined; + s.ctrl___92490 = undefined; + s.b___92494 = undefined; + s.unnamed356___U2 = undefined; + s.unnamed357___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C4789_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P2109_mk(s); + if (!checkSubtype(r0, controller_AnyButton__C69008_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P66328_mk(s); s.callLocIdx = 318; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___28269 = (r0); - s.b___28273 = (undefined); - r0 = s.ctrl___28269.fields["buttons"]; - s.unnamed84___U2 = (r0); - s.unnamed85___U3 = (0); + s.ctrl___92490 = (r0); + s.b___92494 = (undefined); + r0 = s.ctrl___92490.fields["buttons"]; + s.unnamed356___U2 = (r0); + s.unnamed357___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed85___U3; - r0 = pxsim_Array__length(s.unnamed84___U2); + s.tmp_0 = r0 = s.unnamed357___U3; + r0 = pxsim_Array__length(s.unnamed356___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed84___U2, s.unnamed85___U3); - s.b___28273 = (r0); - s.tmp_3 = controller_Button__C2170_v0_1_mk(s); - s.tmp_3.arg0 = s.b___28273; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2170_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed356___U2, s.unnamed357___U3); + s.b___92494 = (r0); + s.tmp_3 = controller_Button__C66389_v0_1_mk(s); + s.tmp_3.arg0 = s.b___92494; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C66389_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; s.pc = 7; return s.tmp_3; case 7: @@ -71743,31 +73657,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed85___U3 + 1); - s.unnamed85___U3 = (r0); + r0 = (s.unnamed357___U3 + 1); + s.unnamed357___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed84___U2 = (undefined); + s.unnamed356___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P4797.info = {"start":15724,"length":202,"line":469,"column":8,"endLine":476,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_AnyButton_isPressed__P69016.info = {"start":15724,"length":202,"line":469,"column":8,"endLine":476,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P4797_mk(s) { +function controller_AnyButton_isPressed__P69016_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P4797, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P69016, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - ctrl___28269: undefined, - b___28273: undefined, - unnamed84___U2: undefined, - unnamed85___U3: undefined, + ctrl___92490: undefined, + b___92494: undefined, + unnamed356___U2: undefined, + unnamed357___U3: undefined, arg0: undefined, } } @@ -71775,7 +73689,7 @@ function controller_AnyButton_isPressed__P4797_mk(s) { -function controller_Button_toString__P2175(s) { +function controller_Button_toString__P66394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71790,7 +73704,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2170_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C66389_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -71830,12 +73744,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P2175.info = {"start":1894,"length":100,"line":73,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"toString","argumentNames":["this"]} +controller_Button_toString__P66394.info = {"start":1894,"length":100,"line":73,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"toString","argumentNames":["this"]} -function controller_Button_toString__P2175_mk(s) { +function controller_Button_toString__P66394_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P2175, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P66394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71851,7 +73765,177 @@ function controller_Button_toString__P2175_mk(s) { -function animation_Path_constructor__P3329(s) { +function sprites_StaticObstacle_width__P66707(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_StaticObstacle__C66697_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_StaticObstacle_width__P66707.info = {"start":1088,"length":68,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"width","argumentNames":["this"]} +sprites_StaticObstacle_width__P66707.isGetter = true; + +function sprites_StaticObstacle_width__P66707_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_width__P66707, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_StaticObstacle_height__P66706(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_StaticObstacle__C66697_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_StaticObstacle_height__P66706.info = {"start":1008,"length":70,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"height","argumentNames":["this"]} +sprites_StaticObstacle_height__P66706.isGetter = true; + +function sprites_StaticObstacle_height__P66706_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_height__P66706, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_StaticObstacle_y__P66705(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_StaticObstacle__C66697_VT)) failedCast(r0); + r0 = s.arg0.fields["top"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_StaticObstacle_y__P66705.info = {"start":921,"length":77,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"y","argumentNames":["this"]} +sprites_StaticObstacle_y__P66705.isGetter = true; + +function sprites_StaticObstacle_y__P66705_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_y__P66705, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function sprites_StaticObstacle_x__P66704(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_StaticObstacle__C66697_VT)) failedCast(r0); + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_StaticObstacle_x__P66704.info = {"start":834,"length":77,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"x","argumentNames":["this"]} +sprites_StaticObstacle_x__P66704.isGetter = true; + +function sprites_StaticObstacle_x__P66704_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_x__P66704, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function animation_Path_constructor__P67548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71867,7 +73951,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Path__C3327_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Path__C67546_VT)) failedCast(r0); r0 = (s.arg0).fields["path"] = (s.arg1); r0 = (s.arg0).fields["strIndex"] = (0); r0 = (s.arg0).fields["length"] = (0); @@ -71882,7 +73966,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_4 = animation_Path_readNextCommand__P5429_mk(s); + s.tmp_4 = animation_Path_readNextCommand__P69648_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 2016; s.pc = 5; return s.tmp_4; case 5: @@ -71901,7 +73985,7 @@ switch (step) { case 3: { step = 1; continue; } case 4: - s.tmp_0 = animation_Path_reset__P3330_mk(s); + s.tmp_0 = animation_Path_reset__P67549_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 2017; s.pc = 6; return s.tmp_0; case 6: @@ -71910,12 +73994,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -animation_Path_constructor__P3329.info = {"start":1081,"length":380,"line":46,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","path"]} +animation_Path_constructor__P67548.info = {"start":1081,"length":380,"line":46,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","path"]} -function animation_Path_constructor__P3329_mk(s) { +function animation_Path_constructor__P67548_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Path_constructor__P3329, depth: s.depth + 1, + parent: s, fn: animation_Path_constructor__P67548, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71930,7 +74014,7 @@ function animation_Path_constructor__P3329_mk(s) { -function sprites_StaticObstacle_width__P2488(s) { +function effects_SceneAnchor_height__P69614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71945,188 +74029,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2478_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_StaticObstacle_width__P2488.info = {"start":1088,"length":68,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"width","argumentNames":["this"]} -sprites_StaticObstacle_width__P2488.isGetter = true; - -function sprites_StaticObstacle_width__P2488_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_StaticObstacle_width__P2488, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_height__P2487(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2478_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_StaticObstacle_height__P2487.info = {"start":1008,"length":70,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"height","argumentNames":["this"]} -sprites_StaticObstacle_height__P2487.isGetter = true; - -function sprites_StaticObstacle_height__P2487_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_StaticObstacle_height__P2487, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_y__P2486(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2478_VT)) failedCast(r0); - r0 = s.arg0.fields["top"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_StaticObstacle_y__P2486.info = {"start":921,"length":77,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"y","argumentNames":["this"]} -sprites_StaticObstacle_y__P2486.isGetter = true; - -function sprites_StaticObstacle_y__P2486_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_StaticObstacle_y__P2486, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_x__P2485(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2478_VT)) failedCast(r0); - r0 = s.arg0.fields["left"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_StaticObstacle_x__P2485.info = {"start":834,"length":77,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"x","argumentNames":["this"]} -sprites_StaticObstacle_x__P2485.isGetter = true; - -function sprites_StaticObstacle_x__P2485_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_StaticObstacle_x__P2485, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, -} } - - - - - -function effects_SceneAnchor_height__P5395(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5391_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.height(globals.screen___2013); + if (!checkSubtype(r0, effects_SceneAnchor__C69610_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.height(globals.screen___66232); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_height__P5395.info = {"start":2634,"length":58,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"height","argumentNames":["this"]} -effects_SceneAnchor_height__P5395.isGetter = true; +effects_SceneAnchor_height__P69614.info = {"start":2634,"length":58,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"height","argumentNames":["this"]} +effects_SceneAnchor_height__P69614.isGetter = true; -function effects_SceneAnchor_height__P5395_mk(s) { +function effects_SceneAnchor_height__P69614_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_height__P5395, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_height__P69614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -72135,7 +74049,7 @@ function effects_SceneAnchor_height__P5395_mk(s) { -function effects_SceneAnchor_width__P5394(s) { +function effects_SceneAnchor_width__P69613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72150,18 +74064,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5391_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___2013); + if (!checkSubtype(r0, effects_SceneAnchor__C69610_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___66232); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_width__P5394.info = {"start":2568,"length":56,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"width","argumentNames":["this"]} -effects_SceneAnchor_width__P5394.isGetter = true; +effects_SceneAnchor_width__P69613.info = {"start":2568,"length":56,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"width","argumentNames":["this"]} +effects_SceneAnchor_width__P69613.isGetter = true; -function effects_SceneAnchor_width__P5394_mk(s) { +function effects_SceneAnchor_width__P69613_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_width__P5394, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_width__P69613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -72170,7 +74084,7 @@ function effects_SceneAnchor_width__P5394_mk(s) { -function effects_SceneAnchor_y__P5393(s) { +function effects_SceneAnchor_y__P69612(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72185,12 +74099,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5391_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C69610_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2013); + r0 = pxsim_ImageMethods.height(globals.screen___66232); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; @@ -72198,13 +74112,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_y__P5393.info = {"start":2476,"length":82,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"y","argumentNames":["this"]} -effects_SceneAnchor_y__P5393.isGetter = true; +effects_SceneAnchor_y__P69612.info = {"start":2476,"length":82,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"y","argumentNames":["this"]} +effects_SceneAnchor_y__P69612.isGetter = true; -function effects_SceneAnchor_y__P5393_mk(s) { +function effects_SceneAnchor_y__P69612_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_y__P5393, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_y__P69612, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72217,7 +74131,7 @@ function effects_SceneAnchor_y__P5393_mk(s) { -function effects_SceneAnchor_x__P5392(s) { +function effects_SceneAnchor_x__P69611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72232,12 +74146,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5391_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C69610_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2013); + r0 = pxsim_ImageMethods.width(globals.screen___66232); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; @@ -72245,13 +74159,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_x__P5392.info = {"start":2385,"length":81,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"x","argumentNames":["this"]} -effects_SceneAnchor_x__P5392.isGetter = true; +effects_SceneAnchor_x__P69611.info = {"start":2385,"length":81,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"x","argumentNames":["this"]} +effects_SceneAnchor_x__P69611.isGetter = true; -function effects_SceneAnchor_x__P5392_mk(s) { +function effects_SceneAnchor_x__P69611_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_x__P5392, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_x__P69611, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72264,7 +74178,7 @@ function effects_SceneAnchor_x__P5392_mk(s) { -function particles_ShapeFactory_drawParticle__P3196(s) { +function particles_ShapeFactory_drawParticle__P67415(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72274,7 +74188,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___28359 = undefined; + s.pImage___92580 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -72283,8 +74197,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C3193_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P3044_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C67412_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P67263_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; @@ -72294,12 +74208,12 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.pImage___28359 = (r0); + s.pImage___92580 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___28359, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___2013; - s.tmp_1 = r0 = s.pImage___28359; + r0 = pxsim_ImageMethods.replace(s.pImage___92580, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___66232; + s.tmp_1 = r0 = s.pImage___92580; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -72321,12 +74235,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P3196.info = {"start":7172,"length":323,"line":229,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_ShapeFactory_drawParticle__P67415.info = {"start":7172,"length":323,"line":229,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_ShapeFactory_drawParticle__P3196_mk(s) { +function particles_ShapeFactory_drawParticle__P67415_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P3196, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P67415, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72338,7 +74252,7 @@ function particles_ShapeFactory_drawParticle__P3196_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___28359: undefined, + pImage___92580: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -72349,7 +74263,7 @@ function particles_ShapeFactory_drawParticle__P3196_mk(s) { -function Math_FastRandom_pickRandom__P3044(s) { +function Math_FastRandom_pickRandom__P67263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72365,7 +74279,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C3039_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C67258_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -72388,7 +74302,7 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P3043_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P67262_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = 0; r0 = pxsim_Array__length(s.arg1); @@ -72404,12 +74318,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P3044.info = {"start":2358,"length":192,"line":70,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} +Math_FastRandom_pickRandom__P67263.info = {"start":2358,"length":192,"line":70,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} -function Math_FastRandom_pickRandom__P3044_mk(s) { +function Math_FastRandom_pickRandom__P67263_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P3044, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P67263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72427,7 +74341,7 @@ function Math_FastRandom_pickRandom__P3044_mk(s) { -function info_PlayerInfo_left__P2620(s) { +function info_PlayerInfo_left__P66839(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72443,7 +74357,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); r0 = s.arg0.fields["impl"]; s.tmp_0 = r0; r0 = (s.tmp_0).fields["left"] = (s.arg1); @@ -72451,12 +74365,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_PlayerInfo_left__P2620.info = {"start":27003,"length":72,"line":893,"column":8,"endLine":895,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"left","argumentNames":["this","value"]} +info_PlayerInfo_left__P66839.info = {"start":27003,"length":72,"line":893,"column":8,"endLine":895,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"left","argumentNames":["this","value"]} -function info_PlayerInfo_left__P2620_mk(s) { +function info_PlayerInfo_left__P66839_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_left__P2620, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_left__P66839, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -72467,7 +74381,7 @@ function info_PlayerInfo_left__P2620_mk(s) { -function info_PlayerInfo_left__P2619(s) { +function info_PlayerInfo_left__P66838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72482,19 +74396,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2597_VT)) failedCast(r0); + if (!checkSubtype(r0, info_PlayerInfo__C66816_VT)) failedCast(r0); r0 = s.arg0.fields["impl"]; r0 = r0.fields["left"]; return leaveAccessor(s, r0) default: oops() } } } -info_PlayerInfo_left__P2619.info = {"start":26927,"length":66,"line":889,"column":8,"endLine":891,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"left","argumentNames":["this"]} -info_PlayerInfo_left__P2619.isGetter = true; +info_PlayerInfo_left__P66838.info = {"start":26927,"length":66,"line":889,"column":8,"endLine":891,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"left","argumentNames":["this"]} +info_PlayerInfo_left__P66838.isGetter = true; -function info_PlayerInfo_left__P2619_mk(s) { +function info_PlayerInfo_left__P66838_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_left__P2619, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_left__P66838, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -72503,7 +74417,7 @@ function info_PlayerInfo_left__P2619_mk(s) { -function particles_FireFactory_drawParticle__P3203(s) { +function particles_FireFactory_drawParticle__P67422(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72521,8 +74435,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_FireFactory__C3200_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2013; + if (!checkSubtype(r0, particles_FireFactory__C67419_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___66232; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -72538,12 +74452,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_FireFactory_drawParticle__P3203.info = {"start":9548,"length":179,"line":308,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_FireFactory_drawParticle__P67422.info = {"start":9548,"length":179,"line":308,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_FireFactory_drawParticle__P3203_mk(s) { +function particles_FireFactory_drawParticle__P67422_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireFactory_drawParticle__P3203, depth: s.depth + 1, + parent: s, fn: particles_FireFactory_drawParticle__P67422, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72561,7 +74475,7 @@ function particles_FireFactory_drawParticle__P3203_mk(s) { -function particles_AshFactory_drawParticle__P3214(s) { +function particles_AshFactory_drawParticle__P67433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72579,8 +74493,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C3211_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2013; + if (!checkSubtype(r0, particles_AshFactory__C67430_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___66232; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -72596,12 +74510,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AshFactory_drawParticle__P3214.info = {"start":13926,"length":117,"line":444,"column":8,"endLine":446,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_AshFactory_drawParticle__P67433.info = {"start":13926,"length":117,"line":444,"column":8,"endLine":446,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_AshFactory_drawParticle__P3214_mk(s) { +function particles_AshFactory_drawParticle__P67433_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_drawParticle__P3214, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_drawParticle__P67433, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72619,7 +74533,7 @@ function particles_AshFactory_drawParticle__P3214_mk(s) { -function particles_AreaFactory_drawParticle__P3184(s) { +function particles_AreaFactory_drawParticle__P67403(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72629,7 +74543,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___28441 = undefined; + s.col___92662 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -72638,7 +74552,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C3177_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C67396_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -72665,8 +74579,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___28441 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___2013; + s.col___92662 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___66232; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -72675,17 +74589,17 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_3 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___28441); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___92662); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P3184.info = {"start":4770,"length":222,"line":158,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_AreaFactory_drawParticle__P67403.info = {"start":4770,"length":222,"line":158,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_AreaFactory_drawParticle__P3184_mk(s) { +function particles_AreaFactory_drawParticle__P67403_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P3184, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P67403, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72693,7 +74607,7 @@ function particles_AreaFactory_drawParticle__P3184_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___28441: undefined, + col___92662: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -72704,7 +74618,7 @@ function particles_AreaFactory_drawParticle__P3184_mk(s) { -function particles_SprayFactory_drawParticle__P3174(s) { +function particles_SprayFactory_drawParticle__P67393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72722,8 +74636,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C3171_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2013; + if (!checkSubtype(r0, particles_SprayFactory__C67390_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___66232; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -72737,12 +74651,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P3174.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} +particles_SprayFactory_drawParticle__P67393.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} -function particles_SprayFactory_drawParticle__P3174_mk(s) { +function particles_SprayFactory_drawParticle__P67393_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P3174, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P67393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72759,7 +74673,7 @@ function particles_SprayFactory_drawParticle__P3174_mk(s) { -function scene_Renderable___drawCore__P2783(s) { +function scene_Renderable___drawCore__P67002(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72775,10 +74689,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2780_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C66999_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___2013; + s.tmp_0.arg1 = globals.screen___66232; s.tmp_0.arg2 = s.arg1; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); @@ -72795,12 +74709,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P2783.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +scene_Renderable___drawCore__P67002.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function scene_Renderable___drawCore__P2783_mk(s) { +function scene_Renderable___drawCore__P67002_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P2783, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P67002, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -72811,7 +74725,7 @@ function scene_Renderable___drawCore__P2783_mk(s) { -function scene_Renderable___visible__P2782(s) { +function scene_Renderable___visible__P67001(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72826,7 +74740,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2780_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C66999_VT)) failedCast(r0); s.tmp_0 = if_shouldBeVisible_1_mk(s); s.tmp_0.arg0 = s.arg0; if (!s.tmp_0.arg0.vtable.iface) { @@ -72843,12 +74757,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P2782.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} +scene_Renderable___visible__P67001.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} -function scene_Renderable___visible__P2782_mk(s) { +function scene_Renderable___visible__P67001_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P2782, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P67001, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -72858,7 +74772,7 @@ function scene_Renderable___visible__P2782_mk(s) { -function scene_Camera_top__P2774(s) { +function scene_Camera_top__P66993(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72873,18 +74787,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P2774.info = {"start":1764,"length":54,"line":60,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} -scene_Camera_top__P2774.isGetter = true; +scene_Camera_top__P66993.info = {"start":1764,"length":54,"line":60,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} +scene_Camera_top__P66993.isGetter = true; -function scene_Camera_top__P2774_mk(s) { +function scene_Camera_top__P66993_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P2774, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P66993, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -72893,7 +74807,7 @@ function scene_Camera_top__P2774_mk(s) { -function scene_Camera_left__P2772(s) { +function scene_Camera_left__P66991(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72908,18 +74822,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2761_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C66980_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P2772.info = {"start":1620,"length":55,"line":54,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} -scene_Camera_left__P2772.isGetter = true; +scene_Camera_left__P66991.info = {"start":1620,"length":55,"line":54,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} +scene_Camera_left__P66991.isGetter = true; -function scene_Camera_left__P2772_mk(s) { +function scene_Camera_left__P66991_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P2772, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P66991, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -72928,7 +74842,7 @@ function scene_Camera_left__P2772_mk(s) { -function tiles_Location_top__P2681(s) { +function tiles_Location_top__P66900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72943,10 +74857,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P2675_mk(s); + s.tmp_3 = tiles_Location_tileMap__P66894_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 1200; s.pc = 1; return s.tmp_3; case 1: @@ -72958,13 +74872,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_top__P2681.info = {"start":1791,"length":83,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"top","argumentNames":["this"]} -tiles_Location_top__P2681.isGetter = true; +tiles_Location_top__P66900.info = {"start":1791,"length":83,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"top","argumentNames":["this"]} +tiles_Location_top__P66900.isGetter = true; -function tiles_Location_top__P2681_mk(s) { +function tiles_Location_top__P66900_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_top__P2681, depth: s.depth + 1, + parent: s, fn: tiles_Location_top__P66900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72977,7 +74891,7 @@ function tiles_Location_top__P2681_mk(s) { -function tiles_Location_left__P2680(s) { +function tiles_Location_left__P66899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72992,10 +74906,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2673_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C66892_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P2675_mk(s); + s.tmp_3 = tiles_Location_tileMap__P66894_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 1198; s.pc = 1; return s.tmp_3; case 1: @@ -73007,13 +74921,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_left__P2680.info = {"start":1579,"length":84,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"left","argumentNames":["this"]} -tiles_Location_left__P2680.isGetter = true; +tiles_Location_left__P66899.info = {"start":1579,"length":84,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"left","argumentNames":["this"]} +tiles_Location_left__P66899.isGetter = true; -function tiles_Location_left__P2680_mk(s) { +function tiles_Location_left__P66899_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_left__P2680, depth: s.depth + 1, + parent: s, fn: tiles_Location_left__P66899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73026,7 +74940,7 @@ function tiles_Location_left__P2680_mk(s) { -function Sprite___drawCore__P2395(s) { +function Sprite___drawCore__P66614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73036,24 +74950,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___28497 = undefined; - s.oy___28505 = undefined; - s.l___28513 = undefined; - s.t___28519 = undefined; + s.ox___92718 = undefined; + s.oy___92726 = undefined; + s.l___92734 = undefined; + s.t___92740 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_0 = Sprite_drawSay__P4817_mk(s); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_0 = Sprite_drawSay__P69036_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 657; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_1 = Sprite_isOutOfScreen__P2394_mk(s); + s.tmp_1 = Sprite_isOutOfScreen__P66613_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 658; s.pc = 9; return s.tmp_1; @@ -73078,7 +74992,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___28497 = (s.tmp_4); + s.ox___92718 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -73092,42 +75006,42 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___28505 = (s.tmp_2); - s.tmp_2 = Sprite_left__P2379_mk(s); + s.oy___92726 = (s.tmp_2); + s.tmp_2 = Sprite_left__P66598_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 659; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___28497); + r0 = (s.tmp_1 - s.ox___92718); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___28513 = (r0); - s.tmp_2 = Sprite_top__P2383_mk(s); + s.l___92734 = (r0); + s.tmp_2 = Sprite_top__P66602_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 660; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___28505); + r0 = (s.tmp_1 - s.oy___92726); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___28519 = (r0); - s.tmp_0 = Sprite__C2321_v6_3_mk(s); + s.t___92740 = (r0); + s.tmp_0 = Sprite__C66540_v6_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___28513; - s.tmp_0.arg2 = s.t___28519; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2321_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.l___92734; + s.tmp_0.arg2 = s.t___92740; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C66540_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawSprite; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = Sprite_drawDebug__P4818_mk(s); + s.tmp_0 = Sprite_drawDebug__P69037_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___28513; - s.tmp_0.arg2 = s.t___28519; - s.tmp_0.arg3 = s.ox___28497; - s.tmp_0.arg4 = s.oy___28505; + s.tmp_0.arg1 = s.l___92734; + s.tmp_0.arg2 = s.t___92740; + s.tmp_0.arg3 = s.ox___92718; + s.tmp_0.arg4 = s.oy___92726; s.callLocIdx = 661; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; @@ -73136,22 +75050,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P2395.info = {"start":18194,"length":462,"line":613,"column":4,"endLine":626,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P66614.info = {"start":18194,"length":462,"line":613,"column":4,"endLine":626,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P2395_mk(s) { +function Sprite___drawCore__P66614_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P2395, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P66614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - ox___28497: undefined, - oy___28505: undefined, - l___28513: undefined, - t___28519: undefined, + ox___92718: undefined, + oy___92726: undefined, + l___92734: undefined, + t___92740: undefined, arg0: undefined, arg1: undefined, } } @@ -73160,7 +75074,7 @@ function Sprite___drawCore__P2395_mk(s) { -function Sprite_drawSprite__P4819(s) { +function Sprite_drawSprite__P69038(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73177,8 +75091,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); - s.tmp_3 = Sprite_isScaled__P4816_mk(s); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); + s.tmp_3 = Sprite_isScaled__P69035_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 752; s.pc = 3; return s.tmp_3; case 3: @@ -73192,20 +75106,20 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___2013, s.tmp_4, s.arg1, s.arg2); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___66232, s.tmp_4, s.arg1, s.arg2); { step = 2; continue; } case 1: - s.tmp_0 = helpers_imageBlit__P1936_mk(s); - s.tmp_0.arg0 = globals.screen___2013; + s.tmp_0 = helpers_imageBlit__P66155_mk(s); + s.tmp_0.arg0 = globals.screen___66232; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_1 = Sprite_width__P2377_mk(s); + s.tmp_1 = Sprite_width__P66596_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 753; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg3 = r0; - s.tmp_2 = Sprite_height__P2378_mk(s); + s.tmp_2 = Sprite_height__P66597_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 754; s.pc = 6; return s.tmp_2; case 6: @@ -73233,12 +75147,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSprite__P4819.info = {"start":35728,"length":514,"line":1116,"column":4,"endLine":1130,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} +Sprite_drawSprite__P69038.info = {"start":35728,"length":514,"line":1116,"column":4,"endLine":1130,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} -function Sprite_drawSprite__P4819_mk(s) { +function Sprite_drawSprite__P69038_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSprite__P4819, depth: s.depth + 1, + parent: s, fn: Sprite_drawSprite__P69038, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73254,7 +75168,7 @@ function Sprite_drawSprite__P4819_mk(s) { -function Sprite_drawDebug__P4818(s) { +function Sprite_drawDebug__P69037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73264,9 +75178,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___28543 = undefined; - s.tx___28547 = undefined; - s.ty___28549 = undefined; + s.font___92764 = undefined; + s.tx___92768 = undefined; + s.ty___92770 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -73276,17 +75190,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 64); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.font___28543 = (globals.font5___1961); - s.tx___28547 = (s.arg1); + s.font___92764 = (globals.font5___66180); + s.tx___92768 = (s.arg1); s.tmp_1 = r0 = s.arg2; - s.tmp_3 = Sprite_height__P2378_mk(s); + s.tmp_3 = Sprite_height__P66597_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 728; s.pc = 13; return s.tmp_3; case 13: @@ -73295,12 +75209,12 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___28549 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; + s.ty___92770 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P2334_mk(s); + s.tmp_7 = Sprite_x__P66553_mk(s); s.tmp_7.arg0 = s.arg0; s.callLocIdx = 729; s.pc = 15; return s.tmp_7; case 15: @@ -73321,7 +75235,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P2336_mk(s); + s.tmp_11 = Sprite_y__P66555_mk(s); s.tmp_11.arg0 = s.arg0; s.callLocIdx = 730; s.pc = 17; return s.tmp_11; case 17: @@ -73340,17 +75254,17 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_8); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___28547; - s.tmp_0.arg3 = s.ty___28549; + s.tmp_0.arg2 = s.tx___92768; + s.tmp_0.arg3 = s.ty___92770; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___28543; + s.tmp_0.arg5 = s.font___92764; s.tmp_0.arg6 = undefined; s.callLocIdx = 731; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = r0 = s.tx___28547; + s.tmp_0 = r0 = s.tx___92768; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___28543; + s.tmp_2.arg0 = s.font___92764; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); } else { @@ -73363,8 +75277,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___28547 = (r0); - s.tmp_1 = Sprite_vx__P2338_mk(s); + s.tx___92768 = (r0); + s.tmp_1 = Sprite_vx__P66557_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 733; s.pc = 20; return s.tmp_1; case 20: @@ -73375,7 +75289,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P2340_mk(s); + s.tmp_2 = Sprite_vy__P66559_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 734; s.pc = 21; return s.tmp_2; case 21: @@ -73385,9 +75299,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.ty___28549; + s.tmp_4 = r0 = s.ty___92770; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___28543; + s.tmp_7.arg0 = s.font___92764; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -73402,10 +75316,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___28549 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_6 = Sprite_vx__P2338_mk(s); + s.ty___92770 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_6 = Sprite_vx__P66557_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 736; s.pc = 24; return s.tmp_6; case 24: @@ -73426,7 +75340,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P2340_mk(s); + s.tmp_10 = Sprite_vy__P66559_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 737; s.pc = 26; return s.tmp_10; case 26: @@ -73445,17 +75359,17 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___28547; - s.tmp_0.arg3 = s.ty___28549; + s.tmp_0.arg2 = s.tx___92768; + s.tmp_0.arg3 = s.ty___92770; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___28543; + s.tmp_0.arg5 = s.font___92764; s.tmp_0.arg6 = undefined; s.callLocIdx = 738; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; case 3: case 4: - s.tmp_1 = Sprite_ax__P2342_mk(s); + s.tmp_1 = Sprite_ax__P66561_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 739; s.pc = 28; return s.tmp_1; case 28: @@ -73466,7 +75380,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_ay__P2344_mk(s); + s.tmp_2 = Sprite_ay__P66563_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 740; s.pc = 29; return s.tmp_2; case 29: @@ -73476,9 +75390,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = r0 = s.ty___28549; + s.tmp_4 = r0 = s.ty___92770; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___28543; + s.tmp_7.arg0 = s.font___92764; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -73493,10 +75407,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___28549 = (r0); - s.tmp_0 = helpers_imagePrint__P1971_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_6 = Sprite_ax__P2342_mk(s); + s.ty___92770 = (r0); + s.tmp_0 = helpers_imagePrint__P66190_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_6 = Sprite_ax__P66561_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 742; s.pc = 32; return s.tmp_6; case 32: @@ -73517,7 +75431,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P2344_mk(s); + s.tmp_10 = Sprite_ay__P66563_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 743; s.pc = 34; return s.tmp_10; case 34: @@ -73536,10 +75450,10 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___28547; - s.tmp_0.arg3 = s.ty___28549; + s.tmp_0.arg2 = s.tx___92768; + s.tmp_0.arg3 = s.ty___92770; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___28543; + s.tmp_0.arg5 = s.font___92764; s.tmp_0.arg6 = undefined; s.callLocIdx = 744; s.pc = 31; return s.tmp_0; case 31: @@ -73548,11 +75462,11 @@ switch (step) { case 8: case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.debug___2947); + r0 = pxsim_numops_toBoolDecr(globals.debug___67166); if (!r0) { step = 11; continue; } - s.tmp_0 = helpers_imageDrawRect__P1942_mk(s); - s.tmp_0.arg0 = globals.screen___2013; - s.tmp_3 = game_Hitbox_left__P2197_mk(s); + s.tmp_0 = helpers_imageDrawRect__P66161_mk(s); + s.tmp_0.arg0 = globals.screen___66232; + s.tmp_3 = game_Hitbox_left__P66416_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; s.callLocIdx = 745; s.pc = 37; return s.tmp_3; @@ -73565,7 +75479,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 - s.arg3); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P2198_mk(s); + s.tmp_7 = game_Hitbox_top__P66417_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; s.callLocIdx = 747; s.pc = 38; return s.tmp_7; @@ -73602,12 +75516,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawDebug__P4818.info = {"start":34630,"length":1092,"line":1086,"column":4,"endLine":1114,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} +Sprite_drawDebug__P69037.info = {"start":34630,"length":1092,"line":1086,"column":4,"endLine":1114,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} -function Sprite_drawDebug__P4818_mk(s) { +function Sprite_drawDebug__P69037_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawDebug__P4818, depth: s.depth + 1, + parent: s, fn: Sprite_drawDebug__P69037, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73622,9 +75536,9 @@ function Sprite_drawDebug__P4818_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - font___28543: undefined, - tx___28547: undefined, - ty___28549: undefined, + font___92764: undefined, + tx___92768: undefined, + ty___92770: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -73636,7 +75550,7 @@ function Sprite_drawDebug__P4818_mk(s) { -function Sprite_drawSay__P4817(s) { +function Sprite_drawSay__P69036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73652,7 +75566,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -73671,23 +75585,23 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 1; continue; } - s.tmp_6 = sprites_BaseSpriteSayRenderer__C2240_v0_4_mk(s); + s.tmp_6 = sprites_BaseSpriteSayRenderer__C66459_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = globals.screen___2013; + s.tmp_6.arg1 = globals.screen___66232; s.tmp_6.arg2 = s.arg1; s.tmp_6.arg3 = s.arg0; - if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_6.arg0); + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.draw; s.pc = 7; return s.tmp_6; case 7: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = sprites_BaseSpriteSayRenderer__C2240_v2_1_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C66459_v2_1_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.destroy; s.pc = 8; return s.tmp_0; case 8: @@ -73697,13 +75611,13 @@ switch (step) { case 2: { step = 4; continue; } case 3: - s.tmp_0 = sprites_BaseSpriteSayRenderer__C2240_v0_4_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C66459_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.screen___2013; + s.tmp_0.arg1 = globals.screen___66232; s.tmp_0.arg2 = s.arg1; s.tmp_0.arg3 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; s.pc = 9; return s.tmp_0; case 9: @@ -73715,12 +75629,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSay__P4817.info = {"start":34050,"length":574,"line":1068,"column":4,"endLine":1084,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} +Sprite_drawSay__P69036.info = {"start":34050,"length":574,"line":1068,"column":4,"endLine":1084,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} -function Sprite_drawSay__P4817_mk(s) { +function Sprite_drawSay__P69036_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSay__P4817, depth: s.depth + 1, + parent: s, fn: Sprite_drawSay__P69036, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73737,7 +75651,7 @@ function Sprite_drawSay__P4817_mk(s) { -function sprites_BaseSpriteSayRenderer_draw__P2242(s) { +function sprites_BaseSpriteSayRenderer_draw__P66461(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73755,17 +75669,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2240_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C66459_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_draw__P2242.info = {"start":171,"length":69,"line":5,"column":8,"endLine":7,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} +sprites_BaseSpriteSayRenderer_draw__P66461.info = {"start":171,"length":69,"line":5,"column":8,"endLine":7,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} -function sprites_BaseSpriteSayRenderer_draw__P2242_mk(s) { +function sprites_BaseSpriteSayRenderer_draw__P66461_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P2242, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P66461, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -73777,7 +75691,7 @@ function sprites_BaseSpriteSayRenderer_draw__P2242_mk(s) { -function Sprite___visible__P2376(s) { +function Sprite___visible__P66595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73792,7 +75706,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2321_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C66540_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -73803,12 +75717,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P2376.info = {"start":9904,"length":72,"line":359,"column":4,"endLine":361,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P66595.info = {"start":9904,"length":72,"line":359,"column":4,"endLine":361,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P2376_mk(s) { +function Sprite___visible__P66595_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P2376, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P66595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73820,7 +75734,7 @@ function Sprite___visible__P2376_mk(s) { -function sprites_SpriteSayRenderer_draw__P2248(s) { +function sprites_SpriteSayRenderer_draw__P66467(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73830,14 +75744,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___28730 = undefined; - s.oy___28738 = undefined; - s.l___28746 = undefined; - s.t___28753 = undefined; - s.height___28760 = undefined; - s.width___28770 = undefined; - s.sayLeft___28780 = undefined; - s.sayTop___28790 = undefined; + s.ox___92951 = undefined; + s.oy___92959 = undefined; + s.l___92967 = undefined; + s.t___92974 = undefined; + s.height___92981 = undefined; + s.width___92991 = undefined; + s.sayLeft___93001 = undefined; + s.sayTop___93011 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -73846,7 +75760,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSayRenderer__C2245_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSayRenderer__C66464_VT)) failedCast(r0); r0 = s.arg3.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -73860,7 +75774,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___28730 = (s.tmp_2); + s.ox___92951 = (s.tmp_2); r0 = s.arg3.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -73874,32 +75788,32 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___28738 = (s.tmp_2); - s.tmp_2 = Sprite_left__P2379_mk(s); + s.oy___92959 = (s.tmp_2); + s.tmp_2 = Sprite_left__P66598_mk(s); s.tmp_2.arg0 = s.arg3; s.callLocIdx = 545; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___28730); + r0 = (s.tmp_1 - s.ox___92951); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___28746 = (r0); - s.tmp_2 = Sprite_top__P2383_mk(s); + s.l___92967 = (r0); + s.tmp_2 = Sprite_top__P66602_mk(s); s.tmp_2.arg0 = s.arg3; s.callLocIdx = 546; s.pc = 23; return s.tmp_2; case 23: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___28738); + r0 = (s.tmp_1 - s.oy___92959); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___28753 = (r0); + s.t___92974 = (r0); r0 = s.arg0.fields["animation"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = sprites_RenderTextAnimation_currentHeight__P2231_mk(s); + s.tmp_1 = sprites_RenderTextAnimation_currentHeight__P66450_mk(s); r0 = s.arg0.fields["animation"]; s.tmp_1.arg0 = r0; s.callLocIdx = 547; s.pc = 24; return s.tmp_1; @@ -73912,12 +75826,12 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.height___28760 = (s.tmp_2); + s.height___92981 = (s.tmp_2); r0 = s.arg0.fields["animation"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = sprites_RenderTextAnimation_currentWidth__P2232_mk(s); + s.tmp_1 = sprites_RenderTextAnimation_currentWidth__P66451_mk(s); r0 = s.arg0.fields["animation"]; s.tmp_1.arg0 = r0; s.callLocIdx = 548; s.pc = 25; return s.tmp_1; @@ -73930,9 +75844,9 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_2 = r0; - s.width___28770 = (s.tmp_2); - s.tmp_1 = r0 = s.l___28746; - s.tmp_4 = Sprite_width__P2377_mk(s); + s.width___92991 = (s.tmp_2); + s.tmp_1 = r0 = s.l___92967; + s.tmp_4 = Sprite_width__P66596_mk(s); s.tmp_4.arg0 = s.arg3; s.callLocIdx = 549; s.pc = 26; return s.tmp_4; case 26: @@ -73942,15 +75856,15 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; - r0 = (s.width___28770 >> 1); + r0 = (s.width___92991 >> 1); s.tmp_5 = r0; r0 = (s.tmp_0 - s.tmp_5); - s.sayLeft___28780 = (r0); - r0 = (s.t___28753 - s.height___28760); + s.sayLeft___93001 = (r0); + r0 = (s.t___92974 - s.height___92981); s.tmp_0 = r0; r0 = (s.tmp_0 - 4); - s.sayTop___28790 = (r0); - r0 = (s.sayLeft___28780 + s.width___28770); + s.sayTop___93011 = (r0); + r0 = (s.sayLeft___93001 + s.width___92991); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -73959,7 +75873,7 @@ switch (step) { r0 = s.tmp_0; { step = 10; continue; } case 9: - r0 = (s.sayTop___28790 + s.height___28760); + r0 = (s.sayTop___93011 + s.height___92981); s.tmp_2 = r0; r0 = (s.tmp_2 < 0); case 10: @@ -73970,7 +75884,7 @@ switch (step) { r0 = s.tmp_3; { step = 12; continue; } case 11: - s.tmp_4 = r0 = s.sayLeft___28780; + s.tmp_4 = r0 = s.sayLeft___93001; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_5 = r0; r0 = (s.tmp_4 > s.tmp_5); @@ -73982,7 +75896,7 @@ switch (step) { r0 = s.tmp_6; { step = 14; continue; } case 13: - s.tmp_7 = r0 = s.sayTop___28790; + s.tmp_7 = r0 = s.sayTop___93011; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_8 = r0; r0 = (s.tmp_7 > s.tmp_8); @@ -73994,18 +75908,18 @@ switch (step) { { step = 21; continue; } case 15: case 16: - s.tmp_10 = sprites_SpriteSayRenderer_drawSayFrame__P2246_mk(s); - s.tmp_10.arg0 = s.sayLeft___28780; - s.tmp_10.arg1 = s.sayTop___28790; - s.tmp_10.arg2 = s.width___28770; - s.tmp_10.arg3 = s.height___28760; - s.tmp_11 = Sprite_x__P2334_mk(s); + s.tmp_10 = sprites_SpriteSayRenderer_drawSayFrame__P66465_mk(s); + s.tmp_10.arg0 = s.sayLeft___93001; + s.tmp_10.arg1 = s.sayTop___93011; + s.tmp_10.arg2 = s.width___92991; + s.tmp_10.arg3 = s.height___92981; + s.tmp_11 = Sprite_x__P66553_mk(s); s.tmp_11.arg0 = s.arg3; s.callLocIdx = 550; s.pc = 28; return s.tmp_11; case 28: r0 = s.retval; s.tmp_10.arg4 = r0; - s.tmp_12 = Sprite_y__P2336_mk(s); + s.tmp_12 = Sprite_y__P66555_mk(s); s.tmp_12.arg0 = s.arg3; s.callLocIdx = 551; s.pc = 29; return s.tmp_12; case 29: @@ -74017,18 +75931,18 @@ switch (step) { s.callLocIdx = 552; s.pc = 27; return s.tmp_10; case 27: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.height___28760); + r0 = pxsim_numops_toBoolDecr(s.height___92981); if (!r0) { step = 19; continue; } r0 = s.arg0.fields["animation"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 17; continue; } - s.tmp_1 = sprites_RenderTextAnimation_draw__P2238_mk(s); + s.tmp_1 = sprites_RenderTextAnimation_draw__P66457_mk(s); r0 = s.arg0.fields["animation"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.sayLeft___28780; - s.tmp_1.arg3 = s.sayTop___28790; + s.tmp_1.arg2 = s.sayLeft___93001; + s.tmp_1.arg3 = s.sayTop___93011; r0 = s.arg0.fields["fgColor"]; s.tmp_1.arg4 = r0; s.callLocIdx = 553; s.pc = 30; return s.tmp_1; @@ -74036,12 +75950,12 @@ switch (step) { r0 = s.retval; { step = 18; continue; } case 17: - s.tmp_0 = sprites_RenderText_draw__P2213_mk(s); + s.tmp_0 = sprites_RenderText_draw__P66432_mk(s); r0 = s.arg0.fields["renderText"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.sayLeft___28780; - s.tmp_0.arg3 = s.sayTop___28790; + s.tmp_0.arg2 = s.sayLeft___93001; + s.tmp_0.arg3 = s.sayTop___93011; r0 = s.arg0.fields["fgColor"]; s.tmp_0.arg4 = r0; s.tmp_0.arg5 = undefined; @@ -74057,12 +75971,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSayRenderer_draw__P2248.info = {"start":9106,"length":1208,"line":239,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} +sprites_SpriteSayRenderer_draw__P66467.info = {"start":9106,"length":1208,"line":239,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} -function sprites_SpriteSayRenderer_draw__P2248_mk(s) { +function sprites_SpriteSayRenderer_draw__P66467_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSayRenderer_draw__P2248, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSayRenderer_draw__P66467, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -74077,14 +75991,14 @@ function sprites_SpriteSayRenderer_draw__P2248_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___28730: undefined, - oy___28738: undefined, - l___28746: undefined, - t___28753: undefined, - height___28760: undefined, - width___28770: undefined, - sayLeft___28780: undefined, - sayTop___28790: undefined, + ox___92951: undefined, + oy___92959: undefined, + l___92967: undefined, + t___92974: undefined, + height___92981: undefined, + width___92991: undefined, + sayLeft___93001: undefined, + sayTop___93011: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -74095,7 +76009,7 @@ function sprites_SpriteSayRenderer_draw__P2248_mk(s) { -function sprites_SpriteSayRenderer_drawSayFrame__P2246(s) { +function sprites_SpriteSayRenderer_drawSayFrame__P66465(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -74105,16 +76019,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xDiff___29264 = undefined; - s.yDiff___29277 = undefined; - s.anchorY___29298 = undefined; - s.anchorY___29333 = undefined; - s.anchorX___29364 = undefined; - s.anchorX___29399 = undefined; - s.anchorX___29430 = undefined; - s.anchorX___29465 = undefined; - s.anchorY___29496 = undefined; - s.anchorY___29531 = undefined; + s.xDiff___93485 = undefined; + s.yDiff___93498 = undefined; + s.anchorY___93519 = undefined; + s.anchorY___93554 = undefined; + s.anchorX___93585 = undefined; + s.anchorX___93620 = undefined; + s.anchorX___93651 = undefined; + s.anchorX___93686 = undefined; + s.anchorY___93717 = undefined; + s.anchorY___93752 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -74172,7 +76086,7 @@ switch (step) { case 8: r0 = pxsim_numops_toBoolDecr(s.arg3); if (!r0) { step = 35; continue; } - s.tmp_10 = helpers_imageFillRect__P1939_mk(s); + s.tmp_10 = helpers_imageFillRect__P66158_mk(s); s.tmp_10.arg0 = s.arg7; s.tmp_10.arg1 = s.arg0; s.tmp_10.arg2 = s.arg1; @@ -74182,7 +76096,7 @@ switch (step) { s.callLocIdx = 493; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 - 1); s.tmp_0.arg1 = r0; @@ -74195,7 +76109,7 @@ switch (step) { s.callLocIdx = 494; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + s.arg2); s.tmp_0.arg1 = r0; @@ -74208,7 +76122,7 @@ switch (step) { s.callLocIdx = 495; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + 1); s.tmp_0.arg1 = r0; @@ -74221,7 +76135,7 @@ switch (step) { s.callLocIdx = 496; s.pc = 41; return s.tmp_0; case 41: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + 1); s.tmp_0.arg1 = r0; @@ -74274,15 +76188,15 @@ switch (step) { { step = 37; continue; } case 15: case 16: - s.tmp_8 = Math_max__P130_mk(s); - s.tmp_9 = Math_abs__P128_mk(s); + s.tmp_8 = Math_max__P64349_mk(s); + s.tmp_9 = Math_abs__P64347_mk(s); r0 = (s.arg4 - s.arg0); s.tmp_9.arg0 = r0; s.callLocIdx = 498; s.pc = 44; return s.tmp_9; case 44: r0 = s.retval; s.tmp_8.arg0 = r0; - s.tmp_10 = Math_abs__P128_mk(s); + s.tmp_10 = Math_abs__P64347_mk(s); s.tmp_11 = r0 = s.arg4; r0 = (s.arg0 + s.arg2); s.tmp_12 = r0; @@ -74295,16 +76209,16 @@ switch (step) { s.callLocIdx = 500; s.pc = 43; return s.tmp_8; case 43: r0 = s.retval; - s.xDiff___29264 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_1 = Math_abs__P128_mk(s); + s.xDiff___93485 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_1 = Math_abs__P64347_mk(s); r0 = (s.arg5 - s.arg3); s.tmp_1.arg0 = r0; s.callLocIdx = 501; s.pc = 47; return s.tmp_1; case 47: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_2 = Math_abs__P128_mk(s); + s.tmp_2 = Math_abs__P64347_mk(s); s.tmp_3 = r0 = s.arg5; r0 = (s.arg3 + s.arg3); s.tmp_4 = r0; @@ -74317,8 +76231,8 @@ switch (step) { s.callLocIdx = 503; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; - s.yDiff___29277 = (r0); - r0 = (s.xDiff___29264 > s.yDiff___29277); + s.yDiff___93498 = (r0); + r0 = (s.xDiff___93485 > s.yDiff___93498); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } @@ -74329,8 +76243,8 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 17; continue; } - s.tmp_4 = Math_max__P130_mk(s); - s.tmp_5 = Math_min__P131_mk(s); + s.tmp_4 = Math_max__P64349_mk(s); + s.tmp_5 = Math_min__P64350_mk(s); s.tmp_5.arg0 = s.arg5; r0 = (s.arg1 + s.arg3); s.tmp_6 = r0; @@ -74345,14 +76259,14 @@ switch (step) { s.callLocIdx = 505; s.pc = 49; return s.tmp_4; case 49: r0 = s.retval; - s.anchorY___29298 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorY___93519 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 + 1); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29298 - 2); + r0 = (s.anchorY___93519 - 2); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 3; @@ -74360,13 +76274,13 @@ switch (step) { s.callLocIdx = 506; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 + 2); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29298 - 1); + r0 = (s.anchorY___93519 - 1); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 1; @@ -74380,8 +76294,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_2 = Math_min__P131_mk(s); + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_2 = Math_min__P64350_mk(s); s.tmp_2.arg0 = s.arg5; r0 = (s.arg1 + s.arg3); s.tmp_3 = r0; @@ -74396,12 +76310,12 @@ switch (step) { s.callLocIdx = 509; s.pc = 53; return s.tmp_1; case 53: r0 = s.retval; - s.anchorY___29333 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorY___93554 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 - 2); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29333 - 2); + r0 = (s.anchorY___93554 - 2); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 3; @@ -74409,11 +76323,11 @@ switch (step) { s.callLocIdx = 510; s.pc = 55; return s.tmp_0; case 55: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 - 3); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29333 - 1); + r0 = (s.anchorY___93554 - 1); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 1; @@ -74430,8 +76344,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_4 = Math_min__P131_mk(s); + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_4 = Math_min__P64350_mk(s); s.tmp_4.arg0 = s.arg4; r0 = (s.arg0 + s.arg2); s.tmp_5 = r0; @@ -74446,10 +76360,10 @@ switch (step) { s.callLocIdx = 513; s.pc = 57; return s.tmp_3; case 57: r0 = s.retval; - s.anchorX___29364 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorX___93585 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29364 - 2); + r0 = (s.anchorX___93585 - 2); s.tmp_0.arg1 = r0; r0 = (s.arg1 + s.arg3); s.tmp_1 = r0; @@ -74461,9 +76375,9 @@ switch (step) { s.callLocIdx = 514; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29364 - 1); + r0 = (s.anchorX___93585 - 1); s.tmp_0.arg1 = r0; r0 = (s.arg1 + s.arg3); s.tmp_1 = r0; @@ -74481,8 +76395,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_2 = Math_min__P131_mk(s); + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_2 = Math_min__P64350_mk(s); s.tmp_2.arg0 = s.arg4; r0 = (s.arg0 + s.arg2); s.tmp_3 = r0; @@ -74497,10 +76411,10 @@ switch (step) { s.callLocIdx = 517; s.pc = 61; return s.tmp_1; case 61: r0 = s.retval; - s.anchorX___29399 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorX___93620 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29399 - 2); + r0 = (s.anchorX___93620 - 2); s.tmp_0.arg1 = r0; r0 = (s.arg1 - 2); s.tmp_0.arg2 = r0; @@ -74510,9 +76424,9 @@ switch (step) { s.callLocIdx = 518; s.pc = 63; return s.tmp_0; case 63: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29399 - 1); + r0 = (s.anchorX___93620 - 1); s.tmp_0.arg1 = r0; r0 = (s.arg1 - 3); s.tmp_0.arg2 = r0; @@ -74536,8 +76450,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_4 = Math_min__P131_mk(s); + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_4 = Math_min__P64350_mk(s); s.tmp_4.arg0 = s.arg4; r0 = (s.arg0 + s.arg2); s.tmp_5 = r0; @@ -74552,10 +76466,10 @@ switch (step) { s.callLocIdx = 521; s.pc = 65; return s.tmp_3; case 65: r0 = s.retval; - s.anchorX___29430 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorX___93651 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29430 - 2); + r0 = (s.anchorX___93651 - 2); s.tmp_0.arg1 = r0; r0 = (s.arg1 + s.arg3); s.tmp_1 = r0; @@ -74567,9 +76481,9 @@ switch (step) { s.callLocIdx = 522; s.pc = 67; return s.tmp_0; case 67: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29430 - 1); + r0 = (s.anchorX___93651 - 1); s.tmp_0.arg1 = r0; r0 = (s.arg1 + s.arg3); s.tmp_1 = r0; @@ -74587,8 +76501,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 27; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_2 = Math_min__P131_mk(s); + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_2 = Math_min__P64350_mk(s); s.tmp_2.arg0 = s.arg4; r0 = (s.arg0 + s.arg2); s.tmp_3 = r0; @@ -74603,10 +76517,10 @@ switch (step) { s.callLocIdx = 525; s.pc = 69; return s.tmp_1; case 69: r0 = s.retval; - s.anchorX___29465 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorX___93686 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29465 - 2); + r0 = (s.anchorX___93686 - 2); s.tmp_0.arg1 = r0; r0 = (s.arg1 - 2); s.tmp_0.arg2 = r0; @@ -74616,9 +76530,9 @@ switch (step) { s.callLocIdx = 526; s.pc = 71; return s.tmp_0; case 71: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; - r0 = (s.anchorX___29465 - 1); + r0 = (s.anchorX___93686 - 1); s.tmp_0.arg1 = r0; r0 = (s.arg1 - 3); s.tmp_0.arg2 = r0; @@ -74637,8 +76551,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 28; continue; } - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_4 = Math_min__P131_mk(s); + s.tmp_3 = Math_max__P64349_mk(s); + s.tmp_4 = Math_min__P64350_mk(s); s.tmp_4.arg0 = s.arg5; r0 = (s.arg1 + s.arg3); s.tmp_5 = r0; @@ -74653,14 +76567,14 @@ switch (step) { s.callLocIdx = 529; s.pc = 73; return s.tmp_3; case 73: r0 = s.retval; - s.anchorY___29496 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorY___93717 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 + 1); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29496 - 2); + r0 = (s.anchorY___93717 - 2); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 3; @@ -74668,13 +76582,13 @@ switch (step) { s.callLocIdx = 530; s.pc = 75; return s.tmp_0; case 75: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 + s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 + 2); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29496 - 1); + r0 = (s.anchorY___93717 - 1); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 1; @@ -74688,8 +76602,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_2 = Math_min__P131_mk(s); + s.tmp_1 = Math_max__P64349_mk(s); + s.tmp_2 = Math_min__P64350_mk(s); s.tmp_2.arg0 = s.arg5; r0 = (s.arg1 + s.arg3); s.tmp_3 = r0; @@ -74704,12 +76618,12 @@ switch (step) { s.callLocIdx = 533; s.pc = 77; return s.tmp_1; case 77: r0 = s.retval; - s.anchorY___29531 = (r0); - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.anchorY___93752 = (r0); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 - 2); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29531 - 2); + r0 = (s.anchorY___93752 - 2); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 3; @@ -74717,11 +76631,11 @@ switch (step) { s.callLocIdx = 534; s.pc = 79; return s.tmp_0; case 79: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1939_mk(s); + s.tmp_0 = helpers_imageFillRect__P66158_mk(s); s.tmp_0.arg0 = s.arg7; r0 = (s.arg0 - 3); s.tmp_0.arg1 = r0; - r0 = (s.anchorY___29531 - 1); + r0 = (s.anchorY___93752 - 1); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 1; s.tmp_0.arg4 = 1; @@ -74742,12 +76656,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSayRenderer_drawSayFrame__P2246.info = {"start":433,"length":7757,"line":19,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"drawSayFrame","argumentNames":["textLeft","textTop","textWidth","textHeight","speakerX","speakerY","color","canvas"]} +sprites_SpriteSayRenderer_drawSayFrame__P66465.info = {"start":433,"length":7757,"line":19,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"drawSayFrame","argumentNames":["textLeft","textTop","textWidth","textHeight","speakerX","speakerY","color","canvas"]} -function sprites_SpriteSayRenderer_drawSayFrame__P2246_mk(s) { +function sprites_SpriteSayRenderer_drawSayFrame__P66465_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSayRenderer_drawSayFrame__P2246, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSayRenderer_drawSayFrame__P66465, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -74762,16 +76676,16 @@ function sprites_SpriteSayRenderer_drawSayFrame__P2246_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - xDiff___29264: undefined, - yDiff___29277: undefined, - anchorY___29298: undefined, - anchorY___29333: undefined, - anchorX___29364: undefined, - anchorX___29399: undefined, - anchorX___29430: undefined, - anchorX___29465: undefined, - anchorY___29496: undefined, - anchorY___29531: undefined, + xDiff___93485: undefined, + yDiff___93498: undefined, + anchorY___93519: undefined, + anchorY___93554: undefined, + anchorX___93585: undefined, + anchorX___93620: undefined, + anchorX___93651: undefined, + anchorX___93686: undefined, + anchorY___93717: undefined, + anchorY___93752: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -74786,7 +76700,7 @@ function sprites_SpriteSayRenderer_drawSayFrame__P2246_mk(s) { -function sprites_RenderTextAnimation_draw__P2238(s) { +function sprites_RenderTextAnimation_draw__P66457(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -74796,7 +76710,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pageFinished___28941 = undefined; + s.pageFinished___93162 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -74806,7 +76720,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === 0); @@ -74822,7 +76736,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - s.tmp_4 = sprites_RenderText_drawPartial__P2215_mk(s); + s.tmp_4 = sprites_RenderText_drawPartial__P66434_mk(s); r0 = s.arg0.fields["text"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = s.arg1; @@ -74845,7 +76759,7 @@ switch (step) { s.tmp_10 = r0; r0 = s.arg0.fields["height"]; s.tmp_12 = r0; - s.tmp_14 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_14 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_14.arg0 = r0; s.callLocIdx = 483; s.pc = 19; return s.tmp_14; @@ -74861,7 +76775,7 @@ switch (step) { s.callLocIdx = 484; s.pc = 18; return s.tmp_4; case 18: r0 = s.retval; - s.pageFinished___28941 = (r0); + s.pageFinished___93162 = (r0); r0 = s.arg0.fields["onTickCB"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -74902,7 +76816,7 @@ switch (step) { r0 = s.retval; case 4: case 5: - r0 = pxsim_numops_toBoolDecr(s.pageFinished___28941); + r0 = pxsim_numops_toBoolDecr(s.pageFinished___93162); if (!r0) { step = 6; continue; } r0 = (s.arg0).fields["state"] = (2); r0 = s.arg0.fields["pauseMillis"]; @@ -74912,7 +76826,7 @@ switch (step) { case 7: { step = 15; continue; } case 8: - s.tmp_0 = sprites_RenderText_draw__P2213_mk(s); + s.tmp_0 = sprites_RenderText_draw__P66432_mk(s); r0 = s.arg0.fields["text"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -74925,7 +76839,7 @@ switch (step) { s.tmp_2 = r0; r0 = s.arg0.fields["height"]; s.tmp_4 = r0; - s.tmp_6 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_6 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_6.arg0 = r0; s.callLocIdx = 487; s.pc = 22; return s.tmp_6; @@ -74944,7 +76858,7 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; - s.tmp_4 = game_currentScene__P2979_mk(s); + s.tmp_4 = game_currentScene__P67198_mk(s); s.callLocIdx = 489; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; @@ -74965,7 +76879,7 @@ switch (step) { s.tmp_4 = r0; r0 = s.arg0.fields["height"]; s.tmp_7 = r0; - s.tmp_9 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_9 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_9.arg0 = r0; s.callLocIdx = 490; s.pc = 24; return s.tmp_9; @@ -75039,12 +76953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_draw__P2238.info = {"start":10915,"length":1875,"line":314,"column":8,"endLine":362,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"draw","argumentNames":["this","canvas","left","top","color"]} +sprites_RenderTextAnimation_draw__P66457.info = {"start":10915,"length":1875,"line":314,"column":8,"endLine":362,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"draw","argumentNames":["this","canvas","left","top","color"]} -function sprites_RenderTextAnimation_draw__P2238_mk(s) { +function sprites_RenderTextAnimation_draw__P66457_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_draw__P2238, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_draw__P66457, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75061,7 +76975,7 @@ function sprites_RenderTextAnimation_draw__P2238_mk(s) { tmp_12: undefined, tmp_13: undefined, tmp_14: undefined, - pageFinished___28941: undefined, + pageFinished___93162: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -75073,7 +76987,7 @@ function sprites_RenderTextAnimation_draw__P2238_mk(s) { -function sprites_RenderTextAnimation_currentOffset__P2233(s) { +function sprites_RenderTextAnimation_currentOffset__P66452(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75088,7 +77002,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_1 = r0; r0 = s.arg0.fields["timer"]; @@ -75101,12 +77015,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_currentOffset__P2233.info = {"start":10449,"length":104,"line":294,"column":8,"endLine":296,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentOffset","argumentNames":["this"]} +sprites_RenderTextAnimation_currentOffset__P66452.info = {"start":10449,"length":104,"line":294,"column":8,"endLine":296,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentOffset","argumentNames":["this"]} -function sprites_RenderTextAnimation_currentOffset__P2233_mk(s) { +function sprites_RenderTextAnimation_currentOffset__P66452_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_currentOffset__P2233, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_currentOffset__P66452, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75119,7 +77033,7 @@ function sprites_RenderTextAnimation_currentOffset__P2233_mk(s) { -function sprites_RenderText_drawPartial__P2215(s) { +function sprites_RenderText_drawPartial__P66434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75129,8 +77043,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentTextIndex___29084 = undefined; - s.i___29085 = undefined; + s.currentTextIndex___93305 = undefined; + s.i___93306 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -75143,7 +77057,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); r0 = (s.arg6 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -75163,26 +77077,26 @@ switch (step) { s.arg7 = (r0); case 3: case 4: - s.currentTextIndex___29084 = (0); - s.i___29085 = (s.arg6); + s.currentTextIndex___93305 = (0); + s.i___93306 = (s.arg6); case 5: - r0 = (s.i___29085 < s.arg7); + r0 = (s.i___93306 < s.arg7); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.tmp_1 = sprites_RenderText_drawPartialLine__P2216_mk(s); + s.tmp_1 = sprites_RenderText_drawPartialLine__P66435_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; s.tmp_1.arg3 = s.arg3; - s.tmp_1.arg4 = s.i___29085; + s.tmp_1.arg4 = s.i___93306; s.tmp_1.arg5 = s.arg4; - s.tmp_1.arg6 = s.currentTextIndex___29084; + s.tmp_1.arg6 = s.currentTextIndex___93305; s.tmp_1.arg7 = s.arg5; s.callLocIdx = 426; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - s.currentTextIndex___29084 = (r0); + s.currentTextIndex___93305 = (r0); s.tmp_0 = r0 = s.arg3; s.tmp_2 = if_charHeight_1_mk(s); r0 = s.arg0.fields["font"]; @@ -75200,7 +77114,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); s.arg3 = (r0); - r0 = (s.currentTextIndex___29084 >= s.arg5); + r0 = (s.currentTextIndex___93305 >= s.arg5); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -75208,8 +77122,8 @@ switch (step) { { step = 9; continue; } case 6: case 7: - r0 = (s.i___29085 + 1); - s.i___29085 = (r0); + r0 = (s.i___93306 + 1); + s.i___93306 = (r0); { step = 5; continue; } case 8: r0 = true; @@ -75217,18 +77131,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderText_drawPartial__P2215.info = {"start":1153,"length":639,"line":33,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawPartial","argumentNames":["this","canvas","left","top","color","lengthToDraw","lineStart","lineEnd"]} +sprites_RenderText_drawPartial__P66434.info = {"start":1153,"length":639,"line":33,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawPartial","argumentNames":["this","canvas","left","top","color","lengthToDraw","lineStart","lineEnd"]} -function sprites_RenderText_drawPartial__P2215_mk(s) { +function sprites_RenderText_drawPartial__P66434_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_drawPartial__P2215, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_drawPartial__P66434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - currentTextIndex___29084: undefined, - i___29085: undefined, + currentTextIndex___93305: undefined, + i___93306: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -75243,7 +77157,7 @@ function sprites_RenderText_drawPartial__P2215_mk(s) { -function sprites_RenderText_drawPartialLine__P2216(s) { +function sprites_RenderText_drawPartialLine__P66435(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75253,9 +77167,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___29119 = undefined; - s.end___29123 = undefined; - s.i___29127 = undefined; + s.start___93340 = undefined; + s.end___93344 = undefined; + s.i___93348 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -75268,32 +77182,32 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - s.tmp_0 = sprites_RenderText_lineStart__P2222_mk(s); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + s.tmp_0 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 428; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.start___29119 = (r0); - s.tmp_0 = sprites_RenderText_lineEnd__P2221_mk(s); + s.start___93340 = (r0); + s.tmp_0 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 429; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.end___29123 = (r0); - s.i___29127 = (s.start___29119); + s.end___93344 = (r0); + s.i___93348 = (s.start___93340); case 1: - r0 = (s.i___29127 < s.end___29123); + r0 = (s.i___93348 < s.end___93344); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = helpers_imagePrint__P1971_mk(s); + s.tmp_1 = helpers_imagePrint__P66190_mk(s); s.tmp_1.arg0 = s.arg1; r0 = s.arg0.fields["text"]; s.tmp_2 = r0; - r0 = pxsim_String_.charAt(s.tmp_2, s.i___29127); + r0 = pxsim_String_.charAt(s.tmp_2, s.i___93348); s.tmp_1.arg1 = r0; s.tmp_1.arg2 = s.arg2; s.tmp_1.arg3 = s.arg3; @@ -75322,7 +77236,7 @@ switch (step) { r0 = (s.tmp_0 + s.tmp_1); s.arg2 = (r0); s.tmp_2 = r0 = s.arg6; - r0 = (s.i___29127 - s.start___29119); + r0 = (s.i___93348 - s.start___93340); s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; @@ -75334,31 +77248,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___29127 + 1); - s.i___29127 = (r0); + r0 = (s.i___93348 + 1); + s.i___93348 = (r0); { step = 1; continue; } case 4: - r0 = (s.arg6 + s.end___29123); + r0 = (s.arg6 + s.end___93344); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.start___29119); + r0 = (s.tmp_0 - s.start___93340); case 5: return leave(s, r0) default: oops() } } } -sprites_RenderText_drawPartialLine__P2216.info = {"start":1802,"length":622,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawPartialLine","argumentNames":["this","canvas","left","top","lineIndex","color","currentTextIndex","lengthToDraw"]} +sprites_RenderText_drawPartialLine__P66435.info = {"start":1802,"length":622,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawPartialLine","argumentNames":["this","canvas","left","top","lineIndex","color","currentTextIndex","lengthToDraw"]} -function sprites_RenderText_drawPartialLine__P2216_mk(s) { +function sprites_RenderText_drawPartialLine__P66435_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_drawPartialLine__P2216, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_drawPartialLine__P66435, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - start___29119: undefined, - end___29123: undefined, - i___29127: undefined, + start___93340: undefined, + end___93344: undefined, + i___93348: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -75373,7 +77287,7 @@ function sprites_RenderText_drawPartialLine__P2216_mk(s) { -function sprites_RenderTextAnimation_currentWidth__P2232(s) { +function sprites_RenderTextAnimation_currentWidth__P66451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75388,7 +77302,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === 1); @@ -75410,20 +77324,20 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - s.tmp_7 = sprites_RenderText_widthOfLines__P2224_mk(s); + s.tmp_7 = sprites_RenderText_widthOfLines__P66443_mk(s); r0 = s.arg0.fields["text"]; s.tmp_7.arg0 = r0; r0 = s.arg0.fields["pageLine"]; s.tmp_7.arg1 = r0; r0 = s.arg0.fields["pageLine"]; s.tmp_9 = r0; - s.tmp_12 = sprites_RenderTextAnimation_currentHeight__P2231_mk(s); + s.tmp_12 = sprites_RenderTextAnimation_currentHeight__P66450_mk(s); s.tmp_12.arg0 = s.arg0; s.callLocIdx = 478; s.pc = 4; return s.tmp_12; case 4: r0 = s.retval; s.tmp_11 = r0; - s.tmp_14 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_14 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_14.arg0 = r0; s.callLocIdx = 479; s.pc = 5; return s.tmp_14; @@ -75443,12 +77357,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_currentWidth__P2232.info = {"start":10131,"length":308,"line":286,"column":8,"endLine":292,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentWidth","argumentNames":["this"]} +sprites_RenderTextAnimation_currentWidth__P66451.info = {"start":10131,"length":308,"line":286,"column":8,"endLine":292,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentWidth","argumentNames":["this"]} -function sprites_RenderTextAnimation_currentWidth__P2232_mk(s) { +function sprites_RenderTextAnimation_currentWidth__P66451_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_currentWidth__P2232, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_currentWidth__P66451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75472,7 +77386,7 @@ function sprites_RenderTextAnimation_currentWidth__P2232_mk(s) { -function sprites_RenderText_widthOfLines__P2224(s) { +function sprites_RenderText_widthOfLines__P66443(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75482,9 +77396,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.width___29590 = undefined; - s.fullTextOffset___29591 = undefined; - s.i___29592 = undefined; + s.width___93811 = undefined; + s.fullTextOffset___93812 = undefined; + s.i___93813 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -75493,7 +77407,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); r0 = s.arg0.fields["linebreaks"]; s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); @@ -75502,7 +77416,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = sprites_RenderText_widthOfLine__P2223_mk(s); + s.tmp_3 = sprites_RenderText_widthOfLine__P66442_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = s.arg3; @@ -75512,11 +77426,11 @@ switch (step) { { step = 11; continue; } case 1: case 2: - s.width___29590 = (0); - s.i___29592 = (s.arg1); + s.width___93811 = (0); + s.i___93813 = (s.arg1); case 3: - s.tmp_1 = r0 = s.i___29592; - s.tmp_3 = Math_min__P131_mk(s); + s.tmp_1 = r0 = s.i___93813; + s.tmp_3 = Math_min__P64350_mk(s); s.tmp_3.arg0 = s.arg2; r0 = s.arg0.fields["linebreaks"]; s.tmp_5 = r0; @@ -75536,26 +77450,26 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 4; continue; } - s.tmp_8 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_8 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = s.i___29592; + s.tmp_8.arg1 = s.i___93813; s.callLocIdx = 455; s.pc = 14; return s.tmp_8; case 14: r0 = s.retval; s.tmp_7 = r0; r0 = (s.tmp_7 + s.arg3); - s.fullTextOffset___29591 = (r0); + s.fullTextOffset___93812 = (r0); s.tmp_0 = r0 = s.arg3; - s.tmp_3 = sprites_RenderText_lineEnd__P2221_mk(s); + s.tmp_3 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.i___29592; + s.tmp_3.arg1 = s.i___93813; s.callLocIdx = 456; s.pc = 15; return s.tmp_3; case 15: r0 = s.retval; s.tmp_2 = r0; - s.tmp_5 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_5 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.i___29592; + s.tmp_5.arg1 = s.i___93813; s.callLocIdx = 457; s.pc = 16; return s.tmp_5; case 16: r0 = s.retval; @@ -75566,21 +77480,21 @@ switch (step) { s.arg3 = (r0); case 4: case 5: - r0 = (s.fullTextOffset___29591 !== undefined); + r0 = (s.fullTextOffset___93812 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 6; continue; } r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_2 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_2 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.i___29592; + s.tmp_2.arg1 = s.i___93813; s.callLocIdx = 458; s.pc = 17; return s.tmp_2; case 17: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.fullTextOffset___29591); + r0 = (s.tmp_1 > s.fullTextOffset___93812); case 7: // jmp value (already in r0) s.tmp_3 = r0; @@ -75589,12 +77503,12 @@ switch (step) { { step = 10; continue; } case 8: case 9: - s.tmp_4 = Math_max__P130_mk(s); - s.tmp_4.arg0 = s.width___29590; - s.tmp_5 = sprites_RenderText_widthOfLine__P2223_mk(s); + s.tmp_4 = Math_max__P64349_mk(s); + s.tmp_4.arg0 = s.width___93811; + s.tmp_5 = sprites_RenderText_widthOfLine__P66442_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.i___29592; - s.tmp_5.arg2 = s.fullTextOffset___29591; + s.tmp_5.arg1 = s.i___93813; + s.tmp_5.arg2 = s.fullTextOffset___93812; s.callLocIdx = 459; s.pc = 19; return s.tmp_5; case 19: r0 = s.retval; @@ -75602,22 +77516,22 @@ switch (step) { s.callLocIdx = 460; s.pc = 18; return s.tmp_4; case 18: r0 = s.retval; - s.width___29590 = (r0); - r0 = (s.i___29592 + 1); - s.i___29592 = (r0); + s.width___93811 = (r0); + r0 = (s.i___93813 + 1); + s.i___93813 = (r0); { step = 3; continue; } case 10: - r0 = s.width___29590; + r0 = s.width___93811; case 11: return leave(s, r0) default: oops() } } } -sprites_RenderText_widthOfLines__P2224.info = {"start":5471,"length":747,"line":145,"column":8,"endLine":159,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"widthOfLines","argumentNames":["this","lineStartIndex","lineEndIndex","offset"]} +sprites_RenderText_widthOfLines__P66443.info = {"start":5471,"length":747,"line":145,"column":8,"endLine":159,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"widthOfLines","argumentNames":["this","lineStartIndex","lineEndIndex","offset"]} -function sprites_RenderText_widthOfLines__P2224_mk(s) { +function sprites_RenderText_widthOfLines__P66443_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_widthOfLines__P2224, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_widthOfLines__P66443, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75628,9 +77542,9 @@ function sprites_RenderText_widthOfLines__P2224_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - width___29590: undefined, - fullTextOffset___29591: undefined, - i___29592: undefined, + width___93811: undefined, + fullTextOffset___93812: undefined, + i___93813: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -75641,7 +77555,7 @@ function sprites_RenderText_widthOfLines__P2224_mk(s) { -function sprites_RenderText_widthOfLine__P2223(s) { +function sprites_RenderText_widthOfLine__P66442(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75658,13 +77572,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); r0 = (s.arg2 != undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_min__P131_mk(s); - s.tmp_4 = sprites_RenderText_lineEnd__P2221_mk(s); + s.tmp_3 = Math_min__P64350_mk(s); + s.tmp_4 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; s.callLocIdx = 446; s.pc = 5; return s.tmp_4; @@ -75677,7 +77591,7 @@ switch (step) { case 4: r0 = s.retval; s.tmp_2 = r0; - s.tmp_6 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_6 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = s.arg1; s.callLocIdx = 448; s.pc = 6; return s.tmp_6; @@ -75704,14 +77618,14 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_11 = sprites_RenderText_lineEnd__P2221_mk(s); + s.tmp_11 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_11.arg0 = s.arg0; s.tmp_11.arg1 = s.arg1; s.callLocIdx = 450; s.pc = 8; return s.tmp_11; case 8: r0 = s.retval; s.tmp_10 = r0; - s.tmp_13 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_13 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_13.arg0 = s.arg0; s.tmp_13.arg1 = s.arg1; s.callLocIdx = 451; s.pc = 9; return s.tmp_13; @@ -75739,12 +77653,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderText_widthOfLine__P2223.info = {"start":5107,"length":354,"line":138,"column":8,"endLine":143,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"widthOfLine","argumentNames":["this","lineIndex","fullTextOffset"]} +sprites_RenderText_widthOfLine__P66442.info = {"start":5107,"length":354,"line":138,"column":8,"endLine":143,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"widthOfLine","argumentNames":["this","lineIndex","fullTextOffset"]} -function sprites_RenderText_widthOfLine__P2223_mk(s) { +function sprites_RenderText_widthOfLine__P66442_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_widthOfLine__P2223, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_widthOfLine__P66442, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75771,7 +77685,7 @@ function sprites_RenderText_widthOfLine__P2223_mk(s) { -function sprites_RenderTextAnimation_currentHeight__P2231(s) { +function sprites_RenderTextAnimation_currentHeight__P66450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75781,26 +77695,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.minHeight___29673 = undefined; - s.maxHeight___29678 = undefined; + s.minHeight___93894 = undefined; + s.maxHeight___93899 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderTextAnimation__C2225_VT)) failedCast(r0); - s.tmp_0 = sprites_RenderText_lineHeight__P2218_mk(s); + if (!checkSubtype(r0, sprites_RenderTextAnimation__C66444_VT)) failedCast(r0); + s.tmp_0 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_0.arg0 = r0; s.callLocIdx = 469; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.minHeight___29673 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_2 = Math_min__P131_mk(s); + s.minHeight___93894 = (r0); + s.tmp_0 = Math_max__P64349_mk(s); + s.tmp_2 = Math_min__P64350_mk(s); r0 = s.arg0.fields["height"]; s.tmp_4 = r0; - s.tmp_6 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_6 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_6.arg0 = r0; s.callLocIdx = 470; s.pc = 9; return s.tmp_6; @@ -75826,7 +77740,7 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - s.tmp_12 = sprites_RenderText_lineHeight__P2218_mk(s); + s.tmp_12 = sprites_RenderText_lineHeight__P66437_mk(s); r0 = s.arg0.fields["text"]; s.tmp_12.arg0 = r0; s.callLocIdx = 472; s.pc = 10; return s.tmp_12; @@ -75835,20 +77749,20 @@ switch (step) { s.tmp_11 = r0; r0 = (s.tmp_1 * s.tmp_11); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.minHeight___29673; + s.tmp_0.arg1 = s.minHeight___93894; s.callLocIdx = 473; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.maxHeight___29678 = (r0); + s.maxHeight___93899 = (r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_3 = Math_min__P131_mk(s); - s.tmp_4 = sprites_RenderText_calculatePartialHeight__P2217_mk(s); + s.tmp_2 = Math_max__P64349_mk(s); + s.tmp_3 = Math_min__P64350_mk(s); + s.tmp_4 = sprites_RenderText_calculatePartialHeight__P66436_mk(s); r0 = s.arg0.fields["text"]; s.tmp_4.arg0 = r0; r0 = s.arg0.fields["pageLine"]; @@ -75867,12 +77781,12 @@ switch (step) { case 13: r0 = s.retval; s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.maxHeight___29678; + s.tmp_3.arg1 = s.maxHeight___93899; s.callLocIdx = 476; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.minHeight___29673; + s.tmp_2.arg1 = s.minHeight___93894; s.callLocIdx = 477; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; @@ -75885,7 +77799,7 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 2; continue; } - r0 = s.maxHeight___29678; + r0 = s.maxHeight___93899; { step = 5; continue; } { step = 3; continue; } case 2: @@ -75898,12 +77812,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderTextAnimation_currentHeight__P2231.info = {"start":9294,"length":827,"line":261,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentHeight","argumentNames":["this"]} +sprites_RenderTextAnimation_currentHeight__P66450.info = {"start":9294,"length":827,"line":261,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"currentHeight","argumentNames":["this"]} -function sprites_RenderTextAnimation_currentHeight__P2231_mk(s) { +function sprites_RenderTextAnimation_currentHeight__P66450_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderTextAnimation_currentHeight__P2231, depth: s.depth + 1, + parent: s, fn: sprites_RenderTextAnimation_currentHeight__P66450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75918,8 +77832,8 @@ function sprites_RenderTextAnimation_currentHeight__P2231_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - minHeight___29673: undefined, - maxHeight___29678: undefined, + minHeight___93894: undefined, + maxHeight___93899: undefined, arg0: undefined, } } @@ -75927,7 +77841,7 @@ function sprites_RenderTextAnimation_currentHeight__P2231_mk(s) { -function sprites_RenderText_calculatePartialHeight__P2217(s) { +function sprites_RenderText_calculatePartialHeight__P66436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75937,8 +77851,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___29735 = undefined; - s.i___29736 = undefined; + s.current___93956 = undefined; + s.i___93957 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -75946,7 +77860,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); r0 = s.arg0.fields["linebreaks"]; s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); @@ -75971,10 +77885,10 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.current___29735 = (0); - s.i___29736 = (s.arg1); + s.current___93956 = (0); + s.i___93957 = (s.arg1); case 3: - s.tmp_1 = r0 = s.i___29736; + s.tmp_1 = r0 = s.i___93957; r0 = s.arg0.fields["linebreaks"]; s.tmp_4 = r0; r0 = pxsim_Array__length(s.tmp_4); @@ -75985,17 +77899,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_5 = r0 = s.current___29735; - s.tmp_8 = sprites_RenderText_lineEnd__P2221_mk(s); + s.tmp_5 = r0 = s.current___93956; + s.tmp_8 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = s.i___29736; + s.tmp_8.arg1 = s.i___93957; s.callLocIdx = 433; s.pc = 9; return s.tmp_8; case 9: r0 = s.retval; s.tmp_7 = r0; - s.tmp_10 = sprites_RenderText_lineStart__P2222_mk(s); + s.tmp_10 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_10.arg0 = s.arg0; - s.tmp_10.arg1 = s.i___29736; + s.tmp_10.arg1 = s.i___93957; s.callLocIdx = 434; s.pc = 10; return s.tmp_10; case 10: r0 = s.retval; @@ -76003,12 +77917,12 @@ switch (step) { r0 = (s.tmp_7 - s.tmp_9); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); - s.current___29735 = (r0); - r0 = (s.current___29735 > s.arg2); + s.current___93956 = (r0); + r0 = (s.current___93956 > s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = (s.i___29736 - s.arg1); + r0 = (s.i___93957 - s.arg1); s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_1 = r0; @@ -76030,8 +77944,8 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.i___29736 + 1); - s.i___29736 = (r0); + r0 = (s.i___93957 + 1); + s.i___93957 = (r0); { step = 3; continue; } case 6: r0 = s.arg0.fields["height"]; @@ -76039,12 +77953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_RenderText_calculatePartialHeight__P2217.info = {"start":2434,"length":460,"line":62,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"calculatePartialHeight","argumentNames":["this","startLine","lengthToDraw"]} +sprites_RenderText_calculatePartialHeight__P66436.info = {"start":2434,"length":460,"line":62,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"calculatePartialHeight","argumentNames":["this","startLine","lengthToDraw"]} -function sprites_RenderText_calculatePartialHeight__P2217_mk(s) { +function sprites_RenderText_calculatePartialHeight__P66436_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_calculatePartialHeight__P2217, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_calculatePartialHeight__P66436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -76057,8 +77971,8 @@ function sprites_RenderText_calculatePartialHeight__P2217_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - current___29735: undefined, - i___29736: undefined, + current___93956: undefined, + i___93957: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -76068,7 +77982,7 @@ function sprites_RenderText_calculatePartialHeight__P2217_mk(s) { -function sprites_RenderText_draw__P2213(s) { +function sprites_RenderText_draw__P66432(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76078,7 +77992,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___28867 = undefined; + s.i___93088 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -76090,7 +78004,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); r0 = (s.arg5 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -76110,18 +78024,18 @@ switch (step) { s.arg6 = (r0); case 3: case 4: - s.i___28867 = (s.arg5); + s.i___93088 = (s.arg5); case 5: - r0 = (s.i___28867 < s.arg6); + r0 = (s.i___93088 < s.arg6); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_1 = sprites_RenderText_drawLine__P2214_mk(s); + s.tmp_1 = sprites_RenderText_drawLine__P66433_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; s.tmp_1.arg3 = s.arg3; - s.tmp_1.arg4 = s.i___28867; + s.tmp_1.arg4 = s.i___93088; s.tmp_1.arg5 = s.arg4; s.callLocIdx = 420; s.pc = 7; return s.tmp_1; case 7: @@ -76143,25 +78057,25 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); s.arg3 = (r0); - r0 = (s.i___28867 + 1); - s.i___28867 = (r0); + r0 = (s.i___93088 + 1); + s.i___93088 = (r0); { step = 5; continue; } case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_draw__P2213.info = {"start":327,"length":420,"line":13,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"draw","argumentNames":["this","canvas","left","top","color","lineStart","lineEnd"]} +sprites_RenderText_draw__P66432.info = {"start":327,"length":420,"line":13,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"draw","argumentNames":["this","canvas","left","top","color","lineStart","lineEnd"]} -function sprites_RenderText_draw__P2213_mk(s) { +function sprites_RenderText_draw__P66432_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_draw__P2213, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_draw__P66432, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___28867: undefined, + i___93088: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -76175,7 +78089,7 @@ function sprites_RenderText_draw__P2213_mk(s) { -function sprites_RenderText_drawLine__P2214(s) { +function sprites_RenderText_drawLine__P66433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76185,9 +78099,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___28893 = undefined; - s.end___28897 = undefined; - s.i___28901 = undefined; + s.start___93114 = undefined; + s.end___93118 = undefined; + s.i___93122 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -76198,32 +78112,32 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_RenderText__C2207_VT)) failedCast(r0); - s.tmp_0 = sprites_RenderText_lineStart__P2222_mk(s); + if (!checkSubtype(r0, sprites_RenderText__C66426_VT)) failedCast(r0); + s.tmp_0 = sprites_RenderText_lineStart__P66441_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 422; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.start___28893 = (r0); - s.tmp_0 = sprites_RenderText_lineEnd__P2221_mk(s); + s.start___93114 = (r0); + s.tmp_0 = sprites_RenderText_lineEnd__P66440_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 423; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.end___28897 = (r0); - s.i___28901 = (s.start___28893); + s.end___93118 = (r0); + s.i___93122 = (s.start___93114); case 1: - r0 = (s.i___28901 < s.end___28897); + r0 = (s.i___93122 < s.end___93118); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = helpers_imagePrint__P1971_mk(s); + s.tmp_1 = helpers_imagePrint__P66190_mk(s); s.tmp_1.arg0 = s.arg1; r0 = s.arg0.fields["text"]; s.tmp_2 = r0; - r0 = pxsim_String_.charAt(s.tmp_2, s.i___28901); + r0 = pxsim_String_.charAt(s.tmp_2, s.i___93122); s.tmp_1.arg1 = r0; s.tmp_1.arg2 = s.arg2; s.tmp_1.arg3 = s.arg3; @@ -76251,27 +78165,27 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); s.arg2 = (r0); - r0 = (s.i___28901 + 1); - s.i___28901 = (r0); + r0 = (s.i___93122 + 1); + s.i___93122 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_RenderText_drawLine__P2214.info = {"start":757,"length":386,"line":23,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawLine","argumentNames":["this","canvas","left","top","lineIndex","color"]} +sprites_RenderText_drawLine__P66433.info = {"start":757,"length":386,"line":23,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/renderText.ts","functionName":"drawLine","argumentNames":["this","canvas","left","top","lineIndex","color"]} -function sprites_RenderText_drawLine__P2214_mk(s) { +function sprites_RenderText_drawLine__P66433_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_RenderText_drawLine__P2214, depth: s.depth + 1, + parent: s, fn: sprites_RenderText_drawLine__P66433, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - start___28893: undefined, - end___28897: undefined, - i___28901: undefined, + start___93114: undefined, + end___93118: undefined, + i___93122: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -76440,7 +78354,7 @@ function if_yOffset_1_mk(s) { } } -function Sprite__C2321_v5_1_mk(s) { +function Sprite__C66540_v5_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76454,7 +78368,7 @@ function Sprite__C2321_v5_1_mk(s) { } } -function Sprite__C2321_v4_1_mk(s) { +function Sprite__C66540_v4_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76468,7 +78382,7 @@ function Sprite__C2321_v4_1_mk(s) { } } -function PhysicsEngine__C2491_v0_2_mk(s) { +function game_Dialog__C67120_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76483,7 +78397,7 @@ function PhysicsEngine__C2491_v0_2_mk(s) { } } -function if_handler_2_mk(s) { +function game_BaseDialog__C67102_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76494,11 +78408,10 @@ function if_handler_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_id_2_mk(s) { +function controller_Button__C66389_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76509,11 +78422,10 @@ function if_id_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_kind_1_mk(s) { +function PhysicsEngine__C66710_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76524,10 +78436,11 @@ function if_kind_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_factory_2_mk(s) { +function if___update_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76539,10 +78452,11 @@ function if_factory_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function if_callback_2_mk(s) { +function PhysicsEngine__C66710_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76553,11 +78467,10 @@ function if_callback_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_flags_1_mk(s) { +function if___draw_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76568,10 +78481,11 @@ function if_flags_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleFactory__C3167_v0_2_mk(s) { +function if_z_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76582,11 +78496,10 @@ function particles_ParticleFactory__C3167_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource__C3131_v4_3_mk(s) { +function if_id_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76597,12 +78510,10 @@ function particles_ParticleSource__C3131_v4_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_x_1_mk(s) { +function if_s_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76616,7 +78527,7 @@ function if_x_1_mk(s) { } } -function if_y_1_mk(s) { +function if_vx_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76630,7 +78541,7 @@ function if_y_1_mk(s) { } } -function if_width_1_mk(s) { +function if_vy_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76644,7 +78555,7 @@ function if_width_1_mk(s) { } } -function if_height_1_mk(s) { +function game_BaseDialog__C67102_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76658,7 +78569,7 @@ function if_height_1_mk(s) { } } -function if_image_1_mk(s) { +function PhysicsEngine__C66710_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76669,10 +78580,13 @@ function if_image_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function if_effect_3_mk(s) { +function lambda_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76685,10 +78599,11 @@ function if_effect_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function if_sourceFactory_3_mk(s) { +function PhysicsEngine__C66710_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76700,11 +78615,10 @@ function if_sourceFactory_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C2491_v1_2_mk(s) { +function if_handler_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76719,7 +78633,7 @@ function PhysicsEngine__C2491_v1_2_mk(s) { } } -function if_destroyHandler_1_mk(s) { +function if_id_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76730,10 +78644,11 @@ function if_destroyHandler_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function music_Playable__C1896_v0_2_mk(s) { +function if_kind_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76744,11 +78659,10 @@ function music_Playable__C1896_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button__C2170_v0_1_mk(s) { +function if_factory_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76759,10 +78673,11 @@ function controller_Button__C2170_v0_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function PhysicsEngine__C2491_v2_4_mk(s) { +function if_callback_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76774,12 +78689,10 @@ function PhysicsEngine__C2491_v2_4_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function if_animations_2_mk(s) { +function if_flags_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76790,11 +78703,10 @@ function if_animations_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_animations_1_mk(s) { +function particles_ParticleFactory__C67386_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76805,10 +78717,11 @@ function if_animations_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function animation_SpriteAnimation__C3332_v0_1_mk(s) { +function particles_ParticleSource__C67350_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76819,10 +78732,12 @@ function animation_SpriteAnimation__C3332_v0_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_onPlayFinished_1_mk(s) { +function if_x_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76836,7 +78751,7 @@ function if_onPlayFinished_1_mk(s) { } } -function lambda_5_mk(s) { +function if_y_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76847,14 +78762,10 @@ function lambda_5_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function sprites_BaseSpriteSayRenderer__C2240_v2_1_mk(s) { +function if_width_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76868,7 +78779,7 @@ function sprites_BaseSpriteSayRenderer__C2240_v2_1_mk(s) { } } -function lambda_4_mk(s) { +function if_height_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76879,13 +78790,10 @@ function lambda_4_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function if_callback_1_mk(s) { +function if_image_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76899,7 +78807,7 @@ function if_callback_1_mk(s) { } } -function if_target_1_mk(s) { +function if_effect_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76910,10 +78818,12 @@ function if_target_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_displayValue_1_mk(s) { +function if_sourceFactory_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76924,10 +78834,12 @@ function if_displayValue_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_startScreenEffect_1_mk(s) { +function PhysicsEngine__C66710_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76938,10 +78850,11 @@ function if_startScreenEffect_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog__C2926_v0_1_mk(s) { +function if_destroyHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76955,7 +78868,7 @@ function game_GameOverDialog__C2926_v0_1_mk(s) { } } -function PhysicsEngine__C2491_v4_2_mk(s) { +function music_Playable__C66115_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76970,7 +78883,7 @@ function PhysicsEngine__C2491_v4_2_mk(s) { } } -function if___update_3_mk(s) { +function if_animations_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -76982,11 +78895,10 @@ function if___update_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C2491_v3_1_mk(s) { +function if_animations_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77000,7 +78912,7 @@ function PhysicsEngine__C2491_v3_1_mk(s) { } } -function if___draw_2_mk(s) { +function animation_SpriteAnimation__C67551_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77011,11 +78923,10 @@ function if___draw_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_z_1_mk(s) { +function if_onPlayFinished_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77029,7 +78940,7 @@ function if_z_1_mk(s) { } } -function if_id_1_mk(s) { +function lambda_5_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77040,10 +78951,14 @@ function if_id_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function if_s_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C66459_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77057,7 +78972,7 @@ function if_s_1_mk(s) { } } -function if_vx_1_mk(s) { +function if_callback_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77071,7 +78986,7 @@ function if_vx_1_mk(s) { } } -function if_vy_1_mk(s) { +function if_target_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77085,7 +79000,7 @@ function if_vy_1_mk(s) { } } -function game_GameOverDialog__C2926_v2_1_mk(s) { +function if_displayValue_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77099,7 +79014,7 @@ function game_GameOverDialog__C2926_v2_1_mk(s) { } } -function if_countdownEndHandler_1_mk(s) { +function if_startScreenEffect_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77113,7 +79028,7 @@ function if_countdownEndHandler_1_mk(s) { } } -function if_lifeZeroHandler_1_mk(s) { +function game_GameOverDialog__C67145_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77127,7 +79042,7 @@ function if_lifeZeroHandler_1_mk(s) { } } -function game_SplashDialog__C2912_v1_2_mk(s) { +function game_GameOverDialog__C67145_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77138,11 +79053,10 @@ function game_SplashDialog__C2912_v1_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function game_BaseDialog__C2883_v0_1_mk(s) { +function if_countdownEndHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77156,7 +79070,21 @@ function game_BaseDialog__C2883_v0_1_mk(s) { } } -function game_BaseDialog__C2883_v2_1_mk(s) { +function if_lifeZeroHandler_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + +function game_SplashDialog__C67131_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77167,6 +79095,7 @@ function game_BaseDialog__C2883_v2_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } @@ -77395,7 +79324,7 @@ function if_activeCard_1_mk(s) { } } -function if_handler_3_mk(s) { +function if_volume_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77407,11 +79336,10 @@ function if_handler_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function if_tileIndex_1_mk(s) { +function if_volume_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77425,7 +79353,7 @@ function if_tileIndex_1_mk(s) { } } -function if_left_1_mk(s) { +function if_frequency_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77436,10 +79364,11 @@ function if_left_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_top_1_mk(s) { +function if_frequency_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77453,7 +79382,7 @@ function if_top_1_mk(s) { } } -function if_volume_2_mk(s) { +function if_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77465,10 +79394,11 @@ function if_volume_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function if_volume_1_mk(s) { +function if_tileIndex_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77482,7 +79412,7 @@ function if_volume_1_mk(s) { } } -function if_frequency_2_mk(s) { +function if_left_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77493,11 +79423,10 @@ function if_frequency_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_frequency_1_mk(s) { +function if_top_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77511,7 +79440,7 @@ function if_frequency_1_mk(s) { } } -function particles_ParticleFactory__C3167_v1_4_mk(s) { +function particles_ParticleFactory__C67386_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77528,7 +79457,7 @@ function particles_ParticleFactory__C3167_v1_4_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C2240_v1_4_mk(s) { +function sprites_BaseSpriteSayRenderer__C66459_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77545,7 +79474,7 @@ function sprites_BaseSpriteSayRenderer__C2240_v1_4_mk(s) { } } -function sprites_BaseSprite__C2075_v0_1_mk(s) { +function sprites_BaseSprite__C66294_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77559,7 +79488,7 @@ function sprites_BaseSprite__C2075_v0_1_mk(s) { } } -function sprites_BaseSprite__C2075_v2_2_mk(s) { +function sprites_BaseSprite__C66294_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77588,7 +79517,7 @@ function if_shouldBeVisible_1_mk(s) { } } -function Sprite__C2321_v6_3_mk(s) { +function Sprite__C66540_v6_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77604,7 +79533,7 @@ function Sprite__C2321_v6_3_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C2240_v0_4_mk(s) { +function sprites_BaseSpriteSayRenderer__C66459_v0_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -77676,7 +79605,7 @@ function if_state_1_mk(s) { arg0: undefined, } } -const controller_Controller__C2115_VT = mkVTable({ +const controller_Controller__C66334_VT = mkVTable({ name: "Controller", numFields: 5, classNo: 16, @@ -77695,29 +79624,29 @@ const controller_Controller__C2115_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P2120, - "set/_controlledSprites": controller_Controller__controlledSprites__P2121, - "id": controller_Controller_id__P2122, - "left": controller_Controller_left__P2124, - "right": controller_Controller_right__P2125, - "up": controller_Controller_up__P2126, - "down": controller_Controller_down__P2127, - "_moveSpriteInternal": controller_Controller__moveSpriteInternal__P2133, - "button": controller_Controller_button__P4788, - "connected": controller_Controller_connected__P2136, - "set/connected": controller_Controller_connected__P2137, - "__preUpdate": controller_Controller___preUpdate__P2143, - "__update": controller_Controller___update__P2144, + "_controlledSprites": controller_Controller__controlledSprites__P66339, + "set/_controlledSprites": controller_Controller__controlledSprites__P66340, + "id": controller_Controller_id__P66341, + "left": controller_Controller_left__P66343, + "right": controller_Controller_right__P66344, + "up": controller_Controller_up__P66345, + "down": controller_Controller_down__P66346, + "_moveSpriteInternal": controller_Controller__moveSpriteInternal__P66352, + "button": controller_Controller_button__P69007, + "connected": controller_Controller_connected__P66355, + "set/connected": controller_Controller_connected__P66356, + "__preUpdate": controller_Controller___preUpdate__P66362, + "__update": controller_Controller___update__P66363, }, }); -const controller_Button__C2170_VT = mkVTable({ +const controller_Button__C66389_VT = mkVTable({ name: "Button", numFields: 7, classNo: 17, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P2181, + "isPressed": controller_Button_isPressed__P66400, }, iface: { "_owner": null, @@ -77734,29 +79663,29 @@ const controller_Button__C2170_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "handlerState": controller_Button_handlerState__P4791, - "toString": controller_Button_toString__P2175, - "raiseButtonUp": controller_Button_raiseButtonUp__P4792, - "raiseButtonDown": controller_Button_raiseButtonDown__P4793, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4794, - "onEvent": controller_Button_onEvent__P2177, - "isPressed": controller_Button_isPressed__P2181, - "pressureLevel": controller_Button_pressureLevel__P2182, - "setPressed": controller_Button_setPressed__P2183, - "__update": controller_Button___update__P2184, - "runButtonEvents": controller_Button_runButtonEvents__P4795, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4796, + "handlerState": controller_Button_handlerState__P69010, + "toString": controller_Button_toString__P66394, + "raiseButtonUp": controller_Button_raiseButtonUp__P69011, + "raiseButtonDown": controller_Button_raiseButtonDown__P69012, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P69013, + "onEvent": controller_Button_onEvent__P66396, + "isPressed": controller_Button_isPressed__P66400, + "pressureLevel": controller_Button_pressureLevel__P66401, + "setPressed": controller_Button_setPressed__P66402, + "__update": controller_Button___update__P66403, + "runButtonEvents": controller_Button_runButtonEvents__P69014, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P69015, }, - toStringMethod: controller_Button_toString__P2175, + toStringMethod: controller_Button_toString__P66394, }); -const controller_AnyButton__C4789_VT = mkVTable({ +const controller_AnyButton__C69008_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 18, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P4797, + "isPressed": controller_AnyButton_isPressed__P69016, }, iface: { "_owner": null, @@ -77773,21 +79702,21 @@ const controller_AnyButton__C4789_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P4797, - "handlerState": controller_Button_handlerState__P4791, - "toString": controller_Button_toString__P2175, - "raiseButtonUp": controller_Button_raiseButtonUp__P4792, - "raiseButtonDown": controller_Button_raiseButtonDown__P4793, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4794, - "onEvent": controller_Button_onEvent__P2177, - "pressureLevel": controller_Button_pressureLevel__P2182, - "setPressed": controller_Button_setPressed__P2183, - "__update": controller_Button___update__P2184, - "runButtonEvents": controller_Button_runButtonEvents__P4795, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4796, + "isPressed": controller_AnyButton_isPressed__P69016, + "handlerState": controller_Button_handlerState__P69010, + "toString": controller_Button_toString__P66394, + "raiseButtonUp": controller_Button_raiseButtonUp__P69011, + "raiseButtonDown": controller_Button_raiseButtonDown__P69012, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P69013, + "onEvent": controller_Button_onEvent__P66396, + "pressureLevel": controller_Button_pressureLevel__P66401, + "setPressed": controller_Button_setPressed__P66402, + "__update": controller_Button___update__P66403, + "runButtonEvents": controller_Button_runButtonEvents__P69014, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P69015, }, }); -const game_GameOverConfig__C2953_VT = mkVTable({ +const game_GameOverConfig__C67172_VT = mkVTable({ name: "GameOverConfig", numFields: 14, classNo: 19, @@ -77824,16 +79753,16 @@ const game_GameOverConfig__C2953_VT = mkVTable({ "set/messageSetByUser": null, "scoringTypeSetByUser": null, "set/scoringTypeSetByUser": null, - "init": game_GameOverConfig_init__P2969, - "setEffect": game_GameOverConfig_setEffect__P2971, - "getEffect": game_GameOverConfig_getEffect__P2972, - "setSound": game_GameOverConfig_setSound__P2973, - "getSound": game_GameOverConfig_getSound__P2974, - "getSoundLooping": game_GameOverConfig_getSoundLooping__P2975, - "getMessage": game_GameOverConfig_getMessage__P2977, + "init": game_GameOverConfig_init__P67188, + "setEffect": game_GameOverConfig_setEffect__P67190, + "getEffect": game_GameOverConfig_getEffect__P67191, + "setSound": game_GameOverConfig_setSound__P67192, + "getSound": game_GameOverConfig_getSound__P67193, + "getSoundLooping": game_GameOverConfig_getSoundLooping__P67194, + "getMessage": game_GameOverConfig_getMessage__P67196, }, }); -const Math_FastRandom__C3039_VT = mkVTable({ +const Math_FastRandom__C67258_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 20, @@ -77846,14 +79775,14 @@ const Math_FastRandom__C3039_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P3042, - "randomRange": Math_FastRandom_randomRange__P3043, - "pickRandom": Math_FastRandom_pickRandom__P3044, - "randomBool": Math_FastRandom_randomBool__P3045, - "percentChance": Math_FastRandom_percentChance__P3046, + "next": Math_FastRandom_next__P67261, + "randomRange": Math_FastRandom_randomRange__P67262, + "pickRandom": Math_FastRandom_pickRandom__P67263, + "randomBool": Math_FastRandom_randomBool__P67264, + "percentChance": Math_FastRandom_percentChance__P67265, }, }); -const forestFire_FireState__C7131_VT = mkVTable({ +const forestFire_FireState__C71350_VT = mkVTable({ name: "FireState", numFields: 14, classNo: 21, @@ -77890,59 +79819,59 @@ const forestFire_FireState__C7131_VT = mkVTable({ "set/fireHasStarted": null, "updateHasBeenCalled": null, "set/updateHasBeenCalled": null, - "danger": forestFire_FireState_danger__P7132, - "spreadTime": forestFire_FireState_spreadTime__P7133, - "getRandomSpreadInterval": forestFire_FireState_getRandomSpreadInterval__P7134, - "createFireAtRandomLocation": forestFire_FireState_createFireAtRandomLocation__P7135, - "createFireAtLocation": forestFire_FireState_createFireAtLocation__P7136, - "update": forestFire_FireState_update__P7137, - "updateFireSpread": forestFire_FireState_updateFireSpread__P7138, - "tryFireSpread": forestFire_FireState_tryFireSpread__P7139, - "onFireCreated": forestFire_FireState_onFireCreated__P7140, - "onFireDestroyed": forestFire_FireState_onFireDestroyed__P7141, - "setFireHealth": forestFire_FireState_setFireHealth__P7142, - "changeFireHealth": forestFire_FireState_changeFireHealth__P7143, + "danger": forestFire_FireState_danger__P71351, + "spreadTime": forestFire_FireState_spreadTime__P71352, + "getRandomSpreadInterval": forestFire_FireState_getRandomSpreadInterval__P71353, + "createFireAtRandomLocation": forestFire_FireState_createFireAtRandomLocation__P71354, + "createFireAtLocation": forestFire_FireState_createFireAtLocation__P71355, + "update": forestFire_FireState_update__P71356, + "updateFireSpread": forestFire_FireState_updateFireSpread__P71357, + "tryFireSpread": forestFire_FireState_tryFireSpread__P71358, + "onFireCreated": forestFire_FireState_onFireCreated__P71359, + "onFireDestroyed": forestFire_FireState_onFireDestroyed__P71360, + "setFireHealth": forestFire_FireState_setFireHealth__P71361, + "changeFireHealth": forestFire_FireState_changeFireHealth__P71362, }, }); -const sprites_BaseSprite__C2075_VT = mkVTable({ +const sprites_BaseSprite__C66294_VT = mkVTable({ name: "BaseSprite", numFields: 2, classNo: 22, lastSubtypeNo: 27, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P2078, - "__draw": sprites_BaseSprite___draw__P2081, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, + "__visible": sprites_BaseSprite___visible__P66297, + "__draw": sprites_BaseSprite___draw__P66300, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P2078, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__draw": sprites_BaseSprite___draw__P2081, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, + "__visible": sprites_BaseSprite___visible__P66297, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__draw": sprites_BaseSprite___draw__P66300, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, }, }); -const Sprite__C2321_VT = mkVTable({ +const Sprite__C66540_VT = mkVTable({ name: "Sprite", numFields: 30, classNo: 23, lastSubtypeNo: 24, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P2376, - "__draw": sprites_BaseSprite___draw__P2081, - "__drawCore": Sprite___drawCore__P2395, - "__update": Sprite___update__P2396, - "setHitbox": Sprite_setHitbox__P2374, - "recalcSize": Sprite_recalcSize__P4815, - "drawSprite": Sprite_drawSprite__P4819, + "__visible": Sprite___visible__P66595, + "__draw": sprites_BaseSprite___draw__P66300, + "__drawCore": Sprite___drawCore__P66614, + "__update": Sprite___update__P66615, + "setHitbox": Sprite_setHitbox__P66593, + "recalcSize": Sprite_recalcSize__P69034, + "drawSprite": Sprite_drawSprite__P69038, }, iface: { "_z": null, @@ -78005,69 +79934,69 @@ const Sprite__C2321_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P2334, - "set/x": Sprite_x__P2335, - "y": Sprite_y__P2336, - "set/y": Sprite_y__P2337, - "vx": Sprite_vx__P2338, - "set/vx": Sprite_vx__P2339, - "vy": Sprite_vy__P2340, - "set/vy": Sprite_vy__P2341, - "ax": Sprite_ax__P2342, - "set/ax": Sprite_ax__P2343, - "ay": Sprite_ay__P2344, - "set/ay": Sprite_ay__P2345, - "fx": Sprite_fx__P2346, - "set/fx": Sprite_fx__P2347, - "fy": Sprite_fy__P2348, - "set/fy": Sprite_fy__P2349, - "sx": Sprite_sx__P2350, - "sy": Sprite_sy__P2352, - "data": Sprite_data__P2356, - "set/data": Sprite_data__P2357, - "image": Sprite_image__P2370, - "setImage": Sprite_setImage__P2371, - "calcDimensionalHash": Sprite_calcDimensionalHash__P2372, - "resetHitbox": Sprite_resetHitbox__P2373, - "setHitbox": Sprite_setHitbox__P2374, - "isStatic": Sprite_isStatic__P2375, - "__visible": Sprite___visible__P2376, - "recalcSize": Sprite_recalcSize__P4815, - "isScaled": Sprite_isScaled__P4816, - "width": Sprite_width__P2377, - "height": Sprite_height__P2378, - "left": Sprite_left__P2379, - "set/left": Sprite_left__P2380, - "right": Sprite_right__P2381, - "set/right": Sprite_right__P2382, - "top": Sprite_top__P2383, - "set/top": Sprite_top__P2384, - "bottom": Sprite_bottom__P2385, - "set/bottom": Sprite_bottom__P2386, - "kind": Sprite_kind__P2387, - "setKind": Sprite_setKind__P2388, - "setPosition": Sprite_setPosition__P2389, - "sayText": Sprite_sayText__P2392, - "isOutOfScreen": Sprite_isOutOfScreen__P2394, - "__drawCore": Sprite___drawCore__P2395, - "__update": Sprite___update__P2396, - "setFlag": Sprite_setFlag__P2399, - "overlapsWith": Sprite_overlapsWith__P2400, - "clearObstacles": Sprite_clearObstacles__P2405, - "registerObstacle": Sprite_registerObstacle__P2406, - "destroy": Sprite_destroy__P2408, - "_destroyCore": Sprite__destroyCore__P2409, - "toString": Sprite_toString__P2414, - "drawSay": Sprite_drawSay__P4817, - "drawDebug": Sprite_drawDebug__P4818, - "drawSprite": Sprite_drawSprite__P4819, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__draw": sprites_BaseSprite___draw__P2081, + "x": Sprite_x__P66553, + "set/x": Sprite_x__P66554, + "y": Sprite_y__P66555, + "set/y": Sprite_y__P66556, + "vx": Sprite_vx__P66557, + "set/vx": Sprite_vx__P66558, + "vy": Sprite_vy__P66559, + "set/vy": Sprite_vy__P66560, + "ax": Sprite_ax__P66561, + "set/ax": Sprite_ax__P66562, + "ay": Sprite_ay__P66563, + "set/ay": Sprite_ay__P66564, + "fx": Sprite_fx__P66565, + "set/fx": Sprite_fx__P66566, + "fy": Sprite_fy__P66567, + "set/fy": Sprite_fy__P66568, + "sx": Sprite_sx__P66569, + "sy": Sprite_sy__P66571, + "data": Sprite_data__P66575, + "set/data": Sprite_data__P66576, + "image": Sprite_image__P66589, + "setImage": Sprite_setImage__P66590, + "calcDimensionalHash": Sprite_calcDimensionalHash__P66591, + "resetHitbox": Sprite_resetHitbox__P66592, + "setHitbox": Sprite_setHitbox__P66593, + "isStatic": Sprite_isStatic__P66594, + "__visible": Sprite___visible__P66595, + "recalcSize": Sprite_recalcSize__P69034, + "isScaled": Sprite_isScaled__P69035, + "width": Sprite_width__P66596, + "height": Sprite_height__P66597, + "left": Sprite_left__P66598, + "set/left": Sprite_left__P66599, + "right": Sprite_right__P66600, + "set/right": Sprite_right__P66601, + "top": Sprite_top__P66602, + "set/top": Sprite_top__P66603, + "bottom": Sprite_bottom__P66604, + "set/bottom": Sprite_bottom__P66605, + "kind": Sprite_kind__P66606, + "setKind": Sprite_setKind__P66607, + "setPosition": Sprite_setPosition__P66608, + "sayText": Sprite_sayText__P66611, + "isOutOfScreen": Sprite_isOutOfScreen__P66613, + "__drawCore": Sprite___drawCore__P66614, + "__update": Sprite___update__P66615, + "setFlag": Sprite_setFlag__P66618, + "overlapsWith": Sprite_overlapsWith__P66619, + "clearObstacles": Sprite_clearObstacles__P66624, + "registerObstacle": Sprite_registerObstacle__P66625, + "destroy": Sprite_destroy__P66627, + "_destroyCore": Sprite__destroyCore__P66628, + "toString": Sprite_toString__P66633, + "drawSay": Sprite_drawSay__P69036, + "drawDebug": Sprite_drawDebug__P69037, + "drawSprite": Sprite_drawSprite__P69038, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__draw": sprites_BaseSprite___draw__P66300, }, - toStringMethod: Sprite_toString__P2414, + toStringMethod: Sprite_toString__P66633, }); -const music_Melody__C1626_VT = mkVTable({ +const music_Melody__C65845_VT = mkVTable({ name: "Melody", numFields: 2, classNo: 28, @@ -78080,18 +80009,18 @@ const music_Melody__C1626_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "stop": music_Melody_stop__P1631, - "registerMelody": music_Melody_registerMelody__P4567, - "unregisterMelody": music_Melody_unregisterMelody__P4568, - "playCore": music_Melody_playCore__P4569, - "loop": music_Melody_loop__P1632, - "play": music_Melody_play__P1633, - "playUntilDone": music_Melody_playUntilDone__P1634, - "toString": music_Melody_toString__P1635, + "stop": music_Melody_stop__P65850, + "registerMelody": music_Melody_registerMelody__P68786, + "unregisterMelody": music_Melody_unregisterMelody__P68787, + "playCore": music_Melody_playCore__P68788, + "loop": music_Melody_loop__P65851, + "play": music_Melody_play__P65852, + "playUntilDone": music_Melody_playUntilDone__P65853, + "toString": music_Melody_toString__P65854, }, - toStringMethod: music_Melody_toString__P1635, + toStringMethod: music_Melody_toString__P65854, }); -const tiles_TileMap__C2715_VT = mkVTable({ +const tiles_TileMap__C66934_VT = mkVTable({ name: "TileMap", numFields: 5, classNo: 29, @@ -78110,31 +80039,31 @@ const tiles_TileMap__C2715_VT = mkVTable({ "set/renderable": null, "handlerState": null, "set/handlerState": null, - "scale": tiles_TileMap_scale__P2718, - "set/scale": tiles_TileMap_scale__P2719, - "data": tiles_TileMap_data__P2720, - "offsetX": tiles_TileMap_offsetX__P2721, - "offsetY": tiles_TileMap_offsetY__P2722, - "areaWidth": tiles_TileMap_areaWidth__P2723, - "areaHeight": tiles_TileMap_areaHeight__P2724, - "layer": tiles_TileMap_layer__P2725, - "enabled": tiles_TileMap_enabled__P2727, - "setData": tiles_TileMap_setData__P2728, - "getTile": tiles_TileMap_getTile__P2729, - "getTileIndex": tiles_TileMap_getTileIndex__P2730, - "setTileAt": tiles_TileMap_setTileAt__P2731, - "getImageType": tiles_TileMap_getImageType__P2732, - "getTilesByType": tiles_TileMap_getTilesByType__P2734, - "sampleTilesByType": tiles_TileMap_sampleTilesByType__P2735, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P4935, - "draw": tiles_TileMap_draw__P4936, - "isObstacle": tiles_TileMap_isObstacle__P2736, - "getObstacle": tiles_TileMap_getObstacle__P2737, - "isOnWall": tiles_TileMap_isOnWall__P2738, - "getTileImage": tiles_TileMap_getTileImage__P2739, + "scale": tiles_TileMap_scale__P66937, + "set/scale": tiles_TileMap_scale__P66938, + "data": tiles_TileMap_data__P66939, + "offsetX": tiles_TileMap_offsetX__P66940, + "offsetY": tiles_TileMap_offsetY__P66941, + "areaWidth": tiles_TileMap_areaWidth__P66942, + "areaHeight": tiles_TileMap_areaHeight__P66943, + "layer": tiles_TileMap_layer__P66944, + "enabled": tiles_TileMap_enabled__P66946, + "setData": tiles_TileMap_setData__P66947, + "getTile": tiles_TileMap_getTile__P66948, + "getTileIndex": tiles_TileMap_getTileIndex__P66949, + "setTileAt": tiles_TileMap_setTileAt__P66950, + "getImageType": tiles_TileMap_getImageType__P66951, + "getTilesByType": tiles_TileMap_getTilesByType__P66953, + "sampleTilesByType": tiles_TileMap_sampleTilesByType__P66954, + "isInvalidIndex": tiles_TileMap_isInvalidIndex__P69154, + "draw": tiles_TileMap_draw__P69155, + "isObstacle": tiles_TileMap_isObstacle__P66955, + "getObstacle": tiles_TileMap_getObstacle__P66956, + "isOnWall": tiles_TileMap_isOnWall__P66957, + "getTileImage": tiles_TileMap_getTileImage__P66958, }, }); -const tiles_Location__C2673_VT = mkVTable({ +const tiles_Location__C66892_VT = mkVTable({ name: "Location", numFields: 2, classNo: 30, @@ -78147,18 +80076,18 @@ const tiles_Location__C2673_VT = mkVTable({ "set/_row": null, "_col": null, "set/_col": null, - "tileMap": tiles_Location_tileMap__P2675, - "column": tiles_Location_column__P2676, - "row": tiles_Location_row__P2677, - "x": tiles_Location_x__P2678, - "y": tiles_Location_y__P2679, - "left": tiles_Location_left__P2680, - "top": tiles_Location_top__P2681, - "tileSet": tiles_Location_tileSet__P2684, - "col": tiles_Location_col__P2685, + "tileMap": tiles_Location_tileMap__P66894, + "column": tiles_Location_column__P66895, + "row": tiles_Location_row__P66896, + "x": tiles_Location_x__P66897, + "y": tiles_Location_y__P66898, + "left": tiles_Location_left__P66899, + "top": tiles_Location_top__P66900, + "tileSet": tiles_Location_tileSet__P66903, + "col": tiles_Location_col__P66904, }, }); -const tiles_TileMapData__C2697_VT = mkVTable({ +const tiles_TileMapData__C66916_VT = mkVTable({ name: "TileMapData", numFields: 7, classNo: 31, @@ -78181,19 +80110,19 @@ const tiles_TileMapData__C2697_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P2699, - "height": tiles_TileMapData_height__P2700, - "scale": tiles_TileMapData_scale__P2701, - "set/scale": tiles_TileMapData_scale__P2702, - "getTile": tiles_TileMapData_getTile__P2703, - "setTile": tiles_TileMapData_setTile__P2704, - "getTileset": tiles_TileMapData_getTileset__P2705, - "getTileImage": tiles_TileMapData_getTileImage__P2706, - "isWall": tiles_TileMapData_isWall__P2708, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P2709, + "width": tiles_TileMapData_width__P66918, + "height": tiles_TileMapData_height__P66919, + "scale": tiles_TileMapData_scale__P66920, + "set/scale": tiles_TileMapData_scale__P66921, + "getTile": tiles_TileMapData_getTile__P66922, + "setTile": tiles_TileMapData_setTile__P66923, + "getTileset": tiles_TileMapData_getTileset__P66924, + "getTileImage": tiles_TileMapData_getTileImage__P66925, + "isWall": tiles_TileMapData_isWall__P66927, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P66928, }, }); -const control_EventContext__C395_VT = mkVTable({ +const control_EventContext__C64614_VT = mkVTable({ name: "EventContext", numFields: 10, classNo: 32, @@ -78222,16 +80151,16 @@ const control_EventContext__C395_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P400, - "runCallbacks": control_EventContext_runCallbacks__P4525, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P4526, - "register": control_EventContext_register__P401, - "unregister": control_EventContext_unregister__P402, - "registerFrameHandler": control_EventContext_registerFrameHandler__P403, - "registerHandler": control_EventContext_registerHandler__P405, + "deltaTime": control_EventContext_deltaTime__P64619, + "runCallbacks": control_EventContext_runCallbacks__P68744, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P68745, + "register": control_EventContext_register__P64620, + "unregister": control_EventContext_unregister__P64621, + "registerFrameHandler": control_EventContext_registerFrameHandler__P64622, + "registerHandler": control_EventContext_registerHandler__P64624, }, }); -const control_FrameCallback__C392_VT = mkVTable({ +const control_FrameCallback__C64611_VT = mkVTable({ name: "FrameCallback", numFields: 2, classNo: 33, @@ -78246,7 +80175,7 @@ const control_FrameCallback__C392_VT = mkVTable({ "set/handler": null, }, }); -const control_PollEvent__C4499_VT = mkVTable({ +const control_PollEvent__C68718_VT = mkVTable({ name: "PollEvent", numFields: 6, classNo: 34, @@ -78269,7 +80198,7 @@ const control_PollEvent__C4499_VT = mkVTable({ "set/once": null, }, }); -const control_EventHandler__C4520_VT = mkVTable({ +const control_EventHandler__C68739_VT = mkVTable({ name: "EventHandler", numFields: 4, classNo: 35, @@ -78286,58 +80215,58 @@ const control_EventHandler__C4520_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P4521, - "unregister": control_EventHandler_unregister__P4522, + "register": control_EventHandler_register__P68740, + "unregister": control_EventHandler_unregister__P68741, }, }); -const music_Playable__C1896_VT = mkVTable({ +const music_Playable__C66115_VT = mkVTable({ name: "Playable", numFields: 1, classNo: 36, lastSubtypeNo: 38, maxBgInstances: null, methods: { - "play": music_Playable_play__P1899, + "play": music_Playable_play__P66118, }, iface: { "stopped": null, "set/stopped": null, - "play": music_Playable_play__P1899, - "loop": music_Playable_loop__P1900, + "play": music_Playable_play__P66118, + "loop": music_Playable_loop__P66119, }, }); -const music_MelodyPlayable__C1901_VT = mkVTable({ +const music_MelodyPlayable__C66120_VT = mkVTable({ name: "MelodyPlayable", numFields: 2, classNo: 37, lastSubtypeNo: 37, maxBgInstances: null, methods: { - "play": music_MelodyPlayable_play__P1903, + "play": music_MelodyPlayable_play__P66122, }, iface: { "stopped": null, "set/stopped": null, "melody": null, "set/melody": null, - "play": music_MelodyPlayable_play__P1903, - "loop": music_Playable_loop__P1900, + "play": music_MelodyPlayable_play__P66122, + "loop": music_Playable_loop__P66119, }, }); -const StatusBarSprite__C4328_VT = mkVTable({ +const StatusBarSprite__C68547_VT = mkVTable({ name: "StatusBarSprite", numFields: 31, classNo: 24, lastSubtypeNo: 24, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P2376, - "__draw": sprites_BaseSprite___draw__P2081, - "__drawCore": Sprite___drawCore__P2395, - "__update": Sprite___update__P2396, - "setHitbox": Sprite_setHitbox__P2374, - "recalcSize": Sprite_recalcSize__P4815, - "drawSprite": Sprite_drawSprite__P4819, + "__visible": Sprite___visible__P66595, + "__draw": sprites_BaseSprite___draw__P66300, + "__drawCore": Sprite___drawCore__P66614, + "__update": Sprite___update__P66615, + "setHitbox": Sprite_setHitbox__P66593, + "recalcSize": Sprite_recalcSize__P69034, + "drawSprite": Sprite_drawSprite__P69038, }, iface: { "_z": null, @@ -78402,74 +80331,74 @@ const StatusBarSprite__C4328_VT = mkVTable({ "set/destroyHandler": null, "_statusBar": null, "set/_statusBar": null, - "value": StatusBarSprite_value__P4330, - "set/value": StatusBarSprite_value__P4331, - "max": StatusBarSprite_max__P4332, - "set/max": StatusBarSprite_max__P4333, - "setColor": StatusBarSprite_setColor__P4336, - "applyChange": StatusBarSprite_applyChange__P7057, - "x": Sprite_x__P2334, - "set/x": Sprite_x__P2335, - "y": Sprite_y__P2336, - "set/y": Sprite_y__P2337, - "vx": Sprite_vx__P2338, - "set/vx": Sprite_vx__P2339, - "vy": Sprite_vy__P2340, - "set/vy": Sprite_vy__P2341, - "ax": Sprite_ax__P2342, - "set/ax": Sprite_ax__P2343, - "ay": Sprite_ay__P2344, - "set/ay": Sprite_ay__P2345, - "fx": Sprite_fx__P2346, - "set/fx": Sprite_fx__P2347, - "fy": Sprite_fy__P2348, - "set/fy": Sprite_fy__P2349, - "sx": Sprite_sx__P2350, - "sy": Sprite_sy__P2352, - "data": Sprite_data__P2356, - "set/data": Sprite_data__P2357, - "image": Sprite_image__P2370, - "setImage": Sprite_setImage__P2371, - "calcDimensionalHash": Sprite_calcDimensionalHash__P2372, - "resetHitbox": Sprite_resetHitbox__P2373, - "setHitbox": Sprite_setHitbox__P2374, - "isStatic": Sprite_isStatic__P2375, - "__visible": Sprite___visible__P2376, - "recalcSize": Sprite_recalcSize__P4815, - "isScaled": Sprite_isScaled__P4816, - "width": Sprite_width__P2377, - "height": Sprite_height__P2378, - "left": Sprite_left__P2379, - "set/left": Sprite_left__P2380, - "right": Sprite_right__P2381, - "set/right": Sprite_right__P2382, - "top": Sprite_top__P2383, - "set/top": Sprite_top__P2384, - "bottom": Sprite_bottom__P2385, - "set/bottom": Sprite_bottom__P2386, - "kind": Sprite_kind__P2387, - "setKind": Sprite_setKind__P2388, - "setPosition": Sprite_setPosition__P2389, - "sayText": Sprite_sayText__P2392, - "isOutOfScreen": Sprite_isOutOfScreen__P2394, - "__drawCore": Sprite___drawCore__P2395, - "__update": Sprite___update__P2396, - "setFlag": Sprite_setFlag__P2399, - "overlapsWith": Sprite_overlapsWith__P2400, - "clearObstacles": Sprite_clearObstacles__P2405, - "registerObstacle": Sprite_registerObstacle__P2406, - "destroy": Sprite_destroy__P2408, - "_destroyCore": Sprite__destroyCore__P2409, - "toString": Sprite_toString__P2414, - "drawSay": Sprite_drawSay__P4817, - "drawDebug": Sprite_drawDebug__P4818, - "drawSprite": Sprite_drawSprite__P4819, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__draw": sprites_BaseSprite___draw__P2081, + "value": StatusBarSprite_value__P68549, + "set/value": StatusBarSprite_value__P68550, + "max": StatusBarSprite_max__P68551, + "set/max": StatusBarSprite_max__P68552, + "setColor": StatusBarSprite_setColor__P68555, + "applyChange": StatusBarSprite_applyChange__P71276, + "x": Sprite_x__P66553, + "set/x": Sprite_x__P66554, + "y": Sprite_y__P66555, + "set/y": Sprite_y__P66556, + "vx": Sprite_vx__P66557, + "set/vx": Sprite_vx__P66558, + "vy": Sprite_vy__P66559, + "set/vy": Sprite_vy__P66560, + "ax": Sprite_ax__P66561, + "set/ax": Sprite_ax__P66562, + "ay": Sprite_ay__P66563, + "set/ay": Sprite_ay__P66564, + "fx": Sprite_fx__P66565, + "set/fx": Sprite_fx__P66566, + "fy": Sprite_fy__P66567, + "set/fy": Sprite_fy__P66568, + "sx": Sprite_sx__P66569, + "sy": Sprite_sy__P66571, + "data": Sprite_data__P66575, + "set/data": Sprite_data__P66576, + "image": Sprite_image__P66589, + "setImage": Sprite_setImage__P66590, + "calcDimensionalHash": Sprite_calcDimensionalHash__P66591, + "resetHitbox": Sprite_resetHitbox__P66592, + "setHitbox": Sprite_setHitbox__P66593, + "isStatic": Sprite_isStatic__P66594, + "__visible": Sprite___visible__P66595, + "recalcSize": Sprite_recalcSize__P69034, + "isScaled": Sprite_isScaled__P69035, + "width": Sprite_width__P66596, + "height": Sprite_height__P66597, + "left": Sprite_left__P66598, + "set/left": Sprite_left__P66599, + "right": Sprite_right__P66600, + "set/right": Sprite_right__P66601, + "top": Sprite_top__P66602, + "set/top": Sprite_top__P66603, + "bottom": Sprite_bottom__P66604, + "set/bottom": Sprite_bottom__P66605, + "kind": Sprite_kind__P66606, + "setKind": Sprite_setKind__P66607, + "setPosition": Sprite_setPosition__P66608, + "sayText": Sprite_sayText__P66611, + "isOutOfScreen": Sprite_isOutOfScreen__P66613, + "__drawCore": Sprite___drawCore__P66614, + "__update": Sprite___update__P66615, + "setFlag": Sprite_setFlag__P66618, + "overlapsWith": Sprite_overlapsWith__P66619, + "clearObstacles": Sprite_clearObstacles__P66624, + "registerObstacle": Sprite_registerObstacle__P66625, + "destroy": Sprite_destroy__P66627, + "_destroyCore": Sprite__destroyCore__P66628, + "toString": Sprite_toString__P66633, + "drawSay": Sprite_drawSay__P69036, + "drawDebug": Sprite_drawDebug__P69037, + "drawSprite": Sprite_drawSprite__P69038, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__draw": sprites_BaseSprite___draw__P66300, }, }); -const statusbars_StatusBar__C4345_VT = mkVTable({ +const statusbars_StatusBar__C68564_VT = mkVTable({ name: "StatusBar", numFields: 24, classNo: 39, @@ -78526,22 +80455,22 @@ const statusbars_StatusBar__C4345_VT = mkVTable({ "set/lastUpdate": null, "throttleAmount": null, "set/throttleAmount": null, - "positionNextTo": statusbars_StatusBar_positionNextTo__P4361, - "label": statusbars_StatusBar_label__P4363, - "max": statusbars_StatusBar_max__P4365, - "set/max": statusbars_StatusBar_max__P4366, - "current": statusbars_StatusBar_current__P4367, - "set/current": statusbars_StatusBar_current__P4368, - "changeValue": statusbars_StatusBar_changeValue__P7084, - "image": statusbars_StatusBar_image__P4370, - "set/image": statusbars_StatusBar_image__P4371, - "isVerticalBar": statusbars_StatusBar_isVerticalBar__P7085, - "rebuildImage": statusbars_StatusBar_rebuildImage__P7087, - "updateState": statusbars_StatusBar_updateState__P4372, - "updateDisplay": statusbars_StatusBar_updateDisplay__P4373, + "positionNextTo": statusbars_StatusBar_positionNextTo__P68580, + "label": statusbars_StatusBar_label__P68582, + "max": statusbars_StatusBar_max__P68584, + "set/max": statusbars_StatusBar_max__P68585, + "current": statusbars_StatusBar_current__P68586, + "set/current": statusbars_StatusBar_current__P68587, + "changeValue": statusbars_StatusBar_changeValue__P71303, + "image": statusbars_StatusBar_image__P68589, + "set/image": statusbars_StatusBar_image__P68590, + "isVerticalBar": statusbars_StatusBar_isVerticalBar__P71304, + "rebuildImage": statusbars_StatusBar_rebuildImage__P71306, + "updateState": statusbars_StatusBar_updateState__P68591, + "updateDisplay": statusbars_StatusBar_updateDisplay__P68592, }, }); -const scene_Scene__C2823_VT = mkVTable({ +const scene_Scene__C67042_VT = mkVTable({ name: "Scene", numFields: 25, classNo: 40, @@ -78600,15 +80529,15 @@ const scene_Scene__C2823_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P2847, - "data": scene_Scene_data__P2848, - "millis": scene_Scene_millis__P2849, - "addSprite": scene_Scene_addSprite__P2850, - "destroy": scene_Scene_destroy__P2851, - "render": scene_Scene_render__P2852, + "init": scene_Scene_init__P67066, + "data": scene_Scene_data__P67067, + "millis": scene_Scene_millis__P67068, + "addSprite": scene_Scene_addSprite__P67069, + "destroy": scene_Scene_destroy__P67070, + "render": scene_Scene_render__P67071, }, }); -const game_Hitbox__C2189_VT = mkVTable({ +const game_Hitbox__C66408_VT = mkVTable({ name: "Hitbox", numFields: 6, classNo: 41, @@ -78629,21 +80558,213 @@ const game_Hitbox__C2189_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P2197, - "top": game_Hitbox_top__P2198, - "right": game_Hitbox_right__P2199, - "bottom": game_Hitbox_bottom__P2200, - "isValid": game_Hitbox_isValid__P2201, - "contains": game_Hitbox_contains__P2202, - "updateIfInvalid": game_Hitbox_updateIfInvalid__P2203, - "overlapsWith": game_Hitbox_overlapsWith__P2204, + "left": game_Hitbox_left__P66416, + "top": game_Hitbox_top__P66417, + "right": game_Hitbox_right__P66418, + "bottom": game_Hitbox_bottom__P66419, + "isValid": game_Hitbox_isValid__P66420, + "contains": game_Hitbox_contains__P66421, + "updateIfInvalid": game_Hitbox_updateIfInvalid__P66422, + "overlapsWith": game_Hitbox_overlapsWith__P66423, }, }); -const scene_Camera__C2761_VT = mkVTable({ +const game_BaseDialog__C67102_VT = mkVTable({ + name: "BaseDialog", + numFields: 11, + classNo: 42, + lastSubtypeNo: 45, + maxBgInstances: null, + methods: { + "update": game_BaseDialog_update__P67116, + "setText": game_BaseDialog_setText__P67117, + "drawTextCore": game_BaseDialog_drawTextCore__P67118, + }, + iface: { + "image": null, + "set/image": null, + "frame": null, + "set/frame": null, + "cursor": null, + "set/cursor": null, + "columns": null, + "set/columns": null, + "rows": null, + "set/rows": null, + "unit": null, + "set/unit": null, + "innerLeft": null, + "set/innerLeft": null, + "innerTop": null, + "set/innerTop": null, + "cursorCount": null, + "set/cursorCount": null, + "font": null, + "set/font": null, + "textColor": null, + "set/textColor": null, + "resize": game_BaseDialog_resize__P67115, + "update": game_BaseDialog_update__P67116, + "setText": game_BaseDialog_setText__P67117, + "drawTextCore": game_BaseDialog_drawTextCore__P67118, + "drawCursorRow": game_BaseDialog_drawCursorRow__P67119, + "drawBorder": game_BaseDialog_drawBorder__P69188, + "fastFill": game_BaseDialog_fastFill__P69189, + "clearInterior": game_BaseDialog_clearInterior__P69190, + "drawPartial": game_BaseDialog_drawPartial__P69191, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P69192, + "rowHeight": game_BaseDialog_rowHeight__P69193, + "textAreaWidth": game_BaseDialog_textAreaWidth__P69194, + "textAreaHeight": game_BaseDialog_textAreaHeight__P69195, + "setFont": game_BaseDialog_setFont__P69196, + }, +}); +const game_Dialog__C67120_VT = mkVTable({ + name: "Dialog", + numFields: 13, + classNo: 43, + lastSubtypeNo: 43, + maxBgInstances: null, + methods: { + "update": game_BaseDialog_update__P67116, + "setText": game_Dialog_setText__P67129, + "drawTextCore": game_Dialog_drawTextCore__P67130, + }, + iface: { + "image": null, + "set/image": null, + "frame": null, + "set/frame": null, + "cursor": null, + "set/cursor": null, + "columns": null, + "set/columns": null, + "rows": null, + "set/rows": null, + "unit": null, + "set/unit": null, + "innerLeft": null, + "set/innerLeft": null, + "innerTop": null, + "set/innerTop": null, + "cursorCount": null, + "set/cursorCount": null, + "font": null, + "set/font": null, + "textColor": null, + "set/textColor": null, + "chunks": null, + "set/chunks": null, + "chunkIndex": null, + "set/chunkIndex": null, + "hasNext": game_Dialog_hasNext__P67124, + "hasPrev": game_Dialog_hasPrev__P67125, + "nextPage": game_Dialog_nextPage__P67126, + "prevPage": game_Dialog_prevPage__P67127, + "chunkText": game_Dialog_chunkText__P67128, + "setText": game_Dialog_setText__P67129, + "drawTextCore": game_Dialog_drawTextCore__P67130, + "resize": game_BaseDialog_resize__P67115, + "update": game_BaseDialog_update__P67116, + "drawCursorRow": game_BaseDialog_drawCursorRow__P67119, + "drawBorder": game_BaseDialog_drawBorder__P69188, + "fastFill": game_BaseDialog_fastFill__P69189, + "clearInterior": game_BaseDialog_clearInterior__P69190, + "drawPartial": game_BaseDialog_drawPartial__P69191, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P69192, + "rowHeight": game_BaseDialog_rowHeight__P69193, + "textAreaWidth": game_BaseDialog_textAreaWidth__P69194, + "textAreaHeight": game_BaseDialog_textAreaHeight__P69195, + "setFont": game_BaseDialog_setFont__P69196, + }, +}); +const particles_ParticleSource__C67350_VT = mkVTable({ + name: "ParticleSource", + numFields: 13, + classNo: 25, + lastSubtypeNo: 26, + maxBgInstances: null, + methods: { + "__visible": sprites_BaseSprite___visible__P66297, + "__draw": particles_ParticleSource___draw__P67356, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, + "updateParticle": particles_ParticleSource_updateParticle__P69567, + }, + iface: { + "_z": null, + "set/_z": null, + "id": null, + "set/id": null, + "priority": null, + "set/priority": null, + "_dt": null, + "set/_dt": null, + "anchor": null, + "set/anchor": null, + "lifespan": null, + "set/lifespan": null, + "pFlags": null, + "set/pFlags": null, + "head": null, + "set/head": null, + "timer": null, + "set/timer": null, + "period": null, + "set/period": null, + "_factory": null, + "set/_factory": null, + "ax": null, + "set/ax": null, + "ay": null, + "set/ay": null, + "__draw": particles_ParticleSource___draw__P67356, + "_update": particles_ParticleSource__update__P67357, + "_prune": particles_ParticleSource__prune__P67358, + "setAcceleration": particles_ParticleSource_setAcceleration__P67359, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P67361, + "enabled": particles_ParticleSource_enabled__P67362, + "set/enabled": particles_ParticleSource_enabled__P67363, + "destroy": particles_ParticleSource_destroy__P67364, + "clear": particles_ParticleSource_clear__P67365, + "setAnchor": particles_ParticleSource_setAnchor__P67366, + "setRate": particles_ParticleSource_setRate__P67367, + "factory": particles_ParticleSource_factory__P67368, + "setFactory": particles_ParticleSource_setFactory__P67369, + "updateParticle": particles_ParticleSource_updateParticle__P69567, + "drawParticle": particles_ParticleSource_drawParticle__P69568, + "__visible": sprites_BaseSprite___visible__P66297, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, + }, +}); +const PhysicsEngine__C66710_VT = mkVTable({ + name: "PhysicsEngine", + numFields: 0, + classNo: 46, + lastSubtypeNo: 47, + maxBgInstances: null, + methods: { + "addSprite": PhysicsEngine_addSprite__P66712, + "removeSprite": PhysicsEngine_removeSprite__P66713, + "moveSprite": PhysicsEngine_moveSprite__P66714, + "draw": PhysicsEngine_draw__P66715, + "move": PhysicsEngine_move__P66716, + }, + iface: { + "addSprite": PhysicsEngine_addSprite__P66712, + "removeSprite": PhysicsEngine_removeSprite__P66713, + "moveSprite": PhysicsEngine_moveSprite__P66714, + "draw": PhysicsEngine_draw__P66715, + "move": PhysicsEngine_move__P66716, + }, +}); +const scene_Camera__C66980_VT = mkVTable({ name: "Camera", numFields: 10, - classNo: 42, - lastSubtypeNo: 42, + classNo: 48, + lastSubtypeNo: 48, maxBgInstances: null, methods: { }, @@ -78668,23 +80789,148 @@ const scene_Camera__C2761_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P2766, - "set/offsetX": scene_Camera_offsetX__P2767, - "offsetY": scene_Camera_offsetY__P2768, - "set/offsetY": scene_Camera_offsetY__P2769, - "x": scene_Camera_x__P2770, - "y": scene_Camera_y__P2771, - "left": scene_Camera_left__P2772, - "top": scene_Camera_top__P2774, - "isUpdated": scene_Camera_isUpdated__P2777, - "update": scene_Camera_update__P2778, + "offsetX": scene_Camera_offsetX__P66985, + "set/offsetX": scene_Camera_offsetX__P66986, + "offsetY": scene_Camera_offsetY__P66987, + "set/offsetY": scene_Camera_offsetY__P66988, + "x": scene_Camera_x__P66989, + "y": scene_Camera_y__P66990, + "left": scene_Camera_left__P66991, + "top": scene_Camera_top__P66993, + "isUpdated": scene_Camera_isUpdated__P66996, + "update": scene_Camera_update__P66997, + }, +}); +const scene_Background__C66868_VT = mkVTable({ + name: "Background", + numFields: 4, + classNo: 49, + lastSubtypeNo: 49, + maxBgInstances: null, + methods: { + }, + iface: { + "color": null, + "set/color": null, + "_image": null, + "set/_image": null, + "camera": null, + "set/camera": null, + "_layers": null, + "set/_layers": null, + "image": scene_Background_image__P66874, + "set/image": scene_Background_image__P66875, + "hasBackgroundImage": scene_Background_hasBackgroundImage__P66876, + "draw": scene_Background_draw__P66877, + }, +}); +const scene_BackgroundLayer__C66878_VT = mkVTable({ + name: "BackgroundLayer", + numFields: 6, + classNo: 50, + lastSubtypeNo: 50, + maxBgInstances: null, + methods: { + }, + iface: { + "distance": null, + "set/distance": null, + "img": null, + "set/img": null, + "repeatX": null, + "set/repeatX": null, + "repeatY": null, + "set/repeatY": null, + "alignX": null, + "set/alignX": null, + "alignY": null, + "set/alignY": null, + "draw": scene_BackgroundLayer_draw__P66886, }, }); -const controller_ControlledSprite__C2111_VT = mkVTable({ +const ArcadePhysicsEngine__C66726_VT = mkVTable({ + name: "ArcadePhysicsEngine", + numFields: 6, + classNo: 47, + lastSubtypeNo: 47, + maxBgInstances: null, + methods: { + "addSprite": ArcadePhysicsEngine_addSprite__P66735, + "removeSprite": ArcadePhysicsEngine_removeSprite__P66736, + "moveSprite": ArcadePhysicsEngine_moveSprite__P66740, + "draw": ArcadePhysicsEngine_draw__P66737, + "move": ArcadePhysicsEngine_move__P66738, + }, + iface: { + "sprites": null, + "set/sprites": null, + "map": null, + "set/map": null, + "maxVelocity": null, + "set/maxVelocity": null, + "maxNegativeVelocity": null, + "set/maxNegativeVelocity": null, + "minSingleStep": null, + "set/minSingleStep": null, + "maxSingleStep": null, + "set/maxSingleStep": null, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P66728, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P66729, + "minStep": ArcadePhysicsEngine_minStep__P66730, + "set/minStep": ArcadePhysicsEngine_minStep__P66731, + "maxStep": ArcadePhysicsEngine_maxStep__P66732, + "set/maxStep": ArcadePhysicsEngine_maxStep__P66733, + "addSprite": ArcadePhysicsEngine_addSprite__P66735, + "removeSprite": ArcadePhysicsEngine_removeSprite__P66736, + "draw": ArcadePhysicsEngine_draw__P66737, + "move": ArcadePhysicsEngine_move__P66738, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P69079, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P69080, + "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P69081, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P69082, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P69083, + "moveSprite": ArcadePhysicsEngine_moveSprite__P66740, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P69084, + "constrain": ArcadePhysicsEngine_constrain__P69085, + }, +}); +const sprites_SpriteMap__C66645_VT = mkVTable({ + name: "SpriteMap", + numFields: 5, + classNo: 51, + lastSubtypeNo: 51, + maxBgInstances: null, + methods: { + }, + iface: { + "cellWidth": null, + "set/cellWidth": null, + "cellHeight": null, + "set/cellHeight": null, + "rowCount": null, + "set/rowCount": null, + "columnCount": null, + "set/columnCount": null, + "buckets": null, + "set/buckets": null, + "neighbors": sprites_SpriteMap_neighbors__P66647, + "overlaps": sprites_SpriteMap_overlaps__P66648, + "draw": sprites_SpriteMap_draw__P66649, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P66650, + "clear": sprites_SpriteMap_clear__P66651, + "key": sprites_SpriteMap_key__P69042, + "insertAtKey": sprites_SpriteMap_insertAtKey__P69043, + "insertAABB": sprites_SpriteMap_insertAABB__P66652, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P69044, + "toString": sprites_SpriteMap_toString__P66653, + }, + toStringMethod: sprites_SpriteMap_toString__P66653, +}); +const controller_ControlledSprite__C66330_VT = mkVTable({ name: "ControlledSprite", numFields: 4, - classNo: 43, - lastSubtypeNo: 43, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: null, methods: { }, @@ -78699,57 +80945,36 @@ const controller_ControlledSprite__C2111_VT = mkVTable({ "set/vy": null, }, }); -const PhysicsEngine__C2491_VT = mkVTable({ - name: "PhysicsEngine", - numFields: 0, - classNo: 44, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - "addSprite": PhysicsEngine_addSprite__P2493, - "removeSprite": PhysicsEngine_removeSprite__P2494, - "moveSprite": PhysicsEngine_moveSprite__P2495, - "draw": PhysicsEngine_draw__P2496, - "move": PhysicsEngine_move__P2497, - }, - iface: { - "addSprite": PhysicsEngine_addSprite__P2493, - "removeSprite": PhysicsEngine_removeSprite__P2494, - "moveSprite": PhysicsEngine_moveSprite__P2495, - "draw": PhysicsEngine_draw__P2496, - "move": PhysicsEngine_move__P2497, - }, -}); -const sprites_SpriteSet__C2443_VT = mkVTable({ +const sprites_SpriteSet__C66662_VT = mkVTable({ name: "SpriteSet", numFields: 1, - classNo: 46, - lastSubtypeNo: 46, + classNo: 53, + lastSubtypeNo: 53, maxBgInstances: null, methods: { }, iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P2446, - "add": sprites_SpriteSet_add__P2448, - "remove": sprites_SpriteSet_remove__P2450, - "contains": sprites_SpriteSet_contains__P2451, - "toString": sprites_SpriteSet_toString__P2454, + "length": sprites_SpriteSet_length__P66665, + "add": sprites_SpriteSet_add__P66667, + "remove": sprites_SpriteSet_remove__P66669, + "contains": sprites_SpriteSet_contains__P66670, + "toString": sprites_SpriteSet_toString__P66673, }, - toStringMethod: sprites_SpriteSet_toString__P2454, + toStringMethod: sprites_SpriteSet_toString__P66673, }); -const scene_Renderable__C2780_VT = mkVTable({ +const scene_Renderable__C66999_VT = mkVTable({ name: "Renderable", numFields: 4, - classNo: 25, - lastSubtypeNo: 25, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P2782, - "__draw": sprites_BaseSprite___draw__P2081, - "__drawCore": scene_Renderable___drawCore__P2783, - "__update": sprites_BaseSprite___update__P2083, + "__visible": scene_Renderable___visible__P67001, + "__draw": sprites_BaseSprite___draw__P66300, + "__drawCore": scene_Renderable___drawCore__P67002, + "__update": sprites_BaseSprite___update__P66302, }, iface: { "_z": null, @@ -78760,19 +80985,19 @@ const scene_Renderable__C2780_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P2782, - "__drawCore": scene_Renderable___drawCore__P2783, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__draw": sprites_BaseSprite___draw__P2081, - "__update": sprites_BaseSprite___update__P2083, + "__visible": scene_Renderable___visible__P67001, + "__drawCore": scene_Renderable___drawCore__P67002, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__draw": sprites_BaseSprite___draw__P66300, + "__update": sprites_BaseSprite___update__P66302, }, }); -const effects_ParticleEffect__C3242_VT = mkVTable({ +const effects_ParticleEffect__C67461_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 47, - lastSubtypeNo: 48, + classNo: 54, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -78783,34 +81008,34 @@ const effects_ParticleEffect__C3242_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P3244, - "destroy": effects_ParticleEffect_destroy__P3245, + "start": effects_ParticleEffect_start__P67463, + "destroy": effects_ParticleEffect_destroy__P67464, }, }); -const particles_ParticleFactory__C3167_VT = mkVTable({ +const particles_ParticleFactory__C67386_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 49, - lastSubtypeNo: 55, + classNo: 56, + lastSubtypeNo: 62, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P3169, - "drawParticle": particles_ParticleFactory_drawParticle__P3170, + "createParticle": particles_ParticleFactory_createParticle__P67388, + "drawParticle": particles_ParticleFactory_drawParticle__P67389, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P3169, - "drawParticle": particles_ParticleFactory_drawParticle__P3170, + "createParticle": particles_ParticleFactory_createParticle__P67388, + "drawParticle": particles_ParticleFactory_drawParticle__P67389, }, }); -const particles_SprayFactory__C3171_VT = mkVTable({ +const particles_SprayFactory__C67390_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 50, - lastSubtypeNo: 54, + classNo: 57, + lastSubtypeNo: 61, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P3173, - "drawParticle": particles_SprayFactory_drawParticle__P3174, + "createParticle": particles_SprayFactory_createParticle__P67392, + "drawParticle": particles_SprayFactory_drawParticle__P67393, }, iface: { "speed": null, @@ -78819,21 +81044,21 @@ const particles_SprayFactory__C3171_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P3173, - "drawParticle": particles_SprayFactory_drawParticle__P3174, - "setSpeed": particles_SprayFactory_setSpeed__P3175, - "setDirection": particles_SprayFactory_setDirection__P3176, + "createParticle": particles_SprayFactory_createParticle__P67392, + "drawParticle": particles_SprayFactory_drawParticle__P67393, + "setSpeed": particles_SprayFactory_setSpeed__P67394, + "setDirection": particles_SprayFactory_setDirection__P67395, }, }); -const particles_AreaFactory__C3177_VT = mkVTable({ +const particles_AreaFactory__C67396_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 51, - lastSubtypeNo: 54, + classNo: 58, + lastSubtypeNo: 61, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P3183, - "drawParticle": particles_AreaFactory_drawParticle__P3184, + "createParticle": particles_AreaFactory_createParticle__P67402, + "drawParticle": particles_AreaFactory_drawParticle__P67403, }, iface: { "speed": null, @@ -78852,21 +81077,21 @@ const particles_AreaFactory__C3177_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P3183, - "drawParticle": particles_AreaFactory_drawParticle__P3184, - "setSpeed": particles_SprayFactory_setSpeed__P3175, - "setDirection": particles_SprayFactory_setDirection__P3176, + "createParticle": particles_AreaFactory_createParticle__P67402, + "drawParticle": particles_AreaFactory_drawParticle__P67403, + "setSpeed": particles_SprayFactory_setSpeed__P67394, + "setDirection": particles_SprayFactory_setDirection__P67395, }, }); -const particles_AshFactory__C3211_VT = mkVTable({ +const particles_AshFactory__C67430_VT = mkVTable({ name: "AshFactory", numFields: 9, - classNo: 52, - lastSubtypeNo: 52, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_AshFactory_createParticle__P3213, - "drawParticle": particles_AshFactory_drawParticle__P3214, + "createParticle": particles_AshFactory_createParticle__P67432, + "drawParticle": particles_AshFactory_drawParticle__P67433, }, iface: { "speed": null, @@ -78887,79 +81112,17 @@ const particles_AshFactory__C3211_VT = mkVTable({ "set/galois": null, "colors": null, "set/colors": null, - "createParticle": particles_AshFactory_createParticle__P3213, - "drawParticle": particles_AshFactory_drawParticle__P3214, - "setSpeed": particles_SprayFactory_setSpeed__P3175, - "setDirection": particles_SprayFactory_setDirection__P3176, - }, -}); -const particles_ParticleSource__C3131_VT = mkVTable({ - name: "ParticleSource", - numFields: 13, - classNo: 26, - lastSubtypeNo: 27, - maxBgInstances: null, - methods: { - "__visible": sprites_BaseSprite___visible__P2078, - "__draw": particles_ParticleSource___draw__P3137, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, - "updateParticle": particles_ParticleSource_updateParticle__P5348, - }, - iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, - "priority": null, - "set/priority": null, - "_dt": null, - "set/_dt": null, - "anchor": null, - "set/anchor": null, - "lifespan": null, - "set/lifespan": null, - "pFlags": null, - "set/pFlags": null, - "head": null, - "set/head": null, - "timer": null, - "set/timer": null, - "period": null, - "set/period": null, - "_factory": null, - "set/_factory": null, - "ax": null, - "set/ax": null, - "ay": null, - "set/ay": null, - "__draw": particles_ParticleSource___draw__P3137, - "_update": particles_ParticleSource__update__P3138, - "_prune": particles_ParticleSource__prune__P3139, - "setAcceleration": particles_ParticleSource_setAcceleration__P3140, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P3142, - "enabled": particles_ParticleSource_enabled__P3143, - "set/enabled": particles_ParticleSource_enabled__P3144, - "destroy": particles_ParticleSource_destroy__P3145, - "clear": particles_ParticleSource_clear__P3146, - "setAnchor": particles_ParticleSource_setAnchor__P3147, - "setRate": particles_ParticleSource_setRate__P3148, - "factory": particles_ParticleSource_factory__P3149, - "setFactory": particles_ParticleSource_setFactory__P3150, - "updateParticle": particles_ParticleSource_updateParticle__P5348, - "drawParticle": particles_ParticleSource_drawParticle__P5349, - "__visible": sprites_BaseSprite___visible__P2078, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, + "createParticle": particles_AshFactory_createParticle__P67432, + "drawParticle": particles_AshFactory_drawParticle__P67433, + "setSpeed": particles_SprayFactory_setSpeed__P67394, + "setDirection": particles_SprayFactory_setDirection__P67395, }, }); -const particles_Particle__C3112_VT = mkVTable({ +const particles_Particle__C67331_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 56, - lastSubtypeNo: 56, + classNo: 63, + lastSubtypeNo: 63, maxBgInstances: 200, methods: { }, @@ -78982,11 +81145,11 @@ const particles_Particle__C3112_VT = mkVTable({ "set/color": null, }, }); -const particles_ColorCount__C5385_VT = mkVTable({ +const particles_ColorCount__C69604_VT = mkVTable({ name: "ColorCount", numFields: 2, - classNo: 57, - lastSubtypeNo: 57, + classNo: 64, + lastSubtypeNo: 64, maxBgInstances: null, methods: { }, @@ -78997,11 +81160,11 @@ const particles_ColorCount__C5385_VT = mkVTable({ "set/count": null, }, }); -const effects_ImageEffect__C3270_VT = mkVTable({ +const effects_ImageEffect__C67489_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 58, - lastSubtypeNo: 58, + classNo: 65, + lastSubtypeNo: 65, maxBgInstances: null, methods: { }, @@ -79014,16 +81177,16 @@ const effects_ImageEffect__C3270_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P3272, - "change": effects_ImageEffect_change__P3273, - "startScreenEffect": effects_ImageEffect_startScreenEffect__P3274, + "applyTo": effects_ImageEffect_applyTo__P67491, + "change": effects_ImageEffect_change__P67492, + "startScreenEffect": effects_ImageEffect_startScreenEffect__P67493, }, }); -const scene_TileOverlapHandler__C2798_VT = mkVTable({ +const scene_TileOverlapHandler__C67017_VT = mkVTable({ name: "TileOverlapHandler", numFields: 3, - classNo: 59, - lastSubtypeNo: 59, + classNo: 66, + lastSubtypeNo: 66, maxBgInstances: null, methods: { }, @@ -79036,14 +81199,14 @@ const scene_TileOverlapHandler__C2798_VT = mkVTable({ "set/handler": null, }, }); -const music_SoundEffect__C1765_VT = mkVTable({ +const music_SoundEffect__C65984_VT = mkVTable({ name: "SoundEffect", numFields: 9, classNo: 38, lastSubtypeNo: 38, maxBgInstances: null, methods: { - "play": music_SoundEffect_play__P1776, + "play": music_SoundEffect_play__P65995, }, iface: { "stopped": null, @@ -79064,19 +81227,19 @@ const music_SoundEffect__C1765_VT = mkVTable({ "set/effect": null, "interpolation": null, "set/interpolation": null, - "toBuffer": music_SoundEffect_toBuffer__P1775, - "play": music_SoundEffect_play__P1776, - "loop": music_Playable_loop__P1900, + "toBuffer": music_SoundEffect_toBuffer__P65994, + "play": music_SoundEffect_play__P65995, + "loop": music_Playable_loop__P66119, }, }); -const animation_SpriteAnimation__C3332_VT = mkVTable({ +const animation_SpriteAnimation__C67551_VT = mkVTable({ name: "SpriteAnimation", numFields: 3, - classNo: 60, - lastSubtypeNo: 62, + classNo: 67, + lastSubtypeNo: 69, maxBgInstances: null, methods: { - "update": animation_SpriteAnimation_update__P3335, + "update": animation_SpriteAnimation_update__P67554, }, iface: { "elapsedTime": null, @@ -79085,18 +81248,18 @@ const animation_SpriteAnimation__C3332_VT = mkVTable({ "set/sprite": null, "loop": null, "set/loop": null, - "init": animation_SpriteAnimation_init__P3334, - "update": animation_SpriteAnimation_update__P3335, + "init": animation_SpriteAnimation_init__P67553, + "update": animation_SpriteAnimation_update__P67554, }, }); -const animation_ImageAnimation__C3336_VT = mkVTable({ +const animation_ImageAnimation__C67555_VT = mkVTable({ name: "ImageAnimation", numFields: 6, - classNo: 61, - lastSubtypeNo: 61, + classNo: 68, + lastSubtypeNo: 68, maxBgInstances: null, methods: { - "update": animation_ImageAnimation_update__P3338, + "update": animation_ImageAnimation_update__P67557, }, iface: { "elapsedTime": null, @@ -79111,18 +81274,18 @@ const animation_ImageAnimation__C3336_VT = mkVTable({ "set/frames": null, "frameInterval": null, "set/frameInterval": null, - "update": animation_ImageAnimation_update__P3338, - "init": animation_SpriteAnimation_init__P3334, + "update": animation_ImageAnimation_update__P67557, + "init": animation_SpriteAnimation_init__P67553, }, }); -const animation_MovementAnimation__C3339_VT = mkVTable({ +const animation_MovementAnimation__C67558_VT = mkVTable({ name: "MovementAnimation", numFields: 7, - classNo: 62, - lastSubtypeNo: 62, + classNo: 69, + lastSubtypeNo: 69, maxBgInstances: null, methods: { - "update": animation_MovementAnimation_update__P3341, + "update": animation_MovementAnimation_update__P67560, }, iface: { "elapsedTime": null, @@ -79139,15 +81302,15 @@ const animation_MovementAnimation__C3339_VT = mkVTable({ "set/path": null, "nodeInterval": null, "set/nodeInterval": null, - "update": animation_MovementAnimation_update__P3341, - "init": animation_SpriteAnimation_init__P3334, + "update": animation_MovementAnimation_update__P67560, + "init": animation_SpriteAnimation_init__P67553, }, }); -const music_MelodyPlayer__C1637_VT = mkVTable({ +const music_MelodyPlayer__C65856_VT = mkVTable({ name: "MelodyPlayer", numFields: 2, - classNo: 63, - lastSubtypeNo: 63, + classNo: 70, + lastSubtypeNo: 70, maxBgInstances: null, methods: { }, @@ -79156,20 +81319,20 @@ const music_MelodyPlayer__C1637_VT = mkVTable({ "set/melody": null, "onPlayFinished": null, "set/onPlayFinished": null, - "stop": music_MelodyPlayer_stop__P1641, - "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P4571, - "play": music_MelodyPlayer_play__P1642, + "stop": music_MelodyPlayer_stop__P65860, + "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P68790, + "play": music_MelodyPlayer_play__P65861, }, }); -const particles_FireFactory__C3200_VT = mkVTable({ +const particles_FireFactory__C67419_VT = mkVTable({ name: "FireFactory", numFields: 3, - classNo: 55, - lastSubtypeNo: 55, + classNo: 62, + lastSubtypeNo: 62, maxBgInstances: null, methods: { - "createParticle": particles_FireFactory_createParticle__P3202, - "drawParticle": particles_FireFactory_drawParticle__P3203, + "createParticle": particles_FireFactory_createParticle__P67421, + "drawParticle": particles_FireFactory_drawParticle__P67422, }, iface: { "galois": null, @@ -79178,22 +81341,22 @@ const particles_FireFactory__C3200_VT = mkVTable({ "set/minRadius": null, "maxRadius": null, "set/maxRadius": null, - "createParticle": particles_FireFactory_createParticle__P3202, - "drawParticle": particles_FireFactory_drawParticle__P3203, + "createParticle": particles_FireFactory_createParticle__P67421, + "drawParticle": particles_FireFactory_drawParticle__P67422, }, }); -const particles_FireSource__C3153_VT = mkVTable({ +const particles_FireSource__C67372_VT = mkVTable({ name: "FireSource", numFields: 14, - classNo: 27, - lastSubtypeNo: 27, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P2078, - "__draw": particles_ParticleSource___draw__P3137, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, - "updateParticle": particles_FireSource_updateParticle__P3155, + "__visible": sprites_BaseSprite___visible__P66297, + "__draw": particles_ParticleSource___draw__P67356, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, + "updateParticle": particles_FireSource_updateParticle__P67374, }, iface: { "_z": null, @@ -79224,38 +81387,38 @@ const particles_FireSource__C3153_VT = mkVTable({ "set/ay": null, "galois": null, "set/galois": null, - "updateParticle": particles_FireSource_updateParticle__P3155, - "__draw": particles_ParticleSource___draw__P3137, - "_update": particles_ParticleSource__update__P3138, - "_prune": particles_ParticleSource__prune__P3139, - "setAcceleration": particles_ParticleSource_setAcceleration__P3140, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P3142, - "enabled": particles_ParticleSource_enabled__P3143, - "set/enabled": particles_ParticleSource_enabled__P3144, - "destroy": particles_ParticleSource_destroy__P3145, - "clear": particles_ParticleSource_clear__P3146, - "setAnchor": particles_ParticleSource_setAnchor__P3147, - "setRate": particles_ParticleSource_setRate__P3148, - "factory": particles_ParticleSource_factory__P3149, - "setFactory": particles_ParticleSource_setFactory__P3150, - "drawParticle": particles_ParticleSource_drawParticle__P5349, - "__visible": sprites_BaseSprite___visible__P2078, - "z": sprites_BaseSprite_z__P2079, - "set/z": sprites_BaseSprite_z__P2080, - "__drawCore": sprites_BaseSprite___drawCore__P2082, - "__update": sprites_BaseSprite___update__P2083, + "updateParticle": particles_FireSource_updateParticle__P67374, + "__draw": particles_ParticleSource___draw__P67356, + "_update": particles_ParticleSource__update__P67357, + "_prune": particles_ParticleSource__prune__P67358, + "setAcceleration": particles_ParticleSource_setAcceleration__P67359, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P67361, + "enabled": particles_ParticleSource_enabled__P67362, + "set/enabled": particles_ParticleSource_enabled__P67363, + "destroy": particles_ParticleSource_destroy__P67364, + "clear": particles_ParticleSource_clear__P67365, + "setAnchor": particles_ParticleSource_setAnchor__P67366, + "setRate": particles_ParticleSource_setRate__P67367, + "factory": particles_ParticleSource_factory__P67368, + "setFactory": particles_ParticleSource_setFactory__P67369, + "drawParticle": particles_ParticleSource_drawParticle__P69568, + "__visible": sprites_BaseSprite___visible__P66297, + "z": sprites_BaseSprite_z__P66298, + "set/z": sprites_BaseSprite_z__P66299, + "__drawCore": sprites_BaseSprite___drawCore__P66301, + "__update": sprites_BaseSprite___update__P66302, }, }); -const sprites_BaseSpriteSayRenderer__C2240_VT = mkVTable({ +const sprites_BaseSpriteSayRenderer__C66459_VT = mkVTable({ name: "BaseSpriteSayRenderer", numFields: 3, - classNo: 64, - lastSubtypeNo: 65, + classNo: 71, + lastSubtypeNo: 72, maxBgInstances: null, methods: { - "draw": sprites_BaseSpriteSayRenderer_draw__P2242, - "update": sprites_BaseSpriteSayRenderer_update__P2243, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2244, + "draw": sprites_BaseSpriteSayRenderer_draw__P66461, + "update": sprites_BaseSpriteSayRenderer_update__P66462, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P66463, }, iface: { "text": null, @@ -79264,21 +81427,21 @@ const sprites_BaseSpriteSayRenderer__C2240_VT = mkVTable({ "set/fgColor": null, "bgColor": null, "set/bgColor": null, - "draw": sprites_BaseSpriteSayRenderer_draw__P2242, - "update": sprites_BaseSpriteSayRenderer_update__P2243, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2244, + "draw": sprites_BaseSpriteSayRenderer_draw__P66461, + "update": sprites_BaseSpriteSayRenderer_update__P66462, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P66463, }, }); -const sprites_SpriteSayRenderer__C2245_VT = mkVTable({ +const sprites_SpriteSayRenderer__C66464_VT = mkVTable({ name: "SpriteSayRenderer", numFields: 5, - classNo: 65, - lastSubtypeNo: 65, + classNo: 72, + lastSubtypeNo: 72, maxBgInstances: null, methods: { - "draw": sprites_SpriteSayRenderer_draw__P2248, - "update": sprites_BaseSpriteSayRenderer_update__P2243, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2244, + "draw": sprites_SpriteSayRenderer_draw__P66467, + "update": sprites_BaseSpriteSayRenderer_update__P66462, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P66463, }, iface: { "text": null, @@ -79291,17 +81454,17 @@ const sprites_SpriteSayRenderer__C2245_VT = mkVTable({ "set/renderText": null, "animation": null, "set/animation": null, - "drawSayFrame": sprites_SpriteSayRenderer_drawSayFrame__P2246, - "draw": sprites_SpriteSayRenderer_draw__P2248, - "update": sprites_BaseSpriteSayRenderer_update__P2243, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2244, + "drawSayFrame": sprites_SpriteSayRenderer_drawSayFrame__P66465, + "draw": sprites_SpriteSayRenderer_draw__P66467, + "update": sprites_BaseSpriteSayRenderer_update__P66462, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P66463, }, }); -const sprites_RenderText__C2207_VT = mkVTable({ +const sprites_RenderText__C66426_VT = mkVTable({ name: "RenderText", numFields: 5, - classNo: 66, - lastSubtypeNo: 66, + classNo: 73, + lastSubtypeNo: 73, maxBgInstances: null, methods: { }, @@ -79316,25 +81479,25 @@ const sprites_RenderText__C2207_VT = mkVTable({ "set/width": null, "text": null, "set/text": null, - "draw": sprites_RenderText_draw__P2213, - "drawLine": sprites_RenderText_drawLine__P2214, - "drawPartial": sprites_RenderText_drawPartial__P2215, - "drawPartialLine": sprites_RenderText_drawPartialLine__P2216, - "calculatePartialHeight": sprites_RenderText_calculatePartialHeight__P2217, - "lineHeight": sprites_RenderText_lineHeight__P2218, - "setMaxWidth": sprites_RenderText_setMaxWidth__P2219, - "printableCharacters": sprites_RenderText_printableCharacters__P2220, - "lineEnd": sprites_RenderText_lineEnd__P2221, - "lineStart": sprites_RenderText_lineStart__P2222, - "widthOfLine": sprites_RenderText_widthOfLine__P2223, - "widthOfLines": sprites_RenderText_widthOfLines__P2224, + "draw": sprites_RenderText_draw__P66432, + "drawLine": sprites_RenderText_drawLine__P66433, + "drawPartial": sprites_RenderText_drawPartial__P66434, + "drawPartialLine": sprites_RenderText_drawPartialLine__P66435, + "calculatePartialHeight": sprites_RenderText_calculatePartialHeight__P66436, + "lineHeight": sprites_RenderText_lineHeight__P66437, + "setMaxWidth": sprites_RenderText_setMaxWidth__P66438, + "printableCharacters": sprites_RenderText_printableCharacters__P66439, + "lineEnd": sprites_RenderText_lineEnd__P66440, + "lineStart": sprites_RenderText_lineStart__P66441, + "widthOfLine": sprites_RenderText_widthOfLine__P66442, + "widthOfLines": sprites_RenderText_widthOfLines__P66443, }, }); -const sprites_RenderTextAnimation__C2225_VT = mkVTable({ +const sprites_RenderTextAnimation__C66444_VT = mkVTable({ name: "RenderTextAnimation", numFields: 10, - classNo: 67, - lastSubtypeNo: 67, + classNo: 74, + lastSubtypeNo: 74, maxBgInstances: null, methods: { }, @@ -79359,21 +81522,21 @@ const sprites_RenderTextAnimation__C2225_VT = mkVTable({ "set/text": null, "height": null, "set/height": null, - "start": sprites_RenderTextAnimation_start__P2227, - "numPages": sprites_RenderTextAnimation_numPages__P2228, - "setPauseLength": sprites_RenderTextAnimation_setPauseLength__P2229, - "setTextSpeed": sprites_RenderTextAnimation_setTextSpeed__P2230, - "currentHeight": sprites_RenderTextAnimation_currentHeight__P2231, - "currentWidth": sprites_RenderTextAnimation_currentWidth__P2232, - "currentOffset": sprites_RenderTextAnimation_currentOffset__P2233, - "draw": sprites_RenderTextAnimation_draw__P2238, + "start": sprites_RenderTextAnimation_start__P66446, + "numPages": sprites_RenderTextAnimation_numPages__P66447, + "setPauseLength": sprites_RenderTextAnimation_setPauseLength__P66448, + "setTextSpeed": sprites_RenderTextAnimation_setTextSpeed__P66449, + "currentHeight": sprites_RenderTextAnimation_currentHeight__P66450, + "currentWidth": sprites_RenderTextAnimation_currentWidth__P66451, + "currentOffset": sprites_RenderTextAnimation_currentOffset__P66452, + "draw": sprites_RenderTextAnimation_draw__P66457, }, }); -const controller_ButtonHandler__C2164_VT = mkVTable({ +const controller_ButtonHandler__C66383_VT = mkVTable({ name: "ButtonHandler", numFields: 2, - classNo: 68, - lastSubtypeNo: 68, + classNo: 75, + lastSubtypeNo: 75, maxBgInstances: null, methods: { }, @@ -79384,11 +81547,11 @@ const controller_ButtonHandler__C2164_VT = mkVTable({ "set/callback": null, }, }); -const controller_ButtonEventHandlerState__C2166_VT = mkVTable({ +const controller_ButtonEventHandlerState__C66385_VT = mkVTable({ name: "ButtonEventHandlerState", numFields: 3, - classNo: 69, - lastSubtypeNo: 69, + classNo: 76, + lastSubtypeNo: 76, maxBgInstances: null, methods: { }, @@ -79401,11 +81564,11 @@ const controller_ButtonEventHandlerState__C2166_VT = mkVTable({ "set/system": null, }, }); -const statusbars_StatusHandler__C7088_VT = mkVTable({ +const statusbars_StatusHandler__C71307_VT = mkVTable({ name: "StatusHandler", numFields: 5, - classNo: 70, - lastSubtypeNo: 70, + classNo: 77, + lastSubtypeNo: 77, maxBgInstances: null, methods: { }, @@ -79420,14 +81583,14 @@ const statusbars_StatusHandler__C7088_VT = mkVTable({ "set/percent": null, "handler": null, "set/handler": null, - "conditionMet": statusbars_StatusHandler_conditionMet__P7089, + "conditionMet": statusbars_StatusHandler_conditionMet__P71308, }, }); -const info_PlayerInfoImpl__C2575_VT = mkVTable({ +const info_PlayerInfoImpl__C66794_VT = mkVTable({ name: "PlayerInfoImpl", numFields: 8, - classNo: 71, - lastSubtypeNo: 71, + classNo: 78, + lastSubtypeNo: 78, maxBgInstances: null, methods: { }, @@ -79448,21 +81611,21 @@ const info_PlayerInfoImpl__C2575_VT = mkVTable({ "set/left": null, "up": null, "set/up": null, - "init": info_PlayerInfoImpl_init__P4924, - "getState": info_PlayerInfoImpl_getState__P2584, - "id": info_PlayerInfoImpl_id__P2585, - "score": info_PlayerInfoImpl_score__P2586, - "setScore": info_PlayerInfoImpl_setScore__P2587, - "hasScore": info_PlayerInfoImpl_hasScore__P2589, - "hasLife": info_PlayerInfoImpl_hasLife__P2593, - "raiseLifeZero": info_PlayerInfoImpl_raiseLifeZero__P2596, + "init": info_PlayerInfoImpl_init__P69143, + "getState": info_PlayerInfoImpl_getState__P66803, + "id": info_PlayerInfoImpl_id__P66804, + "score": info_PlayerInfoImpl_score__P66805, + "setScore": info_PlayerInfoImpl_setScore__P66806, + "hasScore": info_PlayerInfoImpl_hasScore__P66808, + "hasLife": info_PlayerInfoImpl_hasLife__P66812, + "raiseLifeZero": info_PlayerInfoImpl_raiseLifeZero__P66815, }, }); -const info_PlayerInfo__C2597_VT = mkVTable({ +const info_PlayerInfo__C66816_VT = mkVTable({ name: "PlayerInfo", numFields: 2, - classNo: 72, - lastSubtypeNo: 72, + classNo: 79, + lastSubtypeNo: 79, maxBgInstances: null, methods: { }, @@ -79471,75 +81634,26 @@ const info_PlayerInfo__C2597_VT = mkVTable({ "set/_player": null, "impl": null, "set/impl": null, - "init": info_PlayerInfo_init__P4925, - "number": info_PlayerInfo_number__P2600, - "x": info_PlayerInfo_x__P2615, - "set/x": info_PlayerInfo_x__P2616, - "y": info_PlayerInfo_y__P2617, - "set/y": info_PlayerInfo_y__P2618, - "left": info_PlayerInfo_left__P2619, - "set/left": info_PlayerInfo_left__P2620, - "getState": info_PlayerInfo_getState__P2623, - "id": info_PlayerInfo_id__P2624, - "drawPlayer": info_PlayerInfo_drawPlayer__P2635, - "drawScore": info_PlayerInfo_drawScore__P2636, - "drawLives": info_PlayerInfo_drawLives__P2637, - }, -}); -const game_BaseDialog__C2883_VT = mkVTable({ - name: "BaseDialog", - numFields: 11, - classNo: 73, - lastSubtypeNo: 75, - maxBgInstances: null, - methods: { - "update": game_BaseDialog_update__P2897, - "setText": game_BaseDialog_setText__P2898, - "drawTextCore": game_BaseDialog_drawTextCore__P2899, - }, - iface: { - "image": null, - "set/image": null, - "frame": null, - "set/frame": null, - "cursor": null, - "set/cursor": null, - "columns": null, - "set/columns": null, - "rows": null, - "set/rows": null, - "unit": null, - "set/unit": null, - "innerLeft": null, - "set/innerLeft": null, - "innerTop": null, - "set/innerTop": null, - "cursorCount": null, - "set/cursorCount": null, - "font": null, - "set/font": null, - "textColor": null, - "set/textColor": null, - "resize": game_BaseDialog_resize__P2896, - "update": game_BaseDialog_update__P2897, - "setText": game_BaseDialog_setText__P2898, - "drawTextCore": game_BaseDialog_drawTextCore__P2899, - "drawCursorRow": game_BaseDialog_drawCursorRow__P2900, - "drawBorder": game_BaseDialog_drawBorder__P4969, - "fastFill": game_BaseDialog_fastFill__P4970, - "clearInterior": game_BaseDialog_clearInterior__P4971, - "drawPartial": game_BaseDialog_drawPartial__P4972, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4973, - "textAreaWidth": game_BaseDialog_textAreaWidth__P4975, - "textAreaHeight": game_BaseDialog_textAreaHeight__P4976, - "setFont": game_BaseDialog_setFont__P4977, + "init": info_PlayerInfo_init__P69144, + "number": info_PlayerInfo_number__P66819, + "x": info_PlayerInfo_x__P66834, + "set/x": info_PlayerInfo_x__P66835, + "y": info_PlayerInfo_y__P66836, + "set/y": info_PlayerInfo_y__P66837, + "left": info_PlayerInfo_left__P66838, + "set/left": info_PlayerInfo_left__P66839, + "getState": info_PlayerInfo_getState__P66842, + "id": info_PlayerInfo_id__P66843, + "drawPlayer": info_PlayerInfo_drawPlayer__P66854, + "drawScore": info_PlayerInfo_drawScore__P66855, + "drawLives": info_PlayerInfo_drawLives__P66856, }, }); -const game_GameOverPlayerScore__C2923_VT = mkVTable({ +const game_GameOverPlayerScore__C67142_VT = mkVTable({ name: "GameOverPlayerScore", numFields: 4, - classNo: 76, - lastSubtypeNo: 76, + classNo: 80, + lastSubtypeNo: 80, maxBgInstances: null, methods: { }, @@ -79554,16 +81668,16 @@ const game_GameOverPlayerScore__C2923_VT = mkVTable({ "set/winner": null, }, }); -const game_GameOverDialog__C2926_VT = mkVTable({ +const game_GameOverDialog__C67145_VT = mkVTable({ name: "GameOverDialog", numFields: 19, - classNo: 74, - lastSubtypeNo: 74, + classNo: 44, + lastSubtypeNo: 44, maxBgInstances: null, methods: { - "update": game_GameOverDialog_update__P2935, - "setText": game_BaseDialog_setText__P2898, - "drawTextCore": game_GameOverDialog_drawTextCore__P2939, + "update": game_GameOverDialog_update__P67154, + "setText": game_BaseDialog_setText__P67117, + "drawTextCore": game_GameOverDialog_drawTextCore__P67158, }, iface: { "image": null, @@ -79604,161 +81718,37 @@ const game_GameOverDialog__C2926_VT = mkVTable({ "set/bestScore": null, "winnerOverride": null, "set/winnerOverride": null, - "isWinCondition": game_GameOverDialog_isWinCondition__P2927, - "isJudgedGame": game_GameOverDialog_isJudgedGame__P2928, - "hasScores": game_GameOverDialog_hasScores__P2929, - "hasBestScore": game_GameOverDialog_hasBestScore__P2930, - "isNewBestScore": game_GameOverDialog_isNewBestScore__P2931, - "isMultiplayerGame": game_GameOverDialog_isMultiplayerGame__P2932, - "displayCursor": game_GameOverDialog_displayCursor__P2934, - "update": game_GameOverDialog_update__P2935, - "drawMessage": game_GameOverDialog_drawMessage__P2936, - "drawScores": game_GameOverDialog_drawScores__P2937, - "drawBestScore": game_GameOverDialog_drawBestScore__P2938, - "drawTextCore": game_GameOverDialog_drawTextCore__P2939, - "resize": game_BaseDialog_resize__P2896, - "setText": game_BaseDialog_setText__P2898, - "drawCursorRow": game_BaseDialog_drawCursorRow__P2900, - "drawBorder": game_BaseDialog_drawBorder__P4969, - "fastFill": game_BaseDialog_fastFill__P4970, - "clearInterior": game_BaseDialog_clearInterior__P4971, - "drawPartial": game_BaseDialog_drawPartial__P4972, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4973, - "textAreaWidth": game_BaseDialog_textAreaWidth__P4975, - "textAreaHeight": game_BaseDialog_textAreaHeight__P4976, - "setFont": game_BaseDialog_setFont__P4977, - }, -}); -const scene_Background__C2649_VT = mkVTable({ - name: "Background", - numFields: 4, - classNo: 77, - lastSubtypeNo: 77, - maxBgInstances: null, - methods: { - }, - iface: { - "color": null, - "set/color": null, - "_image": null, - "set/_image": null, - "camera": null, - "set/camera": null, - "_layers": null, - "set/_layers": null, - "image": scene_Background_image__P2655, - "set/image": scene_Background_image__P2656, - "hasBackgroundImage": scene_Background_hasBackgroundImage__P2657, - "draw": scene_Background_draw__P2658, - }, -}); -const scene_BackgroundLayer__C2659_VT = mkVTable({ - name: "BackgroundLayer", - numFields: 6, - classNo: 78, - lastSubtypeNo: 78, - maxBgInstances: null, - methods: { - }, - iface: { - "distance": null, - "set/distance": null, - "img": null, - "set/img": null, - "repeatX": null, - "set/repeatX": null, - "repeatY": null, - "set/repeatY": null, - "alignX": null, - "set/alignX": null, - "alignY": null, - "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P2667, - }, -}); -const ArcadePhysicsEngine__C2507_VT = mkVTable({ - name: "ArcadePhysicsEngine", - numFields: 6, - classNo: 45, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P2516, - "removeSprite": ArcadePhysicsEngine_removeSprite__P2517, - "moveSprite": ArcadePhysicsEngine_moveSprite__P2521, - "draw": ArcadePhysicsEngine_draw__P2518, - "move": ArcadePhysicsEngine_move__P2519, - }, - iface: { - "sprites": null, - "set/sprites": null, - "map": null, - "set/map": null, - "maxVelocity": null, - "set/maxVelocity": null, - "maxNegativeVelocity": null, - "set/maxNegativeVelocity": null, - "minSingleStep": null, - "set/minSingleStep": null, - "maxSingleStep": null, - "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P2509, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P2510, - "minStep": ArcadePhysicsEngine_minStep__P2511, - "set/minStep": ArcadePhysicsEngine_minStep__P2512, - "maxStep": ArcadePhysicsEngine_maxStep__P2513, - "set/maxStep": ArcadePhysicsEngine_maxStep__P2514, - "addSprite": ArcadePhysicsEngine_addSprite__P2516, - "removeSprite": ArcadePhysicsEngine_removeSprite__P2517, - "draw": ArcadePhysicsEngine_draw__P2518, - "move": ArcadePhysicsEngine_move__P2519, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P4860, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P4861, - "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P4862, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P4863, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P4864, - "moveSprite": ArcadePhysicsEngine_moveSprite__P2521, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P4865, - "constrain": ArcadePhysicsEngine_constrain__P4866, - }, -}); -const sprites_SpriteMap__C2426_VT = mkVTable({ - name: "SpriteMap", - numFields: 5, - classNo: 79, - lastSubtypeNo: 79, - maxBgInstances: null, - methods: { - }, - iface: { - "cellWidth": null, - "set/cellWidth": null, - "cellHeight": null, - "set/cellHeight": null, - "rowCount": null, - "set/rowCount": null, - "columnCount": null, - "set/columnCount": null, - "buckets": null, - "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P2428, - "overlaps": sprites_SpriteMap_overlaps__P2429, - "draw": sprites_SpriteMap_draw__P2430, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P2431, - "clear": sprites_SpriteMap_clear__P2432, - "key": sprites_SpriteMap_key__P4823, - "insertAtKey": sprites_SpriteMap_insertAtKey__P4824, - "insertAABB": sprites_SpriteMap_insertAABB__P2433, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P4825, - "toString": sprites_SpriteMap_toString__P2434, + "isWinCondition": game_GameOverDialog_isWinCondition__P67146, + "isJudgedGame": game_GameOverDialog_isJudgedGame__P67147, + "hasScores": game_GameOverDialog_hasScores__P67148, + "hasBestScore": game_GameOverDialog_hasBestScore__P67149, + "isNewBestScore": game_GameOverDialog_isNewBestScore__P67150, + "isMultiplayerGame": game_GameOverDialog_isMultiplayerGame__P67151, + "displayCursor": game_GameOverDialog_displayCursor__P67153, + "update": game_GameOverDialog_update__P67154, + "drawMessage": game_GameOverDialog_drawMessage__P67155, + "drawScores": game_GameOverDialog_drawScores__P67156, + "drawBestScore": game_GameOverDialog_drawBestScore__P67157, + "drawTextCore": game_GameOverDialog_drawTextCore__P67158, + "resize": game_BaseDialog_resize__P67115, + "setText": game_BaseDialog_setText__P67117, + "drawCursorRow": game_BaseDialog_drawCursorRow__P67119, + "drawBorder": game_BaseDialog_drawBorder__P69188, + "fastFill": game_BaseDialog_fastFill__P69189, + "clearInterior": game_BaseDialog_clearInterior__P69190, + "drawPartial": game_BaseDialog_drawPartial__P69191, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P69192, + "rowHeight": game_BaseDialog_rowHeight__P69193, + "textAreaWidth": game_BaseDialog_textAreaWidth__P69194, + "textAreaHeight": game_BaseDialog_textAreaHeight__P69195, + "setFont": game_BaseDialog_setFont__P69196, }, - toStringMethod: sprites_SpriteMap_toString__P2434, }); -const info_PlayerState__C2533_VT = mkVTable({ +const info_PlayerState__C66752_VT = mkVTable({ name: "PlayerState", numFields: 8, - classNo: 80, - lastSubtypeNo: 80, + classNo: 81, + lastSubtypeNo: 81, maxBgInstances: null, methods: { }, @@ -79781,11 +81771,11 @@ const info_PlayerState__C2533_VT = mkVTable({ "set/showPlayer": null, }, }); -const info_InfoState__C4869_VT = mkVTable({ +const info_InfoState__C69088_VT = mkVTable({ name: "InfoState", numFields: 10, - classNo: 81, - lastSubtypeNo: 81, + classNo: 82, + lastSubtypeNo: 82, maxBgInstances: null, methods: { }, @@ -79812,11 +81802,11 @@ const info_InfoState__C4869_VT = mkVTable({ "set/countdownEndHandler": null, }, }); -const JSON_Stringifier__C4517_VT = mkVTable({ +const JSON_Stringifier__C68736_VT = mkVTable({ name: "Stringifier", numFields: 3, - classNo: 82, - lastSubtypeNo: 82, + classNo: 83, + lastSubtypeNo: 83, maxBgInstances: null, methods: { }, @@ -79827,20 +81817,20 @@ const JSON_Stringifier__C4517_VT = mkVTable({ "set/indentStep": null, "indent": null, "set/indent": null, - "doString": JSON_Stringifier_doString__P4518, - "go": JSON_Stringifier_go__P4519, + "doString": JSON_Stringifier_doString__P68737, + "go": JSON_Stringifier_go__P68738, }, }); -const game_SplashDialog__C2912_VT = mkVTable({ +const game_SplashDialog__C67131_VT = mkVTable({ name: "SplashDialog", numFields: 17, - classNo: 75, - lastSubtypeNo: 75, + classNo: 45, + lastSubtypeNo: 45, maxBgInstances: null, methods: { - "update": game_BaseDialog_update__P2897, - "setText": game_SplashDialog_setText__P2920, - "drawTextCore": game_SplashDialog_drawTextCore__P2922, + "update": game_BaseDialog_update__P67116, + "setText": game_SplashDialog_setText__P67139, + "drawTextCore": game_SplashDialog_drawTextCore__P67141, }, iface: { "image": null, @@ -79877,28 +81867,29 @@ const game_SplashDialog__C2912_VT = mkVTable({ "set/maxOffset": null, "maxSubOffset": null, "set/maxSubOffset": null, - "updateFont": game_SplashDialog_updateFont__P4980, - "setText": game_SplashDialog_setText__P2920, - "setSubtext": game_SplashDialog_setSubtext__P2921, - "drawTextCore": game_SplashDialog_drawTextCore__P2922, - "resize": game_BaseDialog_resize__P2896, - "update": game_BaseDialog_update__P2897, - "drawCursorRow": game_BaseDialog_drawCursorRow__P2900, - "drawBorder": game_BaseDialog_drawBorder__P4969, - "fastFill": game_BaseDialog_fastFill__P4970, - "clearInterior": game_BaseDialog_clearInterior__P4971, - "drawPartial": game_BaseDialog_drawPartial__P4972, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4973, - "textAreaWidth": game_BaseDialog_textAreaWidth__P4975, - "textAreaHeight": game_BaseDialog_textAreaHeight__P4976, - "setFont": game_BaseDialog_setFont__P4977, + "updateFont": game_SplashDialog_updateFont__P69199, + "setText": game_SplashDialog_setText__P67139, + "setSubtext": game_SplashDialog_setSubtext__P67140, + "drawTextCore": game_SplashDialog_drawTextCore__P67141, + "resize": game_BaseDialog_resize__P67115, + "update": game_BaseDialog_update__P67116, + "drawCursorRow": game_BaseDialog_drawCursorRow__P67119, + "drawBorder": game_BaseDialog_drawBorder__P69188, + "fastFill": game_BaseDialog_fastFill__P69189, + "clearInterior": game_BaseDialog_clearInterior__P69190, + "drawPartial": game_BaseDialog_drawPartial__P69191, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P69192, + "rowHeight": game_BaseDialog_rowHeight__P69193, + "textAreaWidth": game_BaseDialog_textAreaWidth__P69194, + "textAreaHeight": game_BaseDialog_textAreaHeight__P69195, + "setFont": game_BaseDialog_setFont__P69196, }, }); -const scene_systemMenu_PauseMenu__C3075_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C67294_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 83, - lastSubtypeNo: 83, + classNo: 84, + lastSubtypeNo: 84, maxBgInstances: null, methods: { }, @@ -79917,19 +81908,19 @@ const scene_systemMenu_PauseMenu__C3075_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P3077, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P3078, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P3079, - "drawText": scene_systemMenu_PauseMenu_drawText__P3080, - "dispose": scene_systemMenu_PauseMenu_dispose__P3081, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P5263, + "show": scene_systemMenu_PauseMenu_show__P67296, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P67297, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P67298, + "drawText": scene_systemMenu_PauseMenu_drawText__P67299, + "dispose": scene_systemMenu_PauseMenu_dispose__P67300, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P69482, }, }); -const scene_systemMenu_MenuOption__C3067_VT = mkVTable({ +const scene_systemMenu_MenuOption__C67286_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 84, - lastSubtypeNo: 84, + classNo: 85, + lastSubtypeNo: 85, maxBgInstances: null, methods: { }, @@ -79950,20 +81941,20 @@ const scene_systemMenu_MenuOption__C3067_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P3069, - "position": scene_systemMenu_MenuOption_position__P3070, - "setOffset": scene_systemMenu_MenuOption_setOffset__P3071, - "setTheme": scene_systemMenu_MenuOption_setTheme__P3072, - "setState": scene_systemMenu_MenuOption_setState__P3073, - "dispose": scene_systemMenu_MenuOption_dispose__P3074, - "updateCard": scene_systemMenu_MenuOption_updateCard__P5262, + "show": scene_systemMenu_MenuOption_show__P67288, + "position": scene_systemMenu_MenuOption_position__P67289, + "setOffset": scene_systemMenu_MenuOption_setOffset__P67290, + "setTheme": scene_systemMenu_MenuOption_setTheme__P67291, + "setState": scene_systemMenu_MenuOption_setState__P67292, + "dispose": scene_systemMenu_MenuOption_dispose__P67293, + "updateCard": scene_systemMenu_MenuOption_updateCard__P69481, }, }); -const effects_ScreenEffect__C3246_VT = mkVTable({ +const effects_ScreenEffect__C67465_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 48, - lastSubtypeNo: 48, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -79978,21 +81969,21 @@ const effects_ScreenEffect__C3246_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "startScreenEffect": effects_ScreenEffect_startScreenEffect__P3248, - "endScreenEffect": effects_ScreenEffect_endScreenEffect__P3249, - "start": effects_ParticleEffect_start__P3244, - "destroy": effects_ParticleEffect_destroy__P3245, + "startScreenEffect": effects_ScreenEffect_startScreenEffect__P67467, + "endScreenEffect": effects_ScreenEffect_endScreenEffect__P67468, + "start": effects_ParticleEffect_start__P67463, + "destroy": effects_ParticleEffect_destroy__P67464, }, }); -const particles_ShapeFactory__C3193_VT = mkVTable({ +const particles_ShapeFactory__C67412_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 53, - lastSubtypeNo: 54, + classNo: 60, + lastSubtypeNo: 61, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P3197, - "drawParticle": particles_ShapeFactory_drawParticle__P3196, + "createParticle": particles_ShapeFactory_createParticle__P67416, + "drawParticle": particles_ShapeFactory_drawParticle__P67415, }, iface: { "speed": null, @@ -80017,22 +82008,22 @@ const particles_ShapeFactory__C3193_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P3195, - "drawParticle": particles_ShapeFactory_drawParticle__P3196, - "createParticle": particles_ShapeFactory_createParticle__P3197, - "setSpeed": particles_SprayFactory_setSpeed__P3175, - "setDirection": particles_SprayFactory_setDirection__P3176, + "addShape": particles_ShapeFactory_addShape__P67414, + "drawParticle": particles_ShapeFactory_drawParticle__P67415, + "createParticle": particles_ShapeFactory_createParticle__P67416, + "setSpeed": particles_SprayFactory_setSpeed__P67394, + "setDirection": particles_SprayFactory_setDirection__P67395, }, }); -const particles_ConfettiFactory__C3198_VT = mkVTable({ +const particles_ConfettiFactory__C67417_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 54, - lastSubtypeNo: 54, + classNo: 61, + lastSubtypeNo: 61, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P3197, - "drawParticle": particles_ShapeFactory_drawParticle__P3196, + "createParticle": particles_ShapeFactory_createParticle__P67416, + "drawParticle": particles_ShapeFactory_drawParticle__P67415, }, iface: { "speed": null, @@ -80057,85 +82048,35 @@ const particles_ConfettiFactory__C3198_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P3195, - "drawParticle": particles_ShapeFactory_drawParticle__P3196, - "createParticle": particles_ShapeFactory_createParticle__P3197, - "setSpeed": particles_SprayFactory_setSpeed__P3175, - "setDirection": particles_SprayFactory_setDirection__P3176, + "addShape": particles_ShapeFactory_addShape__P67414, + "drawParticle": particles_ShapeFactory_drawParticle__P67415, + "createParticle": particles_ShapeFactory_createParticle__P67416, + "setSpeed": particles_SprayFactory_setSpeed__P67394, + "setDirection": particles_SprayFactory_setDirection__P67395, }, }); -const effects_SceneAnchor__C5391_VT = mkVTable({ +const effects_SceneAnchor__C69610_VT = mkVTable({ name: "SceneAnchor", numFields: 1, - classNo: 85, - lastSubtypeNo: 85, - maxBgInstances: null, - methods: { - }, - iface: { - "camera": null, - "set/camera": null, - "x": effects_SceneAnchor_x__P5392, - "y": effects_SceneAnchor_y__P5393, - "width": effects_SceneAnchor_width__P5394, - "height": effects_SceneAnchor_height__P5395, - }, -}); -const MovingSprite__C2505_VT = mkVTable({ - name: "MovingSprite", - numFields: 7, classNo: 86, lastSubtypeNo: 86, maxBgInstances: null, methods: { }, iface: { - "sprite": null, - "set/sprite": null, - "cachedVx": null, - "set/cachedVx": null, - "cachedVy": null, - "set/cachedVy": null, - "dx": null, - "set/dx": null, - "dy": null, - "set/dy": null, - "xStep": null, - "set/xStep": null, - "yStep": null, - "set/yStep": null, - }, -}); -const sprites_StaticObstacle__C2478_VT = mkVTable({ - name: "StaticObstacle", - numFields: 5, - classNo: 87, - lastSubtypeNo: 87, - maxBgInstances: null, - methods: { - }, - iface: { - "layer": null, - "set/layer": null, - "image": null, - "set/image": null, - "tileIndex": null, - "set/tileIndex": null, - "top": null, - "set/top": null, - "left": null, - "set/left": null, - "x": sprites_StaticObstacle_x__P2485, - "y": sprites_StaticObstacle_y__P2486, - "height": sprites_StaticObstacle_height__P2487, - "width": sprites_StaticObstacle_width__P2488, + "camera": null, + "set/camera": null, + "x": effects_SceneAnchor_x__P69611, + "y": effects_SceneAnchor_y__P69612, + "width": effects_SceneAnchor_width__P69613, + "height": effects_SceneAnchor_height__P69614, }, }); -const animation_Path__C3327_VT = mkVTable({ +const animation_Path__C67546_VT = mkVTable({ name: "Path", numFields: 12, - classNo: 88, - lastSubtypeNo: 88, + classNo: 87, + lastSubtypeNo: 87, maxBgInstances: null, methods: { }, @@ -80164,20 +82105,20 @@ const animation_Path__C3327_VT = mkVTable({ "set/commandIndex": null, "path": null, "set/path": null, - "readNextCommand": animation_Path_readNextCommand__P5429, - "reset": animation_Path_reset__P3330, - "readNextToken": animation_Path_readNextToken__P5430, - "commandToArgCount": animation_Path_commandToArgCount__P5431, - "run": animation_Path_run__P3331, - "runCurrentCommand": animation_Path_runCurrentCommand__P5432, - "ensureControlPoint": animation_Path_ensureControlPoint__P5433, + "readNextCommand": animation_Path_readNextCommand__P69648, + "reset": animation_Path_reset__P67549, + "readNextToken": animation_Path_readNextToken__P69649, + "commandToArgCount": animation_Path_commandToArgCount__P69650, + "run": animation_Path_run__P67550, + "runCurrentCommand": animation_Path_runCurrentCommand__P69651, + "ensureControlPoint": animation_Path_ensureControlPoint__P69652, }, }); -const music_PlayableState__C4625_VT = mkVTable({ +const music_PlayableState__C68844_VT = mkVTable({ name: "PlayableState", numFields: 1, - classNo: 89, - lastSubtypeNo: 89, + classNo: 88, + lastSubtypeNo: 88, maxBgInstances: null, methods: { }, @@ -80186,8 +82127,58 @@ const music_PlayableState__C4625_VT = mkVTable({ "set/looping": null, }, }); +const MovingSprite__C66724_VT = mkVTable({ + name: "MovingSprite", + numFields: 7, + classNo: 89, + lastSubtypeNo: 89, + maxBgInstances: null, + methods: { + }, + iface: { + "sprite": null, + "set/sprite": null, + "cachedVx": null, + "set/cachedVx": null, + "cachedVy": null, + "set/cachedVy": null, + "dx": null, + "set/dx": null, + "dy": null, + "set/dy": null, + "xStep": null, + "set/xStep": null, + "yStep": null, + "set/yStep": null, + }, +}); +const sprites_StaticObstacle__C66697_VT = mkVTable({ + name: "StaticObstacle", + numFields: 5, + classNo: 90, + lastSubtypeNo: 90, + maxBgInstances: null, + methods: { + }, + iface: { + "layer": null, + "set/layer": null, + "image": null, + "set/image": null, + "tileIndex": null, + "set/tileIndex": null, + "top": null, + "set/top": null, + "left": null, + "set/left": null, + "x": sprites_StaticObstacle_x__P66704, + "y": sprites_StaticObstacle_y__P66705, + "height": sprites_StaticObstacle_height__P66706, + "width": sprites_StaticObstacle_width__P66707, + }, +}); -const breakpoints = setupDebugger(1, ["transparency16___4434","tile1___4439","tile2___4436","tile3___4435","tile8___4437","tile4___4438","mySprite___4432"]) +const breakpoints = setupDebugger(1, ["transparency16___68653","tile1___68658","tile2___68655","tile3___68654","tile8___68656","tile4___68657","mySprite___68651"]) -return _main___P30534 +return _main___P94689 }) diff --git a/assets/version.txt b/assets/version.txt index bd52db8..afaf360 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.0.0 \ No newline at end of file +1.0.0 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 16dd20a..b6d6d18 100644 --- a/pxt.json +++ b/pxt.json @@ -1,5 +1,6 @@ { "name": "Salvem el bosc!", + "version": "1.0.0", "description": "", "dependencies": { "device": "*",