diff --git a/assets/js/binary.js b/assets/js/binary.js index e74389d..1890b71 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.56/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.2.0","target":"arcade","targetVersion":"1.12.56","repo":"robo-technical-group/pxt-typed-arrays"} -// total=1378651 new=7.87% cached=86.31% other=5.83% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.56/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"1.0.0","target":"arcade","targetVersion":"1.12.56","repo":"robo-technical-group/pxt-typed-arrays"} +// total=1403515 new=10.28% cached=83.88% other=5.84% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -38,6 +38,7 @@ pxsim.setConfigData({ pxtrt.mapKeyNames = [ "", "BYTES_PER_ELEMENT", + "IS_BIG_ENDIAN", "__draw", "__drawCore", "__preUpdate", @@ -126,6 +127,7 @@ pxtrt.mapKeyNames = [ "byteLength", "byteOffset", "bytes", + "bytesPerElement", "cachedTileView", "cachedVx", "cachedVy", @@ -211,12 +213,15 @@ pxtrt.mapKeyNames = [ "galois", "gameForeverHandlers", "generator", + "get", "getObstacle", "getOrCreateHandlerForEvent", "getText", "getTile", "getTileImage", "getTileIndex", + "getUint32", + "getter", "handler", "handlerState", "handlers", @@ -361,6 +366,7 @@ pxtrt.mapKeyNames = [ "setFactory", "setFlag", "setFont", + "setFromArray", "setHitbox", "setImage", "setKind", @@ -374,6 +380,8 @@ pxtrt.mapKeyNames = [ "setSubtext", "setText", "setTheme", + "setUint32", + "setter", "shakeAmplitude", "shakeDuration", "shakeStartTime", @@ -472,7 +480,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P2055608(s) { +function _main___P115248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -482,289 +490,289 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___2022395 = (undefined); - globals._pollEventQueue___2022404 = (undefined); - globals.minPriority___2018317 = (1); + globals._intervals___46248 = (undefined); + globals._pollEventQueue___46257 = (undefined); + globals.minPriority___42168 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P2022407); - globals.listeners___2022408 = (s.tmp_0); - globals.globalVolume___2022461 = (null); - globals.playToneID___2022468 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C2019569_VT); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P46260); + globals.listeners___46261 = (s.tmp_0); + globals.globalVolume___46314 = (null); + globals.playToneID___46321 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C43420_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P2019572_mk(s); + s.tmp_1 = music_Melody_constructor__P43423_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: + s.callLocIdx = 0; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - globals.wawawawaa___2019590 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C2019569_VT); + globals.wawawawaa___43441 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C43420_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P2019572_mk(s); + s.tmp_1 = music_Melody_constructor__P43423_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: + s.callLocIdx = 1; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - globals.powerUp___2019593 = (s.tmp_0); - globals.brightness___2019894 = (100); + globals.powerUp___43444 = (s.tmp_0); + globals.brightness___43745 = (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", _hex2027567); - globals.font8___2019918 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex51561); + globals.font8___43769 = (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", _hex2027569); - globals.font12___2019919 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex51563); + globals.font12___43770 = (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", _hex2030198); - globals.font5___2019923 = (s.tmp_0); - globals.__updated___2022575 = (false); - r0 = pxsim.control.runInParallel(control___screen_inline__P2022578); - r0 = pxsim_pxtcore.setPalette(_hex2022589); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex54192); + globals.font5___43774 = (s.tmp_0); + globals.__updated___46428 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P46431); + r0 = pxsim_pxtcore.setPalette(_hex46442); 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___2019975 = (r0); - s.tmp_0 = control___screen_setupUpdate__P2019937_mk(s); - s.tmp_0.arg0 = _screen_internal_inline__P2022598; - s.callLocIdx = 6; s.pc = 5; return s.tmp_0; - case 5: + globals.screen___43826 = (r0); + s.tmp_0 = control___screen_setupUpdate__P43788_mk(s); + s.tmp_0.arg0 = _screen_internal_inline__P46451; + s.callLocIdx = 6; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - globals.control_EventContext_onStats___2018340 = (_screen_internal_inline__P2022603); - globals.RUN_KEY___2022608 = ("#run"); - globals.SCOPE_KEY___2022609 = ("#scope"); - s.tmp_0 = settings_initScopes__P2022620_mk(s); - s.callLocIdx = 7; s.pc = 6; return s.tmp_0; - case 6: + globals.control_EventContext_onStats___42191 = (_screen_internal_inline__P46456); + globals.RUN_KEY___46461 = ("#run"); + globals.SCOPE_KEY___46462 = ("#scope"); + s.tmp_0 = settings_initScopes__P46473_mk(s); + s.callLocIdx = 7; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; - s.callLocIdx = 8; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 8; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; - globals.A___2020056 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.A___43907 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; - s.callLocIdx = 9; s.pc = 8; return s.tmp_1; - case 8: + s.callLocIdx = 9; s.pc = 16; return s.tmp_1; + case 16: r0 = s.retval; - globals.B___2020057 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.B___43908 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; - s.callLocIdx = 10; s.pc = 9; return s.tmp_1; - case 9: + s.callLocIdx = 10; s.pc = 17; return s.tmp_1; + case 17: r0 = s.retval; - globals.left___2020058 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.left___43909 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; - s.callLocIdx = 11; s.pc = 10; return s.tmp_1; - case 10: + s.callLocIdx = 11; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; - globals.up___2020059 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.up___43910 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; - s.callLocIdx = 12; s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 12; s.pc = 19; return s.tmp_1; + case 19: r0 = s.retval; - globals.right___2020060 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.right___43911 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; - s.callLocIdx = 13; s.pc = 12; return s.tmp_1; - case 12: + s.callLocIdx = 13; s.pc = 20; return s.tmp_1; + case 20: r0 = s.retval; - globals.down___2020061 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + globals.down___43912 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; - s.callLocIdx = 14; s.pc = 13; return s.tmp_1; - case 13: + s.callLocIdx = 14; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - globals.menu___2020062 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2020077_VT); + globals.menu___43913 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C43928_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2020081_mk(s); + s.tmp_1 = controller_Controller_constructor__P43932_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = undefined; - s.callLocIdx = 15; s.pc = 14; return s.tmp_1; - case 14: + s.callLocIdx = 15; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - globals.player2___2020063 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2020077_VT); + globals.player2___43914 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C43928_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2020081_mk(s); + s.tmp_1 = controller_Controller_constructor__P43932_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; - s.callLocIdx = 16; s.pc = 15; return s.tmp_1; - case 15: + s.callLocIdx = 16; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; - globals.player3___2020064 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C2020077_VT); + globals.player3___43915 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C43928_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P2020081_mk(s); + s.tmp_1 = controller_Controller_constructor__P43932_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = undefined; - s.callLocIdx = 17; s.pc = 16; return s.tmp_1; - case 16: + s.callLocIdx = 17; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; - globals.player4___2020065 = (s.tmp_0); - s.tmp_0 = controller__player1__P2020071_mk(s); - s.callLocIdx = 18; s.pc = 17; return s.tmp_0; - case 17: + globals.player4___43916 = (s.tmp_0); + s.tmp_0 = controller__player1__P43922_mk(s); + s.callLocIdx = 18; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - globals.player1___2020066 = (r0); - s.tmp_0 = game_addScenePopHandler__P2020963_mk(s); - s.tmp_0.arg0 = controller_inline__P2022648; - s.callLocIdx = 23; s.pc = 18; return s.tmp_0; - case 18: + globals.player1___43917 = (r0); + s.tmp_0 = game_addScenePopHandler__P44814_mk(s); + s.tmp_0.arg0 = controller_inline__P46501; + s.callLocIdx = 23; s.pc = 26; return s.tmp_0; + case 26: r0 = s.retval; - s.tmp_0 = game_addScenePushHandler__P2020961_mk(s); - s.tmp_0.arg0 = controller_inline__P2022688; - s.callLocIdx = 25; s.pc = 19; return s.tmp_0; - case 19: + s.tmp_0 = game_addScenePushHandler__P44812_mk(s); + s.tmp_0.arg0 = controller_inline__P46541; + s.callLocIdx = 25; s.pc = 27; return s.tmp_0; + case 27: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C2022712_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C46565_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P2020138_mk(s); + s.tmp_1 = controller_Button_constructor__P43989_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; - s.callLocIdx = 26; s.pc = 20; return s.tmp_1; - case 20: + s.callLocIdx = 26; s.pc = 28; return s.tmp_1; + case 28: r0 = s.retval; - globals.anyButton___2020113 = (s.tmp_0); - globals._userEventsEnabled___2022726 = (true); - globals.defaultRepeatDelay___2022728 = (500); - globals.defaultRepeatInterval___2022730 = (30); - s.tmp_0 = SpriteKind_create__P2020422_mk(s); - s.callLocIdx = 27; s.pc = 21; return s.tmp_0; - case 21: + globals.anyButton___43964 = (s.tmp_0); + globals._userEventsEnabled___46579 = (true); + globals.defaultRepeatDelay___46581 = (500); + globals.defaultRepeatInterval___46583 = (30); + s.tmp_0 = SpriteKind_create__P44273_mk(s); + s.callLocIdx = 27; s.pc = 29; return s.tmp_0; + case 29: r0 = s.retval; - globals.Player___2020423 = (r0); - s.tmp_0 = SpriteKind_create__P2020422_mk(s); - s.callLocIdx = 28; s.pc = 22; return s.tmp_0; - case 22: + globals.Player___44274 = (r0); + s.tmp_0 = SpriteKind_create__P44273_mk(s); + s.callLocIdx = 28; s.pc = 30; return s.tmp_0; + case 30: r0 = s.retval; - globals.Food___2020425 = (r0); - s.tmp_0 = SpriteKind_create__P2020422_mk(s); - s.callLocIdx = 29; s.pc = 23; return s.tmp_0; - case 23: + globals.Food___44276 = (r0); + s.tmp_0 = SpriteKind_create__P44273_mk(s); + s.callLocIdx = 29; s.pc = 31; return s.tmp_0; + case 31: r0 = s.retval; - globals.Enemy___2020426 = (r0); + globals.Enemy___44277 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___2020464 = (r0); - globals.infoState___2022795 = (undefined); - s.tmp_0 = game_addScenePushHandler__P2020961_mk(s); - s.tmp_0.arg0 = info_inline__P2022799; - s.callLocIdx = 31; s.pc = 24; return s.tmp_0; - case 24: + globals.MIN_MOVE_GAP___44315 = (r0); + globals.infoState___46648 = (undefined); + s.tmp_0 = game_addScenePushHandler__P44812_mk(s); + s.tmp_0.arg0 = info_inline__P46652; + s.callLocIdx = 31; s.pc = 32; return s.tmp_0; + case 32: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P2020963_mk(s); - s.tmp_0.arg0 = info_inline__P2022814; - s.callLocIdx = 35; s.pc = 25; return s.tmp_0; - case 25: + s.tmp_0 = game_addScenePopHandler__P44814_mk(s); + s.tmp_0.arg0 = info_inline__P46667; + s.callLocIdx = 35; s.pc = 33; return s.tmp_0; + case 33: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___2020808 = (r0); - r0 = pxsim.image.ofBuffer(_hex2022904); - globals.img_trophy_sm___2022905 = (r0); - r0 = pxsim.image.ofBuffer(_hex2022907); - globals.img_trophy_lg___2022908 = (r0); - r0 = pxsim.image.ofBuffer(_hex2022910); - globals.img_sleepy_sim___2022911 = (r0); - globals.debug___2020910 = (false); - globals.stats___2020911 = (false); - globals.gameOverConfig___2020941 = (gameOverConfig_inline__P2022923); - s.tmp_0 = scene_systemMenu_initVolume__P2023198_mk(s); - s.callLocIdx = 37; s.pc = 26; return s.tmp_0; - case 26: + globals.scene_Scene_initializers___44659 = (r0); + r0 = pxsim.image.ofBuffer(_hex46757); + globals.img_trophy_sm___46758 = (r0); + r0 = pxsim.image.ofBuffer(_hex46760); + globals.img_trophy_lg___46761 = (r0); + r0 = pxsim.image.ofBuffer(_hex46763); + globals.img_sleepy_sim___46764 = (r0); + globals.debug___44761 = (false); + globals.stats___44762 = (false); + globals.gameOverConfig___44792 = (gameOverConfig_inline__P46776); + s.tmp_0 = scene_systemMenu_initVolume__P47051_mk(s); + s.callLocIdx = 37; s.pc = 34; return s.tmp_0; + case 34: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P2023199_mk(s); - s.callLocIdx = 38; s.pc = 27; return s.tmp_0; - case 27: + s.tmp_0 = scene_systemMenu_initScreen__P47052_mk(s); + s.callLocIdx = 38; s.pc = 35; return s.tmp_0; + case 35: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___2020808, scene_systemMenu_register__P2021049); - r0 = pxsim.image.ofBuffer(_hex2023206); - globals.CARD_NORMAL___2021054 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023208); - globals.CARD_SELECTED___2021055 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023210); - globals.CARD_ACTIVE___2021056 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023212); - globals.VOLUME_UP_ICON___2021057 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023214); - globals.BRIGHTNESS_DOWN_ICON___2021058 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023216); - globals.CLOSE_MENU_ICON___2021059 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023218); - globals.VOLUME_DOWN_ICON___2021060 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023220); - globals.SLEEP_ICON___2021061 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023222); - globals.CONSOLE_ICON___2021062 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023224); - globals.BRIGHTNESS_UP_ICON___2021063 = (r0); - r0 = pxsim.image.ofBuffer(_hex2023226); - globals.STATS_ICON___2021064 = (r0); - globals.consoleColor___2023229 = (1); - globals.tabSize___2023232 = (8); - globals.consoleFont___2023238 = (globals.font5___2019923); - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___44659, scene_systemMenu_register__P44900); + r0 = pxsim.image.ofBuffer(_hex47059); + globals.CARD_NORMAL___44905 = (r0); + r0 = pxsim.image.ofBuffer(_hex47061); + globals.CARD_SELECTED___44906 = (r0); + r0 = pxsim.image.ofBuffer(_hex47063); + globals.CARD_ACTIVE___44907 = (r0); + r0 = pxsim.image.ofBuffer(_hex47065); + globals.VOLUME_UP_ICON___44908 = (r0); + r0 = pxsim.image.ofBuffer(_hex47067); + globals.BRIGHTNESS_DOWN_ICON___44909 = (r0); + r0 = pxsim.image.ofBuffer(_hex47069); + globals.CLOSE_MENU_ICON___44910 = (r0); + r0 = pxsim.image.ofBuffer(_hex47071); + globals.VOLUME_DOWN_ICON___44911 = (r0); + r0 = pxsim.image.ofBuffer(_hex47073); + globals.SLEEP_ICON___44912 = (r0); + r0 = pxsim.image.ofBuffer(_hex47075); + globals.CONSOLE_ICON___44913 = (r0); + r0 = pxsim.image.ofBuffer(_hex47077); + globals.BRIGHTNESS_UP_ICON___44914 = (r0); + r0 = pxsim.image.ofBuffer(_hex47079); + globals.STATS_ICON___44915 = (r0); + globals.consoleColor___47082 = (1); + globals.tabSize___47085 = (8); + globals.consoleFont___47091 = (globals.font5___43774); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___2023238; + s.tmp_5.arg0 = globals.consoleFont___47091; 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 = 39; s.pc = 28; return s.tmp_5; } + else { s.callLocIdx = 39; s.pc = 36; return s.tmp_5; } } - case 28: + case 36: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_4 + 2); @@ -774,175 +782,287 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___2023243 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + globals.consoleLines___47096 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___43826); 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___2023238; + s.tmp_4.arg0 = globals.consoleFont___47091; 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 = 40; s.pc = 29; return s.tmp_4; } + else { s.callLocIdx = 40; s.pc = 37; return s.tmp_4; } } - case 29: + case 37: 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); - globals.consoleColumns___2023253 = (r0); - s.tmp_0 = console_addListener__P2018325_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P2023265; - s.callLocIdx = 41; s.pc = 30; return s.tmp_0; - case 30: + globals.consoleColumns___47106 = (r0); + s.tmp_0 = console_addListener__P42176_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P47118; + s.callLocIdx = 41; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = MAX_SOURCES_inline__P2032523; + s.tmp_0.argL = MAX_SOURCES_inline__P56517; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 43; s.pc = 31; return s.tmp_0; - case 31: + s.callLocIdx = 43; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; - globals.MAX_SOURCES___2023267 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C2021134_VT); + globals.MAX_SOURCES___47120 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C44985_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P2021135_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P44986_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; s.tmp_1.arg3 = 60; - s.callLocIdx = 44; s.pc = 32; return s.tmp_1; - case 32: + s.callLocIdx = 44; s.pc = 40; return s.tmp_1; + case 40: r0 = s.retval; - globals.defaultFactory___2021114 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2021002_VT); + globals.defaultFactory___44965 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C44853_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2021004_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P44855_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 45; s.pc = 33; return s.tmp_1; - case 33: + s.callLocIdx = 45; s.pc = 41; return s.tmp_1; + case 41: r0 = s.retval; - globals.galois___2023287 = (s.tmp_0); - globals.angleSlice___2023295 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C2021209_VT); + globals.galois___47140 = (s.tmp_0); + globals.angleSlice___47148 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C45060_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P2021210_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P45061_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__P2032277; - s.callLocIdx = 51; s.pc = 34; return s.tmp_1; - case 34: + s.tmp_1.arg4 = confetti_inline__P56271; + s.callLocIdx = 51; s.pc = 42; return s.tmp_1; + case 42: r0 = s.retval; - globals.confetti___2021217 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2021233_VT); + globals.confetti___45068 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C45084_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P2021234_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P45085_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = dissolve_inline__P2030880; - s.callLocIdx = 57; s.pc = 35; return s.tmp_1; - case 35: + s.tmp_1.arg2 = dissolve_inline__P54874; + s.callLocIdx = 57; s.pc = 43; return s.tmp_1; + case 43: r0 = s.retval; - globals.dissolve___2021238 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2021233_VT); + globals.dissolve___45089 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C45084_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P2021234_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P45085_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = melt_inline__P2032223; - s.callLocIdx = 60; s.pc = 36; return s.tmp_1; - case 36: + s.tmp_1.arg2 = melt_inline__P56217; + s.callLocIdx = 60; s.pc = 44; return s.tmp_1; + case 44: r0 = s.retval; - globals.melt___2021239 = (s.tmp_0); - s.tmp_0 = game_setWaitAnyButton__P2020943_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P2020148; - s.callLocIdx = 61; s.pc = 37; return s.tmp_0; - case 37: + globals.melt___45090 = (s.tmp_0); + s.tmp_0 = game_setWaitAnyButton__P44794_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P43999; + s.callLocIdx = 61; s.pc = 45; return s.tmp_0; + case 45: r0 = s.retval; - s.tmp_0 = game_eventContext__P2020945_mk(s); - s.callLocIdx = 62; s.pc = 38; return s.tmp_0; - case 38: + s.tmp_0 = game_eventContext__P44796_mk(s); + s.callLocIdx = 62; s.pc = 46; return s.tmp_0; + case 46: + r0 = s.retval; + globals.allPassed___114761 = (true); + s.tmp_0 = game_splash__P44759_mk(s); + s.tmp_3 = DataView_IS_BIG_ENDIAN__P107452_mk(s); + s.callLocIdx = 136; s.pc = 48; return s.tmp_3; + case 48: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 49); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 49: r0 = s.retval; - globals.allPassed___2022338 = (true); - r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C2022328_VT); + s.tmp_1 = r0; + r0 = pxsim_String__concat("Big endian: ", s.tmp_1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 137; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(DataView__C107448_VT); s.tmp_0 = r0; - s.tmp_1 = Uint8Array_constructor__P2022329_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 84; s.pc = 39; return s.tmp_1; - case 39: + r0 = pxsim_pxtcore_mkClassInstance(ArrayBuffer__C46125_VT); + s.tmp_1 = r0; + s.tmp_2 = ArrayBuffer_constructor__P46126_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = 8; + s.callLocIdx = 138; s.pc = 50; return s.tmp_2; + case 50: r0 = s.retval; - globals.a___2022340 = (s.tmp_0); - r0 = pxsim_Array__mk(); + s.tmp_3 = DataView_constructor__P107471_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.tmp_1; + s.tmp_3.arg2 = 0; + s.tmp_3.arg3 = null; + s.callLocIdx = 139; s.pc = 51; return s.tmp_3; + case 51: + r0 = s.retval; + globals.d___114813 = (s.tmp_0); + s.tmp_0 = DataView_setUint32__P107468_mk(s); + s.tmp_0.arg0 = globals.d___114813; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 305419896; + s.tmp_0.arg3 = false; + s.callLocIdx = 140; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + s.tmp_2 = DataView_getUint32__P107460_mk(s); + s.tmp_2.arg0 = globals.d___114813; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = false; + s.callLocIdx = 141; s.pc = 53; return s.tmp_2; + case 53: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != 305419896); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, 0); - r0 = pxsim_Array__push(s.tmp_0, 1); - r0 = pxsim_Array__push(s.tmp_0, 2); - r0 = pxsim_Array__push(s.tmp_0, 3); - r0 = pxsim_Array__push(s.tmp_0, 4); - r0 = pxsim_Array__push(s.tmp_0, 5); - r0 = pxsim_Array__push(s.tmp_0, 6); - r0 = pxsim_Array__push(s.tmp_0, 7); - s.tmp_1 = TypedArray_fromArray__P2055014_mk(s); - s.tmp_1.arg0 = globals.a___2022340; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 85; s.pc = 40; return s.tmp_1; - case 40: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = game_splash__P44759_mk(s); + s.tmp_3.arg0 = "DataView constructor test 1 failed."; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 142; s.pc = 54; return s.tmp_3; + case 54: + r0 = s.retval; + globals.allPassed___114761 = (false); + case 1: + case 2: + s.tmp_0 = DataView_setUint32__P107468_mk(s); + s.tmp_0.arg0 = globals.d___114813; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 305419896; + s.tmp_0.arg3 = true; + s.callLocIdx = 143; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_2 = DataView_getUint32__P107460_mk(s); + s.tmp_2.arg0 = globals.d___114813; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = true; + s.callLocIdx = 144; s.pc = 56; return s.tmp_2; + case 56: r0 = s.retval; - r0 = globals.a___2022340.fields["_buffer"]; - globals.r___2022341 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Int8Array__C2022312_VT); + s.tmp_1 = r0; + r0 = (s.tmp_1 != 305419896); s.tmp_0 = r0; - s.tmp_1 = Int8Array_constructor__P2022313_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 87; s.pc = 41; return s.tmp_1; - case 41: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = game_splash__P44759_mk(s); + s.tmp_3.arg0 = "DataView constructor test 2 failed."; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 145; s.pc = 57; return s.tmp_3; + case 57: r0 = s.retval; - globals.b___2022342 = (s.tmp_0); - s.tmp_0 = TypedArray_fromArrayBuffer__P2055015_mk(s); - s.tmp_0.arg0 = globals.b___2022342; - s.tmp_0.arg1 = globals.r___2022341; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = null; - s.callLocIdx = 88; s.pc = 42; return s.tmp_0; - case 42: + globals.allPassed___114761 = (false); + case 3: + case 4: + s.tmp_0 = DataView_setUint32__P107468_mk(s); + s.tmp_0.arg0 = globals.d___114813; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 305419896; + s.tmp_0.arg3 = true; + s.callLocIdx = 146; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.allPassed___2022338); - if (!r0) { step = 1; continue; } - s.tmp_0 = game_splash__P2020908_mk(s); + s.tmp_2 = DataView_getUint32__P107460_mk(s); + s.tmp_2.arg0 = globals.d___114813; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = false; + s.callLocIdx = 147; s.pc = 59; return s.tmp_2; + case 59: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != 2018915346); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_3 = game_splash__P44759_mk(s); + s.tmp_3.arg0 = "DataView constructor test 3 failed."; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 148; s.pc = 60; return s.tmp_3; + case 60: + r0 = s.retval; + globals.allPassed___114761 = (false); + case 5: + case 6: + s.tmp_0 = DataView_setUint32__P107468_mk(s); + s.tmp_0.arg0 = globals.d___114813; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 305419896; + s.tmp_0.arg3 = false; + s.callLocIdx = 149; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + s.tmp_2 = DataView_getUint32__P107460_mk(s); + s.tmp_2.arg0 = globals.d___114813; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = true; + s.callLocIdx = 150; s.pc = 62; return s.tmp_2; + case 62: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != 2018915346); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_3 = game_splash__P44759_mk(s); + s.tmp_3.arg0 = "DataView constructor test 4 failed."; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 151; s.pc = 63; return s.tmp_3; + case 63: + r0 = s.retval; + globals.allPassed___114761 = (false); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals.allPassed___114761); + if (!r0) { step = 9; continue; } + s.tmp_0 = game_splash__P44759_mk(s); s.tmp_0.arg0 = "All tests passed!"; s.tmp_0.arg1 = undefined; - s.callLocIdx = 89; s.pc = 43; return s.tmp_0; - case 43: + s.callLocIdx = 152; s.pc = 64; return s.tmp_0; + case 64: r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = game_splash__P2020908_mk(s); + { step = 10; continue; } + case 9: + s.tmp_0 = game_splash__P44759_mk(s); s.tmp_0.arg0 = "At least one test failed."; s.tmp_0.arg1 = undefined; - s.callLocIdx = 90; s.pc = 44; return s.tmp_0; - case 44: + s.callLocIdx = 153; s.pc = 65; return s.tmp_0; + case 65: r0 = s.retval; - case 2: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P2055608.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} -_main___P2055608.continuations = [ ] +_main___P115248.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} +_main___P115248.continuations = [ 49 ] -function _main___P2055608_mk(s) { +function _main___P115248_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P2055608, depth: s.depth + 1, + parent: s, fn: _main___P115248, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -952,29 +1072,29 @@ function _main___P2055608_mk(s) { tmp_5: undefined, } } -const _hex2027567 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex2027569 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex2030198 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex2022589 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex2022904 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") -const _hex2022907 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") -const _hex2022910 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") -const _hex2023206 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex2023208 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex2023210 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex2023212 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023214 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023216 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023218 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023220 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023222 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023224 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex2023226 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51561 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex51563 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex54192 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex46442 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex46757 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") +const _hex46760 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") +const _hex46763 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") +const _hex47059 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex47061 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex47063 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex47065 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47067 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47069 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47071 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47073 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47075 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47077 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex47079 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function control___screen_inline__P2022578(s) { +function control___screen_inline__P46431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -987,23 +1107,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___2022575 = (false); - s.tmp_0 = pause__P2018355_mk(s); + globals.__updated___46428 = (false); + s.tmp_0 = pause__P42206_mk(s); s.tmp_0.arg0 = 200; s.callLocIdx = 2; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__updated___2022575); + r0 = pxsim_numops_toBoolDecr(globals.__updated___46428); 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__P2019936_mk(s); + s.tmp_2 = control___screen_update__P43787_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___2022575 = (true); + globals.__updated___46428 = (true); case 2: case 3: { step = 1; continue; } @@ -1012,12 +1132,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_inline__P2022578.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__P46431.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__P2022578_mk(s) { +function control___screen_inline__P46431_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_inline__P2022578, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P46431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1028,7 +1148,7 @@ function control___screen_inline__P2022578_mk(s) { -function _screen_internal_inline__P2022598(s) { +function _screen_internal_inline__P46451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1038,17 +1158,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___2019975); + r0 = pxsim_pxtcore.updateScreen(globals.screen___43826); r0 = undefined; return leave(s, r0) default: oops() } } } -_screen_internal_inline__P2022598.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__P46451.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__P2022598_mk(s) { +function _screen_internal_inline__P46451_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P2022598, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P46451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1056,7 +1176,7 @@ function _screen_internal_inline__P2022598_mk(s) { -function _screen_internal_inline__P2022603(s) { +function _screen_internal_inline__P46456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1075,12 +1195,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_inline__P2022603.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__P46456.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__P2022603_mk(s) { +function _screen_internal_inline__P46456_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P2022603, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P46456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1089,7 +1209,7 @@ function _screen_internal_inline__P2022603_mk(s) { -function controller_inline__P2022648(s) { +function controller_inline__P46501(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1099,16 +1219,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.stateWhenPushed___2022649 = undefined; - s.i___2022655 = undefined; - s.p___2022661 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.stateWhenPushed___46502 = undefined; + s.i___46508 = undefined; + s.p___46514 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 19; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; r0 = r0.fields["controllerConnectionState"]; - s.stateWhenPushed___2022649 = (r0); - r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___2022649); + s.stateWhenPushed___46502 = (r0); + r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___46502); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -1117,24 +1237,24 @@ switch (step) { { step = 11; continue; } case 1: case 2: - s.i___2022655 = (0); + s.i___46508 = (0); case 3: - s.tmp_1 = r0 = s.i___2022655; - r0 = pxsim_Array__length(s.stateWhenPushed___2022649); + s.tmp_1 = r0 = s.i___46508; + r0 = pxsim_Array__length(s.stateWhenPushed___46502); 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___2022646, s.i___2022655); - s.p___2022661 = (r0); - s.tmp_0 = r0 = s.p___2022661; + r0 = pxsim_Array__getAt(globals._players___46499, s.i___46508); + s.p___46514 = (r0); + s.tmp_0 = r0 = s.p___46514; 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___2022649, s.i___2022655); + r0 = pxsim_Array__getAt(s.stateWhenPushed___46502, s.i___46508); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; @@ -1144,7 +1264,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.p___2022661.fields["_connected"]; + r0 = s.p___46514.fields["_connected"]; s.tmp_10 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_10); s.tmp_9 = r0; @@ -1160,7 +1280,7 @@ switch (step) { s.tmp_11 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_11); if (!r0) { step = 8; continue; } - r0 = s.p___2022661.fields["_connected"]; + r0 = s.p___46514.fields["_connected"]; s.tmp_12 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_12); if (!r0) { step = 6; continue; } @@ -1171,13 +1291,13 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_13 = r0; - r0 = s.p___2022661.fields["_id"]; + r0 = s.p___46514.fields["_id"]; s.tmp_14 = r0; r0 = pxsim.control.raiseEvent(s.tmp_14, s.tmp_13); case 8: case 9: - r0 = (s.i___2022655 + 1); - s.i___2022655 = (r0); + r0 = (s.i___46508 + 1); + s.i___46508 = (r0); { step = 3; continue; } case 10: case 11: @@ -1185,12 +1305,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_inline__P2022648.info = {"start":344,"length":582,"line":15,"column":28,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +controller_inline__P46501.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__P2022648_mk(s) { +function controller_inline__P46501_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P2022648, depth: s.depth + 1, + parent: s, fn: controller_inline__P46501, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1207,16 +1327,16 @@ function controller_inline__P2022648_mk(s) { tmp_12: undefined, tmp_13: undefined, tmp_14: undefined, - stateWhenPushed___2022649: undefined, - i___2022655: undefined, - p___2022661: undefined, + stateWhenPushed___46502: undefined, + i___46508: undefined, + p___46514: undefined, } } -function controller_inline__P2022688(s) { +function controller_inline__P46541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1226,7 +1346,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2022693 = undefined; + s.i___46546 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -1235,43 +1355,43 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["controllerConnectionState"] = (s.tmp_1); - s.i___2022693 = (0); + s.i___46546 = (0); case 1: - s.tmp_1 = r0 = s.i___2022693; - r0 = pxsim_Array__length(globals._players___2022646); + s.tmp_1 = r0 = s.i___46546; + r0 = pxsim_Array__length(globals._players___46499); 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___2022646, s.i___2022693); + r0 = pxsim_Array__getAt(globals._players___46499, s.i___46546); 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___2022693; - r0 = pxsim_Array__getAt(globals._players___2022646, s.i___2022693); + s.tmp_5 = r0 = s.i___46546; + r0 = pxsim_Array__getAt(globals._players___46499, s.i___46546); 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___2022693 + 1); - s.i___2022693 = (r0); + r0 = (s.i___46546 + 1); + s.i___46546 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_inline__P2022688.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__P46541.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__P2022688_mk(s) { +function controller_inline__P46541_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P2022688, depth: s.depth + 1, + parent: s, fn: controller_inline__P46541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1281,7 +1401,7 @@ function controller_inline__P2022688_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - i___2022693: undefined, + i___46546: undefined, arg0: undefined, } } @@ -1289,7 +1409,7 @@ function controller_inline__P2022688_mk(s) { -function info_inline__P2022799(s) { +function info_inline__P46652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1303,36 +1423,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___2022795); + r0 = pxsim_numops_toBoolDecr(globals.infoState___46648); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___2022797); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___46650); 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___2022797 = (r0); + globals.infoStateStack___46650 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___2022795); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___46648); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___2022797, s.tmp_0); - globals.infoState___2022795 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___46650, s.tmp_0); + globals.infoState___46648 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_inline__P2022799.info = {"start":2619,"length":259,"line":94,"column":29,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +info_inline__P46652.info = {"start":2619,"length":259,"line":94,"column":29,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function info_inline__P2022799_mk(s) { +function info_inline__P46652_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P2022799, depth: s.depth + 1, + parent: s, fn: info_inline__P46652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1343,7 +1463,7 @@ function info_inline__P2022799_mk(s) { -function info_inline__P2022814(s) { +function info_inline__P46667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1353,30 +1473,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2022815 = undefined; - s.nextState___2022824 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.scene___46668 = undefined; + s.nextState___46677 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 32; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___2022815 = (r0); - globals.infoState___2022795 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___2022797; + s.scene___46668 = (r0); + globals.infoState___46648 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___46650; 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___2022797); + r0 = pxsim_Array__length(globals.infoStateStack___46650); 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___2022797); - s.nextState___2022824 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___46650); + s.nextState___46677 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___2022824; + s.tmp_2.arg0 = s.nextState___46677; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1388,12 +1508,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___2022815); + r0 = (s.tmp_1 == s.scene___46668); 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___2022824; + s.tmp_3.arg0 = s.nextState___46677; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1404,10 +1524,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___2022795 = (r0); + globals.infoState___46648 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___2022797, s.nextState___2022824); + r0 = pxsim_Array__push(globals.infoStateStack___46650, s.nextState___46677); case 4: case 5: case 6: @@ -1415,26 +1535,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_inline__P2022814.info = {"start":2910,"length":376,"line":105,"column":28,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +info_inline__P46667.info = {"start":2910,"length":376,"line":105,"column":28,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function info_inline__P2022814_mk(s) { +function info_inline__P46667_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P2022814, depth: s.depth + 1, + parent: s, fn: info_inline__P46667, depth: s.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___2022815: undefined, - nextState___2022824: undefined, + scene___46668: undefined, + nextState___46677: undefined, } } -function gameOverConfig_inline__P2022923(s) { +function gameOverConfig_inline__P46776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1444,32 +1564,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___2022922); + r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___46775); 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__C2020916_VT); + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverConfig__C44767_VT); s.tmp_2 = r0; - s.tmp_3 = game_GameOverConfig_constructor__P2020931_mk(s); + s.tmp_3 = game_GameOverConfig_constructor__P44782_mk(s); s.tmp_3.arg0 = s.tmp_2; s.callLocIdx = 36; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - globals._gameOverConfig___2022922 = (s.tmp_2); + globals._gameOverConfig___46775 = (s.tmp_2); case 1: case 2: - r0 = globals._gameOverConfig___2022922; + r0 = globals._gameOverConfig___46775; return leave(s, r0) default: oops() } } } -gameOverConfig_inline__P2022923.info = {"start":3714,"length":115,"line":107,"column":34,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +gameOverConfig_inline__P46776.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__P2022923_mk(s) { +function gameOverConfig_inline__P46776_mk(s) { checkStack(s.depth); return { - parent: s, fn: gameOverConfig_inline__P2022923, depth: s.depth + 1, + parent: s, fn: gameOverConfig_inline__P46776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1481,7 +1601,7 @@ function gameOverConfig_inline__P2022923_mk(s) { -function game_splash__P2020908(s) { +function DataView_getUint32__P107460(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1491,160 +1611,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dialog___2025716 = undefined; - s.s___2025729 = undefined; - s.pressed___2025736 = undefined; - s.done___2025737 = undefined; + s.r___107599 = 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 = console_inspect__P2018324_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 20; - s.callLocIdx = 991; 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__P2018324_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 20; - s.callLocIdx = 992; 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__P2020149_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 993; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = game_pushScene__P2020946_mk(s); - s.callLocIdx = 994; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.tmp_1 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 995; 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__C2020875_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__P2020882_mk(s); - s.tmp_2.arg0 = s.tmp_0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.tmp_1; - s.callLocIdx = 996; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.dialog___2025716 = (s.tmp_0); - s.tmp_0 = game_SplashDialog__C2020875_v1_2_mk(s); - s.tmp_0.arg0 = s.dialog___2025716; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_SplashDialog__C2020875_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__P2020884_mk(s); - s.tmp_0.arg0 = s.dialog___2025716; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 997; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 5: - case 6: - s.tmp_0 = sprites_create__P2020218_mk(s); - r0 = s.dialog___2025716.fields["image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 998; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.s___2025729 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.pressed___2025736 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pressed___2025736, true); - r0 = pxsim_pxtrt.mklocRef(); - s.done___2025737 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.done___2025737, false); - r0 = pxsim_pxtcore_mkAction(3, game_splash_inline__P2025739); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___2025716); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___2025736); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___2025737); - s.tmp_1 = game_onUpdate__P2020966_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1001; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, game_splash_inline__P2025762); + r0 = s.arg0; + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(Uint32Array__C46189_VT); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___2025737); - s.tmp_1 = pauseUntil__P2018309_mk(s); + s.tmp_1 = Uint32Array_constructor__P46190_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1002; s.pc = 17; return s.tmp_1; - case 17: + s.tmp_1.arg1 = 0; + s.callLocIdx = 72; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.tmp_0 = controller__setUserEventsEnabled__P2020149_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1003; s.pc = 18; return s.tmp_0; - case 18: + s.r___107599 = (s.tmp_0); + s.tmp_0 = DataView_getter__P107469_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.r___107599; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.callLocIdx = 73; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -game_splash__P2020908.info = {"start":30591,"length":1082,"line":865,"column":4,"endLine":896,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"splash","argumentNames":["title","subtitle"]} +DataView_getUint32__P107460.info = {"start":6843,"length":186,"line":165,"column":4,"endLine":168,"endColumn":5,"fileName":"dataView.ts","functionName":"getUint32","argumentNames":["this","byteOffset","littleEndian"]} -function game_splash__P2020908_mk(s) { +function DataView_getUint32__P107460_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash__P2020908, depth: s.depth + 1, + parent: s, fn: DataView_getUint32__P107460, depth: s.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___2025716: undefined, - s___2025729: undefined, - pressed___2025736: undefined, - done___2025737: undefined, + r___107599: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function game_splash_inline__P2025739(s) { +function DataView_getter__P107469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1654,93 +1669,162 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentState___2025742 = undefined; - s.tmp_0 = game_BaseDialog__C2020846_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2020846_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__C2020132_v0_1_mk(s); - s.tmp_0.arg0 = globals.A___2020056; - if (!checkSubtype(s.tmp_0.arg0, controller_Button__C2020132_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___2025742 = (r0); - s.tmp_0 = r0 = s.currentState___2025742; - 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.u8___107699 = undefined; + s.bytes___107708 = undefined; + s.i___107710 = undefined; + s.r8___107729 = 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, DataView__C107448_VT)) failedCast(r0); + r0 = (s.arg2 >>> 0); + s.arg2 = (r0); + s.tmp_2 = r0 = s.arg2; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0.fields["_byteLength"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 > s.tmp_4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore.throwValue("Array index out of range."); + case 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__P2020828_mk(s); - s.tmp_0.arg0 = null; - s.callLocIdx = 999; s.pc = 11; return s.tmp_0; - case 11: + s.tmp_5 = r0 = s.arg2; + r0 = s.arg0.fields["_byteOffset"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.arg2 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C46181_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint8Array_constructor__P46182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 79; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - s.tmp_0 = game_popScene__P2020947_mk(s); - s.callLocIdx = 1000; s.pc = 12; return s.tmp_0; - case 12: + s.u8___107699 = (s.tmp_0); + s.tmp_0 = TypedArray_fromArrayBuffer__P46154_mk(s); + s.tmp_0.arg0 = s.u8___107699; + r0 = s.arg0.fields["_buffer"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + s.tmp_0.arg3 = r0; + s.callLocIdx = 82; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.caps[2], true); - { step = 8; continue; } + r0 = pxsim_Array__mk(); + s.bytes___107708 = (r0); + s.i___107710 = (0); case 3: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0 = s.i___107710; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + 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 = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = r0 = s.bytes___107708; + s.tmp_5 = TypedArray_get__P46161_mk(s); + s.tmp_5.arg0 = s.u8___107699; + s.tmp_5.arg1 = s.i___107710; + s.callLocIdx = 84; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_3, s.tmp_4); + r0 = (s.i___107710 + 1); + s.i___107710 = (r0); + { step = 3; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.currentState___2025742); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - case 5: - // jmp value (already in r0) + s.tmp_1 = r0 = s.arg3; + s.tmp_3 = DataView_IS_BIG_ENDIAN__P107452_mk(s); + s.callLocIdx = 85; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[1], false); + 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 = helpers_arrayReverse__P41894_mk(s); + s.tmp_4.arg0 = s.bytes___107708; + s.callLocIdx = 86; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; + case 5: case 6: - case 7: - case 8: - r0 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C46181_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint8Array_constructor__P46182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 87; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.r8___107729 = (s.tmp_0); + s.tmp_0 = TypedArray_fromArray__P46153_mk(s); + s.tmp_0.arg0 = s.r8___107729; + s.tmp_0.arg1 = s.bytes___107708; + s.callLocIdx = 88; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = TypedArray_fromArrayBuffer__P46154_mk(s); + s.tmp_0.arg0 = s.arg1; + r0 = s.r8___107729.fields["_buffer"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = null; + s.callLocIdx = 90; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = TypedArray_get__P46161_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + s.callLocIdx = 91; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; return leave(s, r0) default: oops() } } } -game_splash_inline__P2025739.info = {"start":31175,"length":410,"line":880,"column":22,"endLine":892,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} +DataView_getter__P107469.info = {"start":10757,"length":797,"line":254,"column":4,"endLine":279,"endColumn":5,"fileName":"dataView.ts","functionName":"getter","argumentNames":["this","r","byteOffset","littleEndian"]} -function game_splash_inline__P2025739_mk(s) { +function DataView_getter__P107469_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash_inline__P2025739, depth: s.depth + 1, + parent: s, fn: DataView_getter__P107469, depth: s.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___2025742: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + u8___107699: undefined, + bytes___107708: undefined, + i___107710: undefined, + r8___107729: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_splash_inline__P2025762(s) { +function TypedArray_buffer__P46156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1750,24 +1834,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = s.arg0.fields["_buffer"]; + return leaveAccessor(s, r0) default: oops() } } } -game_splash_inline__P2025762.info = {"start":31607,"length":10,"line":894,"column":19,"endLine":894,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} +TypedArray_buffer__P46156.info = {"start":4392,"length":68,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"typedArray.ts","functionName":"buffer","argumentNames":["this"]} +TypedArray_buffer__P46156.isGetter = true; -function game_splash_inline__P2025762_mk(s) { +function TypedArray_buffer__P46156_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_splash_inline__P2025762, depth: s.depth + 1, + parent: s, fn: TypedArray_buffer__P46156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, } } -function game_onUpdate__P2020966(s) { +function TypedArray_fromArray__P46153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1777,54 +1869,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.byteLength___48976 = undefined; + s.i___48999 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = pxsim_Array__length(s.arg1); + s.tmp_0 = r0; + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0 * s.tmp_1); + s.byteLength___48976 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(ArrayBuffer__C46125_VT); 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_2 = control_EventContext_registerFrameHandler__P2018345_mk(s); - s.tmp_3 = game_eventContext__P2020945_mk(s); - s.callLocIdx = 1027; s.pc = 5; return s.tmp_3; - case 5: + s.tmp_1 = ArrayBuffer_constructor__P46126_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.byteLength___48976; + s.callLocIdx = 107; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 20; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 1028; s.pc = 4; return s.tmp_2; + r0 = (s.arg0).fields["_buffer"] = (s.tmp_0); + r0 = (s.arg0).fields["_byteLength"] = (s.byteLength___48976); + r0 = (s.arg0).fields["_byteOffset"] = (0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__length(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_length"] = (s.tmp_1); + s.i___48999 = (0); + case 1: + s.tmp_1 = r0 = s.i___48999; + r0 = s.arg0.fields["_length"]; + 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 = TypedArray_set__P46162_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.i___48999; + r0 = pxsim_Array__getAt(s.arg1, s.i___48999); + s.tmp_3.arg2 = r0; + s.callLocIdx = 109; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - case 3: + r0 = (s.i___48999 + 1); + s.i___48999 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdate__P2020966.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} +TypedArray_fromArray__P46153.info = {"start":2235,"length":377,"line":59,"column":4,"endLine":69,"endColumn":5,"fileName":"typedArray.ts","functionName":"fromArray","argumentNames":["this","source"]} -function game_onUpdate__P2020966_mk(s) { +function TypedArray_fromArray__P46153_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P2020966, depth: s.depth + 1, + parent: s, fn: TypedArray_fromArray__P46153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + byteLength___48976: undefined, + i___48999: undefined, arg0: undefined, + arg1: undefined, } } -function control_EventContext_registerFrameHandler__P2018345(s) { +function TypedArray_set__P46162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1834,8 +1955,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___2026774 = undefined; - s.i___2026783 = undefined; + s.bytes___49178 = undefined; + s.i___49182 = undefined; + s.o___49183 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -1843,75 +1965,78 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = (s.arg1 >>> 0); + s.arg1 = (r0); + r0 = s.arg0.fields["_length"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg1 >= 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_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P2022428_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 50; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + { step = 5; continue; } case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C2018334_VT); - s.fn___2026774 = (r0); - r0 = (s.fn___2026774).fields["order"] = (s.arg1); - r0 = (s.fn___2026774).fields["handler"] = (s.arg2); - s.i___2026783 = (0); - case 3: - s.tmp_1 = r0 = s.i___2026783; - r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_2 = if__pack_2_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg2; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "_pack"), 2); + s.callLocIdx = 115; s.pc = 6; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["_pack"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["_pack"], 2); s.callLocIdx = 115; s.pc = 6; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 115; s.pc = 6; return s.tmp_2;; } + else { s.callLocIdx = 115; s.pc = 6; return s.tmp_2; } + } + case 6: + r0 = s.retval; + s.bytes___49178 = (r0); + s.i___49182 = (0); + r0 = s.arg0.fields["_byteOffset"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + r0 = (s.arg1 * s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + s.o___49183 = (r0); + r0 = s.tmp_0; + case 3: + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_1 = r0; + r0 = (s.i___49182 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___2026783); - r0 = r0.fields["order"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > s.arg1); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___2026783, s.fn___2026774); - r0 = s.fn___2026774; - { step = 7; continue; } + r0 = s.arg0.fields["_buffer"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_bytes"]; + s.tmp_2 = r0; + s.tmp_4 = r0 = s.o___49183; + r0 = pxsim_Array__getAt(s.bytes___49178, s.i___49182); + s.tmp_5 = r0; + r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_4, s.tmp_5); + r0 = (s.i___49182 + 1); + s.i___49182 = (r0); + s.tmp_0 = r0 = s.o___49183; + r0 = (s.tmp_0 + 1); + s.o___49183 = (r0); + r0 = s.tmp_0; + { step = 3; continue; } case 4: case 5: - r0 = (s.i___2026783 + 1); - s.i___2026783 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___2026774); - r0 = s.fn___2026774; - case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P2018345.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"]} +TypedArray_set__P46162.info = {"start":5292,"length":436,"line":168,"column":4,"endLine":183,"endColumn":5,"fileName":"typedArray.ts","functionName":"set","argumentNames":["this","index","value"]} -function control_EventContext_registerFrameHandler__P2018345_mk(s) { +function TypedArray_set__P46162_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P2018345, depth: s.depth + 1, + parent: s, fn: TypedArray_set__P46162, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1919,10 +2044,9 @@ function control_EventContext_registerFrameHandler__P2018345_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - fn___2026774: undefined, - i___2026783: undefined, + bytes___49178: undefined, + i___49182: undefined, + o___49183: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -1932,7 +2056,7 @@ function control_EventContext_registerFrameHandler__P2018345_mk(s) { -function control_EventContext_registerFrameCallbacks__P2022428(s) { +function ArrayBuffer_bytes__P46128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1942,47 +2066,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___2026264 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - 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: - case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___2026264 = (r0); - r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P2026270); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___2026264); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 3: - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, ArrayBuffer__C46125_VT)) failedCast(r0); + r0 = s.arg0.fields["_bytes"]; + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P2022428.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +ArrayBuffer_bytes__P46128.info = {"start":2235,"length":63,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"bytes","argumentNames":["this"]} +ArrayBuffer_bytes__P46128.isGetter = true; -function control_EventContext_registerFrameCallbacks__P2022428_mk(s) { +function ArrayBuffer_bytes__P46128_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P2022428, depth: s.depth + 1, + parent: s, fn: ArrayBuffer_bytes__P46128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - worker___2026264: undefined, arg0: undefined, } } @@ -1990,7 +2091,7 @@ function control_EventContext_registerFrameCallbacks__P2022428_mk(s) { -function control_EventContext_registerFrameCallbacks_inline__P2026270(s) { +function TypedArray_byteOffset__P46158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2000,73 +2101,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___2026300 = 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__P2026276); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P2018309_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 44; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = (s.caps[0]).fields["runningCallbacks"] = (true); - r0 = (s.caps[0]).fields["framesInSample"] = (0); - r0 = (s.caps[0]).fields["timeInSample"] = (0); - r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); - case 3: - r0 = s.caps[0].fields["frameWorker"]; - s.tmp_1 = r0; - r0 = (s.caps[1] == s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P2022427_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 45; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___2026300 = (r0); - s.tmp_0 = pause__P2018355_mk(s); - s.tmp_0.arg0 = s.delay___2026300; - s.callLocIdx = 46; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - { step = 3; continue; } - case 4: - r0 = (s.caps[0]).fields["runningCallbacks"] = (false); - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = s.arg0.fields["_byteOffset"]; + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P2026270.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +TypedArray_byteOffset__P46158.info = {"start":4543,"length":71,"line":134,"column":4,"endLine":136,"endColumn":5,"fileName":"typedArray.ts","functionName":"byteOffset","argumentNames":["this"]} +TypedArray_byteOffset__P46158.isGetter = true; -function control_EventContext_registerFrameCallbacks_inline__P2026270_mk(s) { +function TypedArray_byteOffset__P46158_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P2026270, depth: s.depth + 1, + parent: s, fn: TypedArray_byteOffset__P46158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - delay___2026300: undefined, + arg0: undefined, } } -function control_EventContext_registerFrameCallbacks_inline__P2026276(s) { +function TypedArray_length__P46160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2076,30 +2136,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["runningCallbacks"]; - 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) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = s.arg0.fields["_length"]; + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P2026276.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +TypedArray_length__P46160.info = {"start":4708,"length":63,"line":142,"column":4,"endLine":144,"endColumn":5,"fileName":"typedArray.ts","functionName":"length","argumentNames":["this"]} +TypedArray_length__P46160.isGetter = true; -function control_EventContext_registerFrameCallbacks_inline__P2026276_mk(s) { +function TypedArray_length__P46160_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P2026276, depth: s.depth + 1, + parent: s, fn: TypedArray_length__P46160, 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_runCallbacks__P2022427(s) { +function helpers_arrayReverse__P41894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2109,283 +2171,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___2026309 = undefined; - s.f___2026322 = undefined; - s.unnamed27046___U2 = undefined; - s.unnamed27047___U3 = undefined; - s.now___2026327 = undefined; - s.runtime___2026330 = undefined; - s.realTimeInSample___2026349 = undefined; - s.fps___2026358 = undefined; - s.delay___2026427 = undefined; + s.len___62557 = undefined; + s.i___62560 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___2026309 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___2026309 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___2026309); - s.f___2026322 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed27046___U2 = (r0); - s.unnamed27047___U3 = (0); + r0 = pxsim_Array__length(s.arg0); + s.len___62557 = (r0); + s.i___62560 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27047___U3; - r0 = pxsim_Array__length(s.unnamed27046___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27046___U2, s.unnamed27047___U3); - s.f___2026322 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___2026322; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.callLocIdx = 42; s.pc = 11; 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"], 1); s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 11; return s.tmp_2;; } - else { s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } - } - case 11: - r0 = s.retval; - r0 = (s.unnamed27047___U3 + 1); - s.unnamed27047___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed27046___U2 = (undefined); - r0 = pxsim.control.millis(); - s.now___2026327 = (r0); - r0 = (s.now___2026327 - s.loopStart___2026309); - s.runtime___2026330 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___2026330); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); - r0 = s.arg0.fields["timeInSample"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1000); - 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["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 30); - case 4: - // 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["lastPerfDump"]; - s.tmp_4 = r0; - r0 = (s.now___2026327 - s.tmp_4); - s.realTimeInSample___2026349 = (r0); - r0 = (s.arg0).fields["lastPerfDump"] = (s.now___2026327); - r0 = s.arg0.fields["framesInSample"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_1 = r0; - r0 = (s.tmp_0 / s.tmp_1); - s.fps___2026358 = (r0); - r0 = pxsim.Math_.round(s.fps___2026358); - s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 12: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___2018339 = (r0); - r0 = (s.fps___2026358 < 99); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___2018339) && (globals.control_EventContext_lastStats___2018339).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(globals.control_EventContext_lastStats___2018339); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___2018339) + ""; } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.fps___2026358 * 10); - s.tmp_7 = r0; - r0 = pxsim.Math_.round(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 % 10); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 14: - 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); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 15: - r0 = s.retval; + s.tmp_1 = r0 = s.i___62560; + r0 = (s.len___62557 / 2); s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___2018339 = (r0); - case 5: - case 6: - r0 = pxsim.control.profilingEnabled(); + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_9 = r0; - r0 = (s.fps___2026358 * 100); - s.tmp_12 = r0; - r0 = (s.tmp_12 | 0); - s.tmp_11 = r0; - if ((s.tmp_11) && (s.tmp_11).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_11); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_11) + ""; } - case 16: - r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_8, "/100 fps - "); - s.tmp_7 = r0; - r0 = s.arg0.fields["framesInSample"]; - s.tmp_14 = r0; - if ((s.tmp_14) && (s.tmp_14).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.tmp_14); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_14) + ""; } - case 17: - r0 = s.retval; - s.tmp_13 = r0; - r0 = pxsim_String__concat(s.tmp_7, s.tmp_13); - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_6, " frames ("); - s.tmp_5 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_16 = r0; - if ((s.tmp_16) && (s.tmp_16).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.tmp_16); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_16) + ""; } - case 18: - r0 = s.retval; - s.tmp_15 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_15); + if (!r0) { step = 2; continue; } + s.tmp_3 = helpers_swap__P46203_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.i___62560; + r0 = (s.len___62557 - s.i___62560); s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "ms/"); - s.tmp_3 = r0; - if ((s.realTimeInSample___2026349) && (s.realTimeInSample___2026349).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.realTimeInSample___2026349); - checkResumeConsumed(); - return; - } else { s.retval = (s.realTimeInSample___2026349) + ""; } - case 19: - r0 = s.retval; - s.tmp_17 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_17); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "ms)"); - s.tmp_1 = r0; - r0 = pxsim.control.dmesg(s.tmp_1); - r0 = pxsim.control.gc(); - r0 = pxsim_pxtcore.dumpPerfCounters(); - case 7: - case 8: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 9: - case 10: - s.tmp_0 = Math_max__P2018072_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___2026330); - s.tmp_0.arg1 = r0; - s.callLocIdx = 43; s.pc = 20; return s.tmp_0; - case 20: + r0 = (s.tmp_4 - 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 0; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - s.delay___2026427 = (r0); - r0 = s.delay___2026427; + r0 = (s.i___62560 + 1); + s.i___62560 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P2022427.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +helpers_arrayReverse__P41894.info = {"start":3861,"length":178,"line":146,"column":4,"endLine":151,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayReverse","argumentNames":["arr"]} -function control_EventContext_runCallbacks__P2022427_mk(s) { +function helpers_arrayReverse__P41894_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P2022427, depth: s.depth + 1, + parent: s, fn: helpers_arrayReverse__P41894, depth: s.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, - loopStart___2026309: undefined, - f___2026322: undefined, - unnamed27046___U2: undefined, - unnamed27047___U3: undefined, - now___2026327: undefined, - runtime___2026330: undefined, - realTimeInSample___2026349: undefined, - fps___2026358: undefined, - delay___2026427: undefined, + len___62557: undefined, + i___62560: undefined, arg0: undefined, } } @@ -2393,7 +2227,7 @@ function control_EventContext_runCallbacks__P2022427_mk(s) { -function Math_max__P2018072(s) { +function helpers_swap__P46203(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2403,41 +2237,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___52935 = 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 >= s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } - case 1: - case 2: - r0 = s.arg1; - case 3: + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___52935 = (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___52935); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_max__P2018072.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"]} +helpers_swap__P46203.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 Math_max__P2018072_mk(s) { +function helpers_swap__P46203_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P2018072, depth: s.depth + 1, + parent: s, fn: helpers_swap__P46203, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + temp___52935: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function game_popScene__P2020947(s) { +function TypedArray_get__P46161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2447,84 +2286,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___2026002 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 1019; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___2026002 = (r0); - s.tmp_0 = r0 = globals._sceneStack___2022931; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.bytes___49132 = undefined; + s.i___49134 = undefined; + s.o___49135 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = (s.arg1 >>> 0); + s.arg1 = (r0); + r0 = s.arg0.fields["_length"]; + s.tmp_1 = r0; + r0 = (s.arg1 >= s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 5; continue; } case 1: - r0 = pxsim_Array__length(globals._sceneStack___2022931); case 2: - // jmp value (already in r0) + r0 = pxsim_Array__mk(); + s.bytes___49132 = (r0); + s.i___49134 = (0); + r0 = s.arg0.fields["_byteOffset"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___2022931); - globals._scene___2022930 = (r0); - s.tmp_0 = control_popEventContext__P2018352_mk(s); - s.callLocIdx = 1020; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_3 = r0; + r0 = (s.arg1 * s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + s.o___49135 = (r0); + r0 = s.tmp_0; case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___2022930); + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_1 = r0; + r0 = (s.i___49134 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P2018352_mk(s); - s.callLocIdx = 1021; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___2022930 = (undefined); + s.tmp_2 = r0 = s.bytes___49132; + r0 = s.arg0.fields["_buffer"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["_bytes"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.o___49135); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.tmp_3); + r0 = (s.i___49134 + 1); + s.i___49134 = (r0); + s.tmp_0 = r0 = s.o___49135; + r0 = (s.tmp_0 + 1); + s.o___49135 = (r0); + r0 = s.tmp_0; + { step = 3; continue; } case 4: - case 5: + s.tmp_0 = if__unpack_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.bytes___49132; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "_unpack"), 2); + s.callLocIdx = 114; s.pc = 6; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["_unpack"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["_unpack"], 2); s.callLocIdx = 114; s.pc = 6; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 114; s.pc = 6; return s.tmp_0;; } + else { s.callLocIdx = 114; s.pc = 6; return s.tmp_0; } + } case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___2022930); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P2021126_mk(s); - s.callLocIdx = 1022; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___2022933); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P2026023); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___2026002); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___2022933; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1024; s.pc = 15; return s.tmp_1; - case 15: r0 = s.retval; - case 9: - case 10: - r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -game_popScene__P2020947.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +TypedArray_get__P46161.info = {"start":4817,"length":469,"line":149,"column":4,"endLine":166,"endColumn":5,"fileName":"typedArray.ts","functionName":"get","argumentNames":["this","index"]} -function game_popScene__P2020947_mk(s) { +function TypedArray_get__P46161_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P2020947, depth: s.depth + 1, + parent: s, fn: TypedArray_get__P46161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___2026002: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + bytes___49132: undefined, + i___49134: undefined, + o___49135: undefined, + arg0: undefined, + arg1: undefined, } } -function game_popScene_inline__P2026023(s) { +function DataView_buffer__P107449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2538,25 +2400,20 @@ 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 = 1023; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = s.arg0.fields["_buffer"]; + return leaveAccessor(s, r0) default: oops() } } } -game_popScene_inline__P2026023.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +DataView_buffer__P107449.info = {"start":2484,"length":68,"line":66,"column":4,"endLine":68,"endColumn":5,"fileName":"dataView.ts","functionName":"buffer","argumentNames":["this"]} +DataView_buffer__P107449.isGetter = true; -function game_popScene_inline__P2026023_mk(s) { +function DataView_buffer__P107449_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene_inline__P2026023, depth: s.depth + 1, + parent: s, fn: DataView_buffer__P107449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -2564,7 +2421,7 @@ function game_popScene_inline__P2026023_mk(s) { -function particles_enableAll__P2021126(s) { +function TypedArray_fromArrayBuffer__P46154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2574,46 +2431,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___2026044 = undefined; - s.tmp_0 = particles_particleSources__P2023281_mk(s); - s.callLocIdx = 1261; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___2026044 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___2026044); + s.byteLength___49026 = 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, TypedArray__C46151_VT)) failedCast(r0); + r0 = (s.arg2 >>> 0); + s.arg2 = (r0); + s.tmp_1 = r0 = s.arg2; + r0 = s.arg1.fields["_byteLength"]; + 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_0 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_0.arg0 = s.sources___2026044; - s.tmp_0.arg1 = particles_enableAll_inline__P2026050; - s.callLocIdx = 1263; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P2023277_mk(s); - s.callLocIdx = 1264; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + r0 = pxsim_pxtcore.throwValue("byteOffset out of range."); case 1: case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_enableAll__P2021126.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} - -function particles_enableAll__P2021126_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_enableAll__P2021126, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___2026044: undefined, -} } + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_5 = r0; + r0 = (s.arg2 % s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 != 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore.throwValue("Buffer length minus the byteOffset is not a multiple of the element size."); + case 3: + case 4: + r0 = (s.arg3 == null); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = s.arg1.fields["_byteLength"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 - s.arg2); + s.byteLength___49026 = (r0); + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_2 = r0; + r0 = (s.byteLength___49026 % s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 != 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore.throwValue("Length of buffer minus byteOffset not a multiple of the element size."); + case 5: + case 6: + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_3 = r0; + r0 = (s.byteLength___49026 / s.tmp_3); + s.arg3 = (r0); + { step = 8; continue; } + case 7: + r0 = (s.arg3 >>> 0); + s.arg3 = (r0); + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + s.tmp_0 = r0; + r0 = (s.arg3 * s.tmp_0); + s.byteLength___49026 = (r0); + case 8: + r0 = (s.arg2 + s.byteLength___49026); + s.tmp_1 = r0; + r0 = s.arg1.fields["_byteLength"]; + 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_pxtcore.throwValue("byteOffset and length reference are an area beyond the end of the buffer."); + case 9: + case 10: + r0 = (s.arg0).fields["_buffer"] = (s.arg1); + r0 = (s.arg0).fields["_byteLength"] = (s.byteLength___49026); + r0 = (s.arg0).fields["_byteOffset"] = (s.arg2); + r0 = (s.arg0).fields["_length"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +TypedArray_fromArrayBuffer__P46154.info = {"start":2622,"length":1324,"line":71,"column":4,"endLine":109,"endColumn":5,"fileName":"typedArray.ts","functionName":"fromArrayBuffer","argumentNames":["this","source","byteOffset","length"]} + +function TypedArray_fromArrayBuffer__P46154_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: TypedArray_fromArrayBuffer__P46154, depth: s.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, + byteLength___49026: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } -function particles_enableAll_inline__P2026050(s) { +function ArrayBuffer_byteLength__P46127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2627,24 +2555,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P2021107_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1262; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = true; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, ArrayBuffer__C46125_VT)) failedCast(r0); + r0 = s.arg0.fields["_byteLength"]; + return leaveAccessor(s, r0) default: oops() } } } -particles_enableAll_inline__P2026050.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +ArrayBuffer_byteLength__P46127.info = {"start":2158,"length":71,"line":60,"column":4,"endLine":62,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"byteLength","argumentNames":["this"]} +ArrayBuffer_byteLength__P46127.isGetter = true; -function particles_enableAll_inline__P2026050_mk(s) { +function ArrayBuffer_byteLength__P46127_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll_inline__P2026050, depth: s.depth + 1, + parent: s, fn: ArrayBuffer_byteLength__P46127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -2652,7 +2576,7 @@ function particles_enableAll_inline__P2026050_mk(s) { -function particles_particleSources__P2023281(s) { +function Uint8Array_constructor__P46182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2662,33 +2586,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___2026225 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 1265; s.pc = 1; return 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, Uint8Array__C46181_VT)) failedCast(r0); + s.tmp_0 = TypedArray_constructor__P46152_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 124; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___2026225 = (r0); - r0 = s.sources___2026225; + r0 = (s.arg0).fields["BYTES_PER_ELEMENT"] = (1); + r0 = (s.arg0).fields["_pack"] = (Uint8Array_inline__P49539); + r0 = (s.arg0).fields["_unpack"] = (Uint8Array_inline__P49545); + s.tmp_0 = TypedArray_init__P48959_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 127; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_particleSources__P2023281.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +Uint8Array_constructor__P46182.info = {"start":1677,"length":246,"line":38,"column":4,"endLine":44,"endColumn":5,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["this","length"]} -function particles_particleSources__P2023281_mk(s) { +function Uint8Array_constructor__P46182_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P2023281, depth: s.depth + 1, + parent: s, fn: Uint8Array_constructor__P46182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___2026225: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_pruneParticles__P2023277(s) { +function Uint8Array_inline__P49539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2698,51 +2637,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___2026055 = undefined; - s.tmp_0 = particles_particleSources__P2023281_mk(s); - s.callLocIdx = 1248; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___2026055 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___2026055); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1 = helpers_arraySlice__P2018057_mk(s); - s.tmp_1.arg0 = s.sources___2026055; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___2026055); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1249; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = particles_pruneParticles_inline__P2026064; - s.callLocIdx = 1251; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Convert_packU8__P46170_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 125; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; return leave(s, r0) default: oops() } } } -particles_pruneParticles__P2023277.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +Uint8Array_inline__P49539.info = {"start":1789,"length":40,"line":41,"column":21,"endLine":41,"endColumn":61,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["value"]} -function particles_pruneParticles__P2023277_mk(s) { +function Uint8Array_inline__P49539_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P2023277, depth: s.depth + 1, + parent: s, fn: Uint8Array_inline__P49539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - sources___2026055: undefined, + arg0: undefined, } } -function particles_pruneParticles_inline__P2026064(s) { +function Uint8Array_inline__P49545(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2756,21 +2678,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P2021102_mk(s); + s.tmp_0 = Convert_unpackU8__P46171_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1250; s.pc = 1; return s.tmp_0; + s.callLocIdx = 126; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles_inline__P2026064.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +Uint8Array_inline__P49545.info = {"start":1853,"length":44,"line":42,"column":23,"endLine":42,"endColumn":67,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["bytes"]} -function particles_pruneParticles_inline__P2026064_mk(s) { +function Uint8Array_inline__P49545_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles_inline__P2026064, depth: s.depth + 1, + parent: s, fn: Uint8Array_inline__P49545, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2780,7 +2701,7 @@ function particles_pruneParticles_inline__P2026064_mk(s) { -function particles_ParticleSource__prune__P2021102(s) { +function TypedArray_init__P48959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2790,147 +2711,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2026094 = undefined; - s.sources___2026102 = undefined; - s.current___2026116 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_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: - 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) + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_length"]; 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"]; + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; s.tmp_3 = r0; - r0 = (s.arg0).fields["head"] = (s.tmp_3); - { step = 1; continue; } - case 4: - r0 = s.arg0.fields["pFlags"]; + r0 = (s.tmp_2 * s.tmp_3); 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["head"]; - 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_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 1223; s.pc = 21; return s.tmp_5; - case 21: - r0 = s.retval; - s.scene___2026094 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___2026094); - if (!r0) { step = 7; continue; } - r0 = s.scene___2026094.fields["allSprites"]; + r0 = (s.tmp_0).fields["_byteLength"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(ArrayBuffer__C46125_VT); s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - case 7: - case 8: - s.tmp_0 = particles_particleSources__P2023281_mk(s); - s.callLocIdx = 1224; s.pc = 22; return s.tmp_0; - case 22: + s.tmp_1 = ArrayBuffer_constructor__P46126_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["_byteLength"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 120; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.sources___2026102 = (r0); - s.tmp_0 = r0 = s.sources___2026102; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = pxsim_Array__length(s.sources___2026102); - 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___2026102, 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___2026116 = (r0); - case 15: - s.tmp_0 = r0 = s.current___2026116; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___2026116.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___2026116.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___2026116.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___2026116).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___2026116.fields["next"]; - s.current___2026116 = (r0); - case 19: - { step = 15; continue; } - case 20: + r0 = (s.arg0).fields["_buffer"] = (s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P2021102.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +TypedArray_init__P48959.info = {"start":7430,"length":151,"line":242,"column":4,"endLine":245,"endColumn":4,"fileName":"typedArray.ts","functionName":"init","argumentNames":["this"]} -function particles_ParticleSource__prune__P2021102_mk(s) { +function TypedArray_init__P48959_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P2021102, depth: s.depth + 1, + parent: s, fn: TypedArray_init__P48959, depth: s.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___2026094: undefined, - sources___2026102: undefined, - current___2026116: undefined, arg0: undefined, } } @@ -2938,7 +2757,7 @@ function particles_ParticleSource__prune__P2021102_mk(s) { -function helpers_arraySlice__P2018057(s) { +function Convert_unpackU8__P46171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2948,114 +2767,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___2026139 = undefined; - s.len___2026141 = undefined; - s.i___2026175 = 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___2026139 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___2026141 = (r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } + s.tmp_0 = Convert_as_unsigned__P49399_mk(s); + r0 = pxsim_Array__getAt(s.arg0, 0); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 8; + s.callLocIdx = 121; s.pc = 1; return s.tmp_0; 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__P2018072_mk(s); - r0 = (s.len___2026141 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 8; 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___2026141); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___2026139; - { step = 15; continue; } - 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___2026141); - { 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___2026141 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___2026141); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___2026141); - case 11: - case 12: - s.i___2026175 = (s.arg1); - case 13: - r0 = (s.i___2026175 < s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___2026139; - r0 = pxsim_Array__getAt(s.arg0, s.i___2026175); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___2026175 + 1); - s.i___2026175 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___2026139; - case 15: return leave(s, r0) default: oops() } } } -helpers_arraySlice__P2018057.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"]} +Convert_unpackU8__P46171.info = {"start":2304,"length":86,"line":49,"column":4,"endLine":49,"endColumn":90,"fileName":"convert.ts","functionName":"unpackU8","argumentNames":["bytes"]} -function helpers_arraySlice__P2018057_mk(s) { +function Convert_unpackU8__P46171_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P2018057, depth: s.depth + 1, + parent: s, fn: Convert_unpackU8__P46171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - res___2026139: undefined, - len___2026141: undefined, - i___2026175: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_ParticleSource_enabled__P2021107(s) { +function Convert_as_unsigned__P49399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3065,59 +2806,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___49402 = 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__C2021094_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P2021106_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1227; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); + r0 = (32 - s.arg1); + s.s___49402 = (r0); + r0 = (s.arg0 << s.s___49402); 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; + r0 = (s.tmp_0 >>> s.s___49402); return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P2021107.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +Convert_as_unsigned__P49399.info = {"start":1959,"length":107,"line":43,"column":4,"endLine":43,"endColumn":111,"fileName":"convert.ts","functionName":"as_unsigned","argumentNames":["value","bits"]} -function particles_ParticleSource_enabled__P2021107_mk(s) { +function Convert_as_unsigned__P49399_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P2021107, depth: s.depth + 1, + parent: s, fn: Convert_as_unsigned__P49399, depth: s.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___49402: undefined, arg0: undefined, arg1: undefined, } } @@ -3126,7 +2837,7 @@ function particles_ParticleSource_enabled__P2021107_mk(s) { -function particles_ParticleSource_enabled__P2021106(s) { +function Convert_packU8__P46170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3140,35 +2851,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_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); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = (s.arg0 & 255); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P2021106.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__P2021106.isGetter = true; +Convert_packU8__P46170.info = {"start":2233,"length":66,"line":48,"column":4,"endLine":48,"endColumn":70,"fileName":"convert.ts","functionName":"packU8","argumentNames":["n"]} -function particles_ParticleSource_enabled__P2021106_mk(s) { +function Convert_packU8__P46170_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P2021106, depth: s.depth + 1, + parent: s, fn: Convert_packU8__P46170, depth: s.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, } } @@ -3176,7 +2876,7 @@ function particles_ParticleSource_enabled__P2021106_mk(s) { -function control_popEventContext__P2018352(s) { +function TypedArray_constructor__P46152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3186,75 +2886,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___2026232 = undefined; - s.context___2026240 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___2022430); - 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.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = (s.arg1 >> 0); + s.arg1 = (r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 7; continue; } + r0 = pxsim_pxtcore.throwValue("length is not a small enough non-negative integer."); case 1: case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___2022430); - s.ctx___2026232 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___2026232); - 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__P2018344_mk(s); - s.tmp_2.arg0 = s.ctx___2026232; - s.callLocIdx = 56; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___2022430; - r0 = pxsim_Array__length(globals.eventContexts___2022430); - 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___2026240 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___2026240); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P2018343_mk(s); - s.tmp_0.arg0 = s.context___2026240; - s.callLocIdx = 57; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___2022430 = (undefined); - case 6: - case 7: + r0 = (s.arg0).fields["_length"] = (s.arg1); + r0 = (s.arg0).fields["_byteOffset"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P2018352.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +TypedArray_constructor__P46152.info = {"start":1932,"length":238,"line":46,"column":4,"endLine":54,"endColumn":5,"fileName":"typedArray.ts","functionName":"inline","argumentNames":["this","length"]} -function control_popEventContext__P2018352_mk(s) { +function TypedArray_constructor__P46152_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P2018352, depth: s.depth + 1, + parent: s, fn: TypedArray_constructor__P46152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - ctx___2026232: undefined, - context___2026240: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_unregister__P2018344(s) { +function DataView_byteOffset__P107451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3264,60 +2934,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___2026435 = undefined; - s.unnamed27050___U1 = undefined; - s.unnamed27051___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - s.h___2026435 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed27050___U1 = (r0); - s.unnamed27051___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed27051___U2; - r0 = pxsim_Array__length(s.unnamed27050___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27050___U1, s.unnamed27051___U2); - s.h___2026435 = (r0); - s.tmp_2 = control_EventHandler_unregister__P2022424_mk(s); - s.tmp_2.arg0 = s.h___2026435; - s.callLocIdx = 49; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed27051___U2 + 1); - s.unnamed27051___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed27050___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) + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = s.arg0.fields["_byteOffset"]; + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_unregister__P2018344.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +DataView_byteOffset__P107451.info = {"start":2635,"length":71,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"dataView.ts","functionName":"byteOffset","argumentNames":["this"]} +DataView_byteOffset__P107451.isGetter = true; -function control_EventContext_unregister__P2018344_mk(s) { +function DataView_byteOffset__P107451_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P2018344, depth: s.depth + 1, + parent: s, fn: DataView_byteOffset__P107451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___2026435: undefined, - unnamed27050___U1: undefined, - unnamed27051___U2: undefined, arg0: undefined, } } @@ -3325,7 +2959,7 @@ function control_EventContext_unregister__P2018344_mk(s) { -function control_EventHandler_unregister__P2022424(s) { +function DataView_byteLength__P107450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3340,28 +2974,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C2022422_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__P2022426, s.tmp_2); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = s.arg0.fields["_byteLength"]; + return leaveAccessor(s, r0) default: oops() } } } -control_EventHandler_unregister__P2022424.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +DataView_byteLength__P107450.info = {"start":2558,"length":71,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"dataView.ts","functionName":"byteLength","argumentNames":["this"]} +DataView_byteLength__P107450.isGetter = true; -function control_EventHandler_unregister__P2022424_mk(s) { +function DataView_byteLength__P107450_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P2022424, depth: s.depth + 1, + parent: s, fn: DataView_byteLength__P107450, 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, } } @@ -3369,7 +2994,7 @@ function control_EventHandler_unregister__P2022424_mk(s) { -function control_doNothing__P2022426(s) { +function TypedArray_bytesPerElement__P46159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3379,24 +3004,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + return leaveAccessor(s, r0) default: oops() } } } -control_doNothing__P2022426.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +TypedArray_bytesPerElement__P46159.info = {"start":4620,"length":82,"line":138,"column":4,"endLine":140,"endColumn":5,"fileName":"typedArray.ts","functionName":"bytesPerElement","argumentNames":["this"]} +TypedArray_bytesPerElement__P46159.isGetter = true; -function control_doNothing__P2022426_mk(s) { +function TypedArray_bytesPerElement__P46159_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P2022426, depth: s.depth + 1, + parent: s, fn: TypedArray_bytesPerElement__P46159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, } } -function control_EventContext_register__P2018343(s) { +function Uint32Array_constructor__P46190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3406,67 +3039,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___2026253 = undefined; - s.unnamed27048___U1 = undefined; - s.unnamed27049___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - s.h___2026253 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed27048___U1 = (r0); - s.unnamed27049___U2 = (0); + if (!checkSubtype(r0, Uint32Array__C46189_VT)) failedCast(r0); + s.tmp_0 = TypedArray_constructor__P46152_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 132; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed27049___U2; - r0 = pxsim_Array__length(s.unnamed27048___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27048___U1, s.unnamed27049___U2); - s.h___2026253 = (r0); - s.tmp_2 = control_EventHandler_register__P2022423_mk(s); - s.tmp_2.arg0 = s.h___2026253; - s.callLocIdx = 47; s.pc = 3; return s.tmp_2; - case 3: r0 = s.retval; - r0 = (s.unnamed27049___U2 + 1); - s.unnamed27049___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed27048___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P2022428_mk(s); + r0 = (s.arg0).fields["BYTES_PER_ELEMENT"] = (4); + r0 = (s.arg0).fields["_pack"] = (Uint32Array_inline__P49619); + r0 = (s.arg0).fields["_unpack"] = (Uint32Array_inline__P49625); + s.tmp_0 = TypedArray_init__P48959_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 48; s.pc = 4; return s.tmp_0; - case 4: + s.callLocIdx = 135; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_register__P2018343.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +Uint32Array_constructor__P46190.info = {"start":1678,"length":248,"line":38,"column":4,"endLine":44,"endColumn":5,"fileName":"unit32array.ts","functionName":"inline","argumentNames":["this","length"]} -function control_EventContext_register__P2018343_mk(s) { +function Uint32Array_constructor__P46190_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P2018343, depth: s.depth + 1, + parent: s, fn: Uint32Array_constructor__P46190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___2026253: undefined, - unnamed27048___U1: undefined, - unnamed27049___U2: undefined, arg0: undefined, + arg1: undefined, } } -function control_EventHandler_register__P2022423(s) { +function Uint32Array_inline__P49619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3480,33 +3094,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C2022422_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P2025891); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["flags"]; - s.tmp_3 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); - r0 = undefined; + s.tmp_0 = Convert_packU32__P46179_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 133; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P2022423.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +Uint32Array_inline__P49619.info = {"start":1790,"length":41,"line":41,"column":21,"endLine":41,"endColumn":62,"fileName":"unit32array.ts","functionName":"inline","argumentNames":["value"]} -function control_EventHandler_register__P2022423_mk(s) { +function Uint32Array_inline__P49619_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P2022423, depth: s.depth + 1, + parent: s, fn: Uint32Array_inline__P49619, depth: s.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, } } @@ -3514,7 +3117,7 @@ function control_EventHandler_register__P2022423_mk(s) { -function control_EventHandler_register_inline__P2025891(s) { +function Uint32Array_inline__P49625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3524,45 +3127,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_handler_1_mk(s); - s.tmp_1.arg0 = s.caps[0]; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); - s.callLocIdx = 41; s.pc = 3; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 41; s.pc = 3; return s.tmp_1;; } - else { s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 3: - r0 = s.retval; + s.tmp_0 = Convert_unpackU32__P46180_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 134; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; return leave(s, r0) default: oops() } } } -control_EventHandler_register_inline__P2025891.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +Uint32Array_inline__P49625.info = {"start":1855,"length":45,"line":42,"column":23,"endLine":42,"endColumn":68,"fileName":"unit32array.ts","functionName":"inline","argumentNames":["bytes"]} -function control_EventHandler_register_inline__P2025891_mk(s) { +function Uint32Array_inline__P49625_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register_inline__P2025891, depth: s.depth + 1, + parent: s, fn: Uint32Array_inline__P49625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function helpers_arrayForEach__P2018051(s) { +function Convert_unpackU32__P46180(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3572,58 +3164,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___2026029 = undefined; - s.i___2026032 = 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___2026029 = (r0); - s.i___2026032 = (0); + s.tmp_0 = Convert_as_unsigned__P49399_mk(s); + r0 = pxsim_Array__getAt(s.arg0, 3); + s.tmp_4 = r0; + r0 = (s.tmp_4 << 24); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.arg0, 2); + s.tmp_6 = r0; + r0 = (s.tmp_6 << 16); + s.tmp_5 = r0; + r0 = (s.tmp_3 | s.tmp_5); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.arg0, 1); + s.tmp_8 = r0; + r0 = (s.tmp_8 << 8); + s.tmp_7 = r0; + r0 = (s.tmp_2 | s.tmp_7); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.arg0, 0); + s.tmp_9 = r0; + r0 = (s.tmp_1 | s.tmp_9); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 32; + s.callLocIdx = 123; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___2026032 < s.len___2026029); - 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___2026032); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___2026032; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 5; s.pc = 3; return s.tmp_1; - case 3: r0 = s.retval; - r0 = (s.i___2026032 + 1); - s.i___2026032 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P2018051.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"]} +Convert_unpackU32__P46180.info = {"start":3312,"length":138,"line":63,"column":4,"endLine":63,"endColumn":142,"fileName":"convert.ts","functionName":"unpackU32","argumentNames":["bytes"]} -function helpers_arrayForEach__P2018051_mk(s) { +function Convert_unpackU32__P46180_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P2018051, depth: s.depth + 1, + parent: s, fn: Convert_unpackU32__P46180, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___2026029: undefined, - i___2026032: 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, } } -function game_pushScene__P2020946(s) { +function Convert_packU32__P46179(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3633,70 +3230,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___2027830 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 1013; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.oldScene___2027830 = (r0); - s.tmp_0 = particles_clearAll__P2021124_mk(s); - s.callLocIdx = 1014; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_disableAll__P2021125_mk(s); - s.callLocIdx = 1015; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___2022931); - 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; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } r0 = pxsim_Array__mk(); - globals._sceneStack___2022931 = (r0); - case 1: - case 2: - r0 = pxsim_Array__push(globals._sceneStack___2022931, globals._scene___2022930); - s.tmp_0 = game_init__P2022938_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1016; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___2022932); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P2027847); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___2027830); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___2022932; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1018; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; + r0 = (s.arg0 & 255); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = (s.arg0 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_3 & 255); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = (s.arg0 >> 16); + s.tmp_5 = r0; + r0 = (s.tmp_5 & 255); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = (s.arg0 >> 24); + s.tmp_7 = r0; + r0 = (s.tmp_7 & 255); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_6); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -game_pushScene__P2020946.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +Convert_packU32__P46179.info = {"start":3187,"length":120,"line":62,"column":4,"endLine":62,"endColumn":124,"fileName":"convert.ts","functionName":"packU32","argumentNames":["n"]} -function game_pushScene__P2020946_mk(s) { +function Convert_packU32__P46179_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P2020946, depth: s.depth + 1, + parent: s, fn: Convert_packU32__P46179, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___2027830: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + arg0: undefined, } } -function game_pushScene_inline__P2027847(s) { +function DataView_setUint32__P107468(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3706,37 +3290,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___107674 = 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 = 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 = 1017; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(Uint32Array__C46189_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint32Array_constructor__P46190_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 74; s.pc = 1; return s.tmp_1; case 1: + r0 = s.retval; + s.r___107674 = (s.tmp_0); + s.tmp_0 = DataView_setter__P107470_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.r___107674; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.callLocIdx = 75; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_pushScene_inline__P2027847.info = {"start":5091,"length":18,"line":157,"column":39,"endLine":157,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +DataView_setUint32__P107468.info = {"start":10552,"length":199,"line":249,"column":4,"endLine":252,"endColumn":5,"fileName":"dataView.ts","functionName":"setUint32","argumentNames":["this","byteOffset","value","littleEndian"]} -function game_pushScene_inline__P2027847_mk(s) { +function DataView_setUint32__P107468_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene_inline__P2027847, depth: s.depth + 1, + parent: s, fn: DataView_setUint32__P107468, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + r___107674: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_init__P2022938(s) { +function DataView_setter__P107470(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3746,56 +3352,140 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.byteArray___107759 = undefined; + s.bytes___107766 = undefined; + s.i___107768 = undefined; + s.byteView___107787 = 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(globals._scene___2022930); + r0 = s.arg0; + if (!checkSubtype(r0, DataView__C107448_VT)) failedCast(r0); + r0 = (s.arg2 >>> 0); + s.arg2 = (r0); + s.tmp_2 = r0 = s.arg2; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0.fields["_byteLength"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 > s.tmp_4); 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_pxtcore.throwValue("Array index out of range."); 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__C2020786_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P2020809_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P2018351_mk(s); - s.callLocIdx = 1010; s.pc = 6; return s.tmp_5; - case 6: + r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.arg3); + s.tmp_6 = TypedArray_fromArray__P46153_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = s.tmp_5; + s.callLocIdx = 94; s.pc = 7; return s.tmp_6; + case 7: r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___2022930; - s.callLocIdx = 1011; s.pc = 5; return s.tmp_4; - case 5: + r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C46181_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint8Array_constructor__P46182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 95; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - globals._scene___2022930 = (s.tmp_3); + s.byteArray___107759 = (s.tmp_0); + s.tmp_0 = TypedArray_fromArrayBuffer__P46154_mk(s); + s.tmp_0.arg0 = s.byteArray___107759; + r0 = s.arg1.fields["_buffer"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = null; + s.callLocIdx = 97; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = pxsim_Array__mk(); + s.bytes___107766 = (r0); + s.i___107768 = (0); case 3: + s.tmp_1 = r0 = s.i___107768; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + 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.bytes___107766; + s.tmp_5 = TypedArray_get__P46161_mk(s); + s.tmp_5.arg0 = s.byteArray___107759; + s.tmp_5.arg1 = s.i___107768; + s.callLocIdx = 99; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_3, s.tmp_4); + r0 = (s.i___107768 + 1); + s.i___107768 = (r0); + { step = 3; continue; } case 4: - s.tmp_0 = scene_Scene_init__P2020810_mk(s); - s.tmp_0.arg0 = globals._scene___2022930; - s.callLocIdx = 1012; s.pc = 7; return s.tmp_0; - case 7: + s.tmp_1 = r0 = s.arg4; + s.tmp_3 = DataView_IS_BIG_ENDIAN__P107452_mk(s); + s.callLocIdx = 100; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; + 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 = helpers_arrayReverse__P41894_mk(s); + s.tmp_4.arg0 = s.bytes___107766; + s.callLocIdx = 101; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + case 5: + case 6: + r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C46181_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint8Array_constructor__P46182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 102; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + s.byteView___107787 = (s.tmp_0); + s.tmp_0 = TypedArray_fromArrayBuffer__P46154_mk(s); + s.tmp_0.arg0 = s.byteView___107787; + r0 = s.arg0.fields["_buffer"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + r0 = s.arg1.fields["BYTES_PER_ELEMENT"]; + s.tmp_0.arg3 = r0; + s.callLocIdx = 105; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = TypedArray_setFromArray__P46163_mk(s); + s.tmp_0.arg0 = s.byteView___107787; + s.tmp_0.arg1 = s.bytes___107766; + s.tmp_0.arg2 = 0; + s.callLocIdx = 106; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P2022938.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +DataView_setter__P107470.info = {"start":11560,"length":925,"line":281,"column":4,"endLine":311,"endColumn":5,"fileName":"dataView.ts","functionName":"setter","argumentNames":["this","r","byteOffset","value","littleEndian"]} -function game_init__P2022938_mk(s) { +function DataView_setter__P107470_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P2022938, depth: s.depth + 1, + parent: s, fn: DataView_setter__P107470, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3803,14 +3493,23 @@ function game_init__P2022938_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + byteArray___107759: undefined, + bytes___107766: undefined, + i___107768: undefined, + byteView___107787: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function scene_Scene_init__P2020810(s) { +function TypedArray_setFromArray__P46163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3820,138 +3519,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___49214 = undefined; + s.i___49227 = 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__C2020786_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + if (!checkSubtype(r0, TypedArray__C46151_VT)) failedCast(r0); + r0 = pxsim_Array__length(s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 >>> 0); + s.len___49214 = (r0); + r0 = (s.arg2 >>> 0); + s.arg2 = (r0); + r0 = (s.arg2 + s.len___49214); + s.tmp_1 = r0; + r0 = s.arg0.fields["_length"]; + 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; } - { step = 3; continue; } + r0 = pxsim_pxtcore.throwValue("Offset plus length of array is out of range."); case 1: case 2: - s.tmp_1 = power_poke__P2019872_mk(s); - s.callLocIdx = 907; 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__P2027876); + s.i___49227 = (0); + case 3: + r0 = (s.i___49227 < s.len___49214); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P2018345_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 = 910; s.pc = 5; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = TypedArray_set__P46162_mk(s); + s.tmp_1.arg0 = s.arg0; + r0 = (s.arg2 + s.i___49227); + s.tmp_1.arg1 = r0; + r0 = pxsim_Array__getAt(s.arg1, s.i___49227); + s.tmp_1.arg2 = r0; + s.callLocIdx = 119; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P2018345_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P2020076; - s.callLocIdx = 911; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P2027900); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P2018345_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 = 913; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P2027913); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P2018345_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 = 917; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P2027934); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P2018345_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 = 919; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P2027942); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P2018345_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 = 923; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P2018345_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P2019936; - s.callLocIdx = 924; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = multiplayer_initServer__P2021331_mk(s); - s.callLocIdx = 925; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = multiplayer_initPlayerConnectionListeners__P2021332_mk(s); - s.callLocIdx = 926; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P2027973); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___2020808; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 928; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - case 3: + r0 = (s.i___49227 + 1); + s.i___49227 = (r0); + { step = 3; continue; } + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init__P2020810.info = {"start":4432,"length":2572,"line":127,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +TypedArray_setFromArray__P46163.info = {"start":5734,"length":362,"line":185,"column":4,"endLine":195,"endColumn":5,"fileName":"typedArray.ts","functionName":"setFromArray","argumentNames":["this","source","offset"]} -function scene_Scene_init__P2020810_mk(s) { +function TypedArray_setFromArray__P46163_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P2020810, depth: s.depth + 1, + parent: s, fn: TypedArray_setFromArray__P46163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + len___49214: undefined, + i___49227: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Scene_init_inline__P2027876(s) { +function ArrayBuffer_constructor__P46126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3961,47 +3600,64 @@ 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.i___48837 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArrayBuffer__C46125_VT)) failedCast(r0); + r0 = (s.arg1 >> 0); + s.arg1 = (r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore.throwValue("ArrayBuffer size cannot be negative."); + case 1: + case 2: + r0 = (s.arg0).fields["_byteLength"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P2020108_mk(s); - r0 = s.caps[0].fields["eventContext"]; + r0 = (s.tmp_0).fields["_bytes"] = (s.tmp_1); + s.i___48837 = (0); + case 3: + r0 = (s.i___48837 < s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["_bytes"]; 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 = 909; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim_Array__push(s.tmp_1, 0); + r0 = (s.i___48837 + 1); + s.i___48837 = (r0); + { step = 3; continue; } + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027876.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +ArrayBuffer_constructor__P46126.info = {"start":1725,"length":321,"line":41,"column":4,"endLine":52,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"inline","argumentNames":["this","length"]} -function scene_Scene_init_inline__P2027876_mk(s) { +function ArrayBuffer_constructor__P46126_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027876, depth: s.depth + 1, + parent: s, fn: ArrayBuffer_constructor__P46126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + i___48837: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_init_inline__P2027900(s) { +function DataView_constructor__P107471(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4011,41 +3667,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C2020454_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"]; + 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, DataView__C107448_VT)) failedCast(r0); + r0 = (s.arg2 >>> 0); + s.arg2 = (r0); + s.tmp_1 = r0 = s.arg2; + r0 = s.arg1.fields["_byteLength"]; s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; + 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_pxtcore.throwValue("byteOffset is out of range."); case 1: - r0 = s.retval; + case 2: + r0 = (s.arg3 === undefined); + 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.arg3 == null); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = s.arg1.fields["_byteLength"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.arg2); + s.arg3 = (r0); + { step = 6; continue; } + case 5: + r0 = (s.arg3 >>> 0); + s.arg3 = (r0); + case 6: + r0 = (s.arg2 + s.arg3); + s.tmp_1 = r0; + r0 = s.arg1.fields["_byteLength"]; + 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 = 7; continue; } + r0 = pxsim_pxtcore.throwValue("byteOffset and length reference an area beyond the end of the buffer."); + case 7: + case 8: + r0 = (s.arg0).fields["_buffer"] = (s.arg1); + r0 = (s.arg0).fields["_byteLength"] = (s.arg3); + r0 = (s.arg0).fields["_byteOffset"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027900.info = {"start":5234,"length":159,"line":143,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +DataView_constructor__P107471.info = {"start":1760,"length":718,"line":42,"column":4,"endLine":64,"endColumn":5,"fileName":"dataView.ts","functionName":"inline","argumentNames":["this","buffer","byteOffset","byteLength"]} -function scene_Scene_init_inline__P2027900_mk(s) { +function DataView_constructor__P107471_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027900, depth: s.depth + 1, + parent: s, fn: DataView_constructor__P107471, depth: s.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, + arg3: undefined, } } -function scene_Scene_init_inline__P2027913(s) { +function DataView_IS_BIG_ENDIAN__P107452(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4055,80 +3761,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___2027914 = undefined; - s.s___2027922 = undefined; - s.unnamed27078___U2 = undefined; - s.unnamed27079___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; + s.u16___107526 = undefined; + s.u8___107529 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(Uint16Array__C46185_VT); s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___2027914 = (r0); - s.tmp_0 = scene_Camera_update__P2020741_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 915; s.pc = 3; return s.tmp_0; + s.tmp_1 = Uint16Array_constructor__P46186_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 66; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.u16___107526 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Uint8Array__C46181_VT); + s.tmp_0 = r0; + s.tmp_1 = Uint8Array_constructor__P46182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 67; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.u8___107529 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 4660); + s.tmp_1 = TypedArray_fromArray__P46153_mk(s); + s.tmp_1.arg0 = s.u16___107526; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 68; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.s___2027922 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed27078___U2 = (r0); - s.unnamed27079___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed27079___U3; - r0 = pxsim_Array__length(s.unnamed27078___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27078___U2, s.unnamed27079___U3); - s.s___2027922 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___2027922; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___2027914; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 916; 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 = 916; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 916; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 916; s.pc = 4; return s.tmp_2; } - } + s.tmp_0 = TypedArray_fromArrayBuffer__P46154_mk(s); + s.tmp_0.arg0 = s.u8___107529; + r0 = s.u16___107526.fields["_buffer"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = null; + s.callLocIdx = 70; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = (s.unnamed27079___U3 + 1); - s.unnamed27079___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed27078___U2 = (undefined); - r0 = undefined; - return leave(s, r0) + s.tmp_1 = TypedArray_get__P46161_mk(s); + s.tmp_1.arg0 = s.u8___107529; + s.tmp_1.arg1 = 0; + s.callLocIdx = 71; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 === 18); + return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027913.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +DataView_IS_BIG_ENDIAN__P107452.info = {"start":2712,"length":253,"line":78,"column":4,"endLine":84,"endColumn":5,"fileName":"dataView.ts","functionName":"IS_BIG_ENDIAN","argumentNames":[]} +DataView_IS_BIG_ENDIAN__P107452.isGetter = true; -function scene_Scene_init_inline__P2027913_mk(s) { +function DataView_IS_BIG_ENDIAN__P107452_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027913, depth: s.depth + 1, + parent: s, fn: DataView_IS_BIG_ENDIAN__P107452, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - dt___2027914: undefined, - s___2027922: undefined, - unnamed27078___U2: undefined, - unnamed27079___U3: undefined, + u16___107526: undefined, + u8___107529: undefined, } } -function scene_Scene_init_inline__P2027934(s) { +function Uint16Array_constructor__P46186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4138,30 +3838,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P2020815_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 918; s.pc = 1; return 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, Uint16Array__C46185_VT)) failedCast(r0); + s.tmp_0 = TypedArray_constructor__P46152_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 128; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = (s.arg0).fields["BYTES_PER_ELEMENT"] = (2); + r0 = (s.arg0).fields["_pack"] = (Uint16Array_inline__P49579); + r0 = (s.arg0).fields["_unpack"] = (Uint16Array_inline__P49585); + s.tmp_0 = TypedArray_init__P48959_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 131; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027934.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +Uint16Array_constructor__P46186.info = {"start":1678,"length":248,"line":38,"column":4,"endLine":44,"endColumn":5,"fileName":"unit16array.ts","functionName":"inline","argumentNames":["this","length"]} -function scene_Scene_init_inline__P2027934_mk(s) { +function Uint16Array_constructor__P46186_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027934, depth: s.depth + 1, + parent: s, fn: Uint16Array_constructor__P46186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_init_inline__P2027942(s) { +function Uint16Array_inline__P49579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4171,108 +3889,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___2020911; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Convert_packU16__P46175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 129; s.pc = 1; return s.tmp_0; case 1: - r0 = globals.control_EventContext_onStats___2018340; - 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___2018340; - if ((globals.control_EventContext_lastStats___2018339) && (globals.control_EventContext_lastStats___2018339).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___2018339); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___2018339) + ""; } - case 8: 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) + ""; } - case 9: + return leave(s, r0) + default: oops() +} } } +Uint16Array_inline__P49579.info = {"start":1790,"length":41,"line":41,"column":21,"endLine":41,"endColumn":62,"fileName":"unit16array.ts","functionName":"inline","argumentNames":["value"]} + +function Uint16Array_inline__P49579_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Uint16Array_inline__P49579, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Uint16Array_inline__P49585(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 = Convert_unpackU16__P46176_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 130; s.pc = 1; return s.tmp_0; + case 1: 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) + ""; } - 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 = 920; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___2020910); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C2020454_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_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__P2021070_mk(s); - s.callLocIdx = 921; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P2019873_mk(s); - s.callLocIdx = 922; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027942.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +Uint16Array_inline__P49585.info = {"start":1855,"length":45,"line":42,"column":23,"endLine":42,"endColumn":68,"fileName":"unit16array.ts","functionName":"inline","argumentNames":["bytes"]} -function scene_Scene_init_inline__P2027942_mk(s) { +function Uint16Array_inline__P49585_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027942, depth: s.depth + 1, + parent: s, fn: Uint16Array_inline__P49585, depth: s.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 scene_Scene_init_inline__P2027973(s) { +function Convert_unpackU16__P46176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4286,25 +3967,33 @@ 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 = 927; s.pc = 1; return s.tmp_0; + s.tmp_0 = Convert_as_unsigned__P49399_mk(s); + r0 = pxsim_Array__getAt(s.arg0, 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.arg0, 0); + s.tmp_3 = r0; + r0 = (s.tmp_1 | s.tmp_3); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 16; + s.callLocIdx = 122; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P2027973.info = {"start":6980,"length":12,"line":186,"column":39,"endLine":186,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +Convert_unpackU16__P46176.info = {"start":2810,"length":104,"line":57,"column":4,"endLine":57,"endColumn":108,"fileName":"convert.ts","functionName":"unpackU16","argumentNames":["bytes"]} -function scene_Scene_init_inline__P2027973_mk(s) { +function Convert_unpackU16__P46176_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P2027973, depth: s.depth + 1, + parent: s, fn: Convert_unpackU16__P46176, depth: s.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, } } @@ -4312,7 +4001,7 @@ function scene_Scene_init_inline__P2027973_mk(s) { -function multiplayer_initPlayerConnectionListeners__P2021332(s) { +function Convert_packU16__P46175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4322,43 +4011,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2027976 = undefined; - s.p___2027976 = (1); - case 1: - r0 = (s.p___2027976 <= 4); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P2023387_mk(s); - s.tmp_1.arg0 = s.p___2027976; - s.callLocIdx = 1344; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.p___2027976 + 1); - s.p___2027976 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; + r0 = (s.arg0 & 255); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = (s.arg0 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_3 & 255); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -multiplayer_initPlayerConnectionListeners__P2021332.info = {"start":1324,"length":154,"line":39,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initPlayerConnectionListeners","argumentNames":[]} +Convert_packU16__P46175.info = {"start":2721,"length":84,"line":56,"column":4,"endLine":56,"endColumn":88,"fileName":"convert.ts","functionName":"packU16","argumentNames":["n"]} -function multiplayer_initPlayerConnectionListeners__P2021332_mk(s) { +function Convert_packU16__P46175_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initPlayerConnectionListeners__P2021332, depth: s.depth + 1, + parent: s, fn: Convert_packU16__P46175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___2027976: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, } } -function multiplayer_registerPlayerConnectionListeners__P2023387(s) { +function game_splash__P44759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4368,53 +4057,160 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dialog___49710 = undefined; + s.s___49723 = undefined; + s.pressed___49730 = undefined; + s.done___49731 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P2027988); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P2018333_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 = 1346; s.pc = 1; return s.tmp_1; + s.tmp_0 = console_inspect__P42175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 991; 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__P42175_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 20; + s.callLocIdx = 992; 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__P44000_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 993; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = game_pushScene__P44797_mk(s); + s.callLocIdx = 994; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_1 = game_currentScene__P44793_mk(s); + s.callLocIdx = 995; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P2027994); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P2018333_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 = 1348; s.pc = 2; return s.tmp_1; - case 2: + 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__C44726_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__P44733_mk(s); + s.tmp_2.arg0 = s.tmp_0; + r0 = pxsim_ImageMethods.width(globals.screen___43826); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.tmp_1; + s.callLocIdx = 996; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.dialog___49710 = (s.tmp_0); + s.tmp_0 = game_SplashDialog__C44726_v1_2_mk(s); + s.tmp_0.arg0 = s.dialog___49710; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_SplashDialog__C44726_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__P44735_mk(s); + s.tmp_0.arg0 = s.dialog___49710; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 997; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 5: + case 6: + s.tmp_0 = sprites_create__P44069_mk(s); + r0 = s.dialog___49710.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 998; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.s___49723 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.pressed___49730 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pressed___49730, true); + r0 = pxsim_pxtrt.mklocRef(); + s.done___49731 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.done___49731, false); + r0 = pxsim_pxtcore_mkAction(3, game_splash_inline__P49733); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___49710); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___49730); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___49731); + s.tmp_1 = game_onUpdate__P44817_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1001; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, game_splash_inline__P49756); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___49731); + s.tmp_1 = pauseUntil__P42160_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1002; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0 = controller__setUserEventsEnabled__P44000_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1003; s.pc = 18; return s.tmp_0; + case 18: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners__P2023387.info = {"start":1484,"length":415,"line":45,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} +game_splash__P44759.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 multiplayer_registerPlayerConnectionListeners__P2023387_mk(s) { +function game_splash__P44759_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners__P2023387, depth: s.depth + 1, + parent: s, fn: game_splash__P44759, depth: s.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___49710: undefined, + s___49723: undefined, + pressed___49730: undefined, + done___49731: undefined, arg0: undefined, + arg1: undefined, } } -function multiplayer_registerPlayerConnectionListeners_inline__P2027988(s) { +function game_splash_inline__P49733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4424,31 +4220,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P2023388_mk(s); + s.currentState___49736 = undefined; + s.tmp_0 = game_BaseDialog__C44697_v0_1_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = true; - s.callLocIdx = 1345; s.pc = 1; return s.tmp_0; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C44697_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__C43983_v0_1_mk(s); + s.tmp_0.arg0 = globals.A___43907; + if (!checkSubtype(s.tmp_0.arg0, controller_Button__C43983_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___49736 = (r0); + s.tmp_0 = r0 = s.currentState___49736; + 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__P44679_mk(s); + s.tmp_0.arg0 = null; + s.callLocIdx = 999; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; + s.tmp_0 = game_popScene__P44798_mk(s); + s.callLocIdx = 1000; 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___49736); + 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() } } } -multiplayer_registerPlayerConnectionListeners_inline__P2027988.info = {"start":1656,"length":55,"line":49,"column":12,"endLine":49,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +game_splash_inline__P49733.info = {"start":31175,"length":410,"line":880,"column":22,"endLine":892,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function multiplayer_registerPlayerConnectionListeners_inline__P2027988_mk(s) { +function game_splash_inline__P49733_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P2027988, depth: s.depth + 1, + parent: s, fn: game_splash_inline__P49733, depth: s.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___49736: undefined, } } -function multiplayer_registerPlayerConnectionListeners_inline__P2027994(s) { +function game_splash_inline__P49756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4458,31 +4316,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P2023388_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = false; - s.callLocIdx = 1347; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); return leave(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners_inline__P2027994.info = {"start":1826,"length":56,"line":54,"column":12,"endLine":54,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +game_splash_inline__P49756.info = {"start":31607,"length":10,"line":894,"column":19,"endLine":894,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function multiplayer_registerPlayerConnectionListeners_inline__P2027994_mk(s) { +function game_splash_inline__P49756_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P2027994, depth: s.depth + 1, + parent: s, fn: game_splash_inline__P49756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, } } -function multiplayer_receiveConnectionChangedEvent__P2023388(s) { +function game_onUpdate__P44817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4492,67 +4343,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___2027999 = 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; } + 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; } case 1: - s.c___2027999 = (globals.player1___2020066); - { step = 5; continue; } case 2: - s.c___2027999 = (globals.player2___2020063); - { step = 5; continue; } - case 3: - s.c___2027999 = (globals.player3___2020064); - { step = 5; continue; } - case 4: - s.c___2027999 = (globals.player4___2020065); + s.tmp_2 = control_EventContext_registerFrameHandler__P42196_mk(s); + s.tmp_3 = game_eventContext__P44796_mk(s); + s.callLocIdx = 1027; s.pc = 5; return s.tmp_3; case 5: - r0 = pxsim_numops_toBoolDecr(s.c___2027999); - if (!r0) { step = 6; continue; } - s.tmp_0 = controller_Controller_connected__P2020099_mk(s); - s.tmp_0.arg0 = s.c___2027999; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1349; s.pc = 8; return s.tmp_0; - case 8: r0 = s.retval; - case 6: - case 7: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 20; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 1028; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_receiveConnectionChangedEvent__P2023388.info = {"start":1905,"length":552,"line":58,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} +game_onUpdate__P44817.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} -function multiplayer_receiveConnectionChangedEvent__P2023388_mk(s) { +function game_onUpdate__P44817_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_receiveConnectionChangedEvent__P2023388, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P44817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - c___2027999: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller_connected__P2020099(s) { +function control_EventContext_registerFrameHandler__P42196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4562,59 +4400,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.fn___50768 = undefined; + s.i___50777 = 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__C2020077_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); 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); if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P46281_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 50; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; case 1: - r0 = 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); + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C42185_VT); + s.fn___50768 = (r0); + r0 = (s.fn___50768).fields["order"] = (s.arg1); + r0 = (s.fn___50768).fields["handler"] = (s.arg2); + s.i___50777 = (0); case 3: + s.tmp_1 = r0 = s.i___50777; + r0 = s.arg0.fields["frameCallbacks"]; + 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["frameCallbacks"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.i___50777); + r0 = r0.fields["order"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 > s.arg1); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_7 = r0; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___50777, s.fn___50768); + r0 = s.fn___50768; + { step = 7; continue; } case 4: - r0 = undefined; + case 5: + r0 = (s.i___50777 + 1); + s.i___50777 = (r0); + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.fn___50768); + r0 = s.fn___50768; + case 7: return leave(s, r0) default: oops() } } } -controller_Controller_connected__P2020099.info = {"start":7796,"length":261,"line":254,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +control_EventContext_registerFrameHandler__P42196.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 controller_Controller_connected__P2020099_mk(s) { +function control_EventContext_registerFrameHandler__P42196_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P2020099, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P42196, depth: s.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, + fn___50768: undefined, + i___50777: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function controller__player1__P2020071(s) { +function control_EventContext_registerFrameCallbacks__P46281(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4624,71 +4508,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___2022646); + s.worker___50258 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; + 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); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = pxsim_Array__getAt(globals._players___2022646, 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__C2020077_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___2020058); - r0 = pxsim_Array__push(s.tmp_6, globals.up___2020059); - r0 = pxsim_Array__push(s.tmp_6, globals.right___2020060); - r0 = pxsim_Array__push(s.tmp_6, globals.down___2020061); - r0 = pxsim_Array__push(s.tmp_6, globals.A___2020056); - r0 = pxsim_Array__push(s.tmp_6, globals.B___2020057); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___2020062); - s.tmp_7 = controller_Controller_constructor__P2020081_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 151; s.pc = 5; return s.tmp_7; - case 5: - r0 = s.retval; + r0 = s.arg0.fields["frameWorker"]; + s.worker___50258 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P50264); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___50258); + r0 = pxsim.control.runInParallel(s.tmp_0); case 3: - case 4: - r0 = pxsim_Array__getAt(globals._players___2022646, 0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P2020071.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +control_EventContext_registerFrameCallbacks__P46281.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function controller__player1__P2020071_mk(s) { +function control_EventContext_registerFrameCallbacks__P46281_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P2020071, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P46281, depth: s.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, + worker___50258: undefined, + arg0: undefined, } } -function controller_Controller_constructor__P2020081(s) { +function control_EventContext_registerFrameCallbacks_inline__P50264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4698,120 +4566,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___2028055 = undefined; - s.i___2028063 = undefined; - s.i___2028081 = 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__C2020077_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; } - 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___2028055 = (r0); - s.i___2028063 = (0); - case 2: - r0 = (s.i___2028063 < 7); + s.delay___50294 = undefined; + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2020132_VT); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P50270); s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P2020138_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P42160_mk(s); s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___2028055 + s.i___2028063); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 157; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_2.arg1 = undefined; + s.callLocIdx = 44; s.pc = 5; return s.tmp_2; + case 5: 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___2028063 + 1); - s.i___2028063 = (r0); - { step = 2; continue; } + case 1: + case 2: + r0 = (s.caps[0]).fields["runningCallbacks"] = (true); + r0 = (s.caps[0]).fields["framesInSample"] = (0); + r0 = (s.caps[0]).fields["timeInSample"] = (0); + r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); case 3: - case 4: - s.i___2028081 = (0); - case 5: - s.tmp_1 = r0 = s.i___2028081; - 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); + r0 = s.caps[0].fields["frameWorker"]; + s.tmp_1 = r0; + r0 = (s.caps[1] == s.tmp_1); 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___2028081); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___2028081 + 1); - s.i___2028081 = (r0); - { step = 5; continue; } + if (!r0) { step = 4; continue; } + s.tmp_2 = control_EventContext_runCallbacks__P46280_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 45; s.pc = 6; return s.tmp_2; case 6: - s.tmp_0 = controller_addController__P2022710_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 158; s.pc = 8; return s.tmp_0; - case 8: r0 = s.retval; + s.delay___50294 = (r0); + s.tmp_0 = pause__P42206_mk(s); + s.tmp_0.arg0 = s.delay___50294; + s.callLocIdx = 46; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + { step = 3; continue; } + case 4: + r0 = (s.caps[0]).fields["runningCallbacks"] = (false); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P2020081.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"]} +control_EventContext_registerFrameCallbacks_inline__P50264.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function controller_Controller_constructor__P2020081_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P50264_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P2020081, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P50264, depth: s.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___2028055: undefined, - i___2028063: undefined, - i___2028081: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + delay___50294: undefined, } } -function controller_addController__P2022710(s) { +function control_EventContext_registerFrameCallbacks_inline__P50270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4821,48 +4642,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.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(globals._players___2022646); + r0 = s.caps[0].fields["runningCallbacks"]; 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; } - r0 = pxsim_Array__mk(); - globals._players___2022646 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals._players___2022646; - 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; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -controller_addController__P2022710.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +control_EventContext_registerFrameCallbacks_inline__P50270.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function controller_addController__P2022710_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P50270_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P2022710, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P50270, 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 control_onEvent__P2018333(s) { +function control_EventContext_runCallbacks__P46280(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4872,63 +4675,291 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___2025824 = undefined; + s.loopStart___50303 = undefined; + s.f___50316 = undefined; + s.unnamed246___U2 = undefined; + s.unnamed247___U3 = undefined; + s.now___50321 = undefined; + s.runtime___50324 = undefined; + s.realTimeInSample___50343 = undefined; + s.fps___50352 = undefined; + s.delay___50421 = 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 = control_eventContext__P2018350_mk(s); - s.callLocIdx = 39; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.ctx___2025824 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___2025824); - 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.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___50303 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.loopStart___50303 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___50303); + s.f___50316 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed246___U2 = (r0); + s.unnamed247___U3 = (0); case 1: - s.tmp_0 = control_EventContext_registerHandler__P2018347_mk(s); - s.tmp_0.arg0 = s.ctx___2025824; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.callLocIdx = 40; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0 = r0 = s.unnamed247___U3; + r0 = pxsim_Array__length(s.unnamed246___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed246___U2, s.unnamed247___U3); + s.f___50316 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___50316; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 42; s.pc = 11; 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"], 1); s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 11; return s.tmp_2;; } + else { s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } + } + case 11: r0 = s.retval; + r0 = (s.unnamed247___U3 + 1); + s.unnamed247___U3 = (r0); + { step = 1; continue; } case 2: - r0 = undefined; + s.unnamed246___U2 = (undefined); + r0 = pxsim.control.millis(); + s.now___50321 = (r0); + r0 = (s.now___50321 - s.loopStart___50303); + s.runtime___50324 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___50324); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); + r0 = s.arg0.fields["timeInSample"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1000); + 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["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 30); + case 4: + // 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["lastPerfDump"]; + s.tmp_4 = r0; + r0 = (s.now___50321 - s.tmp_4); + s.realTimeInSample___50343 = (r0); + r0 = (s.arg0).fields["lastPerfDump"] = (s.now___50321); + r0 = s.arg0.fields["framesInSample"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.tmp_1 = r0; + r0 = (s.tmp_0 / s.tmp_1); + s.fps___50352 = (r0); + r0 = pxsim.Math_.round(s.fps___50352); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 12: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat("fps:", s.tmp_0); + globals.control_EventContext_lastStats___42190 = (r0); + r0 = (s.fps___50352 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___42190) && (globals.control_EventContext_lastStats___42190).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(globals.control_EventContext_lastStats___42190); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___42190) + ""; } + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___50352 * 10); + s.tmp_7 = r0; + r0 = pxsim.Math_.round(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 % 10); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 14: + 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); + 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); + globals.control_EventContext_lastStats___42190 = (r0); + case 5: + case 6: + r0 = pxsim.control.profilingEnabled(); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_9 = r0; + r0 = (s.fps___50352 * 100); + s.tmp_12 = r0; + r0 = (s.tmp_12 | 0); + s.tmp_11 = r0; + if ((s.tmp_11) && (s.tmp_11).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_11); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_11) + ""; } + case 16: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_8, "/100 fps - "); + s.tmp_7 = r0; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_14 = r0; + if ((s.tmp_14) && (s.tmp_14).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.tmp_14); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_14) + ""; } + case 17: + r0 = s.retval; + s.tmp_13 = r0; + r0 = pxsim_String__concat(s.tmp_7, s.tmp_13); + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_6, " frames ("); + s.tmp_5 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_16 = r0; + if ((s.tmp_16) && (s.tmp_16).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_16); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_16) + ""; } + case 18: + r0 = s.retval; + s.tmp_15 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_15); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "ms/"); + s.tmp_3 = r0; + if ((s.realTimeInSample___50343) && (s.realTimeInSample___50343).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.realTimeInSample___50343); + checkResumeConsumed(); + return; + } else { s.retval = (s.realTimeInSample___50343) + ""; } + case 19: + r0 = s.retval; + s.tmp_17 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_17); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "ms)"); + s.tmp_1 = r0; + r0 = pxsim.control.dmesg(s.tmp_1); + r0 = pxsim.control.gc(); + r0 = pxsim_pxtcore.dumpPerfCounters(); + case 7: + case 8: + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); + case 9: + case 10: + s.tmp_0 = Math_max__P41923_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___50324); + s.tmp_0.arg1 = r0; + s.callLocIdx = 43; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.delay___50421 = (r0); + r0 = s.delay___50421; return leave(s, r0) default: oops() } } } -control_onEvent__P2018333.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_EventContext_runCallbacks__P46280.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_onEvent__P2018333_mk(s) { +function control_EventContext_runCallbacks__P46280_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P2018333, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P46280, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___2025824: 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, + loopStart___50303: undefined, + f___50316: undefined, + unnamed246___U2: undefined, + unnamed247___U3: undefined, + now___50321: undefined, + runtime___50324: undefined, + realTimeInSample___50343: undefined, + fps___50352: undefined, + delay___50421: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function control_eventContext__P2018350(s) { +function Math_max__P41923(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4938,42 +4969,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___2022430); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 >= s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___2022430; - r0 = pxsim_Array__length(globals.eventContexts___2022430); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } + r0 = s.arg0; + { step = 3; continue; } case 1: - r0 = undefined; case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -control_eventContext__P2018350.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +Math_max__P41923.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 control_eventContext__P2018350_mk(s) { +function Math_max__P41923_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P2018350, depth: s.depth + 1, + parent: s, fn: Math_max__P41923, depth: s.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 control_EventContext_registerHandler__P2018347(s) { +function game_popScene__P44798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4983,113 +5013,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___2025847 = undefined; - s.unnamed27052___U1 = undefined; - s.unnamed27053___U2 = undefined; - s.hn___2025870 = 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, control_EventContext__C2018337_VT)) failedCast(r0); - s.h___2025847 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed27052___U1 = (r0); - s.unnamed27053___U2 = (0); + s.oldScene___49996 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 1019; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.oldScene___49996 = (r0); + s.tmp_0 = r0 = globals._sceneStack___46784; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.unnamed27053___U2; - r0 = pxsim_Array__length(s.unnamed27052___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed27052___U1, s.unnamed27053___U2); - s.h___2025847 = (r0); - r0 = s.h___2025847.fields["src"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == s.arg1); - 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_Array__length(globals._sceneStack___46784); case 2: - r0 = s.h___2025847.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); - case 3: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array_.pop(globals._sceneStack___46784); + globals._scene___46783 = (r0); + s.tmp_0 = control_popEventContext__P42203_mk(s); + s.callLocIdx = 1020; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(globals._scene___46783); if (!r0) { step = 4; continue; } - r0 = (s.h___2025847).fields["flags"] = (s.arg4); - r0 = (s.h___2025847).fields["handler"] = (s.arg3); - { step = 7; continue; } + s.tmp_0 = control_popEventContext__P42203_mk(s); + s.callLocIdx = 1021; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___46783 = (undefined); case 4: case 5: - r0 = (s.unnamed27053___U2 + 1); - s.unnamed27053___U2 = (r0); - { step = 1; continue; } case 6: - s.unnamed27052___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C2022422_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P2022425_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.arg3; - s.tmp_1.arg4 = s.arg4; - s.callLocIdx = 51; s.pc = 8; return s.tmp_1; - case 8: + r0 = pxsim_numops_toBoolDecr(globals._scene___46783); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P44977_mk(s); + s.callLocIdx = 1022; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - s.hn___2025870 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___46786); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P50017); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___2025870); - s.tmp_0 = control_EventHandler_register__P2022423_mk(s); - s.tmp_0.arg0 = s.hn___2025870; - s.callLocIdx = 52; s.pc = 9; return s.tmp_0; - case 9: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___49996); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___46786; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1024; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; - case 7: + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P2018347.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"]} +game_popScene__P44798.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function control_EventContext_registerHandler__P2018347_mk(s) { +function game_popScene__P44798_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P2018347, depth: s.depth + 1, + parent: s, fn: game_popScene__P44798, depth: s.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, - h___2025847: undefined, - unnamed27052___U1: undefined, - unnamed27053___U2: undefined, - hn___2025870: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, + oldScene___49996: undefined, } } -function control_EventHandler_constructor__P2022425(s) { +function game_popScene_inline__P50017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5101,41 +5102,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C2022422_VT)) failedCast(r0); - r0 = (s.arg0).fields["src"] = (s.arg1); - r0 = (s.arg0).fields["value"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); - r0 = (s.arg0).fields["flags"] = (s.arg4); + 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 = 1023; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P2022425.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"]} +game_popScene_inline__P50017.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function control_EventHandler_constructor__P2022425_mk(s) { +function game_popScene_inline__P50017_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P2022425, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P50017, 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 multiplayer_initServer__P2021331(s) { +function particles_enableAll__P44977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5145,22 +5140,23 @@ 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); + s.sources___50038 = undefined; + s.tmp_0 = particles_particleSources__P47134_mk(s); + s.callLocIdx = 1261; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___50038 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___50038); if (!r0) { step = 1; continue; } - s.tmp_2 = control_EventContext_registerFrameHandler__P2018345_mk(s); - s.tmp_3 = game_eventContext__P2020945_mk(s); - s.callLocIdx = 1342; s.pc = 4; return s.tmp_3; + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); + s.tmp_0.arg0 = s.sources___50038; + s.tmp_0.arg1 = particles_enableAll_inline__P50044; + s.callLocIdx = 1263; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 210; - s.tmp_2.arg2 = multiplayer_initServer_inline__P2028153; - s.callLocIdx = 1343; s.pc = 3; return s.tmp_2; - case 3: + s.tmp_0 = particles_pruneParticles__P47130_mk(s); + s.callLocIdx = 1264; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; case 1: case 2: @@ -5168,24 +5164,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -multiplayer_initServer__P2021331.info = {"start":1011,"length":307,"line":29,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} +particles_enableAll__P44977.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function multiplayer_initServer__P2021331_mk(s) { +function particles_enableAll__P44977_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer__P2021331, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P44977, depth: s.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___50038: undefined, } } -function multiplayer_initServer_inline__P2028153(s) { +function particles_enableAll_inline__P50044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5195,35 +5189,36 @@ 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___2019975); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = particles_ParticleSource_enabled__P44958_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1262; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; + r0 = true; return leave(s, r0) default: oops() } } } -multiplayer_initServer_inline__P2028153.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +particles_enableAll_inline__P50044.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function multiplayer_initServer_inline__P2028153_mk(s) { +function particles_enableAll_inline__P50044_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer_inline__P2028153, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P50044, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function game_consoleOverlay_draw__P2021070(s) { +function particles_particleSources__P47134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5233,216 +5228,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___2028206 = undefined; - s.top___2028211 = undefined; - s.i___2028217 = undefined; - s.t___2028230 = undefined; - s.tOff___2028237 = undefined; - s.tab___2028239 = undefined; - s.unnamed27082___U6 = undefined; - s.unnamed27083___U7 = undefined; - s.padding___2028241 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); - 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.sources___50219 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 1265; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___2023184); - 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___2023238; - 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 = 1196; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___2028206 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___2020911); - if (!r0) { step = 5; continue; } - r0 = s.height___2028206; - { 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___2028211 = (r0); - s.i___2028217 = (0); - case 7: - s.tmp_1 = r0 = s.i___2028217; - r0 = pxsim_Array__length(globals.consoleStrings___2023230); - 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 = pxsim_Array__getAt(globals.consoleStrings___2023230, s.i___2028217); - 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__P2018064_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___2023230, s.i___2028217); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1197; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___2028230 = (r0); - s.tOff___2028237 = (0); - s.tab___2028239 = (undefined); - s.unnamed27082___U6 = (s.t___2028230); - s.unnamed27083___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed27083___U7; - r0 = pxsim_Array__length(s.unnamed27082___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed27082___U6, s.unnamed27083___U7); - s.tab___2028239 = (r0); - s.tmp_2 = r0 = globals.tabSize___2023232; - s.tmp_5 = r0 = s.tOff___2028237; - r0 = pxsim_String_.length(s.tab___2028239); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___2023232); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___2028241 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; - s.tmp_0.arg1 = s.tab___2028239; - s.tmp_2 = r0 = s.tOff___2028237; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___2023238; - 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 = 1198; 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___2028211; - r0 = (s.i___2028217 * s.height___2028206); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___2023229; - s.tmp_0.arg5 = globals.consoleFont___2023238; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1199; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___2028237; - r0 = pxsim_String_.length(s.tab___2028239); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___2028241); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___2028237 = (r0); - r0 = (s.unnamed27083___U7 + 1); - s.unnamed27083___U7 = (r0); - { step = 8; continue; } - case 9: - s.unnamed27082___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; - r0 = pxsim_Array__getAt(globals.consoleStrings___2023230, s.i___2028217); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___2028211; - r0 = (s.i___2028217 * s.height___2028206); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___2023229; - s.tmp_0.arg5 = globals.consoleFont___2023238; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1200; s.pc = 18; return s.tmp_0; - case 18: r0 = s.retval; - case 11: - r0 = (s.i___2028217 + 1); - s.i___2028217 = (r0); - { step = 7; continue; } - case 12: - case 13: - r0 = undefined; + r0 = r0.fields["particleSources"]; + s.sources___50219 = (r0); + r0 = s.sources___50219; return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P2021070.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +particles_particleSources__P47134.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function game_consoleOverlay_draw__P2021070_mk(s) { +function particles_particleSources__P47134_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P2021070, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P47134, depth: s.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, - height___2028206: undefined, - top___2028211: undefined, - i___2028217: undefined, - t___2028230: undefined, - tOff___2028237: undefined, - tab___2028239: undefined, - unnamed27082___U6: undefined, - unnamed27083___U7: undefined, - padding___2028241: undefined, + sources___50219: undefined, } } -function scene_systemMenu_isVisible__P2021051(s) { +function particles_pruneParticles__P47130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5452,33 +5264,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___2023184); - 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_isVisible__P2021051.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} - -function scene_systemMenu_isVisible__P2021051_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_isVisible__P2021051, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + s.sources___50049 = undefined; + s.tmp_0 = particles_particleSources__P47134_mk(s); + s.callLocIdx = 1248; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___50049 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___50049); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1 = helpers_arraySlice__P41908_mk(s); + s.tmp_1.arg0 = s.sources___50049; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___50049); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1249; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P50058; + s.callLocIdx = 1251; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_pruneParticles__P47130.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} + +function particles_pruneParticles__P47130_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_pruneParticles__P47130, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + sources___50049: undefined, } } -function helpers_imagePrint__P2019933(s) { +function particles_pruneParticles_inline__P50058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5488,506 +5318,651 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___2028313 = undefined; - s.cp___2028315 = undefined; - s.mult___2028316 = undefined; - s.dataW___2028321 = undefined; - s.dataH___2028327 = undefined; - s.byteHeight___2028333 = undefined; - s.charSize___2028339 = undefined; - s.dataSize___2028343 = undefined; - s.fontdata___2028347 = undefined; - s.lastchar___2028350 = undefined; - s.imgBuf___2028357 = undefined; - s.xOffset___2028381 = undefined; - s.yOffset___2028382 = undefined; - s.ch___2028397 = undefined; - s.l___2028416 = undefined; - s.r___2028417 = undefined; - s.off___2028419 = undefined; - s.guess___2028420 = undefined; - s.m___2028439 = undefined; - s.v___2028448 = undefined; - s.i___2028504 = undefined; - s.j___2028509 = undefined; - s.mask___2028510 = undefined; - s.c___2028511 = undefined; - s.n___2028528 = 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.arg2 | 0); - s.arg2 = (r0); - r0 = (s.arg3 | 0); - s.arg3 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg5); - 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__P2019920_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 97; s.pc = 39; return s.tmp_2; - case 39: + s.tmp_0 = particles_ParticleSource__prune__P44953_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1250; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.arg5 = (r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_pruneParticles_inline__P50058.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} + +function particles_pruneParticles_inline__P50058_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_pruneParticles_inline__P50058, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function particles_ParticleSource__prune__P44953(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___50088 = undefined; + s.sources___50096 = undefined; + s.current___50110 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C44945_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: - r0 = pxsim_numops_toBoolDecr(s.arg4); + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; 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.arg4 = (1); + 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 = 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: - s.x0___2028313 = (s.arg2); - s.cp___2028315 = (0); - s.tmp_1 = if_multiplier_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 98; s.pc = 40; return s.tmp_1; } - } - case 40: - r0 = s.retval; + r0 = s.arg0.fields["pFlags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = if_multiplier_1_mk(s); - s.tmp_2.arg0 = s.arg5; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 99; s.pc = 41; return s.tmp_2; } - } - case 41: - r0 = s.retval; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; { step = 6; continue; } case 5: - r0 = 1; + r0 = s.arg0.fields["head"]; + 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_3 = r0; - s.mult___2028316 = (s.tmp_3); - s.tmp_1 = if_charWidth_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 100; s.pc = 42; return s.tmp_1; } - } - case 42: + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 13; continue; } + s.tmp_5 = game_currentScene__P44793_mk(s); + s.callLocIdx = 1223; s.pc = 21; return s.tmp_5; + case 21: r0 = s.retval; + s.scene___50088 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___50088); + if (!r0) { step = 7; continue; } + r0 = s.scene___50088.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___2028316); - s.dataW___2028321 = (r0); - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.arg5; - 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 = 101; s.pc = 43; return s.tmp_1; } - } - case 43: + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + case 7: + case 8: + s.tmp_0 = particles_particleSources__P47134_mk(s); + s.callLocIdx = 1224; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; + s.sources___50096 = (r0); + s.tmp_0 = r0 = s.sources___50096; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = pxsim_Array__length(s.sources___50096); + 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___50096, s.arg0); + case 11: + case 12: + r0 = s.arg0.fields["anchor"]; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___2028316); - s.dataH___2028327 = (r0); - r0 = (s.dataH___2028327 + 7); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___2028333 = (r0); - r0 = (s.byteHeight___2028333 * s.dataW___2028321); - s.charSize___2028339 = (r0); - r0 = (2 + s.charSize___2028339); - s.dataSize___2028343 = (r0); - s.tmp_0 = if_data_1_mk(s); - s.tmp_0.arg0 = s.arg5; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 102; s.pc = 44; return s.tmp_0; } - } - case 44: - r0 = s.retval; - s.fontdata___2028347 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___2028347); + r0 = (s.tmp_0 == undefined); + case 13: + case 14: + r0 = s.arg0.fields["head"]; + s.current___50110 = (r0); + case 15: + s.tmp_0 = r0 = s.current___50110; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___50110.fields["next"]; + case 17: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___2028343); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = s.current___50110.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___50110.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___50110).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___50110.fields["next"]; + s.current___50110 = (r0); + case 19: + { step = 15; continue; } + case 20: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_ParticleSource__prune__P44953.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} + +function particles_ParticleSource__prune__P44953_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleSource__prune__P44953, depth: s.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___50088: undefined, + sources___50096: undefined, + current___50110: undefined, + arg0: undefined, +} } + + + + + +function helpers_arraySlice__P41908(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.res___50133 = undefined; + s.len___50135 = undefined; + s.i___50169 = 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___50133 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___50135 = (r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___2028350 = (r0); - r0 = (s.mult___2028316 == 1); + 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 = 7; continue; } - r0 = (8 + s.charSize___2028339); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_max__P41923_mk(s); + r0 = (s.len___50135 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 8; 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___50135); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___50133; + { step = 15; continue; } + case 5: + case 6: + r0 = (s.arg2 === undefined); s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___2028357 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___2028357, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___2028357, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___2028357, 2, s.dataW___2028321); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___2028357, 4, s.dataH___2028327); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.arg2 = (s.len___50135); + { 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___50135 + s.arg2); + s.arg2 = (r0); case 8: case 9: - s.tmp_1 = r0 = s.cp___2028315; - r0 = pxsim_String_.length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + case 10: + r0 = (s.arg2 > s.len___50135); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - s.xOffset___2028381 = (0); - s.yOffset___2028382 = (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___2028315; - r0 = pxsim_Array__length(s.arg6); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___50135); 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 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___2028315); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 103; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___2028381 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___2028315); - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 104; s.pc = 46; return s.tmp_0; } - } - case 46: - r0 = s.retval; - s.yOffset___2028382 = (r0); case 12: + s.i___50169 = (s.arg1); case 13: - s.tmp_0 = r0 = s.cp___2028315; - r0 = (s.tmp_0 + 1); - s.cp___2028315 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___2028397 = (r0); - r0 = (s.ch___2028397 == 10); + r0 = (s.i___50169 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.arg3; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = s.arg5; - 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 = 105; s.pc = 47; return s.tmp_4; } - } - case 47: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); + s.tmp_1 = r0 = s.res___50133; + r0 = pxsim_Array__getAt(s.arg0, s.i___50169); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___2028313); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___50169 + 1); + s.i___50169 = (r0); + { step = 13; continue; } case 14: + r0 = s.res___50133; case 15: - r0 = (s.ch___2028397 < 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___2028416 = (0); - s.r___2028417 = (s.lastchar___2028350); - s.off___2028419 = (0); - r0 = (s.ch___2028397 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___2028343); - s.guess___2028420 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___2028347, 4, s.guess___2028420); - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___2028397); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___2028419 = (s.guess___2028420); - { step = 25; continue; } - case 18: - case 19: - r0 = (s.l___2028416 <= s.r___2028417); + return leave(s, r0) + default: oops() +} } } +helpers_arraySlice__P41908.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 helpers_arraySlice__P41908_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arraySlice__P41908, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + res___50133: undefined, + len___50135: undefined, + i___50169: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function particles_ParticleSource_enabled__P44958(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, particles_ParticleSource__C44945_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P44957_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1227; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + 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; } - s.tmp_1 = r0 = s.l___2028416; - r0 = (s.r___2028417 - s.l___2028416); + 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() +} } } +particles_ParticleSource_enabled__P44958.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 particles_ParticleSource_enabled__P44958_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleSource_enabled__P44958, depth: s.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 particles_ParticleSource_enabled__P44957(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, particles_ParticleSource__C44945_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___2028439 = (r0); - s.tmp_0 = r0 = s.fontdata___2028347; - r0 = (s.m___2028439 * s.dataSize___2028343); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___2028448 = (r0); - r0 = (s.v___2028448 == s.ch___2028397); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___2028439 * s.dataSize___2028343); - s.off___2028419 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___2028448 < s.ch___2028397); + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +particles_ParticleSource_enabled__P44957.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__P44957.isGetter = true; + +function particles_ParticleSource_enabled__P44957_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleSource_enabled__P44957, depth: s.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 control_popEventContext__P42203(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___50226 = undefined; + s.context___50234 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___46283); + 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 = 22; continue; } - r0 = (s.m___2028439 + 1); - s.l___2028416 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___2028439 - 1); - s.r___2028417 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___2028316 == 1); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + r0 = pxsim_Array_.pop(globals.eventContexts___46283); + s.ctx___50226 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___50226); + 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 = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___2028357; - s.tmp_3 = r0 = s.fontdata___2028347; - r0 = (s.off___2028419 + 2); - s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___2028339); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + s.tmp_2 = control_EventContext_unregister__P42195_mk(s); + s.tmp_2.arg0 = s.ctx___50226; + s.callLocIdx = 56; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___46283; + r0 = pxsim_Array__length(globals.eventContexts___46283); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P2019898_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___2028357; - r0 = (s.arg2 + s.xOffset___2028381); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___2028382); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 106; s.pc = 48; return s.tmp_0; - case 48: + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + s.context___50234 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___50234); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P42194_mk(s); + s.tmp_0.arg0 = s.context___50234; + s.callLocIdx = 57; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.tmp_0 = r0 = s.arg2; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg5; - 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 = 107; s.pc = 49; return s.tmp_2; } + { step = 6; continue; } + case 5: + globals.eventContexts___46283 = (undefined); + case 6: + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_popEventContext__P42203.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} + +function control_popEventContext__P42203_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_popEventContext__P42203, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ctx___50226: undefined, + context___50234: undefined, +} } + + + + + +function control_EventContext_unregister__P42195(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.h___50429 = undefined; + s.unnamed250___U1 = undefined; + s.unnamed251___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 49: + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + s.h___50429 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed250___U1 = (r0); + s.unnamed251___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed251___U2; + r0 = pxsim_Array__length(s.unnamed250___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed250___U1, s.unnamed251___U2); + s.h___50429 = (r0); + s.tmp_2 = control_EventHandler_unregister__P46277_mk(s); + s.tmp_2.arg0 = s.h___50429; + s.callLocIdx = 49; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; + r0 = (s.unnamed251___U2 + 1); + s.unnamed251___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed250___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 + s.tmp_1); - s.arg2 = (r0); - { step = 37; continue; } - case 26: - r0 = (s.off___2028419 + 2); - s.off___2028419 = (r0); - s.i___2028504 = (0); - case 27: - r0 = (s.i___2028504 < s.dataW___2028321); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___2028509 = (0); - s.mask___2028510 = (1); - s.tmp_0 = r0 = s.off___2028419; - r0 = (s.tmp_0 + 1); - s.off___2028419 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___2028347, s.tmp_0); - s.c___2028511 = (r0); - case 28: - r0 = (s.j___2028509 < s.dataH___2028327); + r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventContext_unregister__P42195.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} + +function control_EventContext_unregister__P42195_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_unregister__P42195, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___50429: undefined, + unnamed250___U1: undefined, + unnamed251___U2: undefined, + arg0: undefined, +} } + + + + + +function control_EventHandler_unregister__P46277(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, control_EventHandler__C46275_VT)) failedCast(r0); + r0 = s.arg0.fields["src"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___2028510 == 256); + r0 = s.arg0.fields["value"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___2028419; - r0 = (s.tmp_2 + 1); - s.off___2028419 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___2028347, s.tmp_2); - s.c___2028511 = (r0); - s.mask___2028510 = (1); - case 29: - case 30: - s.n___2028528 = (0); - case 31: - r0 = (s.c___2028511 & s.mask___2028510); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___2028528 + 1); - s.n___2028528 = (r0); - r0 = (s.mask___2028510 << 1); - s.mask___2028510 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___2028528); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P2019899_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___2028381 * s.mult___2028316); + r0 = s.arg0.fields["flags"]; 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___2028509 + s.yOffset___2028382); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___2028316); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___2028316; - r0 = (s.mult___2028316 * s.n___2028528); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 108; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - r0 = (s.j___2028509 + s.n___2028528); - s.j___2028509 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___2028510 << 1); - s.mask___2028510 = (r0); - r0 = (s.j___2028509 + 1); - s.j___2028509 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___2028316); - s.arg2 = (r0); - r0 = (s.i___2028504 + 1); - s.i___2028504 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P46279, s.tmp_2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventHandler_unregister__P46277.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} + +function control_EventHandler_unregister__P46277_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventHandler_unregister__P46277, 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 control_doNothing__P46279(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 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrint__P2019933.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"]} +control_doNothing__P46279.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function helpers_imagePrint__P2019933_mk(s) { +function control_doNothing__P46279_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P2019933, depth: s.depth + 1, + parent: s, fn: control_doNothing__P46279, depth: s.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, - x0___2028313: undefined, - cp___2028315: undefined, - mult___2028316: undefined, - dataW___2028321: undefined, - dataH___2028327: undefined, - byteHeight___2028333: undefined, - charSize___2028339: undefined, - dataSize___2028343: undefined, - fontdata___2028347: undefined, - lastchar___2028350: undefined, - imgBuf___2028357: undefined, - xOffset___2028381: undefined, - yOffset___2028382: undefined, - ch___2028397: undefined, - l___2028416: undefined, - r___2028417: undefined, - off___2028419: undefined, - guess___2028420: undefined, - m___2028439: undefined, - v___2028448: undefined, - i___2028504: undefined, - j___2028509: undefined, - mask___2028510: undefined, - c___2028511: undefined, - n___2028528: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function image_getFontForText__P2019920(s) { +function control_EventContext_register__P42194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5997,52 +5972,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2027550 = undefined; + s.h___50247 = undefined; + s.unnamed248___U1 = undefined; + s.unnamed249___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___2027550 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + s.h___50247 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed248___U1 = (r0); + s.unnamed249___U2 = (0); case 1: - s.tmp_1 = r0 = s.i___2027550; - 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___2027550); - s.tmp_4 = r0; - r0 = (s.tmp_4 > 8192); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_0 = r0 = s.unnamed249___U2; + r0 = pxsim_Array__length(s.unnamed248___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = globals.font12___2019919; - { step = 5; continue; } - case 2: + r0 = pxsim_Array__getAt(s.unnamed248___U1, s.unnamed249___U2); + s.h___50247 = (r0); + s.tmp_2 = control_EventHandler_register__P46276_mk(s); + s.tmp_2.arg0 = s.h___50247; + s.callLocIdx = 47; s.pc = 3; return s.tmp_2; case 3: - r0 = (s.i___2027550 + 1); - s.i___2027550 = (r0); + r0 = s.retval; + r0 = (s.unnamed249___U2 + 1); + s.unnamed249___U2 = (r0); { step = 1; continue; } + case 2: + s.unnamed248___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P46281_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 48; s.pc = 4; return s.tmp_0; case 4: - r0 = globals.font8___2019918; - case 5: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -image_getFontForText__P2019920.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +control_EventContext_register__P42194.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function image_getFontForText__P2019920_mk(s) { +function control_EventContext_register__P42194_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P2019920, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P42194, depth: s.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___2027550: undefined, + h___50247: undefined, + unnamed248___U1: undefined, + unnamed249___U2: undefined, arg0: undefined, } } @@ -6050,7 +6032,7 @@ function image_getFontForText__P2019920_mk(s) { -function helpers_imageFillRect__P2019899(s) { +function control_EventHandler_register__P46276(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6062,58 +6044,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; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P2022567_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 79; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C46275_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P49885); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P2022567_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 80; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; + r0 = s.arg0.fields["value"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["flags"]; s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P2019899.info = {"start":5454,"length":159,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +control_EventHandler_register__P46276.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function helpers_imageFillRect__P2019899_mk(s) { +function control_EventHandler_register__P46276_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P2019899, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P46276, depth: s.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 helpers_pack__P2022567(s) { +function control_EventHandler_register_inline__P49885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6123,59 +6090,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.caps[0].fields["handler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = if_handler_1_mk(s); + s.tmp_1.arg0 = s.caps[0]; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); + s.callLocIdx = 41; s.pc = 3; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 41; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } } - s.tmp_2 = Math_clamp__P2018069_mk(s); - s.tmp_2.arg0 = -30000; - s.tmp_2.arg1 = 30000; - r0 = (s.arg0 | 0); - s.tmp_2.arg2 = r0; - s.callLocIdx = 76; s.pc = 1; return s.tmp_2; - case 1: + case 3: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 65535); - s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P2018069_mk(s); - s.tmp_5.arg0 = -30000; - s.tmp_5.arg1 = 30000; - r0 = (s.arg1 | 0); - s.tmp_5.arg2 = r0; - s.callLocIdx = 77; s.pc = 2; return s.tmp_5; + case 1: case 2: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 << 16); - s.tmp_3 = r0; - r0 = (s.tmp_0 | s.tmp_3); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_pack__P2022567.info = {"start":4278,"length":145,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +control_EventHandler_register_inline__P49885.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function helpers_pack__P2022567_mk(s) { +function control_EventHandler_register_inline__P49885_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P2022567, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P49885, depth: s.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 Math_clamp__P2018069(s) { +function helpers_arrayForEach__P41902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6185,46 +6138,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___50023 = undefined; + s.i___50026 = 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 = Math_min__P2018073_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P2018072_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg2; - s.callLocIdx = 14; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 15; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__length(s.arg0); + s.len___50023 = (r0); + s.i___50026 = (0); case 1: + r0 = (s.i___50026 < s.len___50023); + 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___50026); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___50026; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 5; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; + r0 = (s.i___50026 + 1); + s.i___50026 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_clamp__P2018069.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"]} +helpers_arrayForEach__P41902.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 Math_clamp__P2018069_mk(s) { +function helpers_arrayForEach__P41902_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P2018069, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P41902, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + len___50023: undefined, + i___50026: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Math_min__P2018073(s) { +function game_pushScene__P44797(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6234,41 +6199,70 @@ 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 <= s.arg1); + s.oldScene___51824 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 1013; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.oldScene___51824 = (r0); + s.tmp_0 = particles_clearAll__P44975_mk(s); + s.callLocIdx = 1014; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_disableAll__P44976_mk(s); + s.callLocIdx = 1015; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___46784); + 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; - { step = 3; continue; } + r0 = pxsim_Array__mk(); + globals._sceneStack___46784 = (r0); case 1: case 2: - r0 = s.arg1; + r0 = pxsim_Array__push(globals._sceneStack___46784, globals._scene___46783); + s.tmp_0 = game_init__P46791_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1016; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___46785); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P51841); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___51824); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___46785; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1018; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_min__P2018073.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"]} +game_pushScene__P44797.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function Math_min__P2018073_mk(s) { +function game_pushScene__P44797_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P2018073, depth: s.depth + 1, + parent: s, fn: game_pushScene__P44797, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, + oldScene___51824: undefined, } } -function helpers_imageDrawIcon__P2019898(s) { +function game_pushScene_inline__P51841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6280,49 +6274,109 @@ 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; } - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P2022567_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 78; s.pc = 1; return s.tmp_3; + 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 = 1017; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_pushScene_inline__P51841.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__P51841_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_pushScene_inline__P51841, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function game_init__P46791(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._scene___46783); + 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_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C44637_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P44660_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P42202_mk(s); + s.callLocIdx = 1010; s.pc = 6; return s.tmp_5; + case 6: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___46783; + s.callLocIdx = 1011; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + globals._scene___46783 = (s.tmp_3); + case 3: + case 4: + s.tmp_0 = scene_Scene_init__P44661_mk(s); + s.tmp_0.arg0 = globals._scene___46783; + s.callLocIdx = 1012; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P2019898.info = {"start":5304,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +game_init__P46791.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function helpers_imageDrawIcon__P2019898_mk(s) { +function game_init__P46791_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P2019898, depth: s.depth + 1, + parent: s, fn: game_init__P46791, depth: s.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, - arg3: undefined, - arg4: undefined, } } -function helpers_stringSplit__P2018064(s) { +function scene_Scene_init__P44661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6332,186 +6386,188 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___2028591 = undefined; - s.lim___2028593 = undefined; - s.s___2028609 = undefined; - s.p___2028612 = undefined; - s.R___2028613 = undefined; - s.z___2028627 = undefined; - s.T___2028640 = undefined; - s.q___2028641 = undefined; - s.e___2028647 = 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.A___2028591 = (r0); - s.lim___2028593 = (0); - r0 = (s.arg2 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C44637_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (536870912 - 1); - s.lim___2028593 = (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___2028593 = (0); { step = 3; continue; } + case 1: case 2: - r0 = (s.arg2 | 0); - s.lim___2028593 = (r0); - case 3: + s.tmp_1 = power_poke__P43723_mk(s); + s.callLocIdx = 907; s.pc = 4; return s.tmp_1; case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___2028609 = (r0); - s.p___2028612 = (0); - s.R___2028613 = (s.arg1); - r0 = (s.lim___2028593 == 0); + 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__P51870); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___2028591; - { step = 21; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_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 = 910; s.pc = 5; return s.tmp_1; case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P42196_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P43927; + s.callLocIdx = 911; s.pc = 6; return s.tmp_0; case 6: - r0 = (s.arg1 === undefined); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___2028591, 0, s.arg0); - r0 = s.A___2028591; - { step = 21; continue; } + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P51894); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_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 = 913; s.pc = 7; return s.tmp_1; case 7: - case 8: - r0 = (s.s___2028609 == 0); + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P51907); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P2022353_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___2028613; - s.callLocIdx = 10; s.pc = 22; return s.tmp_1; - case 22: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_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 = 917; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - s.z___2028627 = (r0); - r0 = (s.z___2028627 > -1); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P51928); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___2028591; - { step = 21; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_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 = 919; s.pc = 9; return s.tmp_1; case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P51936); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_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 = 923; s.pc = 10; return s.tmp_1; case 10: - r0 = pxsim_Array_.setAt(s.A___2028591, 0, s.arg0); - r0 = s.A___2028591; - { step = 21; continue; } + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P42196_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P43787; + s.callLocIdx = 924; s.pc = 11; return s.tmp_0; case 11: + r0 = s.retval; + s.tmp_0 = multiplayer_initServer__P45182_mk(s); + s.callLocIdx = 925; s.pc = 12; return s.tmp_0; case 12: - s.q___2028641 = (s.p___2028612); + r0 = s.retval; + s.tmp_0 = multiplayer_initPlayerConnectionListeners__P45183_mk(s); + s.callLocIdx = 926; s.pc = 13; return s.tmp_0; case 13: - r0 = (s.q___2028641 != s.s___2028609); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P2022353_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___2028641; - s.tmp_1.arg2 = s.R___2028613; - s.callLocIdx = 11; s.pc = 23; return s.tmp_1; - case 23: r0 = s.retval; - s.e___2028647 = (r0); - r0 = (s.e___2028647 < 0); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P51967); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___2028641 + 1); - s.q___2028641 = (r0); - { step = 19; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___44659; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 928; s.pc = 14; return s.tmp_1; case 14: - r0 = (s.e___2028647 == s.p___2028612); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___2028641 + 1); - s.q___2028641 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P2018061_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___2028612; - s.tmp_0.arg2 = s.q___2028641; - s.callLocIdx = 12; s.pc = 24; return s.tmp_0; - case 24: r0 = s.retval; - s.T___2028640 = (r0); - r0 = pxsim_Array__push(s.A___2028591, s.T___2028640); - r0 = pxsim_Array__length(s.A___2028591); + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Scene_init__P44661.info = {"start":4432,"length":2572,"line":127,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} + +function scene_Scene_init__P44661_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_init__P44661, 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__P51870(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_1 == s.lim___2028593); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___2028591; - { step = 21; continue; } - case 16: - case 17: - s.p___2028612 = (s.e___2028647); - s.q___2028641 = (s.p___2028612); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P2018061_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___2028612; - s.tmp_0.arg2 = s.q___2028641; - s.callLocIdx = 13; s.pc = 25; return s.tmp_0; - case 25: + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P43959_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 = 909; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.T___2028640 = (r0); - r0 = pxsim_Array__push(s.A___2028591, s.T___2028640); - r0 = s.A___2028591; - case 21: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_stringSplit__P2018064.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"]} +scene_Scene_init_inline__P51870.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function helpers_stringSplit__P2018064_mk(s) { +function scene_Scene_init_inline__P51870_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P2018064, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P51870, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___2028591: undefined, - lim___2028593: undefined, - s___2028609: undefined, - p___2028612: undefined, - R___2028613: undefined, - z___2028627: undefined, - T___2028640: undefined, - q___2028641: undefined, - e___2028647: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function helpers_splitMatch__P2022353(s) { +function scene_Scene_init_inline__P51894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6521,85 +6577,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___2028727 = undefined; - s.s___2028730 = undefined; - s.i___2028740 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_String_.length(s.arg2); - s.r___2028727 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___2028730 = (r0); - r0 = (s.arg1 + s.r___2028727); + s.tmp_0 = PhysicsEngine__C44305_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 > s.s___2028730); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = -1; - { step = 7; continue; } + 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__C44305_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: - case 2: - s.i___2028740 = (0); - case 3: - r0 = (s.i___2028740 < s.r___2028727); + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Scene_init_inline__P51894.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__P51894_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_init_inline__P51894, 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__P51907(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___51908 = undefined; + s.s___51916 = undefined; + s.unnamed278___U2 = undefined; + s.unnamed279___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; 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___2028740); - 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___2028740); - s.tmp_5 = r0; - r0 = (s.tmp_2 != s.tmp_5); + r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = -1; - { step = 7; continue; } + r0 = (s.tmp_1 / 1000); + s.dt___51908 = (r0); + s.tmp_0 = scene_Camera_update__P44592_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 915; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___51916 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed278___U2 = (r0); + s.unnamed279___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed279___U3; + r0 = pxsim_Array__length(s.unnamed278___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed278___U2, s.unnamed279___U3); + s.s___51916 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___51916; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___51908; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 916; 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 = 916; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 916; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 916; s.pc = 4; return s.tmp_2; } + } case 4: - case 5: - r0 = (s.i___2028740 + 1); - s.i___2028740 = (r0); - { step = 3; continue; } - case 6: - r0 = (s.arg1 + s.r___2028727); - case 7: + r0 = s.retval; + r0 = (s.unnamed279___U3 + 1); + s.unnamed279___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed278___U2 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_splitMatch__P2022353.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"]} +scene_Scene_init_inline__P51907.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function helpers_splitMatch__P2022353_mk(s) { +function scene_Scene_init_inline__P51907_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P2022353, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P51907, depth: s.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, - r___2028727: undefined, - s___2028730: undefined, - i___2028740: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + dt___51908: undefined, + s___51916: undefined, + unnamed278___U2: undefined, + unnamed279___U3: undefined, } } -function helpers_stringSlice__P2018061(s) { +function scene_Scene_init_inline__P51928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6609,81 +6704,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___2028692 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_String_.length(s.arg0); - s.len___2028692 = (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__P2018072_mk(s); - r0 = (s.len___2028692 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 9; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.arg1 = (r0); + s.tmp_0 = scene_Scene_render__P44666_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 918; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = (s.arg2 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (s.len___2028692); - { step = 6; continue; } - case 3: - r0 = (s.arg2 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.arg2 = (0); - case 4: - case 5: - case 6: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.len___2028692 + s.arg2); - s.arg2 = (r0); - case 7: - case 8: - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = (s.arg2 - s.arg1); - s.tmp_2 = r0; - r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_stringSlice__P2018061.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"]} +scene_Scene_init_inline__P51928.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function helpers_stringSlice__P2018061_mk(s) { +function scene_Scene_init_inline__P51928_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P2018061, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P51928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - len___2028692: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P2020815(s) { +function scene_Scene_init_inline__P51936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6693,147 +6737,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2028824 = undefined; - s.unnamed27080___U1 = undefined; - s.unnamed27081___U2 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2020786_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; } + s.tmp_0 = r0 = globals.stats___44762; + 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___42191; 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"]; + // jmp value (already in r0) 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; } + 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___42191; + if ((globals.control_EventContext_lastStats___42190) && (globals.control_EventContext_lastStats___42190).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___42190); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___42190) + ""; } + case 8: + 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) + ""; } + 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) + ""; } + 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 = 920; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; 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); + r0 = pxsim_numops_toBoolDecr(globals.debug___44761); if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P2020815_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 930; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P2020621_mk(s); - r0 = s.arg0.fields["background"]; + s.tmp_0 = PhysicsEngine__C44305_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 931; s.pc = 13; return s.tmp_0; - case 13: + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C44305_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: - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P2018047_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = scene_Scene_render_inline__P2028801; - s.callLocIdx = 936; s.pc = 14; return s.tmp_2; - case 14: + s.tmp_0 = game_consoleOverlay_draw__P44921_mk(s); + s.callLocIdx = 921; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - 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); - case 7: - case 8: - s.s___2028824 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed27080___U1 = (r0); - s.unnamed27081___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed27081___U2; - r0 = pxsim_Array__length(s.unnamed27080___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed27080___U1, s.unnamed27081___U2); - s.s___2028824 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___2028824; - 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 = 937; 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 = 937; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 937; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 937; s.pc = 15; return s.tmp_2; } - } - case 15: + s.tmp_0 = power_checkDeepSleep__P43724_mk(s); + s.callLocIdx = 922; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - r0 = (s.unnamed27081___U2 + 1); - s.unnamed27081___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed27080___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_render__P2020815.info = {"start":8203,"length":917,"line":228,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +scene_Scene_init_inline__P51936.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function scene_Scene_render__P2020815_mk(s) { +function scene_Scene_init_inline__P51936_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P2020815, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P51936, depth: s.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___2028824: undefined, - unnamed27080___U1: undefined, - unnamed27081___U2: undefined, - arg0: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function scene_Scene_render_inline__P2028801(s) { +function scene_Scene_init_inline__P51967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6845,102 +6850,35 @@ 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; - 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 = 932; 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 = 933; s.pc = 4; return s.tmp_4; } - } - case 4: - 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; } + 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 = 927; s.pc = 1; return s.tmp_0; 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 = 934; 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 = 935; 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: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_render_inline__P2028801.info = {"start":8781,"length":52,"line":242,"column":37,"endLine":242,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +scene_Scene_init_inline__P51967.info = {"start":6980,"length":12,"line":186,"column":39,"endLine":186,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function scene_Scene_render_inline__P2028801_mk(s) { +function scene_Scene_init_inline__P51967_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render_inline__P2028801, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P51967, depth: s.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, } } -function scene_Background_draw__P2020621(s) { +function multiplayer_initPlayerConnectionListeners__P45183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6950,62 +6888,43 @@ 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_Background__C2020612_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___2019975, 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___2019975, s.tmp_1, 0, 0); + s.p___51970 = undefined; + s.p___51970 = (1); case 1: - case 2: - r0 = s.arg0.fields["_layers"]; + r0 = (s.p___51970 <= 4); 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__P2028972); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P2018051_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 793; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; + if (!r0) { step = 2; continue; } + s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P47240_mk(s); + s.tmp_1.arg0 = s.p___51970; + s.callLocIdx = 1344; s.pc = 3; return s.tmp_1; case 3: - case 4: + r0 = s.retval; + r0 = (s.p___51970 + 1); + s.p___51970 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw__P2020621.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +multiplayer_initPlayerConnectionListeners__P45183.info = {"start":1324,"length":154,"line":39,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initPlayerConnectionListeners","argumentNames":[]} -function scene_Background_draw__P2020621_mk(s) { +function multiplayer_initPlayerConnectionListeners__P45183_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P2020621, depth: s.depth + 1, + parent: s, fn: multiplayer_initPlayerConnectionListeners__P45183, 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, + p___51970: undefined, } } -function scene_Background_draw_inline__P2028972(s) { +function multiplayer_registerPlayerConnectionListeners__P47240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7015,58 +6934,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___2028974 = undefined; - s.oy___2028985 = 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___2028974 = (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); + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P51982); s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___2028985 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P2020630_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___2028974; - s.tmp_0.arg2 = s.oy___2028985; - s.callLocIdx = 792; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P42184_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 = 1346; s.pc = 1; return s.tmp_1; case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P51988); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P42184_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 = 1348; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw_inline__P2028972.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +multiplayer_registerPlayerConnectionListeners__P47240.info = {"start":1484,"length":415,"line":45,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} -function scene_Background_draw_inline__P2028972_mk(s) { +function multiplayer_registerPlayerConnectionListeners__P47240_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw_inline__P2028972, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners__P47240, depth: s.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___2028974: undefined, - oy___2028985: undefined, arg0: undefined, } } @@ -7074,7 +6980,7 @@ function scene_Background_draw_inline__P2028972_mk(s) { -function scene_BackgroundLayer_draw__P2020630(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P51982(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7084,251 +6990,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___2029003 = undefined; - s.h___2029006 = undefined; - s.pw___2029009 = undefined; - s.ph___2029013 = undefined; - s.rx___2029022 = undefined; - s.ry___2029025 = undefined; - s.y___2029094 = undefined; - s.py___2029095 = undefined; - s.dh___2029104 = undefined; - s.x___2029112 = undefined; - s.rxl___2029113 = undefined; - s.px___2029119 = undefined; - s.dw___2029123 = 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__C2020622_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - s.w___2029003 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___2019975); - s.h___2029006 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___2029009 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___2029013 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___2029009); - 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 = multiplayer_receiveConnectionChangedEvent__P47241_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = true; + s.callLocIdx = 1345; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +multiplayer_registerPlayerConnectionListeners_inline__P51982.info = {"start":1656,"length":55,"line":49,"column":12,"endLine":49,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} + +function multiplayer_registerPlayerConnectionListeners_inline__P51982_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P51982, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function multiplayer_registerPlayerConnectionListeners_inline__P51988(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 = multiplayer_receiveConnectionChangedEvent__P47241_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = false; + s.callLocIdx = 1347; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___2029013); - 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___2029022 = (r0); - r0 = (0 - s.arg2); - s.ry___2029025 = (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___2029022; - r0 = (s.w___2029003 + s.pw___2029009); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___2029022 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___2029022; - r0 = (s.w___2029003 + s.pw___2029009); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___2029022 = (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___2029025; - r0 = (s.h___2029006 + s.ph___2029013); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___2029025 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___2029025; - r0 = (s.h___2029006 + s.ph___2029013); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___2029025 = (r0); - case 10: - r0 = (s.rx___2029022 % s.w___2029003); - s.rx___2029022 = (r0); - r0 = (s.rx___2029022 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___2029022 + s.w___2029003); - s.rx___2029022 = (r0); - case 11: - case 12: - r0 = (s.ry___2029025 % s.h___2029006); - s.ry___2029025 = (r0); - r0 = (s.ry___2029025 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___2029025 + s.h___2029006); - s.ry___2029025 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___2029022); - s.rx___2029022 = (r0); - r0 = pxsim.Math_.floor(s.ry___2029025); - s.ry___2029025 = (r0); - s.y___2029094 = (0); - s.py___2029095 = (0); - case 15: - r0 = (s.y___2029094 < s.h___2029006); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___2029094 % s.ph___2029013); - s.py___2029095 = (r0); - s.tmp_0 = Math_min__P2018073_mk(s); - r0 = (s.ph___2029013 - s.py___2029095); - s.tmp_0.arg0 = r0; - r0 = (s.h___2029006 - s.ry___2029025); - s.tmp_0.arg1 = r0; - s.callLocIdx = 795; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___2029104 = (r0); - s.x___2029112 = (0); - s.rxl___2029113 = (s.rx___2029022); - case 16: - r0 = (s.x___2029112 < s.w___2029003); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___2029112 % s.pw___2029009); - s.px___2029119 = (r0); - s.tmp_0 = Math_min__P2018073_mk(s); - r0 = (s.pw___2029009 - s.px___2029119); - s.tmp_0.arg0 = r0; - r0 = (s.w___2029003 - s.rxl___2029113); - s.tmp_0.arg1 = r0; - s.callLocIdx = 796; s.pc = 25; return s.tmp_0; - case 25: r0 = s.retval; - s.dw___2029123 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___2019975, s.tmp_0, s.rxl___2029113, s.ry___2029025); - r0 = (s.rxl___2029113 + s.dw___2029123); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___2029003); - s.rxl___2029113 = (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___2029123; - { step = 18; continue; } - case 17: - r0 = s.w___2029003; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___2029112 + s.tmp_1); - s.x___2029112 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___2029025 + s.dh___2029104); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___2029006); - s.ry___2029025 = (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___2029104; - { step = 21; continue; } - case 20: - r0 = s.h___2029006; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.y___2029094 + s.tmp_1); - s.y___2029094 = (r0); - { step = 15; continue; } - case 22: - case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P2020630.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"]} +multiplayer_registerPlayerConnectionListeners_inline__P51988.info = {"start":1826,"length":56,"line":54,"column":12,"endLine":54,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function scene_BackgroundLayer_draw__P2020630_mk(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P51988_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P2020630, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P51988, depth: s.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___2029003: undefined, - h___2029006: undefined, - pw___2029009: undefined, - ph___2029013: undefined, - rx___2029022: undefined, - ry___2029025: undefined, - y___2029094: undefined, - py___2029095: undefined, - dh___2029104: undefined, - x___2029112: undefined, - rxl___2029113: undefined, - px___2029119: undefined, - dw___2029123: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arraySort__P2018047(s) { +function multiplayer_receiveConnectionChangedEvent__P47241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7338,51 +7058,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.c___51993 = undefined; 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); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + 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 = 2; continue; } + { step = 5; continue; } case 1: - r0 = pxsim_Array__length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 1); + s.c___51993 = (globals.player1___43917); + { step = 5; continue; } 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__P2028846); + s.c___51993 = (globals.player2___43914); + { step = 5; continue; } case 3: + s.c___51993 = (globals.player3___43915); + { step = 5; continue; } case 4: - s.tmp_0 = helpers_sortHelper__P2022351_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2; s.pc = 5; return s.tmp_0; + s.c___51993 = (globals.player4___43916); case 5: + r0 = pxsim_numops_toBoolDecr(s.c___51993); + if (!r0) { step = 6; continue; } + s.tmp_0 = controller_Controller_connected__P43950_mk(s); + s.tmp_0.arg0 = s.c___51993; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1349; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + case 6: + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySort__P2018047.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"]} +multiplayer_receiveConnectionChangedEvent__P47241.info = {"start":1905,"length":552,"line":58,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} -function helpers_arraySort__P2018047_mk(s) { +function multiplayer_receiveConnectionChangedEvent__P47241_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P2018047, depth: s.depth + 1, + parent: s, fn: multiplayer_receiveConnectionChangedEvent__P47241, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + c___51993: undefined, arg0: undefined, arg1: undefined, } } @@ -7391,7 +7118,7 @@ function helpers_arraySort__P2018047_mk(s) { -function helpers_arraySort_inline__P2028846(s) { +function controller_Controller_connected__P43950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7401,120 +7128,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___2028849 = undefined; - s.bIsUndef___2028853 = undefined; - s.aIsNull___2028864 = undefined; - s.bIsNull___2028868 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 === undefined); - s.aIsUndef___2028849 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___2028853 = (r0); - s.tmp_0 = r0 = s.aIsUndef___2028849; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C43928_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.bIsUndef___2028853; + r0 = 2; 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; } + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___2028849); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___2028853); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = (s.arg0 === null); - s.aIsNull___2028864 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___2028868 = (r0); - s.tmp_0 = r0 = s.aIsNull___2028864; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller_connected__P43950.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 controller_Controller_connected__P43950_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_connected__P43950, 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__player1__P43922(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._players___46499); + 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 = 9; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.bIsNull___2028868; - 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___2028864); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } - case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___2028868); - 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; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals._players___46499, 0); s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); 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); + 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__C43928_VT); s.tmp_5 = r0; - r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); - case 17: + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___43909); + r0 = pxsim_Array__push(s.tmp_6, globals.up___43910); + r0 = pxsim_Array__push(s.tmp_6, globals.right___43911); + r0 = pxsim_Array__push(s.tmp_6, globals.down___43912); + r0 = pxsim_Array__push(s.tmp_6, globals.A___43907); + r0 = pxsim_Array__push(s.tmp_6, globals.B___43908); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___43913); + s.tmp_7 = controller_Controller_constructor__P43932_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 151; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___46499, 0); return leave(s, r0) default: oops() } } } -helpers_arraySort_inline__P2028846.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__player1__P43922.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function helpers_arraySort_inline__P2028846_mk(s) { +function controller__player1__P43922_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort_inline__P2028846, depth: s.depth + 1, + parent: s, fn: controller__player1__P43922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7524,19 +7248,13 @@ function helpers_arraySort_inline__P2028846_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___2028849: undefined, - bIsUndef___2028853: undefined, - aIsNull___2028864: undefined, - bIsNull___2028868: undefined, - arg0: undefined, - arg1: undefined, } } -function helpers_sortHelper__P2022351(s) { +function controller_Controller_constructor__P43932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7546,114 +7264,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___2028903 = undefined; - s.i___2028906 = undefined; - s.j___2028912 = undefined; + s.leftId___52049 = undefined; + s.i___52057 = undefined; + s.i___52075 = 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); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.allocateNotifyEvent(); s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + 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.tmp_0; - { step = 2; continue; } + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + 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 = pxsim_Boolean__bang(s.tmp_2); + 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___52049 = (r0); + s.i___52057 = (0); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.i___52057 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 11; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C43983_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P43989_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___52049 + s.i___52057); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 157; 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___52057 + 1); + s.i___52057 = (r0); + { step = 2; continue; } case 3: case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___2028903 = (r0); - s.i___2028906 = (0); + s.i___52075 = (0); case 5: - s.tmp_1 = r0 = s.i___2028906; - r0 = (s.len___2028903 - 1); + s.tmp_1 = r0 = s.i___52075; + 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 = 10; continue; } - r0 = (s.i___2028906 + 1); - s.j___2028912 = (r0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___52075); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___52075 + 1); + s.i___52075 = (r0); + { step = 5; continue; } case 6: - r0 = (s.j___2028912 < s.len___2028903); - 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___2028906); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___2028912); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 0; 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__P2022350_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___2028906; - s.tmp_4.arg2 = s.j___2028912; - s.callLocIdx = 1; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: + s.tmp_0 = controller_addController__P46563_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 158; s.pc = 8; return s.tmp_0; case 8: - r0 = (s.j___2028912 + 1); - s.j___2028912 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___2028906 + 1); - s.i___2028906 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_sortHelper__P2022351.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_constructor__P43932.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 helpers_sortHelper__P2022351_mk(s) { +function controller_Controller_constructor__P43932_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P2022351, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P43932, depth: s.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___2028903: undefined, - i___2028906: undefined, - j___2028912: undefined, + tmp_5: undefined, + leftId___52049: undefined, + i___52057: undefined, + i___52075: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function helpers_swap__P2022350(s) { +function controller_addController__P46563(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7663,46 +7387,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___2028941 = 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___2028941 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.arg2); + r0 = pxsim_numops_toBoolDecr(globals._players___46499); + 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._players___46499 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___46499; + r0 = s.arg0.fields["playerIndex"]; 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___2028941); + 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() } } } -helpers_swap__P2022350.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_addController__P46563.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function helpers_swap__P2022350_mk(s) { +function controller_addController__P46563_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P2022350, depth: s.depth + 1, + parent: s, fn: controller_addController__P46563, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - temp___2028941: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Camera_update__P2020741(s) { +function control_onEvent__P42184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7712,187 +7438,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___2029210 = undefined; - s.percentComplete___2029224 = undefined; - s.damp___2029231 = undefined; - s.f___2029240 = undefined; - s.x___2029246 = undefined; - s.y___2029253 = undefined; + s.ctx___49818 = 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, scene_Camera__C2020724_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; + s.tmp_0 = control_eventContext__P42201_mk(s); + s.callLocIdx = 39; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___49818 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___49818); + 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.arg0; - s.tmp_3 = Sprite_x__P2020297_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 891; s.pc = 9; return s.tmp_3; - case 9: + r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + { step = 2; continue; } + case 1: + s.tmp_0 = control_EventContext_registerHandler__P42198_mk(s); + s.tmp_0.arg0 = s.ctx___49818; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.callLocIdx = 40; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_onEvent__P42184.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__P42184_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_onEvent__P42184, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___49818: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function control_eventContext__P42201(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.eventContexts___46283); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.eventContexts___46283; + r0 = pxsim_Array__length(globals.eventContexts___46283); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_lastUpdatedSpriteX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P2020299_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 892; 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__P2020730_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_x__P2020297_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 893; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - 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 = 894; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P2020732_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P2020299_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 895; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); - 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 = 896; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + { step = 2; continue; } case 1: + r0 = undefined; 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"]; + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___2029210 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___2029210 >= 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___2029210 / s.tmp_0); - s.percentComplete___2029224 = (r0); - s.damp___2029231 = (1); - r0 = (s.percentComplete___2029224 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P2018072_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___2029224); - s.tmp_1.arg1 = r0; - s.callLocIdx = 899; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___2029231 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___2029231); - s.f___2029240 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___2029240); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___2029246 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___2029240); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___2029253 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___2029246); - 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___2029253); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: - r0 = undefined; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -scene_Camera_update__P2020741.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +control_eventContext__P42201.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function scene_Camera_update__P2020741_mk(s) { +function control_eventContext__P42201_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P2020741, depth: s.depth + 1, + parent: s, fn: control_eventContext__P42201, depth: s.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___2029210: undefined, - percentComplete___2029224: undefined, - damp___2029231: undefined, - f___2029240: undefined, - x___2029246: undefined, - y___2029253: undefined, - arg0: undefined, } } -function scene_Camera_offsetY__P2020732(s) { +function control_EventContext_registerHandler__P42198(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7902,71 +7549,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2029272 = undefined; + s.h___49841 = undefined; + s.unnamed252___U1 = undefined; + s.unnamed253___U2 = undefined; + s.hn___49864 = 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, scene_Camera__C2020724_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 882; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___2029272 = (r0); - r0 = s.scene___2029272.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; } + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + s.h___49841 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed252___U1 = (r0); + s.unnamed253___U2 = (0); case 1: - r0 = s.scene___2029272.fields["tileMap"]; + s.tmp_0 = r0 = s.unnamed253___U2; + r0 = pxsim_Array__length(s.unnamed252___U1); 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); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed252___U1, s.unnamed253___U2); + s.h___49841 = (r0); + r0 = s.h___49841.fields["src"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_3 == s.arg1); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } case 2: + r0 = s.h___49841.fields["value"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 == s.arg2); + case 3: // 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__P2020685_mk(s); - r0 = s.scene___2029272.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 884; s.pc = 6; return s.tmp_10; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 4; continue; } + r0 = (s.h___49841).fields["flags"] = (s.arg4); + r0 = (s.h___49841).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed253___U2 + 1); + s.unnamed253___U2 = (r0); + { step = 1; continue; } case 6: + s.unnamed252___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C46275_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P46278_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.arg3; + s.tmp_1.arg4 = s.arg4; + s.callLocIdx = 51; s.pc = 8; return s.tmp_1; + case 8: 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: + s.hn___49864 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___49864); + s.tmp_0 = control_EventHandler_register__P46276_mk(s); + s.tmp_0.arg0 = s.hn___49864; + s.callLocIdx = 52; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P2020732.info = {"start":1152,"length":291,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +control_EventContext_registerHandler__P42198.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 scene_Camera_offsetY__P2020732_mk(s) { +function control_EventContext_registerHandler__P42198_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P2020732, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P42198, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7974,21 +7640,22 @@ function scene_Camera_offsetY__P2020732_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, - scene___2029272: undefined, + h___49841: undefined, + unnamed252___U1: undefined, + unnamed253___U2: undefined, + hn___49864: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function tiles_TileMap_enabled__P2020690(s) { +function control_EventHandler_constructor__P46278(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8000,42 +7667,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.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - 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) + if (!checkSubtype(r0, control_EventHandler__C46275_VT)) failedCast(r0); + r0 = (s.arg0).fields["src"] = (s.arg1); + r0 = (s.arg0).fields["value"] = (s.arg2); + r0 = (s.arg0).fields["handler"] = (s.arg3); + r0 = (s.arg0).fields["flags"] = (s.arg4); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P2020690.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__P2020690.isGetter = true; +control_EventHandler_constructor__P46278.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 tiles_TileMap_enabled__P2020690_mk(s) { +function control_EventHandler_constructor__P46278_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P2020690, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P46278, depth: s.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 tiles_TileMap_offsetY__P2020685(s) { +function multiplayer_initServer__P45182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8045,59 +7711,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.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P2018069_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P2018072_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P2020687_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 821; s.pc = 3; return s.tmp_3; - case 3: + 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; } + s.tmp_2 = control_EventContext_registerFrameHandler__P42196_mk(s); + s.tmp_3 = game_eventContext__P44796_mk(s); + s.callLocIdx = 1342; s.pc = 4; return s.tmp_3; + case 4: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 822; s.pc = 2; return s.tmp_1; - case 2: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 210; + s.tmp_2.arg2 = multiplayer_initServer_inline__P52147; + s.callLocIdx = 1343; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 823; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P2020685.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +multiplayer_initServer__P45182.info = {"start":1011,"length":307,"line":29,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} -function tiles_TileMap_offsetY__P2020685_mk(s) { +function multiplayer_initServer__P45182_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P2020685, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer__P45182, depth: s.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 tiles_TileMap_areaHeight__P2020687(s) { +function multiplayer_initServer_inline__P52147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8107,53 +7761,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; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + 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 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_height"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + r0 = pxsim.multiplayer.postImage(globals.screen___43826); case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P2020687.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +multiplayer_initServer_inline__P52147.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMap_areaHeight__P2020687_mk(s) { +function multiplayer_initServer_inline__P52147_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P2020687, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer_inline__P52147, depth: s.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 tiles_TileMap_scale__P2020681(s) { +function game_consoleOverlay_draw__P44921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8163,32 +7799,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.lambdaArgs = null; + s.height___52200 = undefined; + s.top___52205 = undefined; + s.i___52211 = undefined; + s.t___52224 = undefined; + s.tOff___52231 = undefined; + s.tab___52233 = undefined; + s.unnamed282___U6 = undefined; + s.unnamed283___U7 = undefined; + s.padding___52235 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); + 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___47037); + 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___47091; + 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 = 1196; s.pc = 14; return s.tmp_7; } } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___52200 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___44762); + if (!r0) { step = 5; continue; } + r0 = s.height___52200; + { 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___52205 = (r0); + s.i___52211 = (0); + case 7: + s.tmp_1 = r0 = s.i___52211; + r0 = pxsim_Array__length(globals.consoleStrings___47083); + 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 = pxsim_Array__getAt(globals.consoleStrings___47083, s.i___52211); + 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__P41915_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___47083, s.i___52211); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1197; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___52224 = (r0); + s.tOff___52231 = (0); + s.tab___52233 = (undefined); + s.unnamed282___U6 = (s.t___52224); + s.unnamed283___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed283___U7; + r0 = pxsim_Array__length(s.unnamed282___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed282___U6, s.unnamed283___U7); + s.tab___52233 = (r0); + s.tmp_2 = r0 = globals.tabSize___47085; + s.tmp_5 = r0 = s.tOff___52231; + r0 = pxsim_String_.length(s.tab___52233); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___47085); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___52235 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); + s.tmp_0.arg0 = globals.screen___43826; + s.tmp_0.arg1 = s.tab___52233; + s.tmp_2 = r0 = s.tOff___52231; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___47091; + 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 = 1198; 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___52205; + r0 = (s.i___52211 * s.height___52200); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___47082; + s.tmp_0.arg5 = globals.consoleFont___47091; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1199; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___52231; + r0 = pxsim_String_.length(s.tab___52233); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___52235); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___52231 = (r0); + r0 = (s.unnamed283___U7 + 1); + s.unnamed283___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed282___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P43784_mk(s); + s.tmp_0.arg0 = globals.screen___43826; + r0 = pxsim_Array__getAt(globals.consoleStrings___47083, s.i___52211); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___52205; + r0 = (s.i___52211 * s.height___52200); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___47082; + s.tmp_0.arg5 = globals.consoleFont___47091; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1200; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___52211 + 1); + s.i___52211 = (r0); + { step = 7; continue; } + case 12: + case 13: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P2020681.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__P2020681.isGetter = true; +game_consoleOverlay_draw__P44921.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function tiles_TileMap_scale__P2020681_mk(s) { +function game_consoleOverlay_draw__P44921_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2020681, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P44921, 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, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___52200: undefined, + top___52205: undefined, + i___52211: undefined, + t___52224: undefined, + tOff___52231: undefined, + tab___52233: undefined, + unnamed282___U6: undefined, + unnamed283___U7: undefined, + padding___52235: undefined, } } -function tiles_TileMapData_height__P2020663(s) { +function scene_systemMenu_isVisible__P44902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8198,32 +8018,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, tiles_TileMapData__C2020660_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(globals.instance___47037); + 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() } } } -tiles_TileMapData_height__P2020663.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__P2020663.isGetter = true; +scene_systemMenu_isVisible__P44902.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function tiles_TileMapData_height__P2020663_mk(s) { +function scene_systemMenu_isVisible__P44902_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P2020663, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P44902, 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, } } -function scene_Camera_offsetY__P2020731(s) { +function helpers_imagePrint__P43784(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8233,32 +8054,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___52307 = undefined; + s.cp___52309 = undefined; + s.mult___52310 = undefined; + s.dataW___52315 = undefined; + s.dataH___52321 = undefined; + s.byteHeight___52327 = undefined; + s.charSize___52333 = undefined; + s.dataSize___52337 = undefined; + s.fontdata___52341 = undefined; + s.lastchar___52344 = undefined; + s.imgBuf___52351 = undefined; + s.xOffset___52375 = undefined; + s.yOffset___52376 = undefined; + s.ch___52391 = undefined; + s.l___52410 = undefined; + s.r___52411 = undefined; + s.off___52413 = undefined; + s.guess___52414 = undefined; + s.m___52433 = undefined; + s.v___52442 = undefined; + s.i___52498 = undefined; + s.j___52503 = undefined; + s.mask___52504 = undefined; + s.c___52505 = undefined; + s.n___52522 = 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, scene_Camera__C2020724_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + r0 = (s.arg2 | 0); + s.arg2 = (r0); + r0 = (s.arg3 | 0); + s.arg3 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg5); + 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__P43771_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 97; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + s.arg5 = (r0); + case 1: + case 2: + 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 = 3; continue; } + s.arg4 = (1); + case 3: + case 4: + s.x0___52307 = (s.arg2); + s.cp___52309 = (0); + s.tmp_1 = if_multiplier_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 98; 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 = 5; continue; } + s.tmp_2 = if_multiplier_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 99; s.pc = 41; return s.tmp_2; } + } + case 41: + r0 = s.retval; + { step = 6; continue; } + case 5: + r0 = 1; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.mult___52310 = (s.tmp_3); + s.tmp_1 = if_charWidth_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 100; s.pc = 42; return s.tmp_1; } + } + case 42: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___52310); + s.dataW___52315 = (r0); + s.tmp_1 = if_charHeight_1_mk(s); + s.tmp_1.arg0 = s.arg5; + 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 = 101; s.pc = 43; return s.tmp_1; } + } + case 43: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___52310); + s.dataH___52321 = (r0); + r0 = (s.dataH___52321 + 7); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 3); + s.byteHeight___52327 = (r0); + r0 = (s.byteHeight___52327 * s.dataW___52315); + s.charSize___52333 = (r0); + r0 = (2 + s.charSize___52333); + s.dataSize___52337 = (r0); + s.tmp_0 = if_data_1_mk(s); + s.tmp_0.arg0 = s.arg5; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 102; s.pc = 44; return s.tmp_0; } + } + case 44: + r0 = s.retval; + s.fontdata___52341 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___52341); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___52337); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.lastchar___52344 = (r0); + r0 = (s.mult___52310 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (8 + s.charSize___52333); + s.tmp_1 = r0; + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___52351 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___52351, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___52351, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___52351, 2, s.dataW___52315); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___52351, 4, s.dataH___52321); + case 7: + case 8: + case 9: + s.tmp_1 = r0 = s.cp___52309; + 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___52375 = (0); + s.yOffset___52376 = (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___52309; + r0 = pxsim_Array__length(s.arg6); + 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 = if_xOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___52309); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 103; s.pc = 45; return s.tmp_4; } + } + case 45: + r0 = s.retval; + s.xOffset___52375 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___52309); + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 104; s.pc = 46; return s.tmp_0; } + } + case 46: + r0 = s.retval; + s.yOffset___52376 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___52309; + r0 = (s.tmp_0 + 1); + s.cp___52309 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___52391 = (r0); + r0 = (s.ch___52391 == 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.arg3; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = s.arg5; + 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 = 105; s.pc = 47; return s.tmp_4; } + } + case 47: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.arg3 = (r0); + s.arg2 = (s.x0___52307); + case 14: + case 15: + r0 = (s.ch___52391 < 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___52410 = (0); + s.r___52411 = (s.lastchar___52344); + s.off___52413 = (0); + r0 = (s.ch___52391 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___52337); + s.guess___52414 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___52341, 4, s.guess___52414); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.ch___52391); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___52413 = (s.guess___52414); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___52410 <= s.r___52411); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___52410; + r0 = (s.r___52411 - s.l___52410); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.m___52433 = (r0); + s.tmp_0 = r0 = s.fontdata___52341; + r0 = (s.m___52433 * s.dataSize___52337); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___52442 = (r0); + r0 = (s.v___52442 == s.ch___52391); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___52433 * s.dataSize___52337); + s.off___52413 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___52442 < s.ch___52391); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___52433 + 1); + s.l___52410 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___52433 - 1); + s.r___52411 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___52310 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___52351; + s.tmp_3 = r0 = s.fontdata___52341; + r0 = (s.off___52413 + 2); + s.tmp_4 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___52333); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P43749_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___52351; + r0 = (s.arg2 + s.xOffset___52375); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___52376); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 106; s.pc = 48; return s.tmp_0; + case 48: + r0 = s.retval; + s.tmp_0 = r0 = s.arg2; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg5; + 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 = 107; s.pc = 49; return s.tmp_2; } + } + case 49: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg2 = (r0); + { step = 37; continue; } + case 26: + r0 = (s.off___52413 + 2); + s.off___52413 = (r0); + s.i___52498 = (0); + case 27: + r0 = (s.i___52498 < s.dataW___52315); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___52503 = (0); + s.mask___52504 = (1); + s.tmp_0 = r0 = s.off___52413; + r0 = (s.tmp_0 + 1); + s.off___52413 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___52341, s.tmp_0); + s.c___52505 = (r0); + case 28: + r0 = (s.j___52503 < s.dataH___52321); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___52504 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___52413; + r0 = (s.tmp_2 + 1); + s.off___52413 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___52341, s.tmp_2); + s.c___52505 = (r0); + s.mask___52504 = (1); + case 29: + case 30: + s.n___52522 = (0); + case 31: + r0 = (s.c___52505 & s.mask___52504); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___52522 + 1); + s.n___52522 = (r0); + r0 = (s.mask___52504 << 1); + s.mask___52504 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___52522); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P43750_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___52375 * s.mult___52310); + 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___52503 + s.yOffset___52376); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___52310); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___52310; + r0 = (s.mult___52310 * s.n___52522); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 108; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + r0 = (s.j___52503 + s.n___52522); + s.j___52503 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___52504 << 1); + s.mask___52504 = (r0); + r0 = (s.j___52503 + 1); + s.j___52503 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___52310); + s.arg2 = (r0); + r0 = (s.i___52498 + 1); + s.i___52498 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P2020731.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__P2020731.isGetter = true; +helpers_imagePrint__P43784.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 scene_Camera_offsetY__P2020731_mk(s) { +function helpers_imagePrint__P43784_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P2020731, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P43784, depth: s.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, + x0___52307: undefined, + cp___52309: undefined, + mult___52310: undefined, + dataW___52315: undefined, + dataH___52321: undefined, + byteHeight___52327: undefined, + charSize___52333: undefined, + dataSize___52337: undefined, + fontdata___52341: undefined, + lastchar___52344: undefined, + imgBuf___52351: undefined, + xOffset___52375: undefined, + yOffset___52376: undefined, + ch___52391: undefined, + l___52410: undefined, + r___52411: undefined, + off___52413: undefined, + guess___52414: undefined, + m___52433: undefined, + v___52442: undefined, + i___52498: undefined, + j___52503: undefined, + mask___52504: undefined, + c___52505: undefined, + n___52522: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function scene_Camera_offsetX__P2020730(s) { +function image_getFontForText__P43771(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8268,93 +8563,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2029332 = undefined; + s.i___51544 = 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__C2020724_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 879; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___2029332 = (r0); - r0 = s.scene___2029332.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; } + s.i___51544 = (0); case 1: - r0 = s.scene___2029332.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_1 = r0 = s.i___51544; + 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___51544); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = (s.tmp_4 > 8192); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = globals.font12___43770; + { step = 5; continue; } 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__P2020684_mk(s); - r0 = s.scene___2029332.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 881; 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); + r0 = (s.i___51544 + 1); + s.i___51544 = (r0); + { step = 1; continue; } case 4: - r0 = undefined; + r0 = globals.font8___43769; + case 5: return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P2020730.info = {"start":784,"length":291,"line":28,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +image_getFontForText__P43771.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function scene_Camera_offsetX__P2020730_mk(s) { +function image_getFontForText__P43771_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P2020730, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P43771, depth: s.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___2029332: undefined, + i___51544: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_offsetX__P2020684(s) { +function helpers_imageFillRect__P43750(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8367,41 +8629,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.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P2018069_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P2018072_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P2020686_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 818; s.pc = 3; return s.tmp_3; - case 3: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P46420_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 79; s.pc = 1; return s.tmp_2; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 819; s.pc = 2; return s.tmp_1; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P46420_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 80; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 820; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P2020684.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +helpers_imageFillRect__P43750.info = {"start":5454,"length":159,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function tiles_TileMap_offsetX__P2020684_mk(s) { +function helpers_imageFillRect__P43750_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P2020684, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P43750, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8410,13 +8669,17 @@ function tiles_TileMap_offsetX__P2020684_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function tiles_TileMap_areaWidth__P2020686(s) { +function helpers_pack__P46420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8428,51 +8691,57 @@ 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__C2020678_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_width"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + s.tmp_2 = Math_clamp__P41920_mk(s); + s.tmp_2.arg0 = -30000; + s.tmp_2.arg1 = 30000; + r0 = (s.arg0 | 0); + s.tmp_2.arg2 = r0; + s.callLocIdx = 76; s.pc = 1; return s.tmp_2; case 1: - r0 = 0; + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 65535); + s.tmp_0 = r0; + s.tmp_5 = Math_clamp__P41920_mk(s); + s.tmp_5.arg0 = -30000; + s.tmp_5.arg1 = 30000; + r0 = (s.arg1 | 0); + s.tmp_5.arg2 = r0; + s.callLocIdx = 77; s.pc = 2; return s.tmp_5; case 2: - // jmp value (already in r0) + r0 = s.retval; s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (s.tmp_4 << 16); + s.tmp_3 = r0; + r0 = (s.tmp_0 | s.tmp_3); return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P2020686.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +helpers_pack__P46420.info = {"start":4278,"length":145,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function tiles_TileMap_areaWidth__P2020686_mk(s) { +function helpers_pack__P46420_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P2020686, depth: s.depth + 1, + parent: s, fn: helpers_pack__P46420, depth: s.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 tiles_TileMapData_width__P2020662(s) { +function Math_clamp__P41920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8484,30 +8753,44 @@ 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, tiles_TileMapData__C2020660_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) + s.tmp_0 = Math_min__P41924_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_1 = Math_max__P41923_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg2; + s.callLocIdx = 14; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 15; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_width__P2020662.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__P2020662.isGetter = true; +Math_clamp__P41920.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 tiles_TileMapData_width__P2020662_mk(s) { +function Math_clamp__P41920_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P2020662, depth: s.depth + 1, + parent: s, fn: Math_clamp__P41920, 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 scene_Camera_offsetX__P2020729(s) { +function Math_min__P41924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8519,30 +8802,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } + r0 = (s.arg0 <= s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg1; + case 3: + return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P2020729.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__P2020729.isGetter = true; +Math_min__P41924.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 scene_Camera_offsetX__P2020729_mk(s) { +function Math_min__P41924_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P2020729, depth: s.depth + 1, + parent: s, fn: Math_min__P41924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_y__P2020299(s) { +function helpers_imageDrawIcon__P43749(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8554,45 +8846,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_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_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P46420_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 78; 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) + r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_y__P2020299.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__P2020299.isGetter = true; +helpers_imageDrawIcon__P43749.info = {"start":5304,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function Sprite_y__P2020299_mk(s) { +function helpers_imageDrawIcon__P43749_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2020299, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P43749, depth: s.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, } } -function Fx_toFloat__P2018115(s) { +function helpers_stringSplit__P41915(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8602,29 +8898,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___52585 = undefined; + s.lim___52587 = undefined; + s.s___52603 = undefined; + s.p___52606 = undefined; + s.R___52607 = undefined; + s.z___52621 = undefined; + s.T___52634 = undefined; + s.q___52635 = undefined; + s.e___52641 = 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 / 256); + r0 = pxsim_Array__mk(); + s.A___52585 = (r0); + s.lim___52587 = (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___52587 = (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___52587 = (0); + { step = 3; continue; } + case 2: + r0 = (s.arg2 | 0); + s.lim___52587 = (r0); + case 3: + case 4: + r0 = pxsim_String_.length(s.arg0); + s.s___52603 = (r0); + s.p___52606 = (0); + s.R___52607 = (s.arg1); + r0 = (s.lim___52587 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___52585; + { step = 21; continue; } + case 5: + case 6: + r0 = (s.arg1 === undefined); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = pxsim_Array_.setAt(s.A___52585, 0, s.arg0); + r0 = s.A___52585; + { step = 21; continue; } + case 7: + case 8: + r0 = (s.s___52603 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P46206_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___52607; + s.callLocIdx = 10; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.z___52621 = (r0); + r0 = (s.z___52621 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___52585; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___52585, 0, s.arg0); + r0 = s.A___52585; + { step = 21; continue; } + case 11: + case 12: + s.q___52635 = (s.p___52606); + case 13: + r0 = (s.q___52635 != s.s___52603); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P46206_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___52635; + s.tmp_1.arg2 = s.R___52607; + s.callLocIdx = 11; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.e___52641 = (r0); + r0 = (s.e___52641 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___52635 + 1); + s.q___52635 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___52641 == s.p___52606); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___52635 + 1); + s.q___52635 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P41912_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___52606; + s.tmp_0.arg2 = s.q___52635; + s.callLocIdx = 12; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.T___52634 = (r0); + r0 = pxsim_Array__push(s.A___52585, s.T___52634); + r0 = pxsim_Array__length(s.A___52585); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___52587); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___52585; + { step = 21; continue; } + case 16: + case 17: + s.p___52606 = (s.e___52641); + s.q___52635 = (s.p___52606); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P41912_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___52606; + s.tmp_0.arg2 = s.q___52635; + s.callLocIdx = 13; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.T___52634 = (r0); + r0 = pxsim_Array__push(s.A___52585, s.T___52634); + r0 = s.A___52585; + case 21: return leave(s, r0) default: oops() } } } -Fx_toFloat__P2018115.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +helpers_stringSplit__P41915.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 Fx_toFloat__P2018115_mk(s) { +function helpers_stringSplit__P41915_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P2018115, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P41915, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + A___52585: undefined, + lim___52587: undefined, + s___52603: undefined, + p___52606: undefined, + R___52607: undefined, + z___52621: undefined, + T___52634: undefined, + q___52635: undefined, + e___52641: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Fx_div__P2018104(s) { +function helpers_splitMatch__P46206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8634,34 +9087,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___52721 = undefined; + s.s___52724 = undefined; + s.i___52734 = 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 << 8); + r0 = pxsim_String_.length(s.arg2); + s.r___52721 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___52724 = (r0); + r0 = (s.arg1 + s.r___52721); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.s___52724); s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = -1; + { step = 7; continue; } + case 1: + case 2: + s.i___52734 = (0); + case 3: + r0 = (s.i___52734 < s.r___52721); + 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___52734); + 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___52734); + 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 = 4; continue; } + r0 = -1; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___52734 + 1); + s.i___52734 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___52721); + case 7: return leave(s, r0) default: oops() } } } -Fx_div__P2018104.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +helpers_splitMatch__P46206.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 Fx_div__P2018104_mk(s) { +function helpers_splitMatch__P46206_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P2018104, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P46206, depth: s.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, + r___52721: undefined, + s___52724: undefined, + i___52734: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Fx_add__P2018099(s) { +function helpers_stringSlice__P41912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8671,31 +9175,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___52686 = 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 + s.arg1); + r0 = pxsim_String_.length(s.arg0); + s.len___52686 = (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__P41923_mk(s); + r0 = (s.len___52686 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 9; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.arg1 = (r0); + case 1: + case 2: + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___52686); + { step = 6; continue; } + case 3: + r0 = (s.arg2 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.arg2 = (0); + case 4: + case 5: + case 6: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.len___52686 + s.arg2); + s.arg2 = (r0); + case 7: + case 8: + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + r0 = (s.arg2 - s.arg1); + s.tmp_2 = r0; + r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); return leave(s, r0) default: oops() } } } -Fx_add__P2018099.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +helpers_stringSlice__P41912.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 Fx_add__P2018099_mk(s) { +function helpers_stringSlice__P41912_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P2018099, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P41912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + len___52686: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_x__P2020297(s) { +function scene_Scene_render__P44666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8705,39 +9259,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___52818 = undefined; + s.unnamed280___U1 = undefined; + s.unnamed281___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, scene_Scene__C44637_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: + 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__P44666_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 930; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P44472_mk(s); + r0 = s.arg0.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 931; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 6: + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = helpers_arraySort__P41898_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scene_Scene_render_inline__P52795; + s.callLocIdx = 936; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + 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.arg0.fields["_width"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_4 = r0; - r0 = pxsim.Math_.idiv(s.tmp_4, 512); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 7: + case 8: + s.s___52818 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed280___U1 = (r0); + s.unnamed281___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed281___U2; + r0 = pxsim_Array__length(s.unnamed280___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed280___U1, s.unnamed281___U2); + s.s___52818 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___52818; + 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 = 937; 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 = 937; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 937; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 937; s.pc = 15; return s.tmp_2; } + } + case 15: + r0 = s.retval; + r0 = (s.unnamed281___U2 + 1); + s.unnamed281___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed280___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, 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() } } } -Sprite_x__P2020297.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__P2020297.isGetter = true; +scene_Scene_render__P44666.info = {"start":8203,"length":917,"line":228,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function Sprite_x__P2020297_mk(s) { +function scene_Scene_render__P44666_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P2020297, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P44666, depth: s.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___52818: undefined, + unnamed280___U1: undefined, + unnamed281___U2: undefined, arg0: undefined, } } @@ -8745,7 +9399,7 @@ function Sprite_x__P2020297_mk(s) { -function PhysicsEngine_move__P2020460(s) { +function scene_Scene_render_inline__P52795(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8760,19 +9414,90 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2020454_VT)) failedCast(r0); - r0 = undefined; + 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 = 932; 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 = 933; s.pc = 4; return s.tmp_4; } + } + case 4: + 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_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 = 934; 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 = 935; 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: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P2020460.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +scene_Scene_render_inline__P52795.info = {"start":8781,"length":52,"line":242,"column":37,"endLine":242,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function PhysicsEngine_move__P2020460_mk(s) { +function scene_Scene_render_inline__P52795_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P2020460, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P52795, depth: s.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, } } @@ -8781,7 +9506,7 @@ function PhysicsEngine_move__P2020460_mk(s) { -function PhysicsEngine_draw__P2020459(s) { +function scene_Background_draw__P44472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8796,18 +9521,49 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2020454_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C44463_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___43826, 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___43826, 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__P52966); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P41902_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 793; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P2020459.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +scene_Background_draw__P44472.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function PhysicsEngine_draw__P2020459_mk(s) { +function scene_Background_draw__P44472_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P2020459, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P44472, 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, } } @@ -8815,7 +9571,7 @@ function PhysicsEngine_draw__P2020459_mk(s) { -function controller___update__P2020108(s) { +function scene_Background_draw_inline__P52966(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8825,43 +9581,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___2029623 = undefined; + s.ox___52968 = undefined; + s.oy___52979 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 * 1000); + 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 = (s.tmp_0 | 0); - s.dtms___2029623 = (r0); - r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P2029630); + r0 = pxsim.Math_.round(s.tmp_0); + s.ox___52968 = (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_pxtrt_stclo(s.tmp_0, 0, s.dtms___2029623); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_2 = controller_players__P2020072_mk(s); - s.callLocIdx = 193; 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 = 195; s.pc = 1; return s.tmp_1; + r0 = pxsim.Math_.round(s.tmp_0); + s.oy___52979 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P44481_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___52968; + s.tmp_0.arg2 = s.oy___52979; + s.callLocIdx = 792; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update__P2020108.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +scene_Background_draw_inline__P52966.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function controller___update__P2020108_mk(s) { +function scene_Background_draw_inline__P52966_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P2020108, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P52966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___2029623: undefined, + tmp_3: undefined, + ox___52968: undefined, + oy___52979: undefined, arg0: undefined, } } @@ -8869,7 +9640,7 @@ function controller___update__P2020108_mk(s) { -function controller___update_inline__P2029630(s) { +function scene_BackgroundLayer_draw__P44481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8879,36 +9650,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___52997 = undefined; + s.h___53000 = undefined; + s.pw___53003 = undefined; + s.ph___53007 = undefined; + s.rx___53016 = undefined; + s.ry___53019 = undefined; + s.y___53088 = undefined; + s.py___53089 = undefined; + s.dh___53098 = undefined; + s.x___53106 = undefined; + s.rxl___53107 = undefined; + s.px___53113 = undefined; + s.dw___53117 = 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 = controller_Controller___update__P2020106_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 194; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_BackgroundLayer__C44473_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___43826); + s.w___52997 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___43826); + s.h___53000 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___53003 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___53007 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___53003); + 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___53007); + 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___53016 = (r0); + r0 = (0 - s.arg2); + s.ry___53019 = (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___53016; + r0 = (s.w___52997 + s.pw___53003); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___53016 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___53016; + r0 = (s.w___52997 + s.pw___53003); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___53016 = (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___53019; + r0 = (s.h___53000 + s.ph___53007); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___53019 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___53019; + r0 = (s.h___53000 + s.ph___53007); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___53019 = (r0); + case 10: + r0 = (s.rx___53016 % s.w___52997); + s.rx___53016 = (r0); + r0 = (s.rx___53016 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___53016 + s.w___52997); + s.rx___53016 = (r0); + case 11: + case 12: + r0 = (s.ry___53019 % s.h___53000); + s.ry___53019 = (r0); + r0 = (s.ry___53019 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___53019 + s.h___53000); + s.ry___53019 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___53016); + s.rx___53016 = (r0); + r0 = pxsim.Math_.floor(s.ry___53019); + s.ry___53019 = (r0); + s.y___53088 = (0); + s.py___53089 = (0); + case 15: + r0 = (s.y___53088 < s.h___53000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___53088 % s.ph___53007); + s.py___53089 = (r0); + s.tmp_0 = Math_min__P41924_mk(s); + r0 = (s.ph___53007 - s.py___53089); + s.tmp_0.arg0 = r0; + r0 = (s.h___53000 - s.ry___53019); + s.tmp_0.arg1 = r0; + s.callLocIdx = 795; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___53098 = (r0); + s.x___53106 = (0); + s.rxl___53107 = (s.rx___53016); + case 16: + r0 = (s.x___53106 < s.w___52997); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___53106 % s.pw___53003); + s.px___53113 = (r0); + s.tmp_0 = Math_min__P41924_mk(s); + r0 = (s.pw___53003 - s.px___53113); + s.tmp_0.arg0 = r0; + r0 = (s.w___52997 - s.rxl___53107); + s.tmp_0.arg1 = r0; + s.callLocIdx = 796; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; + s.dw___53117 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___43826, s.tmp_0, s.rxl___53107, s.ry___53019); + r0 = (s.rxl___53107 + s.dw___53117); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___52997); + s.rxl___53107 = (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___53117; + { step = 18; continue; } + case 17: + r0 = s.w___52997; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___53106 + s.tmp_1); + s.x___53106 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___53019 + s.dh___53098); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___53000); + s.ry___53019 = (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___53098; + { step = 21; continue; } + case 20: + r0 = s.h___53000; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___53088 + s.tmp_1); + s.y___53088 = (r0); + { step = 15; continue; } + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update_inline__P2029630.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_BackgroundLayer_draw__P44481.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 controller___update_inline__P2029630_mk(s) { +function scene_BackgroundLayer_draw__P44481_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update_inline__P2029630, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P44481, depth: s.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___52997: undefined, + h___53000: undefined, + pw___53003: undefined, + ph___53007: undefined, + rx___53016: undefined, + ry___53019: undefined, + y___53088: undefined, + py___53089: undefined, + dh___53098: undefined, + x___53106: undefined, + rxl___53107: undefined, + px___53113: undefined, + dw___53117: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_Controller___update__P2020106(s) { +function helpers_arraySort__P41898(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8923,38 +9909,41 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_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__P2029643); + r0 = pxsim_numops_toBoolDecr(s.arg1); + 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 = helpers_arrayForEach__P2018051_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 192; s.pc = 1; return s.tmp_1; + 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__P52840); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P46204_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P2020106.info = {"start":13211,"length":124,"line":396,"column":8,"endLine":399,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +helpers_arraySort__P41898.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 controller_Controller___update__P2020106_mk(s) { +function helpers_arraySort__P41898_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P2020106, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P41898, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8968,7 +9957,7 @@ function controller_Controller___update__P2020106_mk(s) { -function controller_Controller___update_inline__P2029643(s) { +function helpers_arraySort_inline__P52840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8978,37 +9967,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.aIsUndef___52843 = undefined; + s.bIsUndef___52847 = undefined; + s.aIsNull___52858 = undefined; + s.bIsNull___52862 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P2020146_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 191; s.pc = 1; return s.tmp_0; + r0 = (s.arg0 === undefined); + s.aIsUndef___52843 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___52847 = (r0); + s.tmp_0 = r0 = s.aIsUndef___52843; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.bIsUndef___52847; + 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___52843); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } + case 4: + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___52847); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0 === null); + s.aIsNull___52858 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___52862 = (r0); + s.tmp_0 = r0 = s.aIsNull___52858; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.bIsNull___52862; + 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___52858); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___52862); + 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; - r0 = undefined; + 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() } } } -controller_Controller___update_inline__P2029643.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +helpers_arraySort_inline__P52840.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 controller_Controller___update_inline__P2029643_mk(s) { +function helpers_arraySort_inline__P52840_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update_inline__P2029643, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P52840, depth: s.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___52843: undefined, + bIsUndef___52847: undefined, + aIsNull___52858: undefined, + bIsNull___52862: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button___update__P2020146(s) { +function helpers_sortHelper__P46204(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9018,115 +10112,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___2029659 = undefined; - s.interval___2029668 = undefined; - s.count___2029681 = undefined; + s.len___52897 = undefined; + s.i___52900 = undefined; + s.j___52906 = 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__C2020132_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_Array__length(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 11; 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: - 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); + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___2022728; - { step = 4; continue; } + r0 = s.arg0; + { step = 11; continue; } case 3: - r0 = s.arg0.fields["repeatDelay"]; case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___2029659 = (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___2022730; - { step = 6; continue; } + r0 = pxsim_Array__length(s.arg0); + s.len___52897 = (r0); + s.i___52900 = (0); case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) + s.tmp_1 = r0 = s.i___52900; + r0 = (s.len___52897 - 1); s.tmp_2 = r0; - s.interval___2029668 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___2029659); + r0 = (s.tmp_1 < s.tmp_2); 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___2029659); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___2029668); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___2029668); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___2029681 = (r0); - r0 = s.arg0.fields["_repeatCount"]; - s.tmp_1 = r0; - r0 = (s.count___2029681 != s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = (s.i___52900 + 1); + s.j___52906 = (r0); + case 6: + r0 = (s.j___52906 < s.len___52897); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_2 = controller_Button_raiseButtonRepeat__P2022717_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 207; s.pc = 12; return s.tmp_2; + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___52900); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___52906); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 0; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___2029681); + 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__P46203_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___52900; + s.tmp_4.arg2 = s.j___52906; + s.callLocIdx = 1; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = (s.j___52906 + 1); + s.j___52906 = (r0); + { step = 6; continue; } case 9: + r0 = (s.i___52900 + 1); + s.i___52900 = (r0); + { step = 5; continue; } case 10: + r0 = s.arg0; case 11: - r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P2020146.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} +helpers_sortHelper__P46204.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 controller_Button___update__P2020146_mk(s) { +function helpers_sortHelper__P46204_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P2020146, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P46204, depth: s.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___2029659: undefined, - interval___2029668: undefined, - count___2029681: undefined, + len___52897: undefined, + i___52900: undefined, + j___52906: undefined, arg0: undefined, arg1: undefined, } } @@ -9135,7 +10219,7 @@ function controller_Button___update__P2020146_mk(s) { -function controller_Button_raiseButtonRepeat__P2022717(s) { +function scene_Camera_update__P44592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9145,35 +10229,179 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.elapsed___53204 = undefined; + s.percentComplete___53218 = undefined; + s.damp___53225 = undefined; + s.f___53234 = undefined; + s.x___53240 = undefined; + s.y___53247 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___2022726); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2054, s.tmp_0); - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = Sprite_x__P44148_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 891; 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__P44150_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 892; 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__P44581_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_x__P44148_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 893; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___43826); + 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 = 894; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P44583_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P44150_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 895; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___43826); + 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 = 896; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); 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___53204 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___53204 >= 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___53204 / s.tmp_0); + s.percentComplete___53218 = (r0); + s.damp___53225 = (1); + r0 = (s.percentComplete___53218 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P41923_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___53218); + s.tmp_1.arg1 = r0; + s.callLocIdx = 899; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.damp___53225 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___53225); + s.f___53234 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___53234); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___53240 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___53234); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___53247 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___53240); + 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___53247); + 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() } } } -controller_Button_raiseButtonRepeat__P2022717.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +scene_Camera_update__P44592.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function controller_Button_raiseButtonRepeat__P2022717_mk(s) { +function scene_Camera_update__P44592_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P2022717, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P44592, depth: s.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___53204: undefined, + percentComplete___53218: undefined, + damp___53225: undefined, + f___53234: undefined, + x___53240: undefined, + y___53247: undefined, arg0: undefined, } } @@ -9181,7 +10409,7 @@ function controller_Button_raiseButtonRepeat__P2022717_mk(s) { -function controller_players__P2020072(s) { +function scene_Camera_offsetY__P44583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9191,34 +10419,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P2020071_mk(s); - s.callLocIdx = 152; s.pc = 1; return s.tmp_0; - case 1: + s.scene___53266 = 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__C44575_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 882; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_0.arg0 = globals._players___2022646; - s.tmp_0.arg1 = controller_players_inline__P2029613; - s.callLocIdx = 153; s.pc = 2; return s.tmp_0; + s.scene___53266 = (r0); + r0 = s.scene___53266.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___53266.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__P44536_mk(s); + r0 = s.scene___53266.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 884; 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() } } } -controller_players__P2020072.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +scene_Camera_offsetY__P44583.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 controller_players__P2020072_mk(s) { +function scene_Camera_offsetY__P44583_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P2020072, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P44583, depth: s.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___53266: undefined, + arg0: undefined, + arg1: undefined, } } -function controller_players_inline__P2029613(s) { +function tiles_TileMap_enabled__P44541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9232,26 +10519,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + 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 leave(s, r0) + return leaveAccessor(s, r0) default: oops() } } } -controller_players_inline__P2029613.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +tiles_TileMap_enabled__P44541.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__P44541.isGetter = true; -function controller_players_inline__P2029613_mk(s) { +function tiles_TileMap_enabled__P44541_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players_inline__P2029613, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P44541, depth: s.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, } } @@ -9259,7 +10552,7 @@ function controller_players_inline__P2029613_mk(s) { -function helpers_arrayFilter__P2018052(s) { +function tiles_TileMap_offsetY__P44536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9269,148 +10562,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___2026849 = undefined; - s.len___2026851 = undefined; - s.i___2026854 = undefined; - s.v___2026859 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___2026849 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___2026851 = (r0); - s.i___2026854 = (0); - case 1: - r0 = (s.i___2026854 < s.len___2026851); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___2026854); - s.v___2026859 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___2026859; - s.tmp_1.arg1 = s.i___2026854; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___2026849, s.v___2026859); - case 2: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P41920_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P41923_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P44538_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 821; s.pc = 3; return s.tmp_3; case 3: - r0 = (s.i___2026854 + 1); - s.i___2026854 = (r0); - { step = 1; continue; } - case 4: - r0 = s.res___2026849; - return leave(s, r0) - default: oops() -} } } -helpers_arrayFilter__P2018052.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__P2018052_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_arrayFilter__P2018052, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - res___2026849: undefined, - len___2026851: undefined, - i___2026854: undefined, - v___2026859: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function controller__moveSprites__P2020076(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 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1 = controller_players__P2020072_mk(s); - s.callLocIdx = 154; s.pc = 2; return s.tmp_1; + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___43826); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 822; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = controller__moveSprites_inline__P2029412; - s.callLocIdx = 156; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 823; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites__P2020076.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +tiles_TileMap_offsetY__P44536.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 controller__moveSprites__P2020076_mk(s) { +function tiles_TileMap_offsetY__P44536_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P2020076, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P44536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, -} } - - - - - -function controller__moveSprites_inline__P2029412(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 = controller_Controller___preUpdate__P2020105_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 155; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller__moveSprites_inline__P2029412.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} - -function controller__moveSprites_inline__P2029412_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller__moveSprites_inline__P2029412, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller___preUpdate__P2020105(s) { +function tiles_TileMap_areaHeight__P44538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9420,326 +10624,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___2029419 = undefined; - s.svx___2029420 = undefined; - s.svy___2029421 = undefined; - s.svxInCricle___2029456 = undefined; - s.svyInCircle___2029458 = undefined; - s.sq___2029460 = undefined; - s.scale___2029475 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P2020082_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 166; s.pc = 18; return s.tmp_3; - case 18: - 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); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; 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___2029419 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___2029419, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___2029420 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___2029420, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___2029421 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___2029421, 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___2029420; - s.tmp_5 = controller_Button_pressureLevel__P2020144_mk(s); - s.tmp_6 = controller_Controller_right__P2020087_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 167; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 168; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P2020144_mk(s); - s.tmp_9 = controller_Controller_left__P2020086_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 169; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 170; 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___2029421; - s.tmp_4 = controller_Button_pressureLevel__P2020144_mk(s); - s.tmp_5 = controller_Controller_down__P2020089_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 171; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 172; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P2020144_mk(s); - s.tmp_8 = controller_Controller_up__P2020088_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 173; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 174; s.pc = 25; return s.tmp_7; - case 25: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); + r0 = s.arg0.fields["_map"]; s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = s.tmp_2.fields["_height"]; s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 12; continue; } - case 3: - s.tmp_1 = controller_Button__C2020132_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P2020087_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 175; 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__C2020132_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__C2020132_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P2020086_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 176; 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__C2020132_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___2029420; - 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__C2020132_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P2020089_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 177; 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__C2020132_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) + r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; - s.tmp_5 = controller_Button__C2020132_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P2020088_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 178; 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__C2020132_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 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } + case 1: r0 = 0; - case 11: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___2029421; - 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___2029456 = (r0); - s.tmp_0 = r0 = s.svxInCricle___2029456; - r0 = pxsim_pxtrt_ldlocRef(s.svx___2029420); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___2029458 = (r0); - s.tmp_0 = r0 = s.svyInCircle___2029458; - r0 = pxsim_pxtrt_ldlocRef(s.svy___2029421); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___2029420); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___2029420); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___2029421); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___2029421); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___2029460 = (r0); - r0 = (s.sq___2029460 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___2029460); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___2029475 = (r0); - s.tmp_0 = r0 = s.svxInCricle___2029456; - s.tmp_3 = r0 = s.scale___2029475; - r0 = pxsim_pxtrt_ldlocRef(s.svx___2029420); - 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___2029458; - s.tmp_3 = r0 = s.scale___2029475; - r0 = pxsim_pxtrt_ldlocRef(s.svy___2029421); - 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__P2029493); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___2029419); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___2029420); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___2029421); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___2029456); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___2029458); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P2020082_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 179; 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 = 187; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___2029419); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P2020083_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P2020082_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 188; 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__P2029550; - s.callLocIdx = 189; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 190; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - case 15: - case 16: - case 17: - r0 = undefined; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P2020105.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +tiles_TileMap_areaHeight__P44538.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function controller_Controller___preUpdate__P2020105_mk(s) { +function tiles_TileMap_areaHeight__P44538_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P2020105, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P44538, depth: s.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___2029419: undefined, - svx___2029420: undefined, - svy___2029421: undefined, - svxInCricle___2029456: undefined, - svyInCircle___2029458: undefined, - sq___2029460: undefined, - scale___2029475: undefined, arg0: undefined, } } @@ -9747,7 +10670,7 @@ function controller_Controller___preUpdate__P2020105_mk(s) { -function controller_Controller___preUpdate_inline__P2029493(s) { +function tiles_TileMap_scale__P44532(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9757,156 +10680,176 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2029496 = undefined; - s.vx___2029497 = undefined; - s.vy___2029498 = 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 = 180; s.pc = 22; return s.tmp_0; } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_scale__P44532.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__P44532.isGetter = true; + +function tiles_TileMap_scale__P44532_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_scale__P44532, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_TileMapData_height__P44514(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 22: - r0 = s.retval; - s.s___2029496 = (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 = 181; s.pc = 23; return s.tmp_2; } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMapData_height__P44514.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__P44514.isGetter = true; + +function tiles_TileMapData_height__P44514_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMapData_height__P44514, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetY__P44582(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 23: - r0 = s.retval; - s.vx___2029497 = (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 = 182; s.pc = 24; return s.tmp_3; } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_offsetY__P44582.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__P44582.isGetter = true; + +function scene_Camera_offsetY__P44582_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetY__P44582, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetX__P44581(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___53326 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 24: - r0 = s.retval; - s.vy___2029498 = (r0); - r0 = s.s___2029496.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; } - r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); - { step = 21; continue; } - case 1: - case 2: - 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___2029497); - if (!r0) { step = 3; continue; } - r0 = (s.s___2029496).fields["_vx"] = (0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___2029498); - if (!r0) { step = 5; continue; } - r0 = (s.s___2029496).fields["_vy"] = (0); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 879; s.pc = 5; return s.tmp_0; case 5: - case 6: - case 7: - case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = s.retval; + s.scene___53326 = (r0); + r0 = s.scene___53326.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - case 10: - // jmp value (already in r0) + { step = 2; continue; } + case 1: + r0 = s.scene___53326.fields["tileMap"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___2029497; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___2029498; - case 12: - // jmp value (already in 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); - if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.s___2029496; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___2029497); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___2029496; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___2029498); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___2029497); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___2029496; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___2029497); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___2029498); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___2029496; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___2029498); + 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__P44535_mk(s); + r0 = s.scene___53326.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 881; 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["_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 = (s.tmp_0).fields["_offsetX"] = (s.tmp_1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate_inline__P2029493.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +scene_Camera_offsetX__P44581.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 controller_Controller___preUpdate_inline__P2029493_mk(s) { +function scene_Camera_offsetX__P44581_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate_inline__P2029493, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P44581, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9915,17 +10858,20 @@ function controller_Controller___preUpdate_inline__P2029493_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - s___2029496: undefined, - vx___2029497: undefined, - vy___2029498: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + scene___53326: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller___preUpdate_inline__P2029550(s) { +function tiles_TileMap_offsetX__P44535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9937,37 +10883,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["flags"]; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P41920_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P41923_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P44537_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 818; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; 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 = pxsim_ImageMethods.width(globals.screen___43826); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 819; 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 = 820; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate_inline__P2029550.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +tiles_TileMap_offsetX__P44535.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 controller_Controller___preUpdate_inline__P2029550_mk(s) { +function tiles_TileMap_offsetX__P44535_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate_inline__P2029550, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P44535, depth: s.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 controller_Button_pressureLevel__P2020144(s) { +function tiles_TileMap_areaWidth__P44537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9982,24 +10948,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); - s.tmp_1 = r0; - r0 = (s.tmp_1 == "sim"); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = controller_Button__C2020132_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2020132_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; + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_width"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); { step = 2; continue; } case 1: r0 = 0; @@ -10007,32 +10967,21 @@ switch (step) { // 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 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } - case 4: - r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P2020144.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} +tiles_TileMap_areaWidth__P44537.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function controller_Button_pressureLevel__P2020144_mk(s) { +function tiles_TileMap_areaWidth__P44537_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P2020144, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P44537, depth: s.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, } } @@ -10040,7 +10989,7 @@ function controller_Button_pressureLevel__P2020144_mk(s) { -function controller_Controller_down__P2020089(s) { +function tiles_TileMapData_width__P44513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10055,25 +11004,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (4 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_down__P2020089.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__P2020089.isGetter = true; +tiles_TileMapData_width__P44513.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__P44513.isGetter = true; -function controller_Controller_down__P2020089_mk(s) { +function tiles_TileMapData_width__P44513_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P2020089, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P44513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -10081,7 +11024,7 @@ function controller_Controller_down__P2020089_mk(s) { -function controller_Controller_button__P2022711(s) { +function scene_Camera_offsetX__P44580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10093,37 +11036,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, controller_Controller__C2020077_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (s.arg1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leave(s, r0) + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_button__P2022711.info = {"start":6666,"length":105,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +scene_Camera_offsetX__P44580.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__P44580.isGetter = true; -function controller_Controller_button__P2022711_mk(s) { +function scene_Camera_offsetX__P44580_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P2022711, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P44580, 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 controller_Controller_up__P2020088(s) { +function Sprite_y__P44150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10138,25 +11074,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (2 - 1); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + 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) default: oops() } } } -controller_Controller_up__P2020088.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__P2020088.isGetter = true; +Sprite_y__P44150.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__P44150.isGetter = true; -function controller_Controller_up__P2020088_mk(s) { +function Sprite_y__P44150_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P2020088, depth: s.depth + 1, + parent: s, fn: Sprite_y__P44150, depth: s.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, } } @@ -10164,7 +11109,7 @@ function controller_Controller_up__P2020088_mk(s) { -function controller_Controller_right__P2020087(s) { +function Fx_toFloat__P41966(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10178,26 +11123,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_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) + r0 = (s.arg0 / 256); + return leave(s, r0) default: oops() } } } -controller_Controller_right__P2020087.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__P2020087.isGetter = true; +Fx_toFloat__P41966.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function controller_Controller_right__P2020087_mk(s) { +function Fx_toFloat__P41966_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P2020087, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P41966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -10205,7 +11141,7 @@ function controller_Controller_right__P2020087_mk(s) { -function controller_Controller_left__P2020086(s) { +function Fx_div__P41955(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10217,36 +11153,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, controller_Controller__C2020077_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + r0 = (s.arg0 << 8); 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) + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + return leave(s, r0) default: oops() } } } -controller_Controller_left__P2020086.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__P2020086.isGetter = true; +Fx_div__P41955.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 controller_Controller_left__P2020086_mk(s) { +function Fx_div__P41955_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P2020086, depth: s.depth + 1, + parent: s, fn: Fx_div__P41955, 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 controller_Controller__controlledSprites__P2020083(s) { +function Fx_add__P41950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10261,31 +11193,17 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 160; 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_.setAt(s.tmp_0, s.tmp_2, s.arg1); - r0 = undefined; + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P2020083.info = {"start":3300,"length":134,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +Fx_add__P41950.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 controller_Controller__controlledSprites__P2020083_mk(s) { +function Fx_add__P41950_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P2020083, depth: s.depth + 1, + parent: s, fn: Fx_add__P41950, 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, } } @@ -10294,7 +11212,7 @@ function controller_Controller__controlledSprites__P2020083_mk(s) { -function controller_Controller__controlledSprites__P2020082(s) { +function Sprite_x__P44148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10309,30 +11227,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 159; 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"]; + if (!checkSubtype(r0, Sprite__C44135_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 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P2020082.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__P2020082.isGetter = true; +Sprite_x__P44148.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__P44148.isGetter = true; -function controller_Controller__controlledSprites__P2020082_mk(s) { +function Sprite_x__P44148_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P2020082, depth: s.depth + 1, + parent: s, fn: Sprite_x__P44148, depth: s.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, } } @@ -10340,7 +11262,7 @@ function controller_Controller__controlledSprites__P2020082_mk(s) { -function Fx_imul__P2018103(s) { +function PhysicsEngine_move__P44311(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10355,16 +11277,18 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_imul__P2018103.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +PhysicsEngine_move__P44311.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 Fx_imul__P2018103_mk(s) { +function PhysicsEngine_move__P44311_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P2018103, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P44311, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -10374,7 +11298,7 @@ function Fx_imul__P2018103_mk(s) { -function power_checkDeepSleep__P2019873(s) { +function PhysicsEngine_draw__P44310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10384,94 +11308,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2028161 = undefined; - s.to___2028164 = undefined; - s.tmp_0 = power_init__P2022555_mk(s); - s.callLocIdx = 75; s.pc = 11; return s.tmp_0; - case 11: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_draw__P44310.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} + +function PhysicsEngine_draw__P44310_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_draw__P44310, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller___update__P43959(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.dtms___53617 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 * 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.dtms___53617 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P53624); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___53617); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_2 = controller_players__P43923_mk(s); + s.callLocIdx = 193; s.pc = 2; return s.tmp_2; + case 2: r0 = s.retval; - s.tmp_0 = r0 = globals._poked___2022553; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 195; s.pc = 1; return s.tmp_1; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.p___2028161 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___2022554; - 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___2028164 = (s.tmp_1); - r0 = (s.to___2028164 > 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___2028161); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___2028164); - 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 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P2019873.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +controller___update__P43959.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function power_checkDeepSleep__P2019873_mk(s) { +function controller___update__P43959_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P2019873, depth: s.depth + 1, + parent: s, fn: controller___update__P43959, depth: s.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___2028161: undefined, - to___2028164: undefined, + dtms___53617: undefined, + arg0: undefined, } } -function power_init__P2022555(s) { +function controller___update_inline__P53624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10481,54 +11396,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___2022554 !== undefined); - 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_pxtcore.getConfig(212, -1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___2022554 = (r0); - r0 = (globals._timeout___2022554 > 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___2022554 < 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___2022554 = (300000); - case 5: - case 6: - case 7: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = controller_Controller___update__P43957_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 194; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -power_init__P2022555.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +controller___update_inline__P53624.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function power_init__P2022555_mk(s) { +function controller___update_inline__P53624_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P2022555, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P53624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function power_poke__P2019872(s) { +function controller_Controller___update__P43957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10538,31 +11435,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P2022555_mk(s); - s.callLocIdx = 74; s.pc = 1; return 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, controller_Controller__C43928_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__P53637); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 192; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___2022553 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P2019872.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +controller_Controller___update__P43957.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 power_poke__P2019872_mk(s) { +function controller_Controller___update__P43957_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P2019872, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P43957, depth: s.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 control_EventContext_deltaTime__P2018342(s) { +function controller_Controller___update_inline__P53637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10576,21 +11499,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, r0) + s.tmp_0 = controller_Button___update__P43997_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 191; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P2018342.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__P2018342.isGetter = true; +controller_Controller___update_inline__P53637.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function control_EventContext_deltaTime__P2018342_mk(s) { +function controller_Controller___update_inline__P53637_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P2018342, depth: s.depth + 1, + parent: s, fn: controller_Controller___update_inline__P53637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10600,7 +11525,7 @@ function control_EventContext_deltaTime__P2018342_mk(s) { -function scene_Scene_constructor__P2020809(s) { +function controller_Button___update__P43997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10610,118 +11535,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.delay___53653 = undefined; + s.interval___53662 = undefined; + s.count___53675 = 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__C2020786_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__C2020470_VT); + if (!checkSubtype(r0, controller_Button__C43983_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; - s.tmp_1 = ArcadePhysicsEngine_constructor__P2020471_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 = 904; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2020724_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P2020728_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 905; 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__C2020612_VT); + 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; - s.tmp_1 = scene_Background_constructor__P2020616_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 906; s.pc = 3; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = globals.defaultRepeatDelay___46581; + { 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(); - 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(); + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.delay___53653 = (s.tmp_2); + r0 = s.arg0.fields["repeatInterval"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = globals.defaultRepeatInterval___46583; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___53662 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); + r0 = (s.tmp_1 < s.delay___53653); + 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___53653); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___53662); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___53662); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___53675 = (r0); + r0 = s.arg0.fields["_repeatCount"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); - r0 = (s.arg0).fields["_millis"] = (0); + r0 = (s.count___53675 != 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__P46570_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 207; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___53675); + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P2020809.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"]} +controller_Button___update__P43997.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 scene_Scene_constructor__P2020809_mk(s) { +function controller_Button___update__P43997_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P2020809, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P43997, depth: s.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___53653: undefined, + interval___53662: undefined, + count___53675: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Camera_constructor__P2020728(s) { +function controller_Button_raiseButtonRepeat__P46570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10736,22 +11667,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_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); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___46579); + 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() } } } -scene_Camera_constructor__P2020728.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +controller_Button_raiseButtonRepeat__P46570.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function scene_Camera_constructor__P2020728_mk(s) { +function controller_Button_raiseButtonRepeat__P46570_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P2020728, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P46570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -10759,7 +11698,44 @@ function scene_Camera_constructor__P2020728_mk(s) { -function scene_Background_constructor__P2020616(s) { +function controller_players__P43923(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__P43922_mk(s); + s.callLocIdx = 152; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = helpers_arrayFilter__P41903_mk(s); + s.tmp_0.arg0 = globals._players___46499; + s.tmp_0.arg1 = controller_players_inline__P53607; + s.callLocIdx = 153; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +controller_players__P43923.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} + +function controller_players__P43923_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_players__P43923, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function controller_players_inline__P53607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10771,39 +11747,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, scene_Background__C2020612_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(); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); - r0 = undefined; + 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_Background_constructor__P2020616.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +controller_players_inline__P53607.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function scene_Background_constructor__P2020616_mk(s) { +function controller_players_inline__P53607_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P2020616, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P53607, 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_constructor__P2020471(s) { +function helpers_arrayFilter__P41903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10813,70 +11786,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___50843 = undefined; + s.len___50845 = undefined; + s.i___50848 = undefined; + s.v___50853 = 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__C2020470_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__C2020389_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P2020390_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 525; s.pc = 1; return s.tmp_1; + s.res___50843 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___50845 = (r0); + s.i___50848 = (0); case 1: + r0 = (s.i___50848 < s.len___50845); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___50848); + s.v___50853 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___50853; + s.tmp_1.arg1 = s.i___50848; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 6; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P2020473_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 526; s.pc = 2; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.res___50843, s.v___50853); case 2: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P2020477_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 527; s.pc = 3; return s.tmp_0; case 3: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P2020475_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 528; s.pc = 4; return s.tmp_0; + r0 = (s.i___50848 + 1); + s.i___50848 = (r0); + { step = 1; continue; } case 4: - r0 = s.retval; - r0 = undefined; + r0 = s.res___50843; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P2020471.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"]} +helpers_arrayFilter__P41903.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 ArcadePhysicsEngine_constructor__P2020471_mk(s) { +function helpers_arrayFilter__P41903_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P2020471, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P41903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + res___50843: undefined, + len___50845: undefined, + i___50848: undefined, + v___50853: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_maxStep__P2020477(s) { +function controller__moveSprites__P43927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10886,42 +11860,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.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_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); + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1 = controller_players__P43923_mk(s); + s.callLocIdx = 154; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = controller__moveSprites_inline__P53406; + s.callLocIdx = 156; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2020477.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +controller__moveSprites__P43927.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function ArcadePhysicsEngine_maxStep__P2020477_mk(s) { +function controller__moveSprites__P43927_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2020477, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P43927, 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__P2020476(s) { +function controller__moveSprites_inline__P53406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10935,26 +11903,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_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 = controller_Controller___preUpdate__P43956_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 155; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2020476.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__P2020476.isGetter = true; +controller__moveSprites_inline__P53406.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function ArcadePhysicsEngine_maxStep__P2020476_mk(s) { +function controller__moveSprites_inline__P53406_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2020476, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P53406, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -10962,7 +11927,7 @@ function ArcadePhysicsEngine_maxStep__P2020476_mk(s) { -function Fx_toInt__P2018114(s) { +function controller_Controller___preUpdate__P43956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10972,24 +11937,326 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.deadSprites___53413 = undefined; + s.svx___53414 = undefined; + s.svy___53415 = undefined; + s.svxInCricle___53450 = undefined; + s.svyInCircle___53452 = undefined; + s.sq___53454 = undefined; + s.scale___53469 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 + 128); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P43933_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 166; s.pc = 18; return s.tmp_3; + case 18: + 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; } + { step = 17; continue; } + case 1: + case 2: + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___53413 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___53413, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___53414 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___53414, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___53415 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___53415, 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___53414; + s.tmp_5 = controller_Button_pressureLevel__P43995_mk(s); + s.tmp_6 = controller_Controller_right__P43938_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 167; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 168; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P43995_mk(s); + s.tmp_9 = controller_Controller_left__P43937_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 169; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 170; 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___53415; + s.tmp_4 = controller_Button_pressureLevel__P43995_mk(s); + s.tmp_5 = controller_Controller_down__P43940_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 171; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 172; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P43995_mk(s); + s.tmp_8 = controller_Controller_up__P43939_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 173; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 174; 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__C43983_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P43938_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 175; 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__C43983_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__C43983_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P43937_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 176; 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__C43983_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___53414; + 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__C43983_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P43940_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 177; 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__C43983_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__C43983_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P43939_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 178; 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__C43983_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___53415; + 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___53450 = (r0); + s.tmp_0 = r0 = s.svxInCricle___53450; + r0 = pxsim_pxtrt_ldlocRef(s.svx___53414); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___53452 = (r0); + s.tmp_0 = r0 = s.svyInCircle___53452; + r0 = pxsim_pxtrt_ldlocRef(s.svy___53415); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___53414); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___53414); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___53415); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___53415); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___53454 = (r0); + r0 = (s.sq___53454 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___53454); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___53469 = (r0); + s.tmp_0 = r0 = s.svxInCricle___53450; + s.tmp_3 = r0 = s.scale___53469; + r0 = pxsim_pxtrt_ldlocRef(s.svx___53414); + 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___53452; + s.tmp_3 = r0 = s.scale___53469; + r0 = pxsim_pxtrt_ldlocRef(s.svy___53415); + 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__P53487); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___53413); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___53414); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___53415); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___53450); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___53452); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P43933_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 179; 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 = 187; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___53413); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P43934_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P41903_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P43933_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 188; 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__P53544; + s.callLocIdx = 189; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 190; 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() } } } -Fx_toInt__P2018114.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +controller_Controller___preUpdate__P43956.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function Fx_toInt__P2018114_mk(s) { +function controller_Controller___preUpdate__P43956_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P2018114, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P43956, depth: s.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___53413: undefined, + svx___53414: undefined, + svy___53415: undefined, + svxInCricle___53450: undefined, + svyInCircle___53452: undefined, + sq___53454: undefined, + scale___53469: undefined, arg0: undefined, } } @@ -10997,7 +12264,7 @@ function Fx_toInt__P2018114_mk(s) { -function ArcadePhysicsEngine_minStep__P2020475(s) { +function controller_Controller___preUpdate_inline__P53487(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11007,42 +12274,175 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___53490 = undefined; + s.vx___53491 = undefined; + s.vy___53492 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + 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 = 180; s.pc = 22; return s.tmp_0; } + } + case 22: + r0 = s.retval; + s.s___53490 = (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 = 181; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___53491 = (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 = 182; s.pc = 24; return s.tmp_3; } + } + case 24: + r0 = s.retval; + s.vy___53492 = (r0); + r0 = s.s___53490.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; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } + case 1: + case 2: + 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___53491); + if (!r0) { step = 3; continue; } + r0 = (s.s___53490).fields["_vx"] = (0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___53492); + if (!r0) { step = 5; continue; } + r0 = (s.s___53490).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; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___53491; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___53492; + 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___53490; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___53491); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___53490; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___53492); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___53491); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___53490; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___53491); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.vy___53492); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___53490; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___53492); + 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() } } } -ArcadePhysicsEngine_minStep__P2020475.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +controller_Controller___preUpdate_inline__P53487.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function ArcadePhysicsEngine_minStep__P2020475_mk(s) { +function controller_Controller___preUpdate_inline__P53487_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2020475, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P53487, depth: s.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___53490: undefined, + vx___53491: undefined, + vy___53492: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P2020474(s) { +function controller_Controller___preUpdate_inline__P53544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11056,26 +12456,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - 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() } } } -ArcadePhysicsEngine_minStep__P2020474.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__P2020474.isGetter = true; +controller_Controller___preUpdate_inline__P53544.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function ArcadePhysicsEngine_minStep__P2020474_mk(s) { +function controller_Controller___preUpdate_inline__P53544_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2020474, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P53544, 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, } } @@ -11083,7 +12484,7 @@ function ArcadePhysicsEngine_minStep__P2020474_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P2020473(s) { +function controller_Button_pressureLevel__P43995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11095,70 +12496,60 @@ 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__C2020470_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; + r0 = (s.tmp_1 == "sim"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = controller_Button__C43983_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C43983_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 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; + { step = 2; continue; } + case 1: + 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 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } + case 4: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P2020473.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +controller_Button_pressureLevel__P43995.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function ArcadePhysicsEngine_maxSpeed__P2020473_mk(s) { +function controller_Button_pressureLevel__P43995_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2020473, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P43995, 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 Fx_neg__P2018097(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 = (0 - s.arg0); - return leave(s, r0) - default: oops() -} } } -Fx_neg__P2018097.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} - -function Fx_neg__P2018097_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_neg__P2018097, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, } } @@ -11166,7 +12557,7 @@ function Fx_neg__P2018097_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P2020472(s) { +function controller_Controller_down__P43940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11181,22 +12572,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = (4 - 1); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P2020472.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__P2020472.isGetter = true; +controller_Controller_down__P43940.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__P43940.isGetter = true; -function ArcadePhysicsEngine_maxSpeed__P2020472_mk(s) { +function controller_Controller_down__P43940_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2020472, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P43940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11207,41 +12598,7 @@ function ArcadePhysicsEngine_maxSpeed__P2020472_mk(s) { -function PhysicsEngine_constructor__P2020455(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, PhysicsEngine__C2020454_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_constructor__P2020455.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} - -function PhysicsEngine_constructor__P2020455_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_constructor__P2020455, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function sprites_SpriteMap_constructor__P2020390(s) { +function controller_Controller_button__P46564(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11253,101 +12610,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, sprites_SpriteMap__C2020389_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (s.arg1 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P2020390.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +controller_Controller_button__P46564.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 sprites_SpriteMap_constructor__P2020390_mk(s) { +function controller_Controller_button__P46564_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P2020390, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P46564, 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__P2018351(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___2029722 = undefined; - s.n___2029728 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___2022430); - 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.eventContexts___2022430 = (r0); - case 1: - case 2: - s.tmp_0 = control_eventContext__P2018350_mk(s); - s.callLocIdx = 53; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___2029722 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___2029722); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P2018344_mk(s); - s.tmp_0.arg0 = s.ctx___2029722; - s.callLocIdx = 54; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C2018337_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P2018341_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 55; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.n___2029728 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___2022430, s.n___2029728); - r0 = s.n___2029728; - return leave(s, r0) - default: oops() -} } } -control_pushEventContext__P2018351.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} - -function control_pushEventContext__P2018351_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_pushEventContext__P2018351, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - ctx___2029722: undefined, - n___2029728: undefined, -} } - - - - - -function control_EventContext_constructor__P2018341(s) { +function controller_Controller_up__P43939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11362,36 +12655,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C2018337_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___2018339); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.mkEmpty(); - globals.control_EventContext_lastStats___2018339 = (r0); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_constructor__P2018341.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +controller_Controller_up__P43939.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__P43939.isGetter = true; -function control_EventContext_constructor__P2018341_mk(s) { +function controller_Controller_up__P43939_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P2018341, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P43939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11402,144 +12681,7 @@ function control_EventContext_constructor__P2018341_mk(s) { -function particles_disableAll__P2021125(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___2029907 = undefined; - s.tmp_0 = particles_particleSources__P2023281_mk(s); - s.callLocIdx = 1257; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___2029907 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___2029907); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_0.arg0 = s.sources___2029907; - s.tmp_0.arg1 = particles_disableAll_inline__P2029913; - s.callLocIdx = 1259; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P2023277_mk(s); - s.callLocIdx = 1260; 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_disableAll__P2021125.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} - -function particles_disableAll__P2021125_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_disableAll__P2021125, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___2029907: undefined, -} } - - - - - -function particles_disableAll_inline__P2029913(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 = particles_ParticleSource_enabled__P2021107_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1258; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = false; - return leave(s, r0) - default: oops() -} } } -particles_disableAll_inline__P2029913.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_disableAll_inline__P2029913_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_disableAll_inline__P2029913, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function particles_clearAll__P2021124(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___2029918 = undefined; - s.tmp_0 = particles_particleSources__P2023281_mk(s); - s.callLocIdx = 1253; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___2029918 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___2029918); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_0.arg0 = s.sources___2029918; - s.tmp_0.arg1 = particles_clearAll_inline__P2029924; - s.callLocIdx = 1255; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P2023277_mk(s); - s.callLocIdx = 1256; 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_clearAll__P2021124.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} - -function particles_clearAll__P2021124_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_clearAll__P2021124, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___2029918: undefined, -} } - - - - - -function particles_clearAll_inline__P2029924(s) { +function controller_Controller_right__P43938(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11553,23 +12695,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P2021109_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1254; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C43928_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() } } } -particles_clearAll_inline__P2029924.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_Controller_right__P43938.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__P43938.isGetter = true; -function particles_clearAll_inline__P2029924_mk(s) { +function controller_Controller_right__P43938_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll_inline__P2029924, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P43938, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -11577,7 +12722,7 @@ function particles_clearAll_inline__P2029924_mk(s) { -function particles_ParticleSource_clear__P2021109(s) { +function controller_Controller_left__P43937(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11592,19 +12737,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, controller_Controller__C43928_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) default: oops() } } } -particles_ParticleSource_clear__P2021109.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +controller_Controller_left__P43937.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__P43937.isGetter = true; -function particles_ParticleSource_clear__P2021109_mk(s) { +function controller_Controller_left__P43937_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P2021109, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P43937, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -11612,7 +12763,7 @@ function particles_ParticleSource_clear__P2021109_mk(s) { -function game_SplashDialog_setSubtext__P2020884(s) { +function controller_Controller__controlledSprites__P43934(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11628,64 +12779,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2020875_VT)) failedCast(r0); - r0 = (s.arg0).fields["subtext"] = (s.arg1); - s.tmp_0 = game_SplashDialog_updateFont__P2022903_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 977; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P44793_mk(s); + s.callLocIdx = 160; s.pc = 1; return s.tmp_1; 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 = 978; 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 = pxsim_ImageMethods.width(globals.screen___2019975); - s.tmp_7 = r0; - r0 = (s.tmp_3 - s.tmp_7); + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; 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 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_SplashDialog_setSubtext__P2020884.info = {"start":9748,"length":200,"line":300,"column":8,"endLine":304,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setSubtext","argumentNames":["this","sub"]} +controller_Controller__controlledSprites__P43934.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 game_SplashDialog_setSubtext__P2020884_mk(s) { +function controller_Controller__controlledSprites__P43934_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_setSubtext__P2020884, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P43934, depth: s.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, } } @@ -11694,7 +12811,7 @@ function game_SplashDialog_setSubtext__P2020884_mk(s) { -function game_SplashDialog_updateFont__P2022903(s) { +function controller_Controller__controlledSprites__P43933(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11709,78 +12826,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2020875_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; } + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P44793_mk(s); + s.callLocIdx = 159; s.pc = 1; return s.tmp_1; 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); - if (!r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } - case 3: - r0 = pxsim_String_.mkEmpty(); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = game_BaseDialog_setFont__P2022900_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_5 = image_getFontForText__P2019920_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; - 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 = 973; s.pc = 6; return s.tmp_5; - case 6: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 974; s.pc = 5; return s.tmp_4; - case 5: 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() } } } -game_SplashDialog_updateFont__P2022903.info = {"start":9357,"length":122,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"updateFont","argumentNames":["this"]} +controller_Controller__controlledSprites__P43933.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__P43933.isGetter = true; -function game_SplashDialog_updateFont__P2022903_mk(s) { +function controller_Controller__controlledSprites__P43933_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_updateFont__P2022903, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P43933, depth: s.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, } } @@ -11788,7 +12857,7 @@ function game_SplashDialog_updateFont__P2022903_mk(s) { -function game_BaseDialog_setFont__P2022900(s) { +function Fx_imul__P41954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11803,19 +12872,16 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); - r0 = (s.arg0).fields["font"] = (s.arg1); - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); return leave(s, r0) default: oops() } } } -game_BaseDialog_setFont__P2022900.info = {"start":5994,"length":77,"line":190,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setFont","argumentNames":["this","font"]} +Fx_imul__P41954.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 game_BaseDialog_setFont__P2022900_mk(s) { +function Fx_imul__P41954_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_setFont__P2022900, depth: s.depth + 1, + parent: s, fn: Fx_imul__P41954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11825,7 +12891,7 @@ function game_BaseDialog_setFont__P2022900_mk(s) { -function game_SplashDialog_setText__P2020883(s) { +function power_checkDeepSleep__P43724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11835,61 +12901,77 @@ 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, game_SplashDialog__C2020875_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - s.tmp_0 = game_SplashDialog_updateFont__P2022903_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 975; s.pc = 1; return s.tmp_0; - case 1: + s.p___52155 = undefined; + s.to___52158 = undefined; + s.tmp_0 = power_init__P46408_mk(s); + s.callLocIdx = 75; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - r0 = (s.arg0).fields["offset"] = (0); - 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 = 976; s.pc = 2; return s.tmp_6; } - } + s.tmp_0 = r0 = globals._poked___46406; + 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: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - s.tmp_7 = r0; - r0 = (s.tmp_3 - s.tmp_7); + // jmp value (already in r0) + s.tmp_1 = r0; + s.p___52155 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___46407; + 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___52158 = (s.tmp_1); + r0 = (s.to___52158 > 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.arg0.fields["unit"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 << 1); - s.tmp_8 = r0; - r0 = (s.tmp_2 + s.tmp_8); + r0 = (s.tmp_2 - s.p___52155); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxOffset"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (2); + r0 = (s.tmp_1 > s.to___52158); + 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; return leave(s, r0) default: oops() } } } -game_SplashDialog_setText__P2020883.info = {"start":9489,"length":249,"line":292,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","text"]} +power_checkDeepSleep__P43724.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function game_SplashDialog_setText__P2020883_mk(s) { +function power_checkDeepSleep__P43724_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_setText__P2020883, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P43724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11898,18 +12980,15 @@ function game_SplashDialog_setText__P2020883_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - arg0: undefined, - arg1: undefined, + p___52155: undefined, + to___52158: undefined, } } -function game_SplashDialog_constructor__P2020882(s) { +function power_init__P46408(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11919,54 +12998,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.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2020875_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_constructor__P2020858_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__P2022915_mk(s); - s.callLocIdx = 971; 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 = 972; s.pc = 1; return s.tmp_0; + r0 = (globals._timeout___46407 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["maxOffset"] = (-1); - r0 = (s.arg0).fields["maxSubOffset"] = (-1); - r0 = (s.arg0).fields["textColor"] = (1); + case 2: + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___46407 = (r0); + r0 = (globals._timeout___46407 > 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___46407 < 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___46407 = (300000); + case 5: + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -game_SplashDialog_constructor__P2020882.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"]} +power_init__P46408.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function game_SplashDialog_constructor__P2020882_mk(s) { +function power_init__P46408_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_constructor__P2020882, depth: s.depth + 1, + parent: s, fn: power_init__P46408, 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 game_defaultSplashFrame__P2022915(s) { +function power_poke__P43723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11976,39 +13055,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2019975); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex2027623); - { step = 2; continue; } + s.tmp_0 = power_init__P46408_mk(s); + s.callLocIdx = 74; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim.image.ofBuffer(_hex2027625); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.retval; + r0 = pxsim.control.millis(); + globals._poked___46406 = (r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultSplashFrame__P2022915.info = {"start":27877,"length":220,"line":768,"column":4,"endLine":781,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} +power_poke__P43723.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function game_defaultSplashFrame__P2022915_mk(s) { +function power_poke__P43723_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultSplashFrame__P2022915, depth: s.depth + 1, + parent: s, fn: power_poke__P43723, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, } } -const _hex2027623 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") -const _hex2027625 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function game_BaseDialog_constructor__P2020858(s) { +function control_EventContext_deltaTime__P42193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12020,51 +13091,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.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); - r0 = (s.arg0).fields["cursorCount"] = (0); - s.tmp_0 = game_BaseDialog_resize__P2020859_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 = 940; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, control_EventContext__C42188_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_constructor__P2020858.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"]} +control_EventContext_deltaTime__P42193.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__P42193.isGetter = true; -function game_BaseDialog_constructor__P2020858_mk(s) { +function control_EventContext_deltaTime__P42193_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_constructor__P2020858, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P42193, 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 game_BaseDialog_resize__P2020859(s) { +function scene_Scene_constructor__P44660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12078,186 +13131,114 @@ 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, game_BaseDialog__C2020846_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, scene_Scene__C44637_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__C44321_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P44322_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 = 904; s.pc = 1; return s.tmp_1; case 1: - r0 = globals.dialogFrame___2022887; + r0 = s.retval; + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C44575_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Camera_constructor__P44579_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 905; 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; } + r0 = s.retval; + r0 = (s.arg0).fields["camera"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C44463_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P44467_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 906; s.pc = 3; return s.tmp_1; case 3: - s.tmp_3 = game_defaultFrame__P2022914_mk(s); - s.callLocIdx = 941; s.pc = 13; return s.tmp_3; - case 13: r0 = s.retval; - s.tmp_2 = r0; - globals.dialogFrame___2022887 = (r0); - r0 = s.tmp_2; - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["frame"] = (s.tmp_4); + r0 = (s.arg0).fields["background"] = (s.tmp_0); 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); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); + r0 = (s.tmp_0).fields["destroyedHandlers"] = (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); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["columns"] = (s.tmp_1); + r0 = (s.tmp_0).fields["createdHandlers"] = (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); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["rows"] = (s.tmp_1); + r0 = (s.tmp_0).fields["overlapHandlers"] = (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); + r0 = pxsim_pxtrt.mkMap(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerLeft"] = (s.tmp_1); + r0 = (s.tmp_0).fields["overlapMap"] = (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); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerTop"] = (s.tmp_1); + r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.arg1, s.arg2); + r0 = pxsim_Array__mk(); 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___2019918; - case 6: - // jmp value (already in 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.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___2022888; - case 8: - // jmp value (already in 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 = 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__P2022916_mk(s); - s.callLocIdx = 942; s.pc = 14; return s.tmp_3; - case 14: - r0 = s.retval; - s.tmp_2 = r0; - globals.dialogCursor___2022888 = (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___2022889 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - globals.dialogTextColor___2022889 = (15); - r0 = 15; - { step = 12; continue; } - case 11: - r0 = globals.dialogTextColor___2022889; - case 12: - // jmp value (already in 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.arg0).fields["textColor"] = (s.tmp_1); - s.tmp_0 = game_BaseDialog_drawBorder__P2022892_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 943; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_clearInterior__P2022894_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 944; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; + 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() } } } -game_BaseDialog_resize__P2020859.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"]} +scene_Scene_constructor__P44660.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 game_BaseDialog_resize__P2020859_mk(s) { +function scene_Scene_constructor__P44660_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_resize__P2020859, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P44660, depth: s.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 game_defaultCursorImage__P2022916(s) { +function scene_Camera_constructor__P44579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12267,39 +13248,79 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2019975); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex2027821); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex2027823); - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C44575_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() +} } } +scene_Camera_constructor__P44579.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} + +function scene_Camera_constructor__P44579_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_constructor__P44579, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Background_constructor__P44467(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_Background__C44463_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_1; + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultCursorImage__P2022916.info = {"start":28103,"length":690,"line":783,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} +scene_Background_constructor__P44467.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 game_defaultCursorImage__P2022916_mk(s) { +function scene_Background_constructor__P44467_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultCursorImage__P2022916, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P44467, 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 _hex2027821 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") -const _hex2027823 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") -function game_defaultFrame__P2022914(s) { +function ArcadePhysicsEngine_constructor__P44322(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12309,39 +13330,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___2019975); + 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__C44321_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__C44240_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex2027827); - { step = 2; continue; } + s.tmp_1 = sprites_SpriteMap_constructor__P44241_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 525; s.pc = 1; return s.tmp_1; case 1: - r0 = pxsim.image.ofBuffer(_hex2027829); + r0 = s.retval; + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P44324_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 526; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_maxStep__P44328_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 527; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_minStep__P44326_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 528; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultFrame__P2022914.info = {"start":27315,"length":556,"line":744,"column":4,"endLine":766,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} +ArcadePhysicsEngine_constructor__P44322.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_defaultFrame__P2022914_mk(s) { +function ArcadePhysicsEngine_constructor__P44322_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultFrame__P2022914, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P44322, 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 _hex2027827 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") -const _hex2027829 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function game_BaseDialog_clearInterior__P2022894(s) { +function ArcadePhysicsEngine_maxStep__P44328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12351,104 +13403,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___2026594 = undefined; - s.s___2026601 = 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__C2020846_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__P2022893_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 = 967; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 7; continue; } - case 1: - case 2: - s.d___2026594 = (1); - case 3: - s.tmp_1 = r0 = s.d___2026594; - 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___2026601 = (1); - case 4: - s.tmp_1 = r0 = s.s___2026601; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); 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__P2022895_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 4; - s.tmp_4.arg2 = s.d___2026594; - s.tmp_4.arg3 = s.s___2026601; - s.callLocIdx = 968; s.pc = 9; return s.tmp_4; - case 9: - r0 = s.retval; - r0 = (s.s___2026601 + 1); - s.s___2026601 = (r0); - { step = 4; continue; } - case 5: - r0 = (s.d___2026594 + 1); - s.d___2026594 = (r0); - { step = 3; continue; } - case 6: - case 7: + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_clearInterior__P2022894.info = {"start":4543,"length":342,"line":146,"column":8,"endLine":155,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P44328.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_BaseDialog_clearInterior__P2022894_mk(s) { +function ArcadePhysicsEngine_maxStep__P44328_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_clearInterior__P2022894, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P44328, depth: s.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___2026594: undefined, - s___2026601: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_drawPartial__P2022895(s) { +function ArcadePhysicsEngine_maxStep__P44327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12458,125 +13448,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___2026619 = undefined; - s.y0___2026627 = undefined; - s.xf___2026635 = undefined; - s.yf___2026642 = undefined; - s.e___2026649 = undefined; - s.t___2026655 = 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__C2020846_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___2026619 = (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___2026627 = (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___2026635 = (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___2026642 = (r0); - s.e___2026649 = (0); - case 1: - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.e___2026649 < s.tmp_1); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.t___2026655 = (0); - case 2: - r0 = s.arg0.fields["unit"]; + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = (s.t___2026655 < 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___2026619 + s.e___2026649); - s.tmp_3 = r0; - r0 = (s.y0___2026627 + s.t___2026655); - s.tmp_4 = r0; - r0 = s.arg0.fields["frame"]; - s.tmp_6 = r0; - r0 = (s.xf___2026635 + s.e___2026649); - s.tmp_7 = r0; - r0 = (s.yf___2026642 + s.t___2026655); - 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___2026655 + 1); - s.t___2026655 = (r0); - { step = 2; continue; } - case 3: - r0 = (s.e___2026649 + 1); - s.e___2026649 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_drawPartial__P2022895.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"]} +ArcadePhysicsEngine_maxStep__P44327.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__P44327.isGetter = true; -function game_BaseDialog_drawPartial__P2022895_mk(s) { +function ArcadePhysicsEngine_maxStep__P44327_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawPartial__P2022895, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P44327, depth: s.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___2026619: undefined, - y0___2026627: undefined, - xf___2026635: undefined, - yf___2026642: undefined, - e___2026649: undefined, - t___2026655: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function game_BaseDialog_fastFill__P2022893(s) { +function Fx_toInt__P41965(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12586,71 +13489,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.color___2026691 = 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__C2020846_VT)) failedCast(r0); - r0 = s.arg0.fields["frame"]; + r0 = (s.arg0 + 128); 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___2026691 = (r0); - s.tmp_0 = helpers_imageFillRect__P2019899_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___2026691; - s.callLocIdx = 966; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -game_BaseDialog_fastFill__P2022893.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"]} +Fx_toInt__P41965.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function game_BaseDialog_fastFill__P2022893_mk(s) { +function Fx_toInt__P41965_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_fastFill__P2022893, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P41965, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - color___2026691: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function game_BaseDialog_drawBorder__P2022892(s) { +function ArcadePhysicsEngine_minStep__P44326(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12660,279 +13524,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.y___2027752 = undefined; - s.c___2027768 = undefined; - s.r___2027802 = 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__C2020846_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__P2022893_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 = 950; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_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 = 951; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_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 = 952; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_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 = 953; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_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 = 954; 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___2027752 = (r0); - s.tmp_0 = game_BaseDialog_fastFill__P2022893_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.y___2027752; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 955; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = s.y___2027752; - 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 = 956; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P2022893_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___2027752; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 957; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - { step = 11; continue; } - case 1: - case 2: - s.c___2027768 = (0); - case 3: - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.c___2027768 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.c___2027768 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_3 = game_BaseDialog_drawPartial__P2022895_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 = 958; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P2022895_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 = 959; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - { step = 7; continue; } - case 4: - s.tmp_1 = r0 = s.c___2027768; - 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__P2022895_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 2; - s.tmp_4.arg2 = s.c___2027768; - s.tmp_4.arg3 = 0; - s.callLocIdx = 960; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P2022895_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - s.tmp_0.arg2 = s.c___2027768; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 961; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = game_BaseDialog_drawPartial__P2022895_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = s.c___2027768; - s.tmp_0.arg3 = 0; - s.callLocIdx = 962; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P2022895_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = s.c___2027768; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 963; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - case 6: - case 7: - r0 = (s.c___2027768 + 1); - s.c___2027768 = (r0); - { step = 3; continue; } - case 8: - s.r___2027802 = (1); - case 9: - s.tmp_1 = r0 = s.r___2027802; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); 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__P2022895_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 3; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.r___2027802; - s.callLocIdx = 964; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P2022895_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.r___2027802; - s.callLocIdx = 965; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = (s.r___2027802 + 1); - s.r___2027802 = (r0); - { step = 9; continue; } - case 10: - case 11: + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawBorder__P2022892.info = {"start":2953,"length":1321,"line":103,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P44326.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 game_BaseDialog_drawBorder__P2022892_mk(s) { +function ArcadePhysicsEngine_minStep__P44326_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawBorder__P2022892, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P44326, depth: s.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___2027752: undefined, - c___2027768: undefined, - r___2027802: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_update__P2020860(s) { +function ArcadePhysicsEngine_minStep__P44325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12947,36 +13574,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P2022894_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 945; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = game_BaseDialog__C2020846_v2_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2020846_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__P2020863_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 946; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_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() } } } -game_BaseDialog_update__P2020860.info = {"start":2171,"length":121,"line":74,"column":8,"endLine":78,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P44325.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__P44325.isGetter = true; -function game_BaseDialog_update__P2020860_mk(s) { +function ArcadePhysicsEngine_minStep__P44325_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_update__P2020860, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P44325, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -12984,7 +13600,7 @@ function game_BaseDialog_update__P2020860_mk(s) { -function game_BaseDialog_drawCursorRow__P2020863(s) { +function ArcadePhysicsEngine_maxSpeed__P44324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12994,125 +13610,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.offset___2026492 = 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__C2020846_VT)) failedCast(r0); - s.offset___2026492 = (0); - r0 = s.arg0.fields["cursorCount"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 20); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.offset___2026492 = (1); - case 1: - case 2: + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["cursorCount"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); + r0 = (s.arg1 * 256); s.tmp_2 = r0; - 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"]; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_6 = r0; - s.tmp_8 = game_BaseDialog_textAreaWidth__P2022898_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 947; s.pc = 3; return s.tmp_8; - case 3: - 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___2026492); - s.tmp_3 = r0; - 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); + 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 = 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__P2022899_mk(s); - s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 948; s.pc = 4; return s.tmp_19; - case 4: - 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); + 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() -} } } -game_BaseDialog_drawCursorRow__P2020863.info = {"start":2464,"length":479,"line":88,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} - -function game_BaseDialog_drawCursorRow__P2020863_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_BaseDialog_drawCursorRow__P2020863, depth: s.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, - offset___2026492: undefined, + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_maxSpeed__P44324.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 ArcadePhysicsEngine_maxSpeed__P44324_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P44324, 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 game_BaseDialog_textAreaHeight__P2022899(s) { +function Fx_neg__P41948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13126,47 +13665,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_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__P2018073_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 970; 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_4 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaHeight__P2022899.info = {"start":5841,"length":143,"line":186,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} +Fx_neg__P41948.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function game_BaseDialog_textAreaHeight__P2022899_mk(s) { +function Fx_neg__P41948_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaHeight__P2022899, depth: s.depth + 1, + parent: s, fn: Fx_neg__P41948, depth: s.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, } } @@ -13174,7 +13683,7 @@ function game_BaseDialog_textAreaHeight__P2022899_mk(s) { -function game_BaseDialog_textAreaWidth__P2022898(s) { +function ArcadePhysicsEngine_maxSpeed__P44323(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13189,46 +13698,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_5 = r0; - s.tmp_7 = Math_min__P2018073_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 969; 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_4 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); - return leave(s, r0) + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_textAreaWidth__P2022898.info = {"start":5689,"length":142,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P44323.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__P44323.isGetter = true; -function game_BaseDialog_textAreaWidth__P2022898_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P44323_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaWidth__P2022898, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P44323, depth: s.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, } } @@ -13236,7 +13724,7 @@ function game_BaseDialog_textAreaWidth__P2022898_mk(s) { -function game_BaseDialog_cursorRowHeight__P2022896(s) { +function PhysicsEngine_constructor__P44306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13251,24 +13739,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_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); + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_cursorRowHeight__P2022896.info = {"start":5509,"length":82,"line":174,"column":8,"endLine":176,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} +PhysicsEngine_constructor__P44306.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function game_BaseDialog_cursorRowHeight__P2022896_mk(s) { +function PhysicsEngine_constructor__P44306_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_cursorRowHeight__P2022896, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P44306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -13276,7 +13758,7 @@ function game_BaseDialog_cursorRowHeight__P2022896_mk(s) { -function game_BaseDialog_drawTextCore__P2020862(s) { +function sprites_SpriteMap_constructor__P44241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13291,18 +13773,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_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); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawTextCore__P2020862.info = {"start":2389,"length":65,"line":84,"column":8,"endLine":86,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +sprites_SpriteMap_constructor__P44241.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function game_BaseDialog_drawTextCore__P2020862_mk(s) { +function sprites_SpriteMap_constructor__P44241_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawTextCore__P2020862, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P44241, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -13310,7 +13798,7 @@ function game_BaseDialog_drawTextCore__P2020862_mk(s) { -function scene_setBackgroundImage__P2020828(s) { +function control_pushEventContext__P42202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13320,44 +13808,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2026454 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 938; s.pc = 1; return s.tmp_0; + s.ctx___53716 = undefined; + s.n___53722 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___46283); + 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.eventContexts___46283 = (r0); case 1: - r0 = s.retval; - s.scene___2026454 = (r0); - s.tmp_0 = scene_Background_image__P2020619_mk(s); - r0 = s.scene___2026454.fields["background"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 939; s.pc = 2; return s.tmp_0; case 2: + s.tmp_0 = control_eventContext__P42201_mk(s); + s.callLocIdx = 53; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = undefined; + s.ctx___53716 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___53716); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P42195_mk(s); + s.tmp_0.arg0 = s.ctx___53716; + s.callLocIdx = 54; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C42188_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P42192_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 55; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___53722 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___46283, s.n___53722); + r0 = s.n___53722; return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P2020828.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +control_pushEventContext__P42202.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function scene_setBackgroundImage__P2020828_mk(s) { +function control_pushEventContext__P42202_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P2020828, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P42202, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___2026454: undefined, - arg0: undefined, + tmp_1: undefined, + ctx___53716: undefined, + n___53722: undefined, } } -function scene_Background_image__P2020619(s) { +function control_EventContext_constructor__P42192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13369,32 +13876,50 @@ 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__C2020612_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); + if (!checkSubtype(r0, control_EventContext__C42188_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___42190); + 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___42190 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_image__P2020619.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +control_EventContext_constructor__P42192.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function scene_Background_image__P2020619_mk(s) { +function control_EventContext_constructor__P42192_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2020619, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P42192, 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_Background_image__P2020618(s) { +function particles_disableAll__P44976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13404,57 +13929,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_Background__C2020612_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); + s.sources___53901 = undefined; + s.tmp_0 = particles_particleSources__P47134_mk(s); + s.callLocIdx = 1257; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___53901 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___53901); if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); - 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); + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); + s.tmp_0.arg0 = s.sources___53901; + s.tmp_0.arg1 = particles_disableAll_inline__P53907; + s.callLocIdx = 1259; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P47130_mk(s); + s.callLocIdx = 1260; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; case 1: case 2: - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Background_image__P2020618.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__P2020618.isGetter = true; +particles_disableAll__P44976.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function scene_Background_image__P2020618_mk(s) { +function particles_disableAll__P44976_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2020618, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P44976, depth: s.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, + sources___53901: undefined, } } -function sprites_create__P2020218(s) { +function particles_disableAll_inline__P53907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13464,87 +13978,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2026815 = undefined; - s.sprite___2026818 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 296; s.pc = 1; return s.tmp_0; + s.tmp_0 = particles_ParticleSource_enabled__P44958_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1258; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___2026815 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2020284_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P2020331_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 297; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.sprite___2026818 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P2020351_mk(s); - s.tmp_0.arg0 = s.sprite___2026818; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 298; s.pc = 3; return s.tmp_0; + r0 = false; + return leave(s, r0) + default: oops() +} } } +particles_disableAll_inline__P53907.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_disableAll_inline__P53907_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_disableAll_inline__P53907, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function particles_clearAll__P44975(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___53912 = undefined; + s.tmp_0 = particles_particleSources__P47134_mk(s); + s.callLocIdx = 1253; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C2020454_v0_2_mk(s); - r0 = s.scene___2026815.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___2026818; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 4; return s.tmp_0; + s.sources___53912 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___53912); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); + s.tmp_0.arg0 = s.sources___53912; + s.tmp_0.arg1 = particles_clearAll_inline__P53918; + s.callLocIdx = 1255; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P2026833); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P2026840); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___2026818); - s.tmp_2 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_3 = helpers_arrayFilter__P2018052_mk(s); - r0 = s.scene___2026815.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 299; 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 = 301; s.pc = 5; return s.tmp_2; + s.tmp_0 = particles_pruneParticles__P47130_mk(s); + s.callLocIdx = 1256; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - r0 = s.sprite___2026818; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create__P2020218.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +particles_clearAll__P44975.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function sprites_create__P2020218_mk(s) { +function particles_clearAll__P44975_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P2020218, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P44975, depth: s.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___2026815: undefined, - sprite___2026818: undefined, - arg0: undefined, - arg1: undefined, + sources___53912: undefined, } } -function forEach_inline__P2026833(s) { +function particles_clearAll_inline__P53918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13558,18 +14070,21 @@ switch (step) { 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 = particles_ParticleSource_clear__P44960_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1254; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P2026833.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +particles_clearAll_inline__P53918.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function forEach_inline__P2026833_mk(s) { +function particles_clearAll_inline__P53918_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2026833, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P53918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -13579,7 +14094,7 @@ function forEach_inline__P2026833_mk(s) { -function sprites_create_inline__P2026840(s) { +function particles_ParticleSource_clear__P44960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13593,32 +14108,20 @@ switch (step) { 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 = 300; 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 = 300; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 300; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 300; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create_inline__P2026840.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +particles_ParticleSource_clear__P44960.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function sprites_create_inline__P2026840_mk(s) { +function particles_ParticleSource_clear__P44960_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create_inline__P2026840, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P44960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -13626,7 +14129,7 @@ function sprites_create_inline__P2026840_mk(s) { -function PhysicsEngine_addSprite__P2020456(s) { +function game_SplashDialog_setSubtext__P44735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13642,18 +14145,64 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2020454_VT)) failedCast(r0); + if (!checkSubtype(r0, game_SplashDialog__C44726_VT)) failedCast(r0); + r0 = (s.arg0).fields["subtext"] = (s.arg1); + s.tmp_0 = game_SplashDialog_updateFont__P46756_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 977; 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 = 978; 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 = pxsim_ImageMethods.width(globals.screen___43826); + 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() } } } -PhysicsEngine_addSprite__P2020456.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +game_SplashDialog_setSubtext__P44735.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 PhysicsEngine_addSprite__P2020456_mk(s) { +function game_SplashDialog_setSubtext__P44735_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P2020456, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_setSubtext__P44735, depth: s.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, } } @@ -13662,7 +14211,7 @@ function PhysicsEngine_addSprite__P2020456_mk(s) { -function Sprite_setKind__P2020351(s) { +function game_SplashDialog_updateFont__P46756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13672,135 +14221,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___2026885 = undefined; - s.overlapMap___2026914 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); + if (!checkSubtype(r0, game_SplashDialog__C44726_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.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); + 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_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBool(s.tmp_2); if (!r0) { step = 3; continue; } - { step = 15; continue; } + r0 = s.tmp_2; + { step = 4; continue; } case 3: + r0 = pxsim_String_.mkEmpty(); case 4: - s.tmp_3 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 366; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___2026885 = (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___2026885, 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__P2020413_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___2026885, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 367; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; + s.tmp_4 = game_BaseDialog_setFont__P46753_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_5 = image_getFontForText__P43771_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; + 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.arg1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___2026885, 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__C2020406_VT); - s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P2020408_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 368; s.pc = 18; return s.tmp_5; - case 18: r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___2026885, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P2020411_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___2026885, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 369; s.pc = 19; return s.tmp_0; - case 19: + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + s.callLocIdx = 973; s.pc = 6; return s.tmp_5; + case 6: r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 370; s.pc = 20; return s.tmp_0; - case 20: + s.tmp_4.arg1 = r0; + s.callLocIdx = 974; s.pc = 5; return s.tmp_4; + case 5: r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___2026914 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___2026914, 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___2026914; - 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___2026914, 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() } } } -Sprite_setKind__P2020351.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +game_SplashDialog_updateFont__P46756.info = {"start":9357,"length":122,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"updateFont","argumentNames":["this"]} -function Sprite_setKind__P2020351_mk(s) { +function game_SplashDialog_updateFont__P46756_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P2020351, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_updateFont__P46756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13808,17 +14296,16 @@ function Sprite_setKind__P2020351_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___2026885: undefined, - overlapMap___2026914: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_remove__P2020413(s) { +function game_BaseDialog_setFont__P46753(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13828,49 +14315,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2026962 = 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__C2020406_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___2026962 = (r0); - r0 = (s.i___2026962 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P2018042_mk(s); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___2026962; - s.tmp_1.arg2 = 1; - s.callLocIdx = 516; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - r0 = true; - { step = 3; continue; } - case 1: - case 2: - r0 = false; - case 3: + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = (s.arg0).fields["font"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P2020413.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +game_BaseDialog_setFont__P46753.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 sprites_SpriteSet_remove__P2020413_mk(s) { +function game_BaseDialog_setFont__P46753_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P2020413, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setFont__P46753, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - i___2026962: undefined, arg0: undefined, arg1: undefined, } } @@ -13879,7 +14342,7 @@ function sprites_SpriteSet_remove__P2020413_mk(s) { -function helpers_arraySplice__P2018042(s) { +function game_SplashDialog_setText__P44734(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13889,55 +14352,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2025965 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C44726_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + s.tmp_0 = game_SplashDialog_updateFont__P46756_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 975; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = (s.arg0).fields["offset"] = (0); + 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 = 976; s.pc = 2; return s.tmp_6; } + } case 2: - s.i___2025965 = (0); - case 3: - r0 = (s.i___2025965 < 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___2025965 + 1); - s.i___2025965 = (r0); - { step = 3; continue; } - case 4: - case 5: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___43826); + 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["maxOffset"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySplice__P2018042.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"]} +game_SplashDialog_setText__P44734.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 helpers_arraySplice__P2018042_mk(s) { +function game_SplashDialog_setText__P44734_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P2018042, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_setText__P44734, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___2025965: 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 sprites_SpriteSet_add__P2020411(s) { +function game_SplashDialog_constructor__P44733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13950,62 +14439,51 @@ 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_SpriteSet__C2020406_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: + r0 = s.arg0; + if (!checkSubtype(r0, game_SplashDialog__C44726_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_constructor__P44709_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__P46768_mk(s); + s.callLocIdx = 971; s.pc = 2; return s.tmp_1; 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 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.callLocIdx = 972; s.pc = 1; return s.tmp_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; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P2020411.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +game_SplashDialog_constructor__P44733.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 sprites_SpriteSet_add__P2020411_mk(s) { +function game_SplashDialog_constructor__P44733_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P2020411, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_constructor__P44733, depth: s.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 sprites_SpriteSet_contains__P2020414(s) { +function game_defaultSplashFrame__P46768(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14015,39 +14493,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_SpriteSet__C2020406_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + r0 = pxsim_ImageMethods.isMono(globals.screen___43826); s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex51617); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex51619); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P2020414.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +game_defaultSplashFrame__P46768.info = {"start":27877,"length":220,"line":768,"column":4,"endLine":781,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} -function sprites_SpriteSet_contains__P2020414_mk(s) { +function game_defaultSplashFrame__P46768_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P2020414, depth: s.depth + 1, + parent: s, fn: game_defaultSplashFrame__P46768, 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 _hex51617 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") +const _hex51619 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function sprites_SpriteSet_constructor__P2020408(s) { +function game_BaseDialog_constructor__P44709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14059,35 +14537,51 @@ 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_SpriteSet__C2020406_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); + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = (s.arg0).fields["cursorCount"] = (0); + s.tmp_0 = game_BaseDialog_resize__P44710_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 = 940; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P2020408.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +game_BaseDialog_constructor__P44709.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 sprites_SpriteSet_constructor__P2020408_mk(s) { +function game_BaseDialog_constructor__P44709_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P2020408, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_constructor__P44709, 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 Sprite_constructor__P2020331(s) { +function game_BaseDialog_resize__P44710(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14100,121 +14594,166 @@ 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__C2020284_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P2020039_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 328; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, game_BaseDialog__C44697_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 = globals.dialogFrame___46740; + 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_3 = game_defaultFrame__P46767_mk(s); + s.callLocIdx = 941; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; + s.tmp_2 = r0; + globals.dialogFrame___46740 = (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 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = s.arg0.fields["frame"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); + r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = (s.tmp_3 / 3); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); + r0 = pxsim.Math_.floor(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); + r0 = s.arg0.fields["unit"]; s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = (s.arg1 / s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + 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_6 | 0); + 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["_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__P2020302_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 331; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2020304_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 332; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P2020306_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 333; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_ay__P2020308_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 334; s.pc = 5; return s.tmp_0; + 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 = s.retval; - s.tmp_0 = Sprite_fx__P2020310_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 335; s.pc = 6; return s.tmp_0; + r0 = globals.font8___43769; case 6: - r0 = s.retval; - s.tmp_0 = Sprite_fy__P2020312_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 336; s.pc = 7; return s.tmp_0; + // 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___46741; + 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__P46769_mk(s); + s.callLocIdx = 942; s.pc = 14; return s.tmp_3; + case 14: 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__P2020334_mk(s); + s.tmp_2 = r0; + globals.dialogCursor___46741 = (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___46742 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.dialogTextColor___46742 = (15); + r0 = 15; + { step = 12; continue; } + case 11: + r0 = globals.dialogTextColor___46742; + 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__P46745_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 337; s.pc = 8; return s.tmp_0; - case 8: + s.callLocIdx = 943; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P2020351_mk(s); + s.tmp_0 = game_BaseDialog_clearInterior__P46747_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 338; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 944; s.pc = 16; return s.tmp_0; + case 16: 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__P2020331.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +game_BaseDialog_resize__P44710.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 Sprite_constructor__P2020331_mk(s) { +function game_BaseDialog_resize__P44710_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P2020331, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_resize__P44710, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14225,13 +14764,17 @@ function Sprite_constructor__P2020331_mk(s) { tmp_6: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function Sprite_setImage__P2020334(s) { +function game_defaultCursorImage__P46769(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14241,66 +14784,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.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_ImageMethods.isMono(globals.screen___43826); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex51815); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex51817); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +game_defaultCursorImage__P46769.info = {"start":28103,"length":690,"line":783,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} + +function game_defaultCursorImage__P46769_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_defaultCursorImage__P46769, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex51815 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") +const _hex51817 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") + + + + +function game_defaultFrame__P46767(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___43826); 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; + r0 = pxsim.image.ofBuffer(_hex51821); { step = 2; continue; } case 1: - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = (s.arg1 === s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex51823); 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 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite__C2020284_v5_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2020284_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: - r0 = s.retval; - case 5: - r0 = undefined; + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -Sprite_setImage__P2020334.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +game_defaultFrame__P46767.info = {"start":27315,"length":556,"line":744,"column":4,"endLine":766,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} -function Sprite_setImage__P2020334_mk(s) { +function game_defaultFrame__P46767_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P2020334, depth: s.depth + 1, + parent: s, fn: game_defaultFrame__P46767, depth: s.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, } } +const _hex51821 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") +const _hex51823 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function Sprite_recalcSize__P2022738(s) { +function game_BaseDialog_clearInterior__P46747(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14310,72 +14868,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.d___50588 = undefined; + s.s___50595 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_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); + if (!checkSubtype(r0, game_BaseDialog__C44697_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__P46746_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; - s.tmp_6 = Sprite_sx__P2020313_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 343; s.pc = 1; return s.tmp_6; - case 1: + 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 = 967; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); + { step = 7; continue; } + case 1: + case 2: + s.d___50588 = (1); + case 3: + s.tmp_1 = r0 = s.d___50588; + r0 = s.arg0.fields["columns"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); + 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___50595 = (1); + case 4: + s.tmp_1 = r0 = s.s___50595; + r0 = s.arg0.fields["rows"]; s.tmp_3 = r0; - s.tmp_6 = Sprite_sy__P2020315_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 345; s.pc = 2; return s.tmp_6; - case 2: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); - s.tmp_0 = Sprite_resetHitbox__P2020336_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 347; s.pc = 3; return s.tmp_0; - case 3: + 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__P46748_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 4; + s.tmp_4.arg2 = s.d___50588; + s.tmp_4.arg3 = s.s___50595; + s.callLocIdx = 968; s.pc = 9; return s.tmp_4; + case 9: r0 = s.retval; + r0 = (s.s___50595 + 1); + s.s___50595 = (r0); + { step = 4; continue; } + case 5: + r0 = (s.d___50588 + 1); + s.d___50588 = (r0); + { step = 3; continue; } + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_recalcSize__P2022738.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} +game_BaseDialog_clearInterior__P46747.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_recalcSize__P2022738_mk(s) { +function game_BaseDialog_clearInterior__P46747_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_recalcSize__P2022738, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_clearInterior__P46747, depth: s.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, + d___50588: undefined, + s___50595: undefined, arg0: undefined, } } @@ -14383,7 +14965,7 @@ function Sprite_recalcSize__P2022738_mk(s) { -function Sprite_resetHitbox__P2020336(s) { +function game_BaseDialog_drawPartial__P46748(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14393,40 +14975,125 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___50613 = undefined; + s.y0___50621 = undefined; + s.xf___50629 = undefined; + s.yf___50636 = undefined; + s.e___50643 = undefined; + s.t___50649 = 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__C2020284_VT)) failedCast(r0); - r0 = (s.arg0).fields["_hitbox"] = (null); - s.tmp_0 = Sprite__C2020284_v4_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2020284_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setHitbox; - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, game_BaseDialog__C44697_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___50613 = (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___50621 = (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___50629 = (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___50636 = (r0); + s.e___50643 = (0); case 1: - r0 = s.retval; + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.e___50643 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.t___50649 = (0); + case 2: + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.t___50649 < 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___50613 + s.e___50643); + s.tmp_3 = r0; + r0 = (s.y0___50621 + s.t___50649); + s.tmp_4 = r0; + r0 = s.arg0.fields["frame"]; + s.tmp_6 = r0; + r0 = (s.xf___50629 + s.e___50643); + s.tmp_7 = r0; + r0 = (s.yf___50636 + s.t___50649); + 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___50649 + 1); + s.t___50649 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.e___50643 + 1); + s.e___50643 = (r0); + { step = 1; continue; } + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_resetHitbox__P2020336.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} +game_BaseDialog_drawPartial__P46748.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 Sprite_resetHitbox__P2020336_mk(s) { +function game_BaseDialog_drawPartial__P46748_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_resetHitbox__P2020336, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawPartial__P46748, depth: s.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___50613: undefined, + y0___50621: undefined, + xf___50629: undefined, + yf___50636: undefined, + e___50643: undefined, + t___50649: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_setHitbox__P2020337(s) { +function game_BaseDialog_fastFill__P46746(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14436,55 +15103,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.color___50685 = 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, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_hitbox"]; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = s.arg0.fields["frame"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = game_Hitbox_updateIfInvalid__P2020165_mk(s); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 341; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - { step = 2; continue; } + 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___50685 = (r0); + s.tmp_0 = helpers_imageFillRect__P43750_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___50685; + s.callLocIdx = 966; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_calculateHitBox__P2020167_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 342; s.pc = 4; return s.tmp_2; - case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P2020337.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +game_BaseDialog_fastFill__P46746.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_setHitbox__P2020337_mk(s) { +function game_BaseDialog_fastFill__P46746_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P2020337, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_fastFill__P46746, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + color___50685: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function game_calculateHitBox__P2020167(s) { +function game_BaseDialog_drawBorder__P46745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14494,207 +15177,271 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2027093 = undefined; - s.minX___2027096 = undefined; - s.minY___2027100 = undefined; - s.maxX___2027104 = undefined; - s.maxY___2027106 = undefined; - s.c___2027108 = undefined; - s.fxc___2027109 = undefined; - s.r___2027116 = undefined; - s.fxr___2027117 = undefined; - s.width___2027181 = undefined; - s.height___2027189 = undefined; + s.y___51746 = undefined; + s.c___51762 = undefined; + s.r___51796 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["_hitbox"]; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = s.arg0.fields["unit"]; + 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: - s.tmp_1 = game_Hitbox_isValid__P2020163_mk(s); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 275; s.pc = 12; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = game_BaseDialog_fastFill__P46746_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 = 950; s.pc = 12; return s.tmp_2; case 12: 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; } - r0 = s.arg0.fields["_hitbox"]; - { step = 11; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_image"]; - s.i___2027093 = (r0); - r0 = pxsim_ImageMethods.width(s.i___2027093); - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.minX___2027096 = (r0); - r0 = pxsim_ImageMethods.height(s.i___2027093); - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); + s.tmp_0 = game_BaseDialog_fastFill__P46746_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 | 0); - s.minY___2027100 = (r0); - s.maxX___2027104 = (0); - s.maxY___2027106 = (0); - s.c___2027108 = (0); - s.fxc___2027109 = (0); - case 5: - s.tmp_1 = r0 = s.c___2027108; - r0 = pxsim_ImageMethods.width(s.i___2027093); - 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___2027116 = (0); - s.fxr___2027117 = (0); - case 6: - s.tmp_1 = r0 = s.r___2027116; - r0 = pxsim_ImageMethods.height(s.i___2027093); - 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___2027093, s.c___2027108, s.r___2027116); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - s.tmp_4 = Fx_min__P2018108_mk(s); - s.tmp_4.arg0 = s.minX___2027096; - s.tmp_4.arg1 = s.fxc___2027109; - s.callLocIdx = 279; s.pc = 13; return s.tmp_4; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 951; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.minX___2027096 = (r0); - s.tmp_0 = Fx_min__P2018108_mk(s); - s.tmp_0.arg0 = s.minY___2027100; - s.tmp_0.arg1 = s.fxr___2027117; - s.callLocIdx = 280; s.pc = 14; return s.tmp_0; + s.tmp_0 = game_BaseDialog_fastFill__P46746_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 = 952; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.minY___2027100 = (r0); - s.tmp_0 = Fx_max__P2018109_mk(s); - s.tmp_0.arg0 = s.maxX___2027104; - s.tmp_0.arg1 = s.fxc___2027109; - s.callLocIdx = 281; s.pc = 15; return s.tmp_0; + s.tmp_0 = game_BaseDialog_fastFill__P46746_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 = 953; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.maxX___2027104 = (r0); - s.tmp_0 = Fx_max__P2018109_mk(s); - s.tmp_0.arg0 = s.maxY___2027106; - s.tmp_0.arg1 = s.fxr___2027117; - s.callLocIdx = 282; s.pc = 16; return s.tmp_0; + s.tmp_0 = game_BaseDialog_fastFill__P46746_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 = 954; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.maxY___2027106 = (r0); - case 7: - case 8: - r0 = (s.r___2027116 + 1); - s.r___2027116 = (r0); - r0 = (s.fxr___2027117 + 256); - s.tmp_0 = r0; - s.fxr___2027117 = (r0); - r0 = s.tmp_0; - { step = 6; continue; } - case 9: - r0 = (s.c___2027108 + 1); - s.c___2027108 = (r0); - r0 = (s.fxc___2027109 + 256); - s.tmp_0 = r0; - s.fxc___2027109 = (r0); - r0 = s.tmp_0; - { step = 5; continue; } - case 10: - r0 = s.arg0.fields["_sx"]; + r0 = s.arg0.fields["rows"]; s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minX___2027096, s.tmp_0); + r0 = (s.tmp_0 - 1); + s.y___51746 = (r0); + s.tmp_0 = game_BaseDialog_fastFill__P46746_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.y___51746; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 955; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P46746_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = s.y___51746; + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.minX___2027096 = (r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minY___2027100, s.tmp_0); + r0 = (s.tmp_1 - 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 956; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P46746_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 >> 8); - s.minY___2027100 = (r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxX___2027104, s.tmp_0); + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.y___51746; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 957; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + { step = 11; continue; } + case 1: + case 2: + s.c___51762 = (0); + case 3: + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.maxX___2027104 = (r0); - r0 = s.arg0.fields["_sy"]; + r0 = (s.c___51762 < s.tmp_1); s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxY___2027106, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.c___51762 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_3 = game_BaseDialog_drawPartial__P46748_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 = 958; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P46748_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 >> 8); - s.maxY___2027106 = (r0); - r0 = (s.maxX___2027104 - s.minX___2027096); + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 959; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 7; continue; } + case 4: + s.tmp_1 = r0 = s.c___51762; + 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 = s.arg0.fields["_sx"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P46748_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 2; + s.tmp_4.arg2 = s.c___51762; + s.tmp_4.arg3 = 0; + s.callLocIdx = 960; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P46748_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + s.tmp_0.arg2 = s.c___51762; + r0 = s.arg0.fields["rows"]; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.width___2027181 = (r0); - r0 = (s.maxY___2027106 - s.minY___2027100); - s.tmp_0 = r0; - r0 = s.arg0.fields["_sy"]; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 961; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = game_BaseDialog_drawPartial__P46748_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = s.c___51762; + s.tmp_0.arg3 = 0; + s.callLocIdx = 962; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P46748_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = s.c___51762; + r0 = s.arg0.fields["rows"]; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___2027189 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C2020151_VT); + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 963; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 6: + case 7: + r0 = (s.c___51762 + 1); + s.c___51762 = (r0); + { step = 3; continue; } + case 8: + s.r___51796 = (1); + case 9: + s.tmp_1 = r0 = s.r___51796; + 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; - s.tmp_1 = game_Hitbox_constructor__P2020158_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___2027181; - s.tmp_1.arg3 = s.height___2027189; - r0 = (s.minX___2027096 & -256); - s.tmp_1.arg4 = r0; - r0 = (s.minY___2027100 & -256); - s.tmp_1.arg5 = r0; - s.callLocIdx = 295; s.pc = 17; return s.tmp_1; - case 17: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P46748_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 3; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.r___51796; + s.callLocIdx = 964; s.pc = 26; return s.tmp_4; + case 26: r0 = s.retval; - r0 = s.tmp_0; + s.tmp_0 = game_BaseDialog_drawPartial__P46748_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___51796; + s.callLocIdx = 965; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = (s.r___51796 + 1); + s.r___51796 = (r0); + { step = 9; continue; } + case 10: case 11: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P2020167.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +game_BaseDialog_drawBorder__P46745.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_calculateHitBox__P2020167_mk(s) { +function game_BaseDialog_drawBorder__P46745_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P2020167, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawBorder__P46745, depth: s.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___2027093: undefined, - minX___2027096: undefined, - minY___2027100: undefined, - maxX___2027104: undefined, - maxY___2027106: undefined, - c___2027108: undefined, - fxc___2027109: undefined, - r___2027116: undefined, - fxr___2027117: undefined, - width___2027181: undefined, - height___2027189: undefined, + y___51746: undefined, + c___51762: undefined, + r___51796: undefined, arg0: undefined, } } @@ -14702,7 +15449,7 @@ function game_calculateHitBox__P2020167_mk(s) { -function Sprite_image__P2020333(s) { +function game_BaseDialog_update__P44711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14717,19 +15464,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P46747_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 945; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = game_BaseDialog__C44697_v2_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C44697_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__P44714_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 946; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_image__P2020333.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__P2020333.isGetter = true; +game_BaseDialog_update__P44711.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_image__P2020333_mk(s) { +function game_BaseDialog_update__P44711_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P2020333, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_update__P44711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -14737,7 +15501,7 @@ function Sprite_image__P2020333_mk(s) { -function game_Hitbox_isValid__P2020163(s) { +function game_BaseDialog_drawCursorRow__P44714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14747,35 +15511,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.offset___50486 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); - r0 = s.arg0.fields["hash"]; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + s.offset___50486 = (0); + r0 = s.arg0.fields["cursorCount"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 20); s.tmp_0 = r0; - s.tmp_2 = Sprite_calcDimensionalHash__P2020335_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 228; s.pc = 1; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.offset___50486 = (1); case 1: - r0 = s.retval; + case 2: + 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 = (s.tmp_2 % 40); s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); + 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__P46751_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 947; s.pc = 3; return s.tmp_8; + case 3: + 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___50486); + s.tmp_3 = r0; + 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__P46752_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 948; s.pc = 4; return s.tmp_19; + case 4: + 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); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_isValid__P2020163.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} +game_BaseDialog_drawCursorRow__P44714.info = {"start":2464,"length":479,"line":88,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} -function game_Hitbox_isValid__P2020163_mk(s) { +function game_BaseDialog_drawCursorRow__P44714_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_isValid__P2020163, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawCursorRow__P44714, depth: s.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, + offset___50486: undefined, arg0: undefined, } } @@ -14783,7 +15629,7 @@ function game_Hitbox_isValid__P2020163_mk(s) { -function Sprite_calcDimensionalHash__P2020335(s) { +function game_BaseDialog_textAreaHeight__P46752(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14798,35 +15644,37 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.revision(s.tmp_2); + r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_4 = r0; - r0 = (8 + 8); + r0 = s.arg0.fields["innerTop"]; s.tmp_5 = r0; - r0 = (s.tmp_4 >> s.tmp_5); + s.tmp_7 = Math_min__P41924_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 970; 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_4 << 1); s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); + r0 = (s.tmp_1 - s.tmp_3); s.tmp_0 = r0; - r0 = s.arg0.fields["_height"]; - s.tmp_7 = r0; - r0 = (16 + 8); - s.tmp_8 = r0; - r0 = (s.tmp_7 >> s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_0 + s.tmp_6); + r0 = (s.tmp_0 - 1); return leave(s, r0) default: oops() } } } -Sprite_calcDimensionalHash__P2020335.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} +game_BaseDialog_textAreaHeight__P46752.info = {"start":5841,"length":143,"line":186,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} -function Sprite_calcDimensionalHash__P2020335_mk(s) { +function game_BaseDialog_textAreaHeight__P46752_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_calcDimensionalHash__P2020335, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaHeight__P46752, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14836,7 +15684,6 @@ function Sprite_calcDimensionalHash__P2020335_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, arg0: undefined, } } @@ -14844,7 +15691,7 @@ function Sprite_calcDimensionalHash__P2020335_mk(s) { -function Fx_toIntShifted__P2018098(s) { +function game_BaseDialog_textAreaWidth__P46751(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14856,34 +15703,57 @@ 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 = (s.arg1 + 8); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); + r0 = s.arg0.fields["innerLeft"]; + s.tmp_5 = r0; + s.tmp_7 = Math_min__P41924_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 969; 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_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() } } } -Fx_toIntShifted__P2018098.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +game_BaseDialog_textAreaWidth__P46751.info = {"start":5689,"length":142,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} -function Fx_toIntShifted__P2018098_mk(s) { +function game_BaseDialog_textAreaWidth__P46751_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P2018098, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaWidth__P46751, depth: s.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_Hitbox_constructor__P2020158(s) { +function game_BaseDialog_cursorRowHeight__P46749(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14895,79 +15765,27 @@ 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__C2020151_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_calcDimensionalHash__P2020335_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 219; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); + r0 = s.arg0.fields["cursor"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["hash"] = (s.tmp_1); - r0 = (s.arg0).fields["parent"] = (s.arg1); - r0 = (s.arg0).fields["width"] = (s.arg2); - r0 = (s.arg0).fields["height"] = (s.arg3); - r0 = (s.arg0).fields["ox"] = (s.arg4); - r0 = (s.arg0).fields["oy"] = (s.arg5); - r0 = undefined; + r0 = pxsim_ImageMethods.height(s.tmp_1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P2020158.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_BaseDialog_cursorRowHeight__P46749.info = {"start":5509,"length":82,"line":174,"column":8,"endLine":176,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} -function game_Hitbox_constructor__P2020158_mk(s) { +function game_BaseDialog_cursorRowHeight__P46749_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P2020158, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_cursorRowHeight__P46749, 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 Fx_floor__P2018110(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 & -256); - return leave(s, r0) - default: oops() -} } } -Fx_floor__P2018110.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__P2018110_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_floor__P2018110, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -14975,7 +15793,7 @@ function Fx_floor__P2018110_mk(s) { -function Fx_max__P2018109(s) { +function game_BaseDialog_drawTextCore__P44713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14987,42 +15805,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 > s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } r0 = s.arg0; - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = s.arg1; - { step = 3; continue; } - case 2: + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_max__P2018109.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +game_BaseDialog_drawTextCore__P44713.info = {"start":2389,"length":65,"line":84,"column":8,"endLine":86,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function Fx_max__P2018109_mk(s) { +function game_BaseDialog_drawTextCore__P44713_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P2018109, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawTextCore__P44713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function Fx_min__P2018108(s) { +function scene_setBackgroundImage__P44679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15032,44 +15837,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___50448 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } - { step = 2; continue; } + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 938; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg1; - { step = 3; continue; } + r0 = s.retval; + s.scene___50448 = (r0); + s.tmp_0 = scene_Background_image__P44470_mk(s); + r0 = s.scene___50448.fields["background"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 939; s.pc = 2; return s.tmp_0; case 2: + r0 = s.retval; r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_min__P2018108.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +scene_setBackgroundImage__P44679.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} -function Fx_min__P2018108_mk(s) { +function scene_setBackgroundImage__P44679_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P2018108, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundImage__P44679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + scene___50448: undefined, arg0: undefined, - arg1: undefined, } } -function Fx_mul__P2018102(s) { +function scene_Background_image__P44470(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15084,20 +15889,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C44463_VT)) failedCast(r0); + r0 = (s.arg0).fields["_image"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P2018102.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +scene_Background_image__P44470.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 Fx_mul__P2018102_mk(s) { +function scene_Background_image__P44470_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P2018102, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P44470, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -15106,7 +15911,7 @@ function Fx_mul__P2018102_mk(s) { -function Fx_sub__P2018101(s) { +function scene_Background_image__P44469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15118,29 +15923,55 @@ switch (step) { 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) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C44463_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___43826); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___43826); + 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() } } } -Fx_sub__P2018101.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +scene_Background_image__P44469.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__P44469.isGetter = true; -function Fx_sub__P2018101_mk(s) { +function scene_Background_image__P44469_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P2018101, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P44469, depth: s.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_Hitbox_updateIfInvalid__P2020165(s) { +function sprites_create__P44069(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15150,155 +15981,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___2027306 = undefined; - s.oMinX___2027311 = undefined; - s.oMinY___2027314 = undefined; - s.oMaxX___2027317 = undefined; - s.oMaxY___2027323 = undefined; - s.nMinX___2027329 = undefined; - s.nMinY___2027332 = undefined; - s.nMaxX___2027335 = undefined; - s.nMaxY___2027341 = undefined; - s.xDiff___2027347 = undefined; - s.yDiff___2027358 = undefined; + s.scene___50809 = undefined; + s.sprite___50812 = 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__C2020151_VT)) failedCast(r0); - s.tmp_1 = game_Hitbox_isValid__P2020163_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 233; 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; } - { step = 7; continue; } + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 296; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_2 = game_calculateHitBox__P2020167_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 234; s.pc = 9; return s.tmp_2; - case 9: r0 = s.retval; - s.newHitBox___2027306 = (r0); - r0 = s.arg0.fields["ox"]; - s.oMinX___2027311 = (r0); - r0 = s.arg0.fields["oy"]; - s.oMinY___2027314 = (r0); - r0 = s.arg0.fields["width"]; - s.tmp_0 = r0; - r0 = (s.oMinX___2027311 + s.tmp_0); - s.oMaxX___2027317 = (r0); - r0 = s.arg0.fields["height"]; + s.scene___50809 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C44135_VT); s.tmp_0 = r0; - r0 = (s.oMinY___2027314 + s.tmp_0); - s.oMaxY___2027323 = (r0); - r0 = s.newHitBox___2027306.fields["ox"]; - s.nMinX___2027329 = (r0); - r0 = s.newHitBox___2027306.fields["oy"]; - s.nMinY___2027332 = (r0); - r0 = s.newHitBox___2027306.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___2027329 + s.tmp_0); - s.nMaxX___2027335 = (r0); - r0 = s.newHitBox___2027306.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___2027332 + s.tmp_0); - s.nMaxY___2027341 = (r0); - s.tmp_1 = Fx_abs__P2018107_mk(s); - r0 = (s.oMinX___2027311 - s.nMinX___2027329); - s.tmp_1.arg0 = r0; - s.callLocIdx = 240; s.pc = 10; return s.tmp_1; - case 10: + s.tmp_1 = Sprite_constructor__P44182_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 297; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P2018107_mk(s); - r0 = (s.oMaxX___2027317 - s.nMaxX___2027335); - s.tmp_3.arg0 = r0; - s.callLocIdx = 242; s.pc = 11; return s.tmp_3; - case 11: + s.sprite___50812 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P44202_mk(s); + s.tmp_0.arg0 = s.sprite___50812; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 298; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___2027347 = (r0); - s.tmp_1 = Fx_abs__P2018107_mk(s); - r0 = (s.oMinY___2027314 - s.nMinY___2027332); - s.tmp_1.arg0 = r0; - s.callLocIdx = 245; s.pc = 12; return s.tmp_1; - case 12: + s.tmp_0 = PhysicsEngine__C44305_v0_2_mk(s); + r0 = s.scene___50809.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___50812; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C44305_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__P50827); s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P2018107_mk(s); - r0 = (s.oMaxY___2027323 - s.nMaxY___2027341); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P50834); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___50812); + s.tmp_2 = helpers_arrayForEach__P41902_mk(s); + s.tmp_3 = helpers_arrayFilter__P41903_mk(s); + r0 = s.scene___50809.fields["createdHandlers"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 247; s.pc = 13; return s.tmp_3; - case 13: + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 299; s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___2027358 = (r0); - r0 = (s.xDiff___2027347 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["ox"] = (s.nMinX___2027329); - r0 = s.newHitBox___2027306.fields["width"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["width"] = (s.tmp_0); - case 3: - case 4: - r0 = (s.yDiff___2027358 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["oy"] = (s.nMinY___2027332); - r0 = s.newHitBox___2027306.fields["height"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["height"] = (s.tmp_0); + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 301; s.pc = 5; return s.tmp_2; case 5: - case 6: - r0 = s.newHitBox___2027306.fields["hash"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["hash"] = (s.tmp_0); - case 7: - r0 = undefined; + r0 = s.retval; + r0 = s.sprite___50812; return leave(s, r0) default: oops() } } } -game_Hitbox_updateIfInvalid__P2020165.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} +sprites_create__P44069.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 game_Hitbox_updateIfInvalid__P2020165_mk(s) { +function sprites_create__P44069_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_updateIfInvalid__P2020165, depth: s.depth + 1, + parent: s, fn: sprites_create__P44069, depth: s.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___2027306: undefined, - oMinX___2027311: undefined, - oMinY___2027314: undefined, - oMaxX___2027317: undefined, - oMaxY___2027323: undefined, - nMinX___2027329: undefined, - nMinY___2027332: undefined, - nMaxX___2027335: undefined, - nMaxY___2027341: undefined, - xDiff___2027347: undefined, - yDiff___2027358: undefined, + scene___50809: undefined, + sprite___50812: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_abs__P2018107(s) { +function forEach_inline__P50827(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15312,28 +16075,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = s.arg0; - { step = 3; continue; } - case 2: - r0 = undefined; - case 3: + r0 = (s.tmp_0 == s.caps[0]); return leave(s, r0) default: oops() } } } -Fx_abs__P2018107.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +forEach_inline__P50827.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function Fx_abs__P2018107_mk(s) { +function forEach_inline__P50827_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P2018107, depth: s.depth + 1, + parent: s, fn: forEach_inline__P50827, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15343,7 +16096,7 @@ function Fx_abs__P2018107_mk(s) { -function Sprite_sy__P2020315(s) { +function sprites_create_inline__P50834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15357,21 +16110,30 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - 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 = 300; 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 = 300; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 300; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 300; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_sy__P2020315.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__P2020315.isGetter = true; +sprites_create_inline__P50834.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_sy__P2020315_mk(s) { +function sprites_create_inline__P50834_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sy__P2020315, depth: s.depth + 1, + parent: s, fn: sprites_create_inline__P50834, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15381,7 +16143,7 @@ function Sprite_sy__P2020315_mk(s) { -function Sprite_sx__P2020313(s) { +function PhysicsEngine_addSprite__P44307(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15393,33 +16155,31 @@ 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__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_sx__P2020313.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__P2020313.isGetter = true; +PhysicsEngine_addSprite__P44307.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 Sprite_sx__P2020313_mk(s) { +function PhysicsEngine_addSprite__P44307_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sx__P2020313, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P44307, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_fy__P2020312(s) { +function Sprite_setKind__P44202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15429,42 +16189,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___50879 = undefined; + s.overlapMap___50908 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P2018072_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 324; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + 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; } case 1: + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg1); + case 2: + // 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__P44793_mk(s); + s.callLocIdx = 366; s.pc = 16; return s.tmp_3; + case 16: r0 = s.retval; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___50879 = (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 = (s.tmp_2 * 256); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___50879, 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__P44264_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___50879, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 367; 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___50879, 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__C44257_VT); s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + s.tmp_5 = sprites_SpriteSet_constructor__P44259_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 368; s.pc = 18; return s.tmp_5; + case 18: + r0 = s.retval; + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___50879, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P44262_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___50879, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 369; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P44793_mk(s); + s.callLocIdx = 370; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___50908 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___50908, s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); + 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___50908; + 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___50908, 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() } } } -Sprite_fy__P2020312.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +Sprite_setKind__P44202.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 Sprite_fy__P2020312_mk(s) { +function Sprite_setKind__P44202_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2020312, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P44202, depth: s.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___50879: undefined, + overlapMap___50908: undefined, arg0: undefined, arg1: undefined, } } @@ -15473,7 +16335,7 @@ function Sprite_fy__P2020312_mk(s) { -function Sprite_fy__P2020311(s) { +function sprites_SpriteSet_remove__P44264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15483,35 +16345,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___50956 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; + if (!checkSubtype(r0, sprites_SpriteSet__C44257_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); + s.i___50956 = (r0); + r0 = (s.i___50956 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_arraySplice__P41893_mk(s); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___50956; + s.tmp_1.arg2 = 1; + s.callLocIdx = 516; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = true; + { step = 3; continue; } + case 1: + case 2: + r0 = false; + case 3: + return leave(s, r0) default: oops() } } } -Sprite_fy__P2020311.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__P2020311.isGetter = true; +sprites_SpriteSet_remove__P44264.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 Sprite_fy__P2020311_mk(s) { +function sprites_SpriteSet_remove__P44264_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2020311, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P44264, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + i___50956: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_fx__P2020310(s) { +function helpers_arraySplice__P41893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15521,51 +16406,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___49959 = 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__C2020284_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P2018072_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 321; s.pc = 1; return s.tmp_3; + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } 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["_fx"] = (s.tmp_1); + case 2: + s.i___49959 = (0); + case 3: + r0 = (s.i___49959 < 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___49959 + 1); + s.i___49959 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_fx__P2020310.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +helpers_arraySplice__P41893.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 Sprite_fx__P2020310_mk(s) { +function helpers_arraySplice__P41893_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2020310, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P41893, depth: s.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___49959: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_fx__P2020309(s) { +function sprites_SpriteSet_add__P44262(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15577,33 +16466,63 @@ 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__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + if (!checkSubtype(r0, sprites_SpriteSet__C44257_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 = (s.tmp_0 / 256); - return leaveAccessor(s, 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_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: + return leave(s, r0) default: oops() } } } -Sprite_fx__P2020309.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__P2020309.isGetter = true; +sprites_SpriteSet_add__P44262.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 Sprite_fx__P2020309_mk(s) { +function sprites_SpriteSet_add__P44262_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2020309, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P44262, depth: s.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 Sprite_ay__P2020308(s) { +function sprites_SpriteSet_contains__P44265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15619,27 +16538,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + if (!checkSubtype(r0, sprites_SpriteSet__C44257_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); - r0 = undefined; + 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() } } } -Sprite_ay__P2020308.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +sprites_SpriteSet_contains__P44265.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 Sprite_ay__P2020308_mk(s) { +function sprites_SpriteSet_contains__P44265_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2020308, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P44265, 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, } } @@ -15648,7 +16564,7 @@ function Sprite_ay__P2020308_mk(s) { -function Sprite_ay__P2020307(s) { +function sprites_SpriteSet_constructor__P44259(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15663,22 +16579,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_SpriteSet__C44257_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() } } } -Sprite_ay__P2020307.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__P2020307.isGetter = true; +sprites_SpriteSet_constructor__P44259.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function Sprite_ay__P2020307_mk(s) { +function sprites_SpriteSet_constructor__P44259_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2020307, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P44259, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -15686,7 +16604,7 @@ function Sprite_ay__P2020307_mk(s) { -function Sprite_ax__P2020306(s) { +function Sprite_constructor__P44182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15702,27 +16620,126 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P43890_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 328; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_ImageMethods.width(globals.screen___43826); + 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 | 0); + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___43826); + 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__P44153_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 331; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P44155_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 332; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P44157_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 333; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P44159_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 334; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P44161_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 335; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P44163_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 336; 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__P44185_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 337; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P44202_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 338; 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_ax__P2020306.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +Sprite_constructor__P44182.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 Sprite_ax__P2020306_mk(s) { +function Sprite_constructor__P44182_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2020306, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P44182, depth: s.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, } } @@ -15731,7 +16748,7 @@ function Sprite_ax__P2020306_mk(s) { -function Sprite_ax__P2020305(s) { +function Sprite_setImage__P44185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15743,33 +16760,64 @@ 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__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; + if (!checkSubtype(r0, Sprite__C44135_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 = (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 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = (s.arg1 === 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 = 5; continue; } + case 3: + case 4: + r0 = (s.arg0).fields["_image"] = (s.arg1); + s.tmp_0 = Sprite__C44135_v5_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C44135_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: + r0 = s.retval; + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ax__P2020305.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__P2020305.isGetter = true; +Sprite_setImage__P44185.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_ax__P2020305_mk(s) { +function Sprite_setImage__P44185_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2020305, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P44185, depth: s.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 Sprite_vy__P2020304(s) { +function Sprite_recalcSize__P46591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15781,40 +16829,78 @@ 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__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + 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__P44164_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 343; s.pc = 1; return s.tmp_6; + case 1: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = Sprite_sy__P44166_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 345; s.pc = 2; return s.tmp_6; + case 2: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + s.tmp_0 = Sprite_resetHitbox__P44187_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 347; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vy__P2020304.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +Sprite_recalcSize__P46591.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_vy__P2020304_mk(s) { +function Sprite_recalcSize__P46591_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P2020304, depth: s.depth + 1, + parent: s, fn: Sprite_recalcSize__P46591, depth: s.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 Sprite_vy__P2020303(s) { +function Sprite_resetHitbox__P44187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15829,20 +16915,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_vy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = (s.arg0).fields["_hitbox"] = (null); + s.tmp_0 = Sprite__C44135_v4_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C44135_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: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_vy__P2020303.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__P2020303.isGetter = true; +Sprite_resetHitbox__P44187.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_vy__P2020303_mk(s) { +function Sprite_resetHitbox__P44187_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P2020303, depth: s.depth + 1, + parent: s, fn: Sprite_resetHitbox__P44187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15852,7 +16943,7 @@ function Sprite_vy__P2020303_mk(s) { -function Sprite_vx__P2020302(s) { +function Sprite_setHitbox__P44188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15864,40 +16955,53 @@ 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__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_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__P44016_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 341; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + { step = 2; continue; } + case 1: s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_2 = game_calculateHitBox__P44018_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 342; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P2020302.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +Sprite_setHitbox__P44188.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_vx__P2020302_mk(s) { +function Sprite_setHitbox__P44188_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2020302, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P44188, 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_vx__P2020301(s) { +function game_calculateHitBox__P44018(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15907,27 +17011,207 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___51087 = undefined; + s.minX___51090 = undefined; + s.minY___51094 = undefined; + s.maxX___51098 = undefined; + s.maxY___51100 = undefined; + s.c___51102 = undefined; + s.fxc___51103 = undefined; + s.r___51110 = undefined; + s.fxr___51111 = undefined; + s.width___51175 = undefined; + s.height___51183 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; + r0 = s.arg0.fields["_hitbox"]; 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: + s.tmp_1 = game_Hitbox_isValid__P44014_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 275; s.pc = 12; return s.tmp_1; + case 12: + 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; } + r0 = s.arg0.fields["_hitbox"]; + { step = 11; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.i___51087 = (r0); + r0 = pxsim_ImageMethods.width(s.i___51087); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minX___51090 = (r0); + r0 = pxsim_ImageMethods.height(s.i___51087); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minY___51094 = (r0); + s.maxX___51098 = (0); + s.maxY___51100 = (0); + s.c___51102 = (0); + s.fxc___51103 = (0); + case 5: + s.tmp_1 = r0 = s.c___51102; + r0 = pxsim_ImageMethods.width(s.i___51087); + 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___51110 = (0); + s.fxr___51111 = (0); + case 6: + s.tmp_1 = r0 = s.r___51110; + r0 = pxsim_ImageMethods.height(s.i___51087); + 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___51087, s.c___51102, s.r___51110); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = Fx_min__P41959_mk(s); + s.tmp_4.arg0 = s.minX___51090; + s.tmp_4.arg1 = s.fxc___51103; + s.callLocIdx = 279; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + s.minX___51090 = (r0); + s.tmp_0 = Fx_min__P41959_mk(s); + s.tmp_0.arg0 = s.minY___51094; + s.tmp_0.arg1 = s.fxr___51111; + s.callLocIdx = 280; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.minY___51094 = (r0); + s.tmp_0 = Fx_max__P41960_mk(s); + s.tmp_0.arg0 = s.maxX___51098; + s.tmp_0.arg1 = s.fxc___51103; + s.callLocIdx = 281; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.maxX___51098 = (r0); + s.tmp_0 = Fx_max__P41960_mk(s); + s.tmp_0.arg0 = s.maxY___51100; + s.tmp_0.arg1 = s.fxr___51111; + s.callLocIdx = 282; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.maxY___51100 = (r0); + case 7: + case 8: + r0 = (s.r___51110 + 1); + s.r___51110 = (r0); + r0 = (s.fxr___51111 + 256); + s.tmp_0 = r0; + s.fxr___51111 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } + case 9: + r0 = (s.c___51102 + 1); + s.c___51102 = (r0); + r0 = (s.fxc___51103 + 256); + s.tmp_0 = r0; + s.fxc___51103 = (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___51090, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minX___51090 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minY___51094, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minY___51094 = (r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxX___51098, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxX___51098 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxY___51100, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxY___51100 = (r0); + r0 = (s.maxX___51098 - s.minX___51090); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.width___51175 = (r0); + r0 = (s.maxY___51100 - s.minY___51094); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sy"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___51183 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C44002_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P44009_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.width___51175; + s.tmp_1.arg3 = s.height___51183; + r0 = (s.minX___51090 & -256); + s.tmp_1.arg4 = r0; + r0 = (s.minY___51094 & -256); + s.tmp_1.arg5 = r0; + s.callLocIdx = 295; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + r0 = s.tmp_0; + case 11: + return leave(s, r0) default: oops() } } } -Sprite_vx__P2020301.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__P2020301.isGetter = true; +game_calculateHitBox__P44018.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} -function Sprite_vx__P2020301_mk(s) { +function game_calculateHitBox__P44018_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2020301, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P44018, depth: s.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___51087: undefined, + minX___51090: undefined, + minY___51094: undefined, + maxX___51098: undefined, + maxY___51100: undefined, + c___51102: undefined, + fxc___51103: undefined, + r___51110: undefined, + fxr___51111: undefined, + width___51175: undefined, + height___51183: undefined, arg0: undefined, } } @@ -15935,7 +17219,7 @@ function Sprite_vx__P2020301_mk(s) { -function sprites_BaseSprite_constructor__P2020039(s) { +function Sprite_image__P44184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15947,49 +17231,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, sprites_BaseSprite__C2020037_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P2020042_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 129; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P2020813_mk(s); - s.tmp_1 = game_currentScene__P2020942_mk(s); - s.callLocIdx = 130; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 131; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P2020039.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +Sprite_image__P44184.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__P44184.isGetter = true; -function sprites_BaseSprite_constructor__P2020039_mk(s) { +function Sprite_image__P44184_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P2020039, depth: s.depth + 1, + parent: s, fn: Sprite_image__P44184, 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__P2020813(s) { +function game_Hitbox_isValid__P44014(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16001,57 +17266,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_Scene__C2020786_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); + r0 = s.arg0.fields["hash"]; 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 = (s.tmp_2 + 1); - 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); - } 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 = 929; s.pc = 1; return s.tmp_3; } - } + s.tmp_2 = Sprite_calcDimensionalHash__P44186_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 228; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P2020813.info = {"start":7218,"length":128,"line":200,"column":8,"endLine":203,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +game_Hitbox_isValid__P44014.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} -function scene_Scene_addSprite__P2020813_mk(s) { +function game_Hitbox_isValid__P44014_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P2020813, depth: s.depth + 1, + parent: s, fn: game_Hitbox_isValid__P44014, depth: s.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 sprites_BaseSprite_z__P2020042(s) { +function Sprite_calcDimensionalHash__P44186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16063,54 +17312,56 @@ 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_BaseSprite__C2020037_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.revision(s.tmp_2); 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__P2020942_mk(s); - s.callLocIdx = 132; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; + r0 = s.arg0.fields["_width"]; + s.tmp_4 = r0; + r0 = (8 + 8); + 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_0).fields["flags"] = (s.tmp_2); - case 1: - case 2: - r0 = undefined; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0 = r0; + r0 = s.arg0.fields["_height"]; + s.tmp_7 = r0; + r0 = (16 + 8); + s.tmp_8 = r0; + r0 = (s.tmp_7 >> s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_0 + s.tmp_6); return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P2020042.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +Sprite_calcDimensionalHash__P44186.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} -function sprites_BaseSprite_z__P2020042_mk(s) { +function Sprite_calcDimensionalHash__P44186_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P2020042, depth: s.depth + 1, + parent: s, fn: Sprite_calcDimensionalHash__P44186, depth: s.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, } } -function sprites_BaseSprite_z__P2020041(s) { +function Fx_toIntShifted__P41949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16122,30 +17373,34 @@ 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_BaseSprite__C2020037_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); + s.tmp_1 = r0; + r0 = (s.tmp_0 >> s.tmp_1); + return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P2020041.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__P2020041.isGetter = true; +Fx_toIntShifted__P41949.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 sprites_BaseSprite_z__P2020041_mk(s) { +function Fx_toIntShifted__P41949_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P2020041, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P41949, 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 controller__setUserEventsEnabled__P2020149(s) { +function game_Hitbox_constructor__P44009(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16157,28 +17412,55 @@ 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; } - globals._userEventsEnabled___2022726 = (s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_calcDimensionalHash__P44186_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 219; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["hash"] = (s.tmp_1); + r0 = (s.arg0).fields["parent"] = (s.arg1); + r0 = (s.arg0).fields["width"] = (s.arg2); + r0 = (s.arg0).fields["height"] = (s.arg3); + r0 = (s.arg0).fields["ox"] = (s.arg4); + r0 = (s.arg0).fields["oy"] = (s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P2020149.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +game_Hitbox_constructor__P44009.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 controller__setUserEventsEnabled__P2020149_mk(s) { +function game_Hitbox_constructor__P44009_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P2020149, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P44009, 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 controller_Button_isPressed__P2020143(s) { +function Fx_floor__P41961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16192,18 +17474,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + r0 = (s.arg0 & -256); return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P2020143.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} +Fx_floor__P41961.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} -function controller_Button_isPressed__P2020143_mk(s) { +function Fx_floor__P41961_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P2020143, depth: s.depth + 1, + parent: s, fn: Fx_floor__P41961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -16212,7 +17492,7 @@ function controller_Button_isPressed__P2020143_mk(s) { -function console_inspect__P2018324(s) { +function Fx_max__P41960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16222,230 +17502,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___2029953 = undefined; - s.asString___2029971 = undefined; - s.keys___2029983 = undefined; - s.snipped___2029987 = 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"); + r0 = (s.arg0 > s.arg1); 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; } + { step = 3; continue; } + { step = 2; 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; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - { step = 17; continue; } - { step = 15; continue; } + r0 = s.arg1; + { step = 3; 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___2029953 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___2029953); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayJoin__P2018045_mk(s); - s.tmp_2.arg0 = s.asArr___2029953; - s.tmp_2.arg1 = ","; - s.callLocIdx = 34; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - { step = 17; continue; } - { step = 4; continue; } + r0 = undefined; case 3: - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P2018045_mk(s); - s.tmp_8 = helpers_arraySlice__P2018057_mk(s); - s.tmp_8.arg0 = s.asArr___2029953; - s.tmp_8.arg1 = 0; - s.tmp_8.arg2 = s.arg1; - s.callLocIdx = 35; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = ","; - s.callLocIdx = 36; 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; } - 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___2029971 = (r0); - r0 = (s.asString___2029971 != "[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.asString___2029971 != "[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___2029971; - { step = 17; continue; } - case 8: - case 9: - r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___2029983 = (r0); - r0 = pxsim_Array__length(s.keys___2029983); - s.tmp_0 = r0; - r0 = (s.tmp_0 > s.arg1); - s.snipped___2029987 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___2029987); - if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P2018057_mk(s); - s.tmp_0.arg0 = s.keys___2029983; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 37; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.keys___2029983 = (r0); - case 10: - case 11: - r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P2030004); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___2029987); - 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__P2018054_mk(s); - s.tmp_7.arg0 = s.keys___2029983; - s.tmp_7.arg1 = s.tmp_0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7.arg2 = r0; - s.callLocIdx = 38; 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: + return leave(s, r0) + default: oops() +} } } +Fx_max__P41960.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__P41960_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_max__P41960, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_min__P41959(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); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = s.arg1; + { step = 3; continue; } + case 2: r0 = undefined; - case 17: + case 3: return leave(s, r0) default: oops() } } } -console_inspect__P2018324.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +Fx_min__P41959.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 console_inspect__P2018324_mk(s) { +function Fx_min__P41959_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P2018324, depth: s.depth + 1, + parent: s, fn: Fx_min__P41959, depth: s.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___2029953: undefined, - asString___2029971: undefined, - keys___2029983: undefined, - snipped___2029987: undefined, arg0: undefined, arg1: undefined, } } @@ -16454,7 +17586,7 @@ function console_inspect__P2018324_mk(s) { -function console_inspect_inline__P2030004(s) { +function Fx_mul__P41953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16469,69 +17601,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - 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; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); 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) + ""; } - 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) + ""; } - 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 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -console_inspect_inline__P2030004.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +Fx_mul__P41953.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 console_inspect_inline__P2030004_mk(s) { +function Fx_mul__P41953_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect_inline__P2030004, depth: s.depth + 1, + parent: s, fn: Fx_mul__P41953, depth: s.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, } } @@ -16540,7 +17623,7 @@ function console_inspect_inline__P2030004_mk(s) { -function helpers_arrayReduce__P2018054(s) { +function Fx_sub__P41952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16550,62 +17633,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___2030031 = undefined; - s.i___2030034 = 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___2030031 = (r0); - s.i___2030034 = (0); - case 1: - r0 = (s.i___2030034 < s.len___2030031); - 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___2030034); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___2030034; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.arg2 = (r0); - r0 = (s.i___2030034 + 1); - s.i___2030034 = (r0); - { step = 1; continue; } - case 2: - r0 = s.arg2; + r0 = (s.arg0 - s.arg1); return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P2018054.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"]} +Fx_sub__P41952.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 helpers_arrayReduce__P2018054_mk(s) { +function Fx_sub__P41952_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P2018054, depth: s.depth + 1, + parent: s, fn: Fx_sub__P41952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - len___2030031: undefined, - i___2030034: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_arrayJoin__P2018045(s) { +function game_Hitbox_updateIfInvalid__P44016(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16615,153 +17667,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___2030059 = undefined; - s.len___2030060 = undefined; - s.i___2030063 = undefined; + s.newHitBox___51300 = undefined; + s.oMinX___51305 = undefined; + s.oMinY___51308 = undefined; + s.oMaxX___51311 = undefined; + s.oMaxY___51317 = undefined; + s.nMinX___51323 = undefined; + s.nMinY___51326 = undefined; + s.nMaxX___51329 = undefined; + s.nMaxY___51335 = undefined; + s.xDiff___51341 = undefined; + s.yDiff___51352 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_isValid__P44014_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 233; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; 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; } + { step = 7; continue; } 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___2030059 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___2030060 = (r0); - s.i___2030063 = (0); - case 5: - r0 = (s.i___2030063 < s.len___2030060); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.i___2030063 > 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___2030059) && (s.r___2030059).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___2030059); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___2030059) + ""; } - 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; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___2030059 = (r0); - case 8: + s.tmp_2 = game_calculateHitBox__P44018_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 234; s.pc = 9; return s.tmp_2; case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___2030063); - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = s.retval; + s.newHitBox___51300 = (r0); + r0 = s.arg0.fields["ox"]; + s.oMinX___51305 = (r0); + r0 = s.arg0.fields["oy"]; + s.oMinY___51308 = (r0); + r0 = s.arg0.fields["width"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } + r0 = (s.oMinX___51305 + s.tmp_0); + s.oMaxX___51311 = (r0); + r0 = s.arg0.fields["height"]; + s.tmp_0 = r0; + r0 = (s.oMinY___51308 + s.tmp_0); + s.oMaxY___51317 = (r0); + r0 = s.newHitBox___51300.fields["ox"]; + s.nMinX___51323 = (r0); + r0 = s.newHitBox___51300.fields["oy"]; + s.nMinY___51326 = (r0); + r0 = s.newHitBox___51300.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___51323 + s.tmp_0); + s.nMaxX___51329 = (r0); + r0 = s.newHitBox___51300.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___51326 + s.tmp_0); + s.nMaxY___51335 = (r0); + s.tmp_1 = Fx_abs__P41958_mk(s); + r0 = (s.oMinX___51305 - s.nMinX___51323); + s.tmp_1.arg0 = r0; + s.callLocIdx = 240; s.pc = 10; return s.tmp_1; case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___2030063); - s.tmp_2 = r0; - r0 = (s.tmp_2 === null); + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P41958_mk(s); + r0 = (s.oMaxX___51311 - s.nMaxX___51329); + s.tmp_3.arg0 = r0; + s.callLocIdx = 242; s.pc = 11; return s.tmp_3; 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; } + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + s.xDiff___51341 = (r0); + s.tmp_1 = Fx_abs__P41958_mk(s); + r0 = (s.oMinY___51308 - s.nMinY___51326); + s.tmp_1.arg0 = r0; + s.callLocIdx = 245; s.pc = 12; return s.tmp_1; case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___2030063); - case 13: - // jmp value (already in r0) - s.tmp_4 = r0; - if ((s.r___2030059) && (s.r___2030059).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___2030059); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___2030059) + ""; } - 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: + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P41958_mk(s); + r0 = (s.oMaxY___51317 - s.nMaxY___51335); + s.tmp_3.arg0 = r0; + s.callLocIdx = 247; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___2030059 = (r0); - r0 = (s.i___2030063 + 1); - s.i___2030063 = (r0); - { step = 5; continue; } - case 14: - r0 = s.r___2030059; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + s.yDiff___51352 = (r0); + r0 = (s.xDiff___51341 > 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["ox"] = (s.nMinX___51323); + r0 = s.newHitBox___51300.fields["width"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["width"] = (s.tmp_0); + case 3: + case 4: + r0 = (s.yDiff___51352 > 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.arg0).fields["oy"] = (s.nMinY___51326); + r0 = s.newHitBox___51300.fields["height"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["height"] = (s.tmp_0); + case 5: + case 6: + r0 = s.newHitBox___51300.fields["hash"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["hash"] = (s.tmp_0); + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P2018045.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"]} +game_Hitbox_updateIfInvalid__P44016.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} -function helpers_arrayJoin__P2018045_mk(s) { +function game_Hitbox_updateIfInvalid__P44016_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P2018045, depth: s.depth + 1, + parent: s, fn: game_Hitbox_updateIfInvalid__P44016, depth: s.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, - r___2030059: undefined, - len___2030060: undefined, - i___2030063: undefined, + newHitBox___51300: undefined, + oMinX___51305: undefined, + oMinY___51308: undefined, + oMaxX___51311: undefined, + oMaxY___51317: undefined, + nMinX___51323: undefined, + nMinY___51326: undefined, + nMaxX___51329: undefined, + nMaxY___51335: undefined, + xDiff___51341: undefined, + yDiff___51352: undefined, arg0: undefined, - arg1: undefined, } } -function pauseUntil__P2018309(s) { +function Fx_abs__P41958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16773,75 +17827,40 @@ 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); + r0 = (s.arg0 < 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; + r0 = (0 - s.arg0); + { step = 3; continue; } { step = 2; continue; } case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 29; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; + r0 = s.arg0; + { step = 3; continue; } 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: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.arg1 = (0); - case 5: - case 6: - s.tmp_0 = control___queuePollEvent__P2018308_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 30; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -pauseUntil__P2018309.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +Fx_abs__P41958.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function pauseUntil__P2018309_mk(s) { +function Fx_abs__P41958_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P2018309, depth: s.depth + 1, + parent: s, fn: Fx_abs__P41958, depth: s.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 control___queuePollEvent__P2018308(s) { +function Sprite_sy__P44166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16851,97 +17870,127 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___2025781 = 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__C2022401_VT); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_sy"]; s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P2022402_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 1023; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg2 = r0; - r0 = pxsim.control.millis(); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.arg0; - s.tmp_1.arg5 = s.arg1; - r0 = pxsim_numops_toBoolDecr(s.arg2); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1.arg6 = r0; - s.callLocIdx = 27; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___2025781 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___2022404); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_sy__P44166.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__P44166.isGetter = true; + +function Sprite_sy__P44166_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sy__P44166, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_sx__P44164(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__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; 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 = pxsim_Array__push(s.tmp_2, s.ev___2025781); - globals._pollEventQueue___2022404 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P2022405); - { step = 2; continue; } + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_sx__P44164.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__P44164.isGetter = true; + +function Sprite_sx__P44164_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sx__P44164, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_fy__P44163(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__C44135_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P41923_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 324; s.pc = 1; return s.tmp_3; case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___2022404, s.ev___2025781); - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P2018333_mk(s); - r0 = s.ev___2025781.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___2025781.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 28; s.pc = 6; return s.tmp_0; - case 6: r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___2025781.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___2025781.fields["vid"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - setupResume(s, 7); - pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); - checkResumeConsumed(); - return; - case 7: - r0 = s.retval; - case 4: + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -control___queuePollEvent__P2018308.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"]} +Sprite_fy__P44163.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 control___queuePollEvent__P2018308_mk(s) { +function Sprite_fy__P44163_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P2018308, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P44163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___2025781: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_pollEvents__P2022405(s) { +function Sprite_fy__P44162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16951,139 +18000,89 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___2025908 = undefined; - s.i___2025911 = undefined; - s.ev___2025917 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___2022404); - 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___2025908 = (r0); - s.i___2025911 = (0); - case 2: - s.tmp_1 = r0 = s.i___2025911; - r0 = pxsim_Array__length(globals._pollEventQueue___2022404); - 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___2022404, s.i___2025911); - s.ev___2025917 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___2025917; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - s.callLocIdx = 24; s.pc = 13; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 24; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 24; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 24; s.pc = 13; return s.tmp_1; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 13: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 3: - r0 = s.ev___2025917.fields["timeOut"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 4; continue; } - r0 = s.tmp_2; - { step = 5; continue; } - case 4: - r0 = s.ev___2025917.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___2025908 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___2025917.fields["timeOut"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); - 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 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 9; continue; } - r0 = s.ev___2025917.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___2025917.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___2025917.fields["once"]; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P2018042_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___2022404; - s.tmp_1.arg1 = s.i___2025911; - s.tmp_1.arg2 = 1; - s.callLocIdx = 25; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___2025911 - 1); - s.i___2025911 = (r0); - case 7: - case 8: - case 9: - case 10: - r0 = (s.i___2025911 + 1); - s.i___2025911 = (r0); - { step = 2; continue; } - case 11: - s.tmp_0 = pause__P2018355_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 26; s.pc = 15; return s.tmp_0; - case 15: + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_fy__P44162.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__P44162.isGetter = true; + +function Sprite_fy__P44162_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_fy__P44162, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_fx__P44161(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__C44135_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P41923_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 321; s.pc = 1; return s.tmp_3; + case 1: r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___2022404 = (undefined); + 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() } } } -control_pollEvents__P2022405.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +Sprite_fx__P44161.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 control_pollEvents__P2022405_mk(s) { +function Sprite_fx__P44161_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P2022405, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P44161, depth: s.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, - now___2025908: undefined, - i___2025911: undefined, - ev___2025917: undefined, + arg0: undefined, + arg1: undefined, } } -function control_PollEvent_constructor__P2022402(s) { +function Sprite_fx__P44160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17095,47 +18094,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.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C2022401_VT)) failedCast(r0); - r0 = (s.arg0).fields["eid"] = (s.arg1); - r0 = (s.arg0).fields["vid"] = (s.arg2); - r0 = (s.arg0).fields["start"] = (s.arg3); - r0 = (s.arg0).fields["timeOut"] = (s.arg4); - r0 = (s.arg0).fields["condition"] = (s.arg5); - r0 = (s.arg0).fields["once"] = (s.arg6); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -control_PollEvent_constructor__P2022402.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"]} +Sprite_fx__P44160.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__P44160.isGetter = true; -function control_PollEvent_constructor__P2022402_mk(s) { +function Sprite_fx__P44160_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P2022402, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P44160, 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, - arg6: undefined, } } -function TypedArray_fromArrayBuffer__P2055015(s) { +function Sprite_ay__P44159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17145,117 +18130,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.byteLength___2055094 = 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, TypedArray__C2055013_VT)) failedCast(r0); - r0 = (s.arg2 >>> 0); - s.arg2 = (r0); - s.tmp_1 = r0 = s.arg2; - r0 = s.arg1.fields["_byteLength"]; - 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_pxtcore.throwValue("byteOffset out of range."); - case 1: - case 2: - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_5 = r0; - r0 = (s.arg2 % s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 != 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore.throwValue("Buffer length minus the byteOffset is not a multiple of the element size."); - case 3: - case 4: - r0 = (s.arg3 == null); - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 7; continue; } - r0 = s.arg1.fields["_byteLength"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 - s.arg2); - s.byteLength___2055094 = (r0); - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.byteLength___2055094 % s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 != 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore.throwValue("Length of buffer minus byteOffset not a multiple of the element size."); - case 5: - case 6: - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_3 = r0; - r0 = (s.byteLength___2055094 / s.tmp_3); - s.arg3 = (r0); - { step = 8; continue; } - case 7: - r0 = (s.arg3 >>> 0); - s.arg3 = (r0); - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_0 = r0; - r0 = (s.arg3 * s.tmp_0); - s.byteLength___2055094 = (r0); - case 8: - r0 = (s.arg2 + s.byteLength___2055094); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = s.arg1.fields["_byteLength"]; - 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_pxtcore.throwValue("byteOffset and length reference are an area beyond the end of the buffer."); - case 9: - case 10: - r0 = (s.arg0).fields["_buffer"] = (s.arg1); - r0 = (s.arg0).fields["_byteLength"] = (s.byteLength___2055094); - r0 = (s.arg0).fields["_byteOffset"] = (s.arg2); - r0 = (s.arg0).fields["_length"] = (s.arg3); + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -TypedArray_fromArrayBuffer__P2055015.info = {"start":2622,"length":1324,"line":71,"column":4,"endLine":109,"endColumn":5,"fileName":"typedArray.ts","functionName":"fromArrayBuffer","argumentNames":["this","source","byteOffset","length"]} +Sprite_ay__P44159.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 TypedArray_fromArrayBuffer__P2055015_mk(s) { +function Sprite_ay__P44159_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_fromArrayBuffer__P2055015, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P44159, depth: s.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, - byteLength___2055094: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArrayBuffer_byteLength__P2022276(s) { +function Sprite_ay__P44158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17270,19 +18180,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArrayBuffer__C2022274_VT)) failedCast(r0); - r0 = s.arg0.fields["_byteLength"]; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -ArrayBuffer_byteLength__P2022276.info = {"start":2158,"length":71,"line":60,"column":4,"endLine":62,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"byteLength","argumentNames":["this"]} -ArrayBuffer_byteLength__P2022276.isGetter = true; +Sprite_ay__P44158.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__P44158.isGetter = true; -function ArrayBuffer_byteLength__P2022276_mk(s) { +function Sprite_ay__P44158_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArrayBuffer_byteLength__P2022276, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P44158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -17290,7 +18203,7 @@ function ArrayBuffer_byteLength__P2022276_mk(s) { -function Int8Array_constructor__P2022313(s) { +function Sprite_ax__P44157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17306,33 +18219,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Int8Array__C2022312_VT)) failedCast(r0); - s.tmp_0 = TypedArray_constructor__P2055027_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 74; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["BYTES_PER_ELEMENT"] = (1); - r0 = (s.arg0).fields["_pack"] = (Int8Array_inline__P2025381); - r0 = (s.arg0).fields["_unpack"] = (Int8Array_inline__P2025387); - s.tmp_0 = TypedArray_init__P2055026_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 77; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C44135_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["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Int8Array_constructor__P2022313.info = {"start":1676,"length":246,"line":38,"column":4,"endLine":44,"endColumn":5,"fileName":"int8array.ts","functionName":"inline","argumentNames":["this","length"]} +Sprite_ax__P44157.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 Int8Array_constructor__P2022313_mk(s) { +function Sprite_ax__P44157_mk(s) { checkStack(s.depth); return { - parent: s, fn: Int8Array_constructor__P2022313, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P44157, 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, } } @@ -17341,7 +18248,7 @@ function Int8Array_constructor__P2022313_mk(s) { -function Int8Array_inline__P2025381(s) { +function Sprite_ax__P44156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17355,20 +18262,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Convert_packI8__P2022315_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 75; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Int8Array_inline__P2025381.info = {"start":1788,"length":40,"line":41,"column":21,"endLine":41,"endColumn":61,"fileName":"int8array.ts","functionName":"inline","argumentNames":["value"]} +Sprite_ax__P44156.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__P44156.isGetter = true; -function Int8Array_inline__P2025381_mk(s) { +function Sprite_ax__P44156_mk(s) { checkStack(s.depth); return { - parent: s, fn: Int8Array_inline__P2025381, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P44156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17378,7 +18286,7 @@ function Int8Array_inline__P2025381_mk(s) { -function Int8Array_inline__P2025387(s) { +function Sprite_vy__P44155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17390,32 +18298,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Convert_unpackI8__P2022316_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 76; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C44135_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() } } } -Int8Array_inline__P2025387.info = {"start":1852,"length":44,"line":42,"column":23,"endLine":42,"endColumn":67,"fileName":"int8array.ts","functionName":"inline","argumentNames":["bytes"]} +Sprite_vy__P44155.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 Int8Array_inline__P2025387_mk(s) { +function Sprite_vy__P44155_mk(s) { checkStack(s.depth); return { - parent: s, fn: Int8Array_inline__P2025387, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P44155, 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 TypedArray_init__P2055026(s) { +function Sprite_vy__P44154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17430,40 +18346,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TypedArray__C2055013_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_length"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_byteLength"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(ArrayBuffer__C2022274_VT); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; s.tmp_0 = r0; - s.tmp_1 = ArrayBuffer_constructor__P2022275_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["_byteLength"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 73; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["_buffer"] = (s.tmp_0); - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -TypedArray_init__P2055026.info = {"start":7430,"length":151,"line":242,"column":4,"endLine":245,"endColumn":4,"fileName":"typedArray.ts","functionName":"init","argumentNames":["this"]} +Sprite_vy__P44154.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__P44154.isGetter = true; -function TypedArray_init__P2055026_mk(s) { +function Sprite_vy__P44154_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_init__P2055026, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P44154, depth: s.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, } } @@ -17471,7 +18369,7 @@ function TypedArray_init__P2055026_mk(s) { -function ArrayBuffer_constructor__P2022275(s) { +function Sprite_vx__P44153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17481,55 +18379,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2024984 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArrayBuffer__C2022274_VT)) failedCast(r0); - r0 = (s.arg1 >> 0); - s.arg1 = (r0); - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore.throwValue("ArrayBuffer size cannot be negative."); - case 1: - case 2: - r0 = (s.arg0).fields["_byteLength"] = (s.arg1); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_bytes"] = (s.tmp_1); - s.i___2024984 = (0); - case 3: - r0 = (s.i___2024984 < s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["_bytes"]; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, 0); - r0 = (s.i___2024984 + 1); - s.i___2024984 = (r0); - { step = 3; continue; } - case 4: + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArrayBuffer_constructor__P2022275.info = {"start":1725,"length":321,"line":41,"column":4,"endLine":52,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"inline","argumentNames":["this","length"]} +Sprite_vx__P44153.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 ArrayBuffer_constructor__P2022275_mk(s) { +function Sprite_vx__P44153_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArrayBuffer_constructor__P2022275, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P44153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___2024984: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, } } @@ -17538,7 +18414,7 @@ function ArrayBuffer_constructor__P2022275_mk(s) { -function Convert_unpackI8__P2022316(s) { +function Sprite_vx__P44152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17552,22 +18428,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Convert_as_signed__P2025392_mk(s); - r0 = pxsim_Array__getAt(s.arg0, 0); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 8; - s.callLocIdx = 78; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Convert_unpackI8__P2022316.info = {"start":2143,"length":84,"line":46,"column":4,"endLine":46,"endColumn":88,"fileName":"convert.ts","functionName":"unpackI8","argumentNames":["bytes"]} +Sprite_vx__P44152.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__P44152.isGetter = true; -function Convert_unpackI8__P2022316_mk(s) { +function Sprite_vx__P44152_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_unpackI8__P2022316, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P44152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17577,7 +18452,7 @@ function Convert_unpackI8__P2022316_mk(s) { -function Convert_as_signed__P2025392(s) { +function sprites_BaseSprite_constructor__P43890(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17587,29 +18462,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2025395 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (32 - s.arg1); - s.s___2025395 = (r0); - r0 = (s.arg0 << s.s___2025395); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> s.s___2025395); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P43893_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 129; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = scene_Scene_addSprite__P44664_mk(s); + s.tmp_1 = game_currentScene__P44793_mk(s); + s.callLocIdx = 130; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 131; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Convert_as_signed__P2025392.info = {"start":1842,"length":112,"line":42,"column":4,"endLine":42,"endColumn":116,"fileName":"convert.ts","functionName":"as_signed","argumentNames":["value","bits"]} +sprites_BaseSprite_constructor__P43890.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 Convert_as_signed__P2025392_mk(s) { +function sprites_BaseSprite_constructor__P43890_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_as_signed__P2025392, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P43890, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - s___2025395: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -17618,7 +18506,7 @@ function Convert_as_signed__P2025392_mk(s) { -function Convert_packI8__P2022315(s) { +function scene_Scene_addSprite__P44664(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17630,34 +18518,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C44637_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = (s.arg0 & 255); + 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 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = s.tmp_0; + 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 = 929; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Convert_packI8__P2022315.info = {"start":2072,"length":66,"line":45,"column":4,"endLine":45,"endColumn":70,"fileName":"convert.ts","functionName":"packI8","argumentNames":["n"]} +scene_Scene_addSprite__P44664.info = {"start":7218,"length":128,"line":200,"column":8,"endLine":203,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function Convert_packI8__P2022315_mk(s) { +function scene_Scene_addSprite__P44664_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_packI8__P2022315, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P44664, depth: s.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 TypedArray_constructor__P2055027(s) { +function sprites_BaseSprite_z__P43893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17673,30 +18584,41 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TypedArray__C2055013_VT)) failedCast(r0); - r0 = (s.arg1 >> 0); - s.arg1 = (r0); - r0 = (s.arg1 < 0); + if (!checkSubtype(r0, sprites_BaseSprite__C43888_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 = pxsim_pxtcore.throwValue("length is not a small enough non-negative integer."); + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P44793_mk(s); + s.callLocIdx = 132; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + 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 = (s.arg0).fields["_length"] = (s.arg1); - r0 = (s.arg0).fields["_byteOffset"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -TypedArray_constructor__P2055027.info = {"start":1932,"length":238,"line":46,"column":4,"endLine":54,"endColumn":5,"fileName":"typedArray.ts","functionName":"inline","argumentNames":["this","length"]} +sprites_BaseSprite_z__P43893.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 TypedArray_constructor__P2055027_mk(s) { +function sprites_BaseSprite_z__P43893_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_constructor__P2055027, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P43893, depth: s.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, } } @@ -17705,7 +18627,7 @@ function TypedArray_constructor__P2055027_mk(s) { -function TypedArray_buffer__P2055017(s) { +function sprites_BaseSprite_z__P43892(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17720,18 +18642,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TypedArray__C2055013_VT)) failedCast(r0); - r0 = s.arg0.fields["_buffer"]; + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; return leaveAccessor(s, r0) default: oops() } } } -TypedArray_buffer__P2055017.info = {"start":4392,"length":68,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"typedArray.ts","functionName":"buffer","argumentNames":["this"]} -TypedArray_buffer__P2055017.isGetter = true; +sprites_BaseSprite_z__P43892.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__P43892.isGetter = true; -function TypedArray_buffer__P2055017_mk(s) { +function sprites_BaseSprite_z__P43892_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_buffer__P2055017, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P43892, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -17740,7 +18662,7 @@ function TypedArray_buffer__P2055017_mk(s) { -function TypedArray_fromArray__P2055014(s) { +function controller__setUserEventsEnabled__P44000(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17750,83 +18672,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.byteLength___2055044 = undefined; - s.i___2055067 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, TypedArray__C2055013_VT)) failedCast(r0); - r0 = pxsim_Array__length(s.arg1); - s.tmp_0 = r0; - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.byteLength___2055044 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(ArrayBuffer__C2022274_VT); - s.tmp_0 = r0; - s.tmp_1 = ArrayBuffer_constructor__P2022275_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.byteLength___2055044; - s.callLocIdx = 63; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["_buffer"] = (s.tmp_0); - r0 = (s.arg0).fields["_byteLength"] = (s.byteLength___2055044); - r0 = (s.arg0).fields["_byteOffset"] = (0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__length(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_length"] = (s.tmp_1); - s.i___2055067 = (0); - case 1: - s.tmp_1 = r0 = s.i___2055067; - r0 = s.arg0.fields["_length"]; - 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 = TypedArray_set__P2055023_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.i___2055067; - r0 = pxsim_Array__getAt(s.arg1, s.i___2055067); - s.tmp_3.arg2 = r0; - s.callLocIdx = 65; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - r0 = (s.i___2055067 + 1); - s.i___2055067 = (r0); - { step = 1; continue; } - case 2: + globals._userEventsEnabled___46579 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -TypedArray_fromArray__P2055014.info = {"start":2235,"length":377,"line":59,"column":4,"endLine":69,"endColumn":5,"fileName":"typedArray.ts","functionName":"fromArray","argumentNames":["this","source"]} +controller__setUserEventsEnabled__P44000.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function TypedArray_fromArray__P2055014_mk(s) { +function controller__setUserEventsEnabled__P44000_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_fromArray__P2055014, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P44000, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - byteLength___2055044: undefined, - i___2055067: undefined, arg0: undefined, - arg1: undefined, } } -function TypedArray_set__P2055023(s) { +function controller_Button_isPressed__P43994(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17836,88 +18705,248 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bytes___2055246 = undefined; - s.i___2055250 = undefined; - s.o___2055251 = 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, TypedArray__C2055013_VT)) failedCast(r0); - r0 = (s.arg1 >>> 0); - s.arg1 = (r0); - r0 = s.arg0.fields["_length"]; + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + return leave(s, r0) + default: oops() +} } } +controller_Button_isPressed__P43994.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__P43994_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_isPressed__P43994, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function console_inspect__P42175(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.asArr___53947 = undefined; + s.asString___53965 = undefined; + s.keys___53977 = undefined; + s.snipped___53981 = 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.arg1 >= s.tmp_1); + r0 = (s.tmp_1 == "string"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; 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; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + { step = 17; continue; } + { step = 15; continue; } case 2: - s.tmp_2 = if__pack_2_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg2; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "_pack"), 2); - s.callLocIdx = 69; s.pc = 6; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["_pack"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["_pack"], 2); s.callLocIdx = 69; s.pc = 6; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 69; s.pc = 6; return s.tmp_2;; } - else { s.callLocIdx = 69; s.pc = 6; return s.tmp_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___53947 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___53947); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = helpers_arrayJoin__P41896_mk(s); + s.tmp_2.arg0 = s.asArr___53947; + s.tmp_2.arg1 = ","; + s.callLocIdx = 34; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + { step = 17; continue; } + { step = 4; continue; } + case 3: + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + s.tmp_7 = helpers_arrayJoin__P41896_mk(s); + s.tmp_8 = helpers_arraySlice__P41908_mk(s); + s.tmp_8.arg0 = s.asArr___53947; + s.tmp_8.arg1 = 0; + s.tmp_8.arg2 = s.arg1; + s.callLocIdx = 35; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = ","; + s.callLocIdx = 36; 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; } + 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___53965 = (r0); + r0 = (s.asString___53965 != "[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.asString___53965 != "[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___53965; + { step = 17; continue; } + case 8: + case 9: + r0 = pxsim_pxtrt.keysOf(s.arg0); + s.keys___53977 = (r0); + r0 = pxsim_Array__length(s.keys___53977); + s.tmp_0 = r0; + r0 = (s.tmp_0 > s.arg1); + s.snipped___53981 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___53981); + if (!r0) { step = 10; continue; } + s.tmp_0 = helpers_arraySlice__P41908_mk(s); + s.tmp_0.arg0 = s.keys___53977; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 37; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.keys___53977 = (r0); + case 10: + case 11: + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P53998); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.snipped___53981); + 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__P41905_mk(s); + s.tmp_7.arg0 = s.keys___53977; + s.tmp_7.arg1 = s.tmp_0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7.arg2 = r0; + s.callLocIdx = 38; 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.bytes___2055246 = (r0); - s.i___2055250 = (0); - r0 = s.arg0.fields["_byteOffset"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_3 = r0; - r0 = (s.arg1 * s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - s.o___2055251 = (r0); - r0 = s.tmp_0; - case 3: - r0 = s.arg0.fields["BYTES_PER_ELEMENT"]; - s.tmp_1 = r0; - r0 = (s.i___2055250 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["_buffer"]; s.tmp_3 = r0; - r0 = s.tmp_3.fields["_bytes"]; + r0 = pxsim_String__concat("{", s.tmp_3); s.tmp_2 = r0; - s.tmp_4 = r0 = s.o___2055251; - r0 = pxsim_Array__getAt(s.bytes___2055246, s.i___2055250); - s.tmp_5 = r0; - r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_4, s.tmp_5); - r0 = (s.i___2055250 + 1); - s.i___2055250 = (r0); - s.tmp_0 = r0 = s.o___2055251; - r0 = (s.tmp_0 + 1); - s.o___2055251 = (r0); - r0 = s.tmp_0; - { step = 3; continue; } - case 4: - case 5: + 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() } } } -TypedArray_set__P2055023.info = {"start":5292,"length":436,"line":168,"column":4,"endLine":183,"endColumn":5,"fileName":"typedArray.ts","functionName":"set","argumentNames":["this","index","value"]} +console_inspect__P42175.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 TypedArray_set__P2055023_mk(s) { +function console_inspect__P42175_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_set__P2055023, depth: s.depth + 1, + parent: s, fn: console_inspect__P42175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17925,89 +18954,24 @@ function TypedArray_set__P2055023_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - bytes___2055246: undefined, - i___2055250: undefined, - o___2055251: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + asArr___53947: undefined, + asString___53965: undefined, + keys___53977: undefined, + snipped___53981: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, -} } - - - - - -function ArrayBuffer_bytes__P2022277(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, ArrayBuffer__C2022274_VT)) failedCast(r0); - r0 = s.arg0.fields["_bytes"]; - return leaveAccessor(s, r0) - default: oops() -} } } -ArrayBuffer_bytes__P2022277.info = {"start":2235,"length":63,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"arrayBuffer.ts","functionName":"bytes","argumentNames":["this"]} -ArrayBuffer_bytes__P2022277.isGetter = true; - -function ArrayBuffer_bytes__P2022277_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArrayBuffer_bytes__P2022277, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function TypedArray_byteOffset__P2055019(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, TypedArray__C2055013_VT)) failedCast(r0); - r0 = s.arg0.fields["_byteOffset"]; - return leaveAccessor(s, r0) - default: oops() -} } } -TypedArray_byteOffset__P2055019.info = {"start":4543,"length":71,"line":134,"column":4,"endLine":136,"endColumn":5,"fileName":"typedArray.ts","functionName":"byteOffset","argumentNames":["this"]} -TypedArray_byteOffset__P2055019.isGetter = true; - -function TypedArray_byteOffset__P2055019_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: TypedArray_byteOffset__P2055019, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, } } -function TypedArray_length__P2055021(s) { +function console_inspect_inline__P53998(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18019,30 +18983,81 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, TypedArray__C2055013_VT)) failedCast(r0); - r0 = s.arg0.fields["_length"]; - return leaveAccessor(s, r0) + 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_0 = r0; + 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_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) + ""; } + 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 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + return leave(s, r0) default: oops() } } } -TypedArray_length__P2055021.info = {"start":4708,"length":63,"line":142,"column":4,"endLine":144,"endColumn":5,"fileName":"typedArray.ts","functionName":"length","argumentNames":["this"]} -TypedArray_length__P2055021.isGetter = true; +console_inspect_inline__P53998.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 TypedArray_length__P2055021_mk(s) { +function console_inspect_inline__P53998_mk(s) { checkStack(s.depth); return { - parent: s, fn: TypedArray_length__P2055021, depth: s.depth + 1, + parent: s, fn: console_inspect_inline__P53998, depth: s.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 Uint8Array_constructor__P2022329(s) { +function helpers_arrayReduce__P41905(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18052,48 +19067,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___54025 = undefined; + s.i___54028 = 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, Uint8Array__C2022328_VT)) failedCast(r0); - s.tmp_0 = TypedArray_constructor__P2055027_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 80; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__length(s.arg0); + s.len___54025 = (r0); + s.i___54028 = (0); case 1: + r0 = (s.i___54028 < s.len___54025); + 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___54028); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.i___54028; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 7; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - r0 = (s.arg0).fields["BYTES_PER_ELEMENT"] = (1); - r0 = (s.arg0).fields["_pack"] = (Uint8Array_inline__P2025545); - r0 = (s.arg0).fields["_unpack"] = (Uint8Array_inline__P2025551); - s.tmp_0 = TypedArray_init__P2055026_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 83; s.pc = 2; return s.tmp_0; + s.arg2 = (r0); + r0 = (s.i___54028 + 1); + s.i___54028 = (r0); + { step = 1; continue; } case 2: - r0 = s.retval; - r0 = undefined; + r0 = s.arg2; return leave(s, r0) default: oops() } } } -Uint8Array_constructor__P2022329.info = {"start":1677,"length":246,"line":38,"column":4,"endLine":44,"endColumn":5,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["this","length"]} +helpers_arrayReduce__P41905.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 Uint8Array_constructor__P2022329_mk(s) { +function helpers_arrayReduce__P41905_mk(s) { checkStack(s.depth); return { - parent: s, fn: Uint8Array_constructor__P2022329, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P41905, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + len___54025: undefined, + i___54028: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Uint8Array_inline__P2025545(s) { +function helpers_arrayJoin__P41896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18103,34 +19132,153 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___54053 = undefined; + s.len___54054 = undefined; + s.i___54057 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Convert_packU8__P2022317_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 81; s.pc = 1; return s.tmp_0; + 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; } 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___54053 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___54054 = (r0); + s.i___54057 = (0); + case 5: + r0 = (s.i___54057 < s.len___54054); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___54057 > 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___54053) && (s.r___54053).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___54053); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___54053) + ""; } + 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; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.r___54053 = (r0); + case 8: + case 9: + r0 = pxsim_Array__getAt(s.arg0, s.i___54057); + 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___54057); + s.tmp_2 = 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___54057); + case 13: + // jmp value (already in r0) + s.tmp_4 = r0; + if ((s.r___54053) && (s.r___54053).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___54053); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___54053) + ""; } + 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___54053 = (r0); + r0 = (s.i___54057 + 1); + s.i___54057 = (r0); + { step = 5; continue; } + case 14: + r0 = s.r___54053; return leave(s, r0) default: oops() } } } -Uint8Array_inline__P2025545.info = {"start":1789,"length":40,"line":41,"column":21,"endLine":41,"endColumn":61,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["value"]} +helpers_arrayJoin__P41896.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 Uint8Array_inline__P2025545_mk(s) { +function helpers_arrayJoin__P41896_mk(s) { checkStack(s.depth); return { - parent: s, fn: Uint8Array_inline__P2025545, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P41896, depth: s.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, + r___54053: undefined, + len___54054: undefined, + i___54057: undefined, arg0: undefined, + arg1: undefined, } } -function Uint8Array_inline__P2025551(s) { +function pauseUntil__P42160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18142,32 +19290,75 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Convert_unpackU8__P2022318_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 82; s.pc = 1; return s.tmp_0; + 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: + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 29; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + 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: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.arg1 = (0); + case 5: + case 6: + s.tmp_0 = control___queuePollEvent__P42159_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 30; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -Uint8Array_inline__P2025551.info = {"start":1853,"length":44,"line":42,"column":23,"endLine":42,"endColumn":67,"fileName":"unit8array.ts","functionName":"inline","argumentNames":["bytes"]} +pauseUntil__P42160.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 Uint8Array_inline__P2025551_mk(s) { +function pauseUntil__P42160_mk(s) { checkStack(s.depth); return { - parent: s, fn: Uint8Array_inline__P2025551, depth: s.depth + 1, + parent: s, fn: pauseUntil__P42160, depth: s.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 Convert_unpackU8__P2022318(s) { +function control___queuePollEvent__P42159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18177,36 +19368,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ev___49775 = 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 = Convert_as_unsigned__P2025405_mk(s); - r0 = pxsim_Array__getAt(s.arg0, 0); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 8; - s.callLocIdx = 79; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C46254_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P46255_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 1023; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1.arg2 = r0; + r0 = pxsim.control.millis(); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.arg0; + s.tmp_1.arg5 = s.arg1; + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1.arg6 = r0; + s.callLocIdx = 27; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.ev___49775 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___46257); + 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 = pxsim_Array__push(s.tmp_2, s.ev___49775); + globals._pollEventQueue___46257 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P46258); + { step = 2; continue; } case 1: + r0 = pxsim_Array__push(globals._pollEventQueue___46257, s.ev___49775); + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_onEvent__P42184_mk(s); + r0 = s.ev___49775.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___49775.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 28; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = s.ev___49775.fields["eid"]; + s.tmp_0 = r0; + r0 = s.ev___49775.fields["vid"]; + s.tmp_1 = r0; + setupResume(s, 7); + pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + checkResumeConsumed(); + return; + case 7: r0 = s.retval; + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -Convert_unpackU8__P2022318.info = {"start":2304,"length":86,"line":49,"column":4,"endLine":49,"endColumn":90,"fileName":"convert.ts","functionName":"unpackU8","argumentNames":["bytes"]} +control___queuePollEvent__P42159.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 Convert_unpackU8__P2022318_mk(s) { +function control___queuePollEvent__P42159_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_unpackU8__P2022318, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P42159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ev___49775: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Convert_as_unsigned__P2025405(s) { +function control_pollEvents__P46258(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18216,38 +19468,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2025408 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.now___49902 = undefined; + s.i___49905 = undefined; + s.ev___49911 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___46257); + 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___49902 = (r0); + s.i___49905 = (0); + case 2: + s.tmp_1 = r0 = s.i___49905; + r0 = pxsim_Array__length(globals._pollEventQueue___46257); + 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___46257, s.i___49905); + s.ev___49911 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___49911; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 24; s.pc = 13; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 24; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 24; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 24; s.pc = 13; return s.tmp_1; } } - r0 = (32 - s.arg1); - s.s___2025408 = (r0); - r0 = (s.arg0 << s.s___2025408); + case 13: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 3: + r0 = s.ev___49911.fields["timeOut"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 4; continue; } + r0 = s.tmp_2; + { step = 5; continue; } + case 4: + r0 = s.ev___49911.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___49902 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___49911.fields["timeOut"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 > s.tmp_6); + 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 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 9; continue; } + r0 = s.ev___49911.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___49911.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___49911.fields["once"]; s.tmp_0 = r0; - r0 = (s.tmp_0 >>> s.s___2025408); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P41893_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___46257; + s.tmp_1.arg1 = s.i___49905; + s.tmp_1.arg2 = 1; + s.callLocIdx = 25; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___49905 - 1); + s.i___49905 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___49905 + 1); + s.i___49905 = (r0); + { step = 2; continue; } + case 11: + s.tmp_0 = pause__P42206_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 26; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + { step = 1; continue; } + case 12: + globals._pollEventQueue___46257 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -Convert_as_unsigned__P2025405.info = {"start":1959,"length":107,"line":43,"column":4,"endLine":43,"endColumn":111,"fileName":"convert.ts","functionName":"as_unsigned","argumentNames":["value","bits"]} +control_pollEvents__P46258.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function Convert_as_unsigned__P2025405_mk(s) { +function control_pollEvents__P46258_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_as_unsigned__P2025405, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P46258, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - s___2025408: undefined, - arg0: undefined, - arg1: 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, + now___49902: undefined, + i___49905: undefined, + ev___49911: undefined, } } -function Convert_packU8__P2022317(s) { +function control_PollEvent_constructor__P46255(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18259,34 +19612,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.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = (s.arg0 & 255); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, control_PollEvent__C46254_VT)) failedCast(r0); + r0 = (s.arg0).fields["eid"] = (s.arg1); + r0 = (s.arg0).fields["vid"] = (s.arg2); + r0 = (s.arg0).fields["start"] = (s.arg3); + r0 = (s.arg0).fields["timeOut"] = (s.arg4); + r0 = (s.arg0).fields["condition"] = (s.arg5); + r0 = (s.arg0).fields["once"] = (s.arg6); + r0 = undefined; return leave(s, r0) default: oops() } } } -Convert_packU8__P2022317.info = {"start":2233,"length":66,"line":48,"column":4,"endLine":48,"endColumn":70,"fileName":"convert.ts","functionName":"packU8","argumentNames":["n"]} +control_PollEvent_constructor__P46255.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 Convert_packU8__P2022317_mk(s) { +function control_PollEvent_constructor__P46255_mk(s) { checkStack(s.depth); return { - parent: s, fn: Convert_packU8__P2022317, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P46255, 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, } } -function game_eventContext__P2020945(s) { +function game_eventContext__P44796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18296,21 +19662,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P2022938_mk(s); + s.tmp_0 = game_init__P46791_mk(s); s.tmp_0.arg0 = undefined; s.callLocIdx = 1009; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___2022930.fields["eventContext"]; + r0 = globals._scene___46783.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P2020945.info = {"start":4442,"length":112,"line":136,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +game_eventContext__P44796.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__P2020945_mk(s) { +function game_eventContext__P44796_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P2020945, depth: s.depth + 1, + parent: s, fn: game_eventContext__P44796, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -18319,7 +19685,7 @@ function game_eventContext__P2020945_mk(s) { -function controller_pauseUntilAnyButtonIsPressed__P2020148(s) { +function controller_pauseUntilAnyButtonIsPressed__P43999(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18339,12 +19705,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P2020148.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P43999.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} -function controller_pauseUntilAnyButtonIsPressed__P2020148_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P43999_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P2020148, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P43999, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -18352,7 +19718,7 @@ function controller_pauseUntilAnyButtonIsPressed__P2020148_mk(s) { -function game_setWaitAnyButton__P2020943(s) { +function game_setWaitAnyButton__P44794(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18366,17 +19732,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___2022934 = (s.arg0); + globals.__waitAnyButton___46787 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P2020943.info = {"start":4236,"length":83,"line":127,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +game_setWaitAnyButton__P44794.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__P2020943_mk(s) { +function game_setWaitAnyButton__P44794_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P2020943, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P44794, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -18385,7 +19751,7 @@ function game_setWaitAnyButton__P2020943_mk(s) { -function Math_FastRandom_constructor__P2021004(s) { +function Math_FastRandom_constructor__P44855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18401,7 +19767,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2021002_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C44853_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -18416,12 +19782,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P2021004.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} +Math_FastRandom_constructor__P44855.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 Math_FastRandom_constructor__P2021004_mk(s) { +function Math_FastRandom_constructor__P44855_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P2021004, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P44855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18432,7 +19798,7 @@ function Math_FastRandom_constructor__P2021004_mk(s) { -function game_consoleOverlay_listener__P2023265(s) { +function game_consoleOverlay_listener__P47118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18447,7 +19813,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -18467,9 +19833,9 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_5 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_6 = helpers_stringSplit__P2018064_mk(s); + s.tmp_4 = helpers_arrayForEach__P41902_mk(s); + s.tmp_5 = helpers_arrayFilter__P41903_mk(s); + s.tmp_6 = helpers_stringSplit__P41915_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; @@ -18477,27 +19843,27 @@ switch (step) { case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = forEach_inline__P2030138; + s.tmp_5.arg1 = forEach_inline__P54132; s.callLocIdx = 1191; 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__P2030143; + s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P54137; s.callLocIdx = 1193; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___2023230); + r0 = pxsim_Array__length(globals.consoleStrings___47083); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___2023243); + r0 = (s.tmp_1 > globals.consoleLines___47096); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P2018042_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___2023230; + s.tmp_2 = helpers_arraySplice__P41893_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___47083; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___2023230); + r0 = pxsim_Array__length(globals.consoleStrings___47083); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___2023243); + r0 = (s.tmp_3 - globals.consoleLines___47096); s.tmp_2.arg2 = r0; s.callLocIdx = 1194; s.pc = 11; return s.tmp_2; case 11: @@ -18509,12 +19875,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P2023265.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]} +game_consoleOverlay_listener__P47118.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 game_consoleOverlay_listener__P2023265_mk(s) { +function game_consoleOverlay_listener__P47118_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P2023265, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P47118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18531,7 +19897,7 @@ function game_consoleOverlay_listener__P2023265_mk(s) { -function forEach_inline__P2030138(s) { +function forEach_inline__P54132(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18555,12 +19921,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P2030138.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +forEach_inline__P54132.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function forEach_inline__P2030138_mk(s) { +function forEach_inline__P54132_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2030138, depth: s.depth + 1, + parent: s, fn: forEach_inline__P54132, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18572,7 +19938,7 @@ function forEach_inline__P2030138_mk(s) { -function game_consoleOverlay_listener_inline__P2030143(s) { +function game_consoleOverlay_listener_inline__P54137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18582,45 +19948,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___2030145 = undefined; + s.j___54139 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___2030145 = (0); + s.j___54139 = (0); case 1: - s.tmp_1 = r0 = s.j___2030145; + s.tmp_1 = r0 = s.j___54139; 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___2023230; - s.tmp_5 = helpers_stringSlice__P2018061_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___47083; + s.tmp_5 = helpers_stringSlice__P41912_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___2030145; - r0 = (s.j___2030145 + globals.consoleColumns___2023253); + s.tmp_5.arg1 = s.j___54139; + r0 = (s.j___54139 + globals.consoleColumns___47106); s.tmp_5.arg2 = r0; s.callLocIdx = 1192; 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___2030145 + globals.consoleColumns___2023253); - s.j___2030145 = (r0); + r0 = (s.j___54139 + globals.consoleColumns___47106); + s.j___54139 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener_inline__P2030143.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +game_consoleOverlay_listener_inline__P54137.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function game_consoleOverlay_listener_inline__P2030143_mk(s) { +function game_consoleOverlay_listener_inline__P54137_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener_inline__P2030143, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P54137, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18628,7 +19994,7 @@ function game_consoleOverlay_listener_inline__P2030143_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___2030145: undefined, + j___54139: undefined, arg0: undefined, } } @@ -18636,7 +20002,7 @@ function game_consoleOverlay_listener_inline__P2030143_mk(s) { -function console_addListener__P2018325(s) { +function console_addListener__P42176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18659,7 +20025,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___2022408, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___46261, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -18670,18 +20036,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___2022408, s.arg0); + r0 = pxsim_Array__push(globals.listeners___46261, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P2018325.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} +console_addListener__P42176.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} -function console_addListener__P2018325_mk(s) { +function console_addListener__P42176_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P2018325, depth: s.depth + 1, + parent: s, fn: console_addListener__P42176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18694,7 +20060,7 @@ function console_addListener__P2018325_mk(s) { -function listeners_inline__P2022407(s) { +function listeners_inline__P46260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18714,12 +20080,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -listeners_inline__P2022407.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +listeners_inline__P46260.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__P2022407_mk(s) { +function listeners_inline__P46260_mk(s) { checkStack(s.depth); return { - parent: s, fn: listeners_inline__P2022407, depth: s.depth + 1, + parent: s, fn: listeners_inline__P46260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -18729,7 +20095,7 @@ function listeners_inline__P2022407_mk(s) { -function scene_systemMenu_register__P2021049(s) { +function scene_systemMenu_register__P44900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18739,15 +20105,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___2023184); + r0 = pxsim_numops_toBoolDecr(globals.instance___47037); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_0.arg0 = globals.menu___2020062; + s.tmp_0 = controller_Button_onEvent__P43990_mk(s); + s.tmp_0.arg0 = globals.menu___43913; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P2021050; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P44901; s.callLocIdx = 1177; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; @@ -18756,12 +20122,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P2021049.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} +scene_systemMenu_register__P44900.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_register__P2021049_mk(s) { +function scene_systemMenu_register__P44900_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P2021049, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P44900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -18770,7 +20136,7 @@ function scene_systemMenu_register__P2021049_mk(s) { -function scene_systemMenu_showSystemMenu__P2021050(s) { +function scene_systemMenu_showSystemMenu__P44901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18780,27 +20146,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___2023184); + r0 = pxsim_numops_toBoolDecr(globals.instance___47037); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P2020946_mk(s); + s.tmp_0 = game_pushScene__P44797_mk(s); s.callLocIdx = 1178; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C2021038_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C44889_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P2021039_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P44890_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P2021046; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P44897; s.tmp_1.arg2 = undefined; s.callLocIdx = 1179; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___2023184 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P2021040_mk(s); - s.tmp_0.arg0 = globals.instance___2023184; + globals.instance___47037 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P44891_mk(s); + s.tmp_0.arg0 = globals.instance___47037; s.callLocIdx = 1180; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; @@ -18809,12 +20175,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P2021050.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} +scene_systemMenu_showSystemMenu__P44901.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} -function scene_systemMenu_showSystemMenu__P2021050_mk(s) { +function scene_systemMenu_showSystemMenu__P44901_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P2021050, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P44901, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18824,7 +20190,7 @@ function scene_systemMenu_showSystemMenu__P2021050_mk(s) { -function scene_systemMenu_buildOptionList__P2021046(s) { +function scene_systemMenu_buildOptionList__P44897(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18834,136 +20200,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___2031282 = undefined; + s.options___55276 = undefined; r0 = pxsim_Array__mk(); - s.options___2031282 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + s.options___55276 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___2021060; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031290; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P2023190; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___44911; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55284; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P47043; s.callLocIdx = 1160; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___2021057; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031304; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P2023189; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___44908; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55298; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P47042; s.callLocIdx = 1162; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); + r0 = pxsim_Array__push(s.options___55276, 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__C2021030_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___2021058; - s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P2031319; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P2023192; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___44909; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P55313; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P47045; s.callLocIdx = 1165; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_Array__push(s.options___55276, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___2021063; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031334; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P2023191; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___44914; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55328; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P47044; s.callLocIdx = 1167; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___2021064; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031349; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P2023194; + s.tmp_1.arg1 = globals.STATS_ICON___44915; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55343; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P47047; s.callLocIdx = 1168; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___2021062; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031358; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P2023195; + s.tmp_1.arg1 = globals.CONSOLE_ICON___44913; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55352; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P47048; s.callLocIdx = 1170; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___2021061; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031367; - s.tmp_1.arg3 = scene_systemMenu_sleep__P2023196; + s.tmp_1.arg1 = globals.SLEEP_ICON___44912; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55361; + s.tmp_1.arg3 = scene_systemMenu_sleep__P47049; s.callLocIdx = 1171; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___2023185); + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___47038); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P2018055_mk(s); - s.tmp_0.arg0 = s.options___2031282; - s.tmp_0.arg1 = globals.customMenuOptions___2023185; + s.tmp_0 = helpers_arrayConcat__P41906_mk(s); + s.tmp_0.arg0 = s.options___55276; + s.tmp_0.arg1 = globals.customMenuOptions___47038; s.callLocIdx = 1172; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___2031282 = (r0); + s.options___55276 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2021030_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C44881_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2021031_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P44882_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___2021059; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P2031380; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P2021045; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___44910; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P55374; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P44896; s.callLocIdx = 1173; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___2031282, s.tmp_0); - r0 = s.options___2031282; + r0 = pxsim_Array__push(s.options___55276, s.tmp_0); + r0 = s.options___55276; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P2021046.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} +scene_systemMenu_buildOptionList__P44897.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} -function scene_systemMenu_buildOptionList__P2021046_mk(s) { +function scene_systemMenu_buildOptionList__P44897_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P2021046, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P44897, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___2031282: undefined, + options___55276: undefined, } } -function scene_systemMenu_buildOptionList_inline__P2031290(s) { +function scene_systemMenu_buildOptionList_inline__P55284(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18973,7 +20339,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P2019564_mk(s); + s.tmp_3 = music_volume__P43415_mk(s); s.callLocIdx = 1159; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; @@ -18993,12 +20359,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031290.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55284.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P2031290_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55284_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031290, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55284, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19010,7 +20376,7 @@ function scene_systemMenu_buildOptionList_inline__P2031290_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031304(s) { +function scene_systemMenu_buildOptionList_inline__P55298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19020,7 +20386,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P2019564_mk(s); + s.tmp_3 = music_volume__P43415_mk(s); s.callLocIdx = 1161; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; @@ -19040,12 +20406,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031304.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55298.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_buildOptionList_inline__P2031304_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55298_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031304, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55298, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19057,7 +20423,7 @@ function scene_systemMenu_buildOptionList_inline__P2031304_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031319(s) { +function scene_systemMenu_buildOptionList_inline__P55313(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19067,7 +20433,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___2019894; + r0 = globals.brightness___43745; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -19084,12 +20450,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031319.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55313.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_buildOptionList_inline__P2031319_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55313_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031319, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19100,7 +20466,7 @@ function scene_systemMenu_buildOptionList_inline__P2031319_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031334(s) { +function scene_systemMenu_buildOptionList_inline__P55328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19110,7 +20476,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___2019894; + r0 = globals.brightness___43745; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -19127,12 +20493,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031334.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55328.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_buildOptionList_inline__P2031334_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55328_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031334, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55328, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19143,7 +20509,7 @@ function scene_systemMenu_buildOptionList_inline__P2031334_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031349(s) { +function scene_systemMenu_buildOptionList_inline__P55343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19153,7 +20519,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___2020911); + r0 = pxsim_numops_toBoolDecr(globals.stats___44762); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -19166,12 +20532,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031349.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55343.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P2031349_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55343_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031349, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55343, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -19180,7 +20546,7 @@ function scene_systemMenu_buildOptionList_inline__P2031349_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031358(s) { +function scene_systemMenu_buildOptionList_inline__P55352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19190,7 +20556,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -19211,12 +20577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031358.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55352.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_buildOptionList_inline__P2031358_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55352_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031358, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19229,7 +20595,7 @@ function scene_systemMenu_buildOptionList_inline__P2031358_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031367(s) { +function scene_systemMenu_buildOptionList_inline__P55361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19243,12 +20609,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031367.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55361.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_buildOptionList_inline__P2031367_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55361_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031367, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19256,7 +20622,7 @@ function scene_systemMenu_buildOptionList_inline__P2031367_mk(s) { -function scene_systemMenu_buildOptionList_inline__P2031380(s) { +function scene_systemMenu_buildOptionList_inline__P55374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19270,12 +20636,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P2031380.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P55374.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_buildOptionList_inline__P2031380_mk(s) { +function scene_systemMenu_buildOptionList_inline__P55374_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P2031380, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P55374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19283,7 +20649,7 @@ function scene_systemMenu_buildOptionList_inline__P2031380_mk(s) { -function scene_systemMenu_setScreenBrightnessSupported__P2023197(s) { +function scene_systemMenu_setScreenBrightnessSupported__P47050(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19297,12 +20663,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P2023197.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} +scene_systemMenu_setScreenBrightnessSupported__P47050.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__P2023197_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P47050_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P2023197, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P47050, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19310,7 +20676,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P2023197_mk(s) { -function scene_systemMenu_sleep__P2023196(s) { +function scene_systemMenu_sleep__P47049(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19325,12 +20691,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P2023196.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} +scene_systemMenu_sleep__P47049.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function scene_systemMenu_sleep__P2023196_mk(s) { +function scene_systemMenu_sleep__P47049_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P2023196, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P47049, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19338,7 +20704,7 @@ function scene_systemMenu_sleep__P2023196_mk(s) { -function scene_systemMenu_toggleConsole__P2023195(s) { +function scene_systemMenu_toggleConsole__P47048(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19348,7 +20714,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -19358,7 +20724,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = game_consoleOverlay_setVisible__P2021069_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P44920_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; s.callLocIdx = 1153; s.pc = 3; return s.tmp_4; @@ -19366,13 +20732,13 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P2021069_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P44920_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; s.callLocIdx = 1154; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P2018322_mk(s); + s.tmp_0 = console_log__P42173_mk(s); s.tmp_0.arg0 = "console"; s.callLocIdx = 1155; s.pc = 5; return s.tmp_0; case 5: @@ -19382,12 +20748,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P2023195.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} +scene_systemMenu_toggleConsole__P47048.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function scene_systemMenu_toggleConsole__P2023195_mk(s) { +function scene_systemMenu_toggleConsole__P47048_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P2023195, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P47048, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19400,7 +20766,7 @@ function scene_systemMenu_toggleConsole__P2023195_mk(s) { -function game_consoleOverlay_setVisible__P2021069(s) { +function game_consoleOverlay_setVisible__P44920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19416,7 +20782,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -19437,26 +20803,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___2023230 = (s.tmp_6); + globals.consoleStrings___47083 = (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___2023229 = (s.arg1); + globals.consoleColor___47082 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P2021069.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +game_consoleOverlay_setVisible__P44920.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 game_consoleOverlay_setVisible__P2021069_mk(s) { +function game_consoleOverlay_setVisible__P44920_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P2021069, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P44920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19473,7 +20839,7 @@ function game_consoleOverlay_setVisible__P2021069_mk(s) { -function console_log__P2018322(s) { +function console_log__P42173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19487,7 +20853,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P2018318_mk(s); + s.tmp_0 = console_add__P42169_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 33; s.pc = 1; return s.tmp_0; @@ -19497,12 +20863,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_log__P2018322.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +console_log__P42173.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function console_log__P2018322_mk(s) { +function console_log__P42173_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P2018322, depth: s.depth + 1, + parent: s, fn: console_log__P42173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19512,7 +20878,7 @@ function console_log__P2018322_mk(s) { -function console_add__P2018318(s) { +function console_add__P42169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19522,58 +20888,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___2031419 = undefined; - s.i___2031428 = undefined; + s.text___55413 = undefined; + s.i___55422 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___2018317); + r0 = (s.arg0 < globals.minPriority___42168); 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_1 = console_inspect__P2018324_mk(s); + s.tmp_1 = console_inspect__P42175_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 20; s.callLocIdx = 31; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.text___2031419 = (r0); - if ((s.text___2031419) && (s.text___2031419).vtable) { + s.text___55413 = (r0); + if ((s.text___55413) && (s.text___55413).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___2031419); + pxsim_String__stringConv(s.text___55413); checkResumeConsumed(); return; - } else { s.retval = (s.text___2031419) + ""; } + } else { s.retval = (s.text___55413) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___2031419 = (r0); - s.i___2031428 = (0); + s.text___55413 = (r0); + s.i___55422 = (0); case 3: - s.tmp_1 = r0 = s.i___2031428; - r0 = pxsim_Array__length(globals.listeners___2022408); + s.tmp_1 = r0 = s.i___55422; + r0 = pxsim_Array__length(globals.listeners___46261); 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___2022408, s.i___2031428); + r0 = pxsim_Array__getAt(globals.listeners___46261, s.i___55422); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___2031419; + s.tmp_3.arg1 = s.text___55413; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 32; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___2031428 + 1); - s.i___2031428 = (r0); + r0 = (s.i___55422 + 1); + s.i___55422 = (r0); { step = 3; continue; } case 4: case 5: @@ -19581,19 +20947,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P2018318.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +console_add__P42169.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__P2018318_mk(s) { +function console_add__P42169_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P2018318, depth: s.depth + 1, + parent: s, fn: console_add__P42169, depth: s.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___2031419: undefined, - i___2031428: undefined, + text___55413: undefined, + i___55422: undefined, arg0: undefined, arg1: undefined, } } @@ -19602,7 +20968,7 @@ function console_add__P2018318_mk(s) { -function scene_systemMenu_toggleStats__P2023194(s) { +function scene_systemMenu_toggleStats__P47047(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19612,11 +20978,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___2020911); + r0 = pxsim_numops_toBoolDecr(globals.stats___44762); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___2020911 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___2020911); + globals.stats___44762 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___44762); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -19625,14 +20991,14 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___2018340; + r0 = globals.control_EventContext_onStats___42191; 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___2018340; + s.tmp_3.argL = globals.control_EventContext_onStats___42191; r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); @@ -19645,12 +21011,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P2023194.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} +scene_systemMenu_toggleStats__P47047.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_toggleStats__P2023194_mk(s) { +function scene_systemMenu_toggleStats__P47047_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P2023194, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P47047, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19662,7 +21028,7 @@ function scene_systemMenu_toggleStats__P2023194_mk(s) { -function scene_systemMenu_brightnessDown__P2023192(s) { +function scene_systemMenu_brightnessDown__P47045(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19672,8 +21038,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P2023193_mk(s); - r0 = globals.brightness___2019894; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P47046_mk(s); + r0 = globals.brightness___43745; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; @@ -19684,12 +21050,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P2023192.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +scene_systemMenu_brightnessDown__P47045.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_brightnessDown__P2023192_mk(s) { +function scene_systemMenu_brightnessDown__P47045_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P2023192, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P47045, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19699,7 +21065,7 @@ function scene_systemMenu_brightnessDown__P2023192_mk(s) { -function scene_systemMenu_setScreenBrightness__P2023193(s) { +function scene_systemMenu_setScreenBrightness__P47046(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19713,15 +21079,15 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P2019908_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_setScreenBrightness__P43759_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 1148; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P2020006_mk(s); + s.tmp_0 = settings_writeNumber__P43857_mk(s); s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___2019894; + r0 = globals.brightness___43745; s.tmp_0.arg1 = r0; s.callLocIdx = 1150; s.pc = 2; return s.tmp_0; case 2: @@ -19730,12 +21096,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P2023193.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_setScreenBrightness__P47046.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_setScreenBrightness__P2023193_mk(s) { +function scene_systemMenu_setScreenBrightness__P47046_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P2023193, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P47046, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19745,7 +21111,7 @@ function scene_systemMenu_setScreenBrightness__P2023193_mk(s) { -function settings_writeNumber__P2020006(s) { +function settings_writeNumber__P43857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19763,9 +21129,9 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P2020003_mk(s); + s.tmp_1 = settings_writeBuffer__P43854_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P2018126_mk(s); + s.tmp_2 = msgpack_packNumberArray__P41977_mk(s); s.tmp_2.arg0 = s.tmp_0; s.callLocIdx = 124; s.pc = 2; return s.tmp_2; case 2: @@ -19778,12 +21144,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeNumber__P2020006.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +settings_writeNumber__P43857.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 settings_writeNumber__P2020006_mk(s) { +function settings_writeNumber__P43857_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P2020006, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P43857, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19796,7 +21162,7 @@ function settings_writeNumber__P2020006_mk(s) { -function settings_writeBuffer__P2020003(s) { +function settings_writeBuffer__P43854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19823,12 +21189,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P2020003.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} +settings_writeBuffer__P43854.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 settings_writeBuffer__P2020003_mk(s) { +function settings_writeBuffer__P43854_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P2020003, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P43854, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19839,7 +21205,7 @@ function settings_writeBuffer__P2020003_mk(s) { -function msgpack_packNumberArray__P2018126(s) { +function msgpack_packNumberArray__P41977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19849,100 +21215,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___2031490 = undefined; - s.n___2031492 = undefined; - s.unnamed27042___U2 = undefined; - s.unnamed27043___U3 = undefined; - s.buf___2031502 = undefined; - s.n___2031508 = undefined; - s.unnamed27044___U6 = undefined; - s.unnamed27045___U7 = undefined; + s.off___55484 = undefined; + s.n___55486 = undefined; + s.unnamed242___U2 = undefined; + s.unnamed243___U3 = undefined; + s.buf___55496 = undefined; + s.n___55502 = undefined; + s.unnamed244___U6 = undefined; + s.unnamed245___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___2031490 = (0); - s.n___2031492 = (undefined); - s.unnamed27042___U2 = (s.arg0); - s.unnamed27043___U3 = (0); + s.off___55484 = (0); + s.n___55486 = (undefined); + s.unnamed242___U2 = (s.arg0); + s.unnamed243___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27043___U3; - r0 = pxsim_Array__length(s.unnamed27042___U2); + s.tmp_0 = r0 = s.unnamed243___U3; + r0 = pxsim_Array__length(s.unnamed242___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27042___U2, s.unnamed27043___U3); - s.n___2031492 = (r0); - s.tmp_2 = r0 = s.off___2031490; - s.tmp_4 = msgpack_packNumberCore__P2022367_mk(s); + r0 = pxsim_Array__getAt(s.unnamed242___U2, s.unnamed243___U3); + s.n___55486 = (r0); + s.tmp_2 = r0 = s.off___55484; + s.tmp_4 = msgpack_packNumberCore__P46220_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___2031490; - s.tmp_4.arg2 = s.n___2031492; + s.tmp_4.arg1 = s.off___55484; + s.tmp_4.arg2 = s.n___55486; s.callLocIdx = 21; 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___2031490 = (r0); - r0 = (s.unnamed27043___U3 + 1); - s.unnamed27043___U3 = (r0); + s.off___55484 = (r0); + r0 = (s.unnamed243___U3 + 1); + s.unnamed243___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed27042___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___2031490); - s.buf___2031502 = (r0); - s.off___2031490 = (0); - s.n___2031508 = (undefined); - s.unnamed27044___U6 = (s.arg0); - s.unnamed27045___U7 = (0); + s.unnamed242___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___55484); + s.buf___55496 = (r0); + s.off___55484 = (0); + s.n___55502 = (undefined); + s.unnamed244___U6 = (s.arg0); + s.unnamed245___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed27045___U7; - r0 = pxsim_Array__length(s.unnamed27044___U6); + s.tmp_0 = r0 = s.unnamed245___U7; + r0 = pxsim_Array__length(s.unnamed244___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed27044___U6, s.unnamed27045___U7); - s.n___2031508 = (r0); - s.tmp_2 = r0 = s.off___2031490; - s.tmp_4 = msgpack_packNumberCore__P2022367_mk(s); - s.tmp_4.arg0 = s.buf___2031502; - s.tmp_4.arg1 = s.off___2031490; - s.tmp_4.arg2 = s.n___2031508; + r0 = pxsim_Array__getAt(s.unnamed244___U6, s.unnamed245___U7); + s.n___55502 = (r0); + s.tmp_2 = r0 = s.off___55484; + s.tmp_4 = msgpack_packNumberCore__P46220_mk(s); + s.tmp_4.arg0 = s.buf___55496; + s.tmp_4.arg1 = s.off___55484; + s.tmp_4.arg2 = s.n___55502; s.callLocIdx = 22; 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___2031490 = (r0); - r0 = (s.unnamed27045___U7 + 1); - s.unnamed27045___U7 = (r0); + s.off___55484 = (r0); + r0 = (s.unnamed245___U7 + 1); + s.unnamed245___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed27044___U6 = (undefined); - r0 = s.buf___2031502; + s.unnamed244___U6 = (undefined); + r0 = s.buf___55496; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P2018126.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +msgpack_packNumberArray__P41977.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} -function msgpack_packNumberArray__P2018126_mk(s) { +function msgpack_packNumberArray__P41977_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P2018126, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P41977, depth: s.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___2031490: undefined, - n___2031492: undefined, - unnamed27042___U2: undefined, - unnamed27043___U3: undefined, - buf___2031502: undefined, - n___2031508: undefined, - unnamed27044___U6: undefined, - unnamed27045___U7: undefined, + off___55484: undefined, + n___55486: undefined, + unnamed242___U2: undefined, + unnamed243___U3: undefined, + buf___55496: undefined, + n___55502: undefined, + unnamed244___U6: undefined, + unnamed245___U7: undefined, arg0: undefined, } } @@ -19950,7 +21316,7 @@ function msgpack_packNumberArray__P2018126_mk(s) { -function msgpack_packNumberCore__P2022367(s) { +function msgpack_packNumberCore__P46220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19960,15 +21326,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___2031522 = undefined; - s.fmt___2031565 = undefined; + s.tag___55516 = undefined; + s.fmt___55559 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___2031522 = (203); + s.tag___55516 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -20018,17 +21384,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___2031522 = (204); + s.tag___55516 = (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___2031522 = (205); + s.tag___55516 = (205); { step = 10; continue; } case 9: - s.tag___2031522 = (206); + s.tag___55516 = (206); case 10: case 11: { step = 17; continue; } @@ -20037,41 +21403,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___2031522 = (208); + s.tag___55516 = (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___2031522 = (209); + s.tag___55516 = (209); { step = 15; continue; } case 14: - s.tag___2031522 = (210); + s.tag___55516 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P2022366_mk(s); - s.tmp_0.arg0 = s.tag___2031522; + s.tmp_0 = msgpack_tagFormat__P46219_mk(s); + s.tmp_0.arg0 = s.tag___55516; s.callLocIdx = 17; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___2031565 = (r0); + s.fmt___55559 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___2031522); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___55516); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___2031565; + s.tmp_1 = r0 = s.fmt___55559; 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__P2018117_mk(s); - s.tmp_1.arg0 = s.fmt___2031565; + s.tmp_1 = pins_sizeOf__P41968_mk(s); + s.tmp_1.arg0 = s.fmt___55559; s.callLocIdx = 18; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -20081,12 +21447,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P2022367.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"]} +msgpack_packNumberCore__P46220.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 msgpack_packNumberCore__P2022367_mk(s) { +function msgpack_packNumberCore__P46220_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P2022367, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P46220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20096,8 +21462,8 @@ function msgpack_packNumberCore__P2022367_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___2031522: undefined, - fmt___2031565: undefined, + tag___55516: undefined, + fmt___55559: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -20107,7 +21473,7 @@ function msgpack_packNumberCore__P2022367_mk(s) { -function msgpack_tagFormat__P2022366(s) { +function msgpack_tagFormat__P46219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20167,12 +21533,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P2022366.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} +msgpack_tagFormat__P46219.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__P2022366_mk(s) { +function msgpack_tagFormat__P46219_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P2022366, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P46219, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20182,7 +21548,7 @@ function msgpack_tagFormat__P2022366_mk(s) { -function pins_sizeOf__P2018117(s) { +function pins_sizeOf__P41968(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20196,7 +21562,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P2018157_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P42008_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 16; s.pc = 1; return s.tmp_0; case 1: @@ -20204,12 +21570,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pins_sizeOf__P2018117.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} +pins_sizeOf__P41968.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__P2018117_mk(s) { +function pins_sizeOf__P41968_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P2018117, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P41968, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20219,7 +21585,7 @@ function pins_sizeOf__P2018117_mk(s) { -function Buffer_sizeOfNumberFormat__P2018157(s) { +function Buffer_sizeOfNumberFormat__P42008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20298,12 +21664,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P2018157.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +Buffer_sizeOfNumberFormat__P42008.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__P2018157_mk(s) { +function Buffer_sizeOfNumberFormat__P42008_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P2018157, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P42008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20313,7 +21679,7 @@ function Buffer_sizeOfNumberFormat__P2018157_mk(s) { -function helpers_setScreenBrightness__P2019908(s) { +function helpers_setScreenBrightness__P43759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20328,7 +21694,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P2018069_mk(s); + s.tmp_0 = Math_clamp__P41920_mk(s); s.tmp_0.arg0 = 10; s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); @@ -20337,18 +21703,18 @@ switch (step) { case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___2019894 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___2019894); + globals.brightness___43745 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___43745); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P2019908.info = {"start":8945,"length":210,"line":282,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +helpers_setScreenBrightness__P43759.info = {"start":8945,"length":210,"line":282,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function helpers_setScreenBrightness__P2019908_mk(s) { +function helpers_setScreenBrightness__P43759_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P2019908, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P43759, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20359,7 +21725,7 @@ function helpers_setScreenBrightness__P2019908_mk(s) { -function scene_systemMenu_brightnessUp__P2023191(s) { +function scene_systemMenu_brightnessUp__P47044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20369,8 +21735,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P2023193_mk(s); - r0 = globals.brightness___2019894; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P47046_mk(s); + r0 = globals.brightness___43745; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; @@ -20381,12 +21747,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P2023191.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +scene_systemMenu_brightnessUp__P47044.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_brightnessUp__P2023191_mk(s) { +function scene_systemMenu_brightnessUp__P47044_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P2023191, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P47044, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20396,7 +21762,7 @@ function scene_systemMenu_brightnessUp__P2023191_mk(s) { -function scene_systemMenu_volumeDown__P2023190(s) { +function scene_systemMenu_volumeDown__P47043(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20406,29 +21772,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___2031838 = undefined; - s.remainder___2031841 = undefined; - s.newVolume___2031844 = undefined; - s.tmp_0 = music_volume__P2019564_mk(s); + s.v___55832 = undefined; + s.remainder___55835 = undefined; + s.newVolume___55838 = undefined; + s.tmp_0 = music_volume__P43415_mk(s); s.callLocIdx = 1142; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___2031838 = (r0); - r0 = (s.v___2031838 % 32); - s.remainder___2031841 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___2031841); + s.v___55832 = (r0); + r0 = (s.v___55832 % 32); + s.remainder___55835 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___55835); if (!r0) { step = 1; continue; } - r0 = s.remainder___2031841; + r0 = s.remainder___55835; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___2031838 - s.tmp_0); - s.newVolume___2031844 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P2023188_mk(s); - s.tmp_0.arg0 = s.newVolume___2031844; + r0 = (s.v___55832 - s.tmp_0); + s.newVolume___55838 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P47041_mk(s); + s.tmp_0.arg0 = s.newVolume___55838; s.callLocIdx = 1143; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; @@ -20436,24 +21802,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P2023190.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} +scene_systemMenu_volumeDown__P47043.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} -function scene_systemMenu_volumeDown__P2023190_mk(s) { +function scene_systemMenu_volumeDown__P47043_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P2023190, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P47043, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___2031838: undefined, - remainder___2031841: undefined, - newVolume___2031844: undefined, + v___55832: undefined, + remainder___55835: undefined, + newVolume___55838: undefined, } } -function scene_systemMenu_setVolume__P2023188(s) { +function scene_systemMenu_setVolume__P47041(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20467,18 +21833,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P2019563_mk(s); + s.tmp_0 = music_setVolume__P43414_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1137; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P2019565_mk(s); + s.tmp_0 = music_playTone__P43416_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; s.callLocIdx = 1138; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P2020006_mk(s); + s.tmp_0 = settings_writeNumber__P43857_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 1139; s.pc = 3; return s.tmp_0; @@ -20488,12 +21854,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P2023188.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_setVolume__P47041.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} -function scene_systemMenu_setVolume__P2023188_mk(s) { +function scene_systemMenu_setVolume__P47041_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P2023188, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P47041, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20503,7 +21869,7 @@ function scene_systemMenu_setVolume__P2023188_mk(s) { -function music_playTone__P2019565(s) { +function music_playTone__P43416(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20513,7 +21879,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___2031679 = undefined; + s.id___55673 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20538,7 +21904,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P2022466_mk(s); + s.tmp_2 = music_playNoteCore__P46319_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); @@ -20546,7 +21912,7 @@ switch (step) { s.callLocIdx = 64; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P2018355_mk(s); + s.tmp_0 = pause__P42206_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; s.callLocIdx = 65; s.pc = 6; return s.tmp_0; @@ -20554,13 +21920,13 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___2022468 + 1); + r0 = (globals.playToneID___46321 + 1); s.tmp_0 = r0; - globals.playToneID___2022468 = (r0); - s.id___2031679 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P2031685); + globals.playToneID___46321 = (r0); + s.id___55673 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P55679); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___2031679); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___55673); 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); @@ -20569,17 +21935,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P2019565.info = {"start":2612,"length":831,"line":84,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} +music_playTone__P43416.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 music_playTone__P2019565_mk(s) { +function music_playTone__P43416_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P2019565, depth: s.depth + 1, + parent: s, fn: music_playTone__P43416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___2031679: undefined, + id___55673: undefined, arg0: undefined, arg1: undefined, } } @@ -20588,7 +21954,7 @@ function music_playTone__P2019565_mk(s) { -function music_playTone_inline__P2031685(s) { +function music_playTone_inline__P55679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20598,14 +21964,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___2031686 = undefined; - s.now___2031696 = undefined; - s.d___2031699 = undefined; - s.t___2031703 = undefined; + s.pos___55680 = undefined; + s.now___55690 = undefined; + s.d___55693 = undefined; + s.t___55697 = undefined; r0 = pxsim.control.millis(); - s.pos___2031686 = (r0); + s.pos___55680 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___2022468); + r0 = (s.caps[0] == globals.playToneID___46321); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -20621,30 +21987,30 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___2031696 = (r0); - r0 = (s.pos___2031686 - s.now___2031696); - s.d___2031699 = (r0); - s.tmp_0 = Math_min__P2018073_mk(s); + s.now___55690 = (r0); + r0 = (s.pos___55680 - s.now___55690); + s.d___55693 = (r0); + s.tmp_0 = Math_min__P41924_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; s.callLocIdx = 66; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___2031703 = (r0); + s.t___55697 = (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___2031703); + r0 = (s.tmp_2 - s.t___55697); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___2031686 + s.t___2031703); - s.pos___2031686 = (r0); - s.tmp_0 = music_playNoteCore__P2022466_mk(s); - r0 = (s.d___2031699 - 1); + r0 = (s.pos___55680 + s.t___55697); + s.pos___55680 = (r0); + s.tmp_0 = music_playNoteCore__P46319_mk(s); + r0 = (s.d___55693 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___2031703; + s.tmp_0.arg2 = s.t___55697; s.callLocIdx = 67; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; @@ -20654,16 +22020,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P2018355_mk(s); - r0 = (s.d___2031699 + s.t___2031703); + s.tmp_2 = pause__P42206_mk(s); + r0 = (s.d___55693 + s.t___55697); s.tmp_2.arg0 = r0; s.callLocIdx = 68; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P2018355_mk(s); - r0 = (s.d___2031699 + s.t___2031703); + s.tmp_0 = pause__P42206_mk(s); + r0 = (s.d___55693 + s.t___55697); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; @@ -20677,27 +22043,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone_inline__P2031685.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +music_playTone_inline__P55679.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function music_playTone_inline__P2031685_mk(s) { +function music_playTone_inline__P55679_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone_inline__P2031685, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P55679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___2031686: undefined, - now___2031696: undefined, - d___2031699: undefined, - t___2031703: undefined, + pos___55680: undefined, + now___55690: undefined, + d___55693: undefined, + t___55697: undefined, } } -function music_playNoteCore__P2022466(s) { +function music_playNoteCore__P46319(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20707,7 +22073,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___2031733 = undefined; + s.buf___55727 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20715,16 +22081,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___2031733 = (r0); - s.tmp_0 = music_addNote__P2019579_mk(s); - s.tmp_0.arg0 = s.buf___2031733; + s.buf___55727 = (r0); + s.tmp_0 = music_addNote__P43430_mk(s); + s.tmp_0.arg0 = s.buf___55727; 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__P2019564_mk(s); + s.tmp_1 = music_volume__P43415_mk(s); s.callLocIdx = 62; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -20733,21 +22099,21 @@ switch (step) { s.callLocIdx = 63; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___2031733); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___55727); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P2022466.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"]} +music_playNoteCore__P46319.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 music_playNoteCore__P2022466_mk(s) { +function music_playNoteCore__P46319_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P2022466, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P46319, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___2031733: undefined, + buf___55727: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -20757,7 +22123,7 @@ function music_playNoteCore__P2022466_mk(s) { -function music_addNote__P2019579(s) { +function music_addNote__P43430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20825,12 +22191,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P2019579.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"]} +music_addNote__P43430.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 music_addNote__P2019579_mk(s) { +function music_addNote__P43430_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P2019579, depth: s.depth + 1, + parent: s, fn: music_addNote__P43430, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20851,7 +22217,7 @@ function music_addNote__P2019579_mk(s) { -function music_setVolume__P2019563(s) { +function music_setVolume__P43414(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20865,7 +22231,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P2018069_mk(s); + s.tmp_0 = Math_clamp__P41920_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); @@ -20873,8 +22239,8 @@ switch (step) { s.callLocIdx = 59; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___2022461 = (r0); - r0 = (globals.globalVolume___2022461 > 0); + globals.globalVolume___46314 = (r0); + r0 = (globals.globalVolume___46314 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -20890,12 +22256,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P2019563.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} +music_setVolume__P43414.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} -function music_setVolume__P2019563_mk(s) { +function music_setVolume__P43414_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P2019563, depth: s.depth + 1, + parent: s, fn: music_setVolume__P43414, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20906,7 +22272,7 @@ function music_setVolume__P2019563_mk(s) { -function music_enableAmp__P2022464(s) { +function music_enableAmp__P46317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20924,12 +22290,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P2022464.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} +music_enableAmp__P46317.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} -function music_enableAmp__P2022464_mk(s) { +function music_enableAmp__P46317_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P2022464, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P46317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -20938,7 +22304,7 @@ function music_enableAmp__P2022464_mk(s) { -function scene_systemMenu_volumeUp__P2023189(s) { +function scene_systemMenu_volumeUp__P47042(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20948,22 +22314,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___2031647 = undefined; - s.remainder___2031650 = undefined; - s.newVolume___2031653 = undefined; - s.tmp_0 = music_volume__P2019564_mk(s); + s.v___55641 = undefined; + s.remainder___55644 = undefined; + s.newVolume___55647 = undefined; + s.tmp_0 = music_volume__P43415_mk(s); s.callLocIdx = 1140; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___2031647 = (r0); - r0 = (s.v___2031647 % 32); - s.remainder___2031650 = (r0); - r0 = (s.v___2031647 + 32); + s.v___55641 = (r0); + r0 = (s.v___55641 % 32); + s.remainder___55644 = (r0); + r0 = (s.v___55641 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___2031650); - s.newVolume___2031653 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P2023188_mk(s); - s.tmp_0.arg0 = s.newVolume___2031653; + r0 = (s.tmp_0 - s.remainder___55644); + s.newVolume___55647 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P47041_mk(s); + s.tmp_0.arg0 = s.newVolume___55647; s.callLocIdx = 1141; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -20971,24 +22337,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P2023189.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]} +scene_systemMenu_volumeUp__P47042.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_volumeUp__P2023189_mk(s) { +function scene_systemMenu_volumeUp__P47042_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P2023189, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P47042, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___2031647: undefined, - remainder___2031650: undefined, - newVolume___2031653: undefined, + v___55641: undefined, + remainder___55644: undefined, + newVolume___55647: undefined, } } -function game_consoleOverlay_isVisible__P2021067(s) { +function game_consoleOverlay_isVisible__P44918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20998,7 +22364,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___2023230); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___47083); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -21008,12 +22374,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P2021067.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} +game_consoleOverlay_isVisible__P44918.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__P2021067_mk(s) { +function game_consoleOverlay_isVisible__P44918_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P2021067, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P44918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21024,7 +22390,7 @@ function game_consoleOverlay_isVisible__P2021067_mk(s) { -function scene_systemMenu_closeMenu__P2021045(s) { +function scene_systemMenu_closeMenu__P44896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21034,20 +22400,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___2023184); + r0 = pxsim_numops_toBoolDecr(globals.instance___47037); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P2021044_mk(s); - s.tmp_0.arg0 = globals.instance___2023184; + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P44895_mk(s); + s.tmp_0.arg0 = globals.instance___47037; s.callLocIdx = 1156; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___2023184 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P2020149_mk(s); + globals.instance___47037 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P44000_mk(s); s.tmp_0.arg0 = true; s.callLocIdx = 1157; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P2020947_mk(s); + s.tmp_0 = game_popScene__P44798_mk(s); s.callLocIdx = 1158; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; @@ -21057,12 +22423,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P2021045.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} +scene_systemMenu_closeMenu__P44896.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_closeMenu__P2021045_mk(s) { +function scene_systemMenu_closeMenu__P44896_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P2021045, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P44896, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -21071,7 +22437,7 @@ function scene_systemMenu_closeMenu__P2021045_mk(s) { -function scene_systemMenu_PauseMenu_dispose__P2021044(s) { +function scene_systemMenu_PauseMenu_dispose__P44895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21086,15 +22452,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_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__P2018051_mk(s); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P2030755; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P54749; s.callLocIdx = 1133; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -21105,12 +22471,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P2021044.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_PauseMenu_dispose__P44895.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_dispose__P2021044_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P44895_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P2021044, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P44895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21121,7 +22487,7 @@ function scene_systemMenu_PauseMenu_dispose__P2021044_mk(s) { -function scene_systemMenu_PauseMenu_dispose_inline__P2030755(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P54749(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21135,7 +22501,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P2021037_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P44888_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1132; s.pc = 1; return s.tmp_0; case 1: @@ -21144,12 +22510,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose_inline__P2030755.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_PauseMenu_dispose_inline__P54749.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_dispose_inline__P2030755_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P54749_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P2030755, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P54749, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21159,7 +22525,7 @@ function scene_systemMenu_PauseMenu_dispose_inline__P2030755_mk(s) { -function scene_systemMenu_MenuOption_dispose__P2021037(s) { +function scene_systemMenu_MenuOption_dispose__P44888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21174,12 +22540,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_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__P2020371_mk(s); + s.tmp_1 = Sprite_destroy__P44222_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; @@ -21187,7 +22553,7 @@ switch (step) { s.callLocIdx = 1052; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_destroy__P2020371_mk(s); + s.tmp_0 = Sprite_destroy__P44222_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; @@ -21203,12 +22569,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P2021037.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +scene_systemMenu_MenuOption_dispose__P44888.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_MenuOption_dispose__P2021037_mk(s) { +function scene_systemMenu_MenuOption_dispose__P44888_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P2021037, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P44888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21219,7 +22585,7 @@ function scene_systemMenu_MenuOption_dispose__P2021037_mk(s) { -function Sprite_destroy__P2020371(s) { +function Sprite_destroy__P44222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21236,7 +22602,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -21254,7 +22620,7 @@ switch (step) { 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__P2021208_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P45059_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg2; @@ -21264,7 +22630,7 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P2020372_mk(s); + s.tmp_0 = Sprite__destroyCore__P44223_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 432; s.pc = 7; return s.tmp_0; case 7: @@ -21275,12 +22641,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P2020371.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +Sprite_destroy__P44222.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function Sprite_destroy__P2020371_mk(s) { +function Sprite_destroy__P44222_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P2020371, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P44222, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21296,7 +22662,7 @@ function Sprite_destroy__P2020371_mk(s) { -function effects_ParticleEffect_destroy__P2021208(s) { +function effects_ParticleEffect_destroy__P45059(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21314,15 +22680,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C2021205_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P2020362_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C45056_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P44213_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 7168; s.tmp_0.arg2 = true; s.callLocIdx = 1317; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P2021207_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P45058_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -21354,8 +22720,8 @@ switch (step) { // jmp value (already in r0) s.tmp_1 = r0; r0 = (s.arg1).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = effects_ImageEffect_applyTo__P2021235_mk(s); - s.tmp_0.arg0 = globals.dissolve___2021238; + s.tmp_0 = effects_ImageEffect_applyTo__P45086_mk(s); + s.tmp_0.arg0 = globals.dissolve___45089; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1319; s.pc = 5; return s.tmp_0; case 5: @@ -21364,12 +22730,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P2021208.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"]} +effects_ParticleEffect_destroy__P45059.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 effects_ParticleEffect_destroy__P2021208_mk(s) { +function effects_ParticleEffect_destroy__P45059_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P2021208, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P45059, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21387,7 +22753,7 @@ function effects_ParticleEffect_destroy__P2021208_mk(s) { -function dissolve_inline__P2030880(s) { +function dissolve_inline__P54874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21397,11 +22763,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___2030883 = undefined; - s.x___2030894 = undefined; - s.y___2030900 = undefined; - s.w___2030906 = undefined; - s.h___2030910 = undefined; + s.i___54877 = undefined; + s.x___54888 = undefined; + s.y___54894 = undefined; + s.w___54900 = undefined; + s.h___54904 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -21414,13 +22780,13 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___2030883 = (r0); + s.i___54877 = (r0); case 1: - r0 = (s.i___2030883 > 0); + r0 = (s.i___54877 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P2021006_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -21428,8 +22794,8 @@ switch (step) { s.callLocIdx = 52; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___2030894 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2021006_mk(s); + s.x___54888 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -21437,56 +22803,56 @@ switch (step) { s.callLocIdx = 53; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___2030900 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2021006_mk(s); + s.y___54894 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 54; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.w___2030906 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2021006_mk(s); + s.w___54900 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 55; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.h___2030910 = (r0); - s.tmp_0 = helpers_imageDrawRect__P2019902_mk(s); + s.h___54904 = (r0); + s.tmp_0 = helpers_imageDrawRect__P43753_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___2030894; - s.tmp_0.arg2 = s.y___2030900; - s.tmp_0.arg3 = s.w___2030906; - s.tmp_0.arg4 = s.h___2030910; + s.tmp_0.arg1 = s.x___54888; + s.tmp_0.arg2 = s.y___54894; + s.tmp_0.arg3 = s.w___54900; + s.tmp_0.arg4 = s.h___54904; s.tmp_0.arg5 = 0; s.callLocIdx = 56; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___2030883 - 1); - s.i___2030883 = (r0); + r0 = (s.i___54877 - 1); + s.i___54877 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -dissolve_inline__P2030880.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +dissolve_inline__P54874.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 dissolve_inline__P2030880_mk(s) { +function dissolve_inline__P54874_mk(s) { checkStack(s.depth); return { - parent: s, fn: dissolve_inline__P2030880, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P54874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___2030883: undefined, - x___2030894: undefined, - y___2030900: undefined, - w___2030906: undefined, - h___2030910: undefined, + i___54877: undefined, + x___54888: undefined, + y___54894: undefined, + w___54900: undefined, + h___54904: undefined, arg0: undefined, arg1: undefined, } } @@ -21495,7 +22861,7 @@ function dissolve_inline__P2030880_mk(s) { -function helpers_imageDrawRect__P2019902(s) { +function helpers_imageDrawRect__P43753(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21534,7 +22900,7 @@ switch (step) { s.arg3 = (r0); r0 = (s.arg4 - 1); s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_0 = helpers_imageDrawLine__P43752_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -21545,7 +22911,7 @@ switch (step) { s.callLocIdx = 83; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_0 = helpers_imageDrawLine__P43752_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -21556,7 +22922,7 @@ switch (step) { s.callLocIdx = 84; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_0 = helpers_imageDrawLine__P43752_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -21569,7 +22935,7 @@ switch (step) { s.callLocIdx = 85; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_0 = helpers_imageDrawLine__P43752_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -21587,12 +22953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P2019902.info = {"start":5945,"length":370,"line":185,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawRect__P43753.info = {"start":5945,"length":370,"line":185,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawRect__P2019902_mk(s) { +function helpers_imageDrawRect__P43753_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P2019902, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P43753, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21608,7 +22974,7 @@ function helpers_imageDrawRect__P2019902_mk(s) { -function helpers_imageDrawLine__P2019901(s) { +function helpers_imageDrawLine__P43752(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21628,14 +22994,14 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P2022567_mk(s); + s.tmp_2 = helpers_pack__P46420_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; s.callLocIdx = 81; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P2022567_mk(s); + s.tmp_4 = helpers_pack__P46420_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; s.callLocIdx = 82; s.pc = 2; return s.tmp_4; @@ -21647,12 +23013,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P2019901.info = {"start":5781,"length":159,"line":182,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawLine__P43752.info = {"start":5781,"length":159,"line":182,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawLine__P2019901_mk(s) { +function helpers_imageDrawLine__P43752_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P2019901, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P43752, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21671,7 +23037,7 @@ function helpers_imageDrawLine__P2019901_mk(s) { -function Math_FastRandom_randomRange__P2021006(s) { +function Math_FastRandom_randomRange__P44857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21688,12 +23054,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2021002_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C44853_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__P2021005_mk(s); + s.tmp_2 = Math_FastRandom_next__P44856_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 1034; s.pc = 3; return s.tmp_2; case 3: @@ -21714,12 +23080,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P2021006.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"]} +Math_FastRandom_randomRange__P44857.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 Math_FastRandom_randomRange__P2021006_mk(s) { +function Math_FastRandom_randomRange__P44857_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P2021006, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P44857, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21736,7 +23102,7 @@ function Math_FastRandom_randomRange__P2021006_mk(s) { -function Math_FastRandom_next__P2021005(s) { +function Math_FastRandom_next__P44856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21751,7 +23117,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2021002_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C44853_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; @@ -21772,12 +23138,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P2021005.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +Math_FastRandom_next__P44856.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function Math_FastRandom_next__P2021005_mk(s) { +function Math_FastRandom_next__P44856_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P2021005, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P44856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21794,7 +23160,7 @@ function Math_FastRandom_next__P2021005_mk(s) { -function effects_ImageEffect_constructor__P2021234(s) { +function effects_ImageEffect_constructor__P45085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21811,11 +23177,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C2021233_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C45084_VT)) failedCast(r0); r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2021002_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C44853_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2021004_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P44855_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 1327; s.pc = 1; return s.tmp_1; @@ -21828,12 +23194,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P2021234.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"]} +effects_ImageEffect_constructor__P45085.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 effects_ImageEffect_constructor__P2021234_mk(s) { +function effects_ImageEffect_constructor__P45085_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P2021234, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P45085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21846,7 +23212,7 @@ function effects_ImageEffect_constructor__P2021234_mk(s) { -function effects_ImageEffect_applyTo__P2021235(s) { +function effects_ImageEffect_applyTo__P45086(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21856,14 +23222,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___2031059 = undefined; + s.clonedImage___55053 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C2021233_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C45084_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -21889,16 +23255,16 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___2031059 = (r0); - s.tmp_0 = effects_ImageEffect_change__P2021236_mk(s); + s.clonedImage___55053 = (r0); + s.tmp_0 = effects_ImageEffect_change__P45087_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___2031059; + s.tmp_0.arg1 = s.clonedImage___55053; s.callLocIdx = 1330; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P2020334_mk(s); + s.tmp_0 = Sprite_setImage__P44185_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___2031059; + s.tmp_0.arg1 = s.clonedImage___55053; s.callLocIdx = 1331; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; @@ -21907,12 +23273,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P2021235.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} +effects_ImageEffect_applyTo__P45086.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__P2021235_mk(s) { +function effects_ImageEffect_applyTo__P45086_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P2021235, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P45086, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21920,7 +23286,7 @@ function effects_ImageEffect_applyTo__P2021235_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___2031059: undefined, + clonedImage___55053: undefined, arg0: undefined, arg1: undefined, } } @@ -21929,7 +23295,7 @@ function effects_ImageEffect_applyTo__P2021235_mk(s) { -function effects_ImageEffect_change__P2021236(s) { +function effects_ImageEffect_change__P45087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21945,7 +23311,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C2021233_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C45084_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -21966,12 +23332,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P2021236.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]} +effects_ImageEffect_change__P45087.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 effects_ImageEffect_change__P2021236_mk(s) { +function effects_ImageEffect_change__P45087_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P2021236, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P45087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21982,7 +23348,7 @@ function effects_ImageEffect_change__P2021236_mk(s) { -function effects_ParticleEffect_start__P2021207(s) { +function effects_ParticleEffect_start__P45058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21992,7 +23358,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___2031084 = undefined; + s.src___55078 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -22002,7 +23368,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C2021205_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C45056_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -22038,9 +23404,9 @@ switch (step) { } case 10: r0 = s.retval; - s.src___2031084 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P2021105_mk(s); - s.tmp_0.arg0 = s.src___2031084; + s.src___55078 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P44956_mk(s); + s.tmp_0.arg0 = s.src___55078; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -22065,7 +23431,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___2031084).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___55078).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -22073,19 +23439,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P2021207.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"]} +effects_ParticleEffect_start__P45058.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 effects_ParticleEffect_start__P2021207_mk(s) { +function effects_ParticleEffect_start__P45058_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P2021207, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P45058, depth: s.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___2031084: undefined, + src___55078: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -22097,7 +23463,7 @@ function effects_ParticleEffect_start__P2021207_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P2021105(s) { +function particles_ParticleSource_setRelativeToCamera__P44956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22113,7 +23479,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -22139,12 +23505,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P2021105.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +particles_ParticleSource_setRelativeToCamera__P44956.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 particles_ParticleSource_setRelativeToCamera__P2021105_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P44956_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P2021105, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P44956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22159,7 +23525,7 @@ function particles_ParticleSource_setRelativeToCamera__P2021105_mk(s) { -function Sprite_setFlag__P2020362(s) { +function Sprite_setFlag__P44213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22176,7 +23542,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -22202,12 +23568,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setFlag__P2020362.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__P44213.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__P2020362_mk(s) { +function Sprite_setFlag__P44213_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P2020362, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P44213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22223,7 +23589,7 @@ function Sprite_setFlag__P2020362_mk(s) { -function Sprite__destroyCore__P2020372(s) { +function Sprite__destroyCore__P44223(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22233,25 +23599,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2030805 = undefined; + s.scene___54799 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_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__P2020942_mk(s); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 433; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___2030805 = (r0); - r0 = s.scene___2030805.fields["allSprites"]; + s.scene___54799 = (r0); + r0 = s.scene___54799.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -22263,7 +23629,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___2030805.fields["spritesByKind"]; + r0 = s.scene___54799.fields["spritesByKind"]; s.tmp_2 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; @@ -22273,8 +23639,8 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P2020413_mk(s); - r0 = s.scene___2030805.fields["spritesByKind"]; + s.tmp_5 = sprites_SpriteSet_remove__P44264_mk(s); + r0 = s.scene___54799.fields["spritesByKind"]; s.tmp_6 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; @@ -22286,11 +23652,11 @@ switch (step) { r0 = s.retval; case 3: case 4: - s.tmp_0 = PhysicsEngine__C2020454_v1_2_mk(s); - r0 = s.scene___2030805.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C44305_v1_2_mk(s); + r0 = s.scene___54799.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C44305_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: @@ -22314,15 +23680,15 @@ switch (step) { r0 = s.retval; case 5: case 6: - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P2030834); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P54828); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P2030840); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P54834); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_3 = helpers_arrayFilter__P2018052_mk(s); - r0 = s.scene___2030805.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P41902_mk(s); + s.tmp_3 = helpers_arrayFilter__P41903_mk(s); + r0 = s.scene___54799.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 440; s.pc = 12; return s.tmp_3; @@ -22337,12 +23703,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P2020372.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +Sprite__destroyCore__P44223.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function Sprite__destroyCore__P2020372_mk(s) { +function Sprite__destroyCore__P44223_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P2020372, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P44223, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22352,7 +23718,7 @@ function Sprite__destroyCore__P2020372_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___2030805: undefined, + scene___54799: undefined, arg0: undefined, } } @@ -22360,7 +23726,7 @@ function Sprite__destroyCore__P2020372_mk(s) { -function forEach_inline__P2030834(s) { +function forEach_inline__P54828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22382,12 +23748,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P2030834.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P54828.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P2030834_mk(s) { +function forEach_inline__P54828_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2030834, depth: s.depth + 1, + parent: s, fn: forEach_inline__P54828, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22398,7 +23764,7 @@ function forEach_inline__P2030834_mk(s) { -function Sprite__destroyCore_inline__P2030840(s) { +function Sprite__destroyCore_inline__P54834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22430,12 +23796,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite__destroyCore_inline__P2030840.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite__destroyCore_inline__P54834.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite__destroyCore_inline__P2030840_mk(s) { +function Sprite__destroyCore_inline__P54834_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore_inline__P2030840, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P54834, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22445,7 +23811,7 @@ function Sprite__destroyCore_inline__P2030840_mk(s) { -function PhysicsEngine_removeSprite__P2020457(s) { +function PhysicsEngine_removeSprite__P44308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22461,17 +23827,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2020454_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P2020457.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +PhysicsEngine_removeSprite__P44308.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__P2020457_mk(s) { +function PhysicsEngine_removeSprite__P44308_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P2020457, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P44308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -22481,7 +23847,7 @@ function PhysicsEngine_removeSprite__P2020457_mk(s) { -function Sprite_kind__P2020350(s) { +function Sprite_kind__P44201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22496,17 +23862,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P2020350.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Sprite_kind__P44201.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__P2020350_mk(s) { +function Sprite_kind__P44201_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P2020350, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P44201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -22515,7 +23881,7 @@ function Sprite_kind__P2020350_mk(s) { -function scene_systemMenu_MenuOption_constructor__P2021031(s) { +function scene_systemMenu_MenuOption_constructor__P44882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22533,7 +23899,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = (s.arg0).fields["iconImage"] = (s.arg1); r0 = (s.arg0).fields["getText"] = (s.arg2); r0 = (s.arg0).fields["action"] = (s.arg3); @@ -22541,12 +23907,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P2021031.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_MenuOption_constructor__P44882.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__P2021031_mk(s) { +function scene_systemMenu_MenuOption_constructor__P44882_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P2021031, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P44882, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -22558,7 +23924,7 @@ function scene_systemMenu_MenuOption_constructor__P2021031_mk(s) { -function helpers_screenBrightness__P2019909(s) { +function helpers_screenBrightness__P43760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22572,16 +23938,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___2019894; + r0 = globals.brightness___43745; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P2019909.info = {"start":9161,"length":98,"line":288,"column":4,"endLine":290,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +helpers_screenBrightness__P43760.info = {"start":9161,"length":98,"line":288,"column":4,"endLine":290,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} -function helpers_screenBrightness__P2019909_mk(s) { +function helpers_screenBrightness__P43760_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P2019909, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P43760, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -22590,7 +23956,7 @@ function helpers_screenBrightness__P2019909_mk(s) { -function music_volume__P2019564(s) { +function music_volume__P43415(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22600,20 +23966,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P2022465_mk(s); + s.tmp_0 = music_initVolume__P46318_mk(s); s.callLocIdx = 61; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___2022461; + r0 = globals.globalVolume___46314; return leave(s, r0) default: oops() } } } -music_volume__P2019564.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +music_volume__P43415.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function music_volume__P2019564_mk(s) { +function music_volume__P43415_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P2019564, depth: s.depth + 1, + parent: s, fn: music_volume__P43415, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -22622,7 +23988,7 @@ function music_volume__P2019564_mk(s) { -function music_initVolume__P2022465(s) { +function music_initVolume__P46318(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22632,12 +23998,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___2022461 === null); + r0 = (globals.globalVolume___46314 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___2022461 = (0); - s.tmp_0 = music_setVolume__P2019563_mk(s); + globals.globalVolume___46314 = (0); + s.tmp_0 = music_setVolume__P43414_mk(s); r0 = pxsim_pxtcore.getConfig(59, 128); s.tmp_0.arg0 = r0; s.callLocIdx = 58; s.pc = 3; return s.tmp_0; @@ -22649,12 +24015,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_initVolume__P2022465.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +music_initVolume__P46318.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} -function music_initVolume__P2022465_mk(s) { +function music_initVolume__P46318_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P2022465, depth: s.depth + 1, + parent: s, fn: music_initVolume__P46318, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -22663,7 +24029,7 @@ function music_initVolume__P2022465_mk(s) { -function helpers_arrayConcat__P2018055(s) { +function helpers_arrayConcat__P41906(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22673,74 +24039,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___2031385 = undefined; - s.value___2031388 = undefined; - s.unnamed27038___U2 = undefined; - s.unnamed27039___U3 = undefined; - s.value___2031395 = undefined; - s.unnamed27040___U5 = undefined; - s.unnamed27041___U6 = undefined; + s.out___55379 = undefined; + s.value___55382 = undefined; + s.unnamed238___U2 = undefined; + s.unnamed239___U3 = undefined; + s.value___55389 = undefined; + s.unnamed240___U5 = undefined; + s.unnamed241___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___2031385 = (r0); - s.value___2031388 = (undefined); - s.unnamed27038___U2 = (s.arg0); - s.unnamed27039___U3 = (0); + s.out___55379 = (r0); + s.value___55382 = (undefined); + s.unnamed238___U2 = (s.arg0); + s.unnamed239___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27039___U3; - r0 = pxsim_Array__length(s.unnamed27038___U2); + s.tmp_0 = r0 = s.unnamed239___U3; + r0 = pxsim_Array__length(s.unnamed238___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed27038___U2, s.unnamed27039___U3); - s.value___2031388 = (r0); - r0 = pxsim_Array__push(s.out___2031385, s.value___2031388); - r0 = (s.unnamed27039___U3 + 1); - s.unnamed27039___U3 = (r0); + r0 = pxsim_Array__getAt(s.unnamed238___U2, s.unnamed239___U3); + s.value___55382 = (r0); + r0 = pxsim_Array__push(s.out___55379, s.value___55382); + r0 = (s.unnamed239___U3 + 1); + s.unnamed239___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed27038___U2 = (undefined); - s.value___2031395 = (undefined); - s.unnamed27040___U5 = (s.arg1); - s.unnamed27041___U6 = (0); + s.unnamed238___U2 = (undefined); + s.value___55389 = (undefined); + s.unnamed240___U5 = (s.arg1); + s.unnamed241___U6 = (0); case 3: - s.tmp_0 = r0 = s.unnamed27041___U6; - r0 = pxsim_Array__length(s.unnamed27040___U5); + s.tmp_0 = r0 = s.unnamed241___U6; + r0 = pxsim_Array__length(s.unnamed240___U5); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed27040___U5, s.unnamed27041___U6); - s.value___2031395 = (r0); - r0 = pxsim_Array__push(s.out___2031385, s.value___2031395); - r0 = (s.unnamed27041___U6 + 1); - s.unnamed27041___U6 = (r0); + r0 = pxsim_Array__getAt(s.unnamed240___U5, s.unnamed241___U6); + s.value___55389 = (r0); + r0 = pxsim_Array__push(s.out___55379, s.value___55389); + r0 = (s.unnamed241___U6 + 1); + s.unnamed241___U6 = (r0); { step = 3; continue; } case 4: - s.unnamed27040___U5 = (undefined); - r0 = s.out___2031385; + s.unnamed240___U5 = (undefined); + r0 = s.out___55379; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P2018055.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"]} +helpers_arrayConcat__P41906.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 helpers_arrayConcat__P2018055_mk(s) { +function helpers_arrayConcat__P41906_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P2018055, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P41906, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___2031385: undefined, - value___2031388: undefined, - unnamed27038___U2: undefined, - unnamed27039___U3: undefined, - value___2031395: undefined, - unnamed27040___U5: undefined, - unnamed27041___U6: undefined, + out___55379: undefined, + value___55382: undefined, + unnamed238___U2: undefined, + unnamed239___U3: undefined, + value___55389: undefined, + unnamed240___U5: undefined, + unnamed241___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -22749,7 +24115,7 @@ function helpers_arrayConcat__P2018055_mk(s) { -function scene_systemMenu_PauseMenu_show__P2021040(s) { +function scene_systemMenu_PauseMenu_show__P44891(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22759,14 +24125,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___2030223 = undefined; - s.i___2030224 = undefined; + s.current___54217 = undefined; + s.i___54218 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; s.tmp_2 = if_generator_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -22784,9 +24150,9 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["options"] = (s.tmp_1); r0 = (s.arg0).fields["selection"] = (0); - s.i___2030224 = (0); + s.i___54218 = (0); case 1: - s.tmp_1 = r0 = s.i___2030224; + s.tmp_1 = r0 = s.i___54218; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -22797,22 +24163,22 @@ switch (step) { if (!r0) { step = 2; continue; } r0 = s.arg0.fields["options"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.i___2030224); - s.current___2030223 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P2021032_mk(s); - s.tmp_0.arg0 = s.current___2030223; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___54218); + s.current___54217 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P44883_mk(s); + s.tmp_0.arg0 = s.current___54217; s.callLocIdx = 1066; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P2021035_mk(s); - s.tmp_0.arg0 = s.current___2030223; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P44886_mk(s); + s.tmp_0.arg0 = s.current___54217; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; s.callLocIdx = 1067; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P2021033_mk(s); - s.tmp_0.arg0 = s.current___2030223; + s.tmp_0 = scene_systemMenu_MenuOption_position__P44884_mk(s); + s.tmp_0.arg0 = s.current___54217; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -22827,7 +24193,7 @@ switch (step) { case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___2030224; + s.tmp_5 = r0 = s.i___54218; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -22892,7 +24258,7 @@ switch (step) { case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___2030224; + s.tmp_17 = r0 = s.i___54218; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -22946,98 +24312,98 @@ switch (step) { s.callLocIdx = 1076; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___2030224 + 1); - s.i___2030224 = (r0); + r0 = (s.i___54218 + 1); + s.i___54218 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P2020149_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P44000_mk(s); s.tmp_0.arg0 = false; s.callLocIdx = 1077; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030287); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54281); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.A___2020056; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.A___43907; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1079; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030307); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54301); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.A___2020056; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.A___43907; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1081; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_0.arg0 = globals.B___2020057; + s.tmp_0 = controller_Button_onEvent__P43990_mk(s); + s.tmp_0.arg0 = globals.B___43908; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P2030336; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P54330; s.callLocIdx = 1083; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_0.arg0 = globals.menu___2020062; + s.tmp_0 = controller_Button_onEvent__P43990_mk(s); + s.tmp_0.arg0 = globals.menu___43913; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P2030341; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P54335; s.callLocIdx = 1085; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030346); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54340); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.up___2020059; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.up___43910; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1089; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030358); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54352); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.left___2020058; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.left___43909; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1092; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030367); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54361); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.down___2020061; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.down___43912; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1096; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030383); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54377); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P2020139_mk(s); - s.tmp_1.arg0 = globals.right___2020060; + s.tmp_1 = controller_Button_onEvent__P43990_mk(s); + s.tmp_1.arg0 = globals.right___43911; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1099; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P2030395); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P54389); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P2020960_mk(s); + s.tmp_1 = game_onShade__P44811_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 1102; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P44893_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 1103; s.pc = 25; return s.tmp_0; @@ -23047,12 +24413,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P2021040.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show__P44891.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_show__P2021040_mk(s) { +function scene_systemMenu_PauseMenu_show__P44891_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P2021040, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P44891, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23079,8 +24445,8 @@ function scene_systemMenu_PauseMenu_show__P2021040_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___2030223: undefined, - i___2030224: undefined, + current___54217: undefined, + i___54218: undefined, arg0: undefined, } } @@ -23088,7 +24454,7 @@ function scene_systemMenu_PauseMenu_show__P2021040_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030287(s) { +function scene_systemMenu_PauseMenu_show_inline__P54281(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23126,7 +24492,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P2021036_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P44887_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -23142,12 +24508,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030287.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54281.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_show_inline__P2030287_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54281_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030287, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54281, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23166,7 +24532,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030287_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030307(s) { +function scene_systemMenu_PauseMenu_show_inline__P54301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23204,7 +24570,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P2021036_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P44887_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -23228,12 +24594,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030307.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54301.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_show_inline__P2030307_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54301_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030307, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23252,7 +24618,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030307_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030336(s) { +function scene_systemMenu_PauseMenu_show_inline__P54330(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23262,7 +24628,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P2021045_mk(s); + s.tmp_0 = scene_systemMenu_closeMenu__P44896_mk(s); s.callLocIdx = 1082; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -23270,12 +24636,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030336.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54330.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_PauseMenu_show_inline__P2030336_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54330_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030336, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54330, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -23284,7 +24650,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030336_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030341(s) { +function scene_systemMenu_PauseMenu_show_inline__P54335(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23294,7 +24660,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P2021045_mk(s); + s.tmp_0 = scene_systemMenu_closeMenu__P44896_mk(s); s.callLocIdx = 1084; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -23302,12 +24668,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030341.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54335.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_PauseMenu_show_inline__P2030341_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54335_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030341, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54335, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -23316,7 +24682,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030341_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030346(s) { +function scene_systemMenu_PauseMenu_show_inline__P54340(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23326,9 +24692,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P44893_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P2018072_mk(s); + s.tmp_1 = Math_max__P41923_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -23359,12 +24725,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030346.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54340.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_PauseMenu_show_inline__P2030346_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54340_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030346, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54340, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23377,7 +24743,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030346_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030358(s) { +function scene_systemMenu_PauseMenu_show_inline__P54352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23387,9 +24753,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P44893_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P2018072_mk(s); + s.tmp_1 = Math_max__P41923_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -23406,12 +24772,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030358.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_show_inline__P54352.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_PauseMenu_show_inline__P2030358_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54352_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030358, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23422,7 +24788,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030358_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030367(s) { +function scene_systemMenu_PauseMenu_show_inline__P54361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23432,9 +24798,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P44893_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P2018073_mk(s); + s.tmp_1 = Math_min__P41924_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -23470,12 +24836,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030367.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_show_inline__P54361.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_PauseMenu_show_inline__P2030367_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54361_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030367, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23490,7 +24856,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030367_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030383(s) { +function scene_systemMenu_PauseMenu_show_inline__P54377(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23500,9 +24866,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P44893_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P2018073_mk(s); + s.tmp_1 = Math_min__P41924_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -23524,12 +24890,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030383.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54377.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_PauseMenu_show_inline__P2030383_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54377_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030383, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54377, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23542,7 +24908,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030383_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P2030395(s) { +function scene_systemMenu_PauseMenu_show_inline__P54389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23552,12 +24918,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P2021041_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P44892_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1100; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P2021043_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P44894_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1101; s.pc = 2; return s.tmp_0; case 2: @@ -23566,12 +24932,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P2030395.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P54389.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P2030395_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P54389_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P2030395, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P54389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -23580,7 +24946,7 @@ function scene_systemMenu_PauseMenu_show_inline__P2030395_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P2021043(s) { +function scene_systemMenu_PauseMenu_drawText__P44894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23595,7 +24961,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -23607,11 +24973,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P2019899_mk(s); - s.tmp_3.arg0 = globals.screen___2019975; + s.tmp_3 = helpers_imageFillRect__P43750_mk(s); + s.tmp_3.arg0 = globals.screen___43826; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -23633,8 +24999,8 @@ switch (step) { s.callLocIdx = 1115; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P2019932_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_imagePrintCenter__P43783_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -23668,8 +25034,8 @@ switch (step) { s.callLocIdx = 1118; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P2019899_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_imageFillRect__P43750_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -23687,9 +25053,9 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 - 3); s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -23713,8 +25079,8 @@ switch (step) { s.callLocIdx = 1121; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P2019899_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_imageFillRect__P43750_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -23743,7 +25109,7 @@ switch (step) { case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -23795,8 +25161,8 @@ switch (step) { s.callLocIdx = 1127; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P2019932_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_imagePrintCenter__P43783_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -23855,12 +25221,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P2021043.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_drawText__P44894.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_drawText__P2021043_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P44894_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P2021043, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P44894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23879,7 +25245,7 @@ function scene_systemMenu_PauseMenu_drawText__P2021043_mk(s) { -function helpers_imagePrintCenter__P2019932(s) { +function helpers_imagePrintCenter__P43783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23889,8 +25255,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___2030482 = undefined; - s.x___2030488 = undefined; + s.w___54476 = undefined; + s.x___54482 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -23905,7 +25271,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P2019920_mk(s); + s.tmp_2 = image_getFontForText__P43771_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 94; s.pc = 3; return s.tmp_2; case 3: @@ -23929,17 +25295,17 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.w___2030482 = (r0); + s.w___54476 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___2030482); + r0 = (s.tmp_1 - s.w___54476); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___2030488 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); + s.x___54482 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___2030488; + s.tmp_0.arg2 = s.x___54482; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; @@ -23951,18 +25317,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P2019932.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"]} +helpers_imagePrintCenter__P43783.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 helpers_imagePrintCenter__P2019932_mk(s) { +function helpers_imagePrintCenter__P43783_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P2019932, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P43783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___2030482: undefined, - x___2030488: undefined, + w___54476: undefined, + x___54482: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23974,7 +25340,7 @@ function helpers_imagePrintCenter__P2019932_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P2021042(s) { +function scene_systemMenu_PauseMenu_setSelection__P44893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23990,7 +25356,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -24010,7 +25376,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_6 = scene_systemMenu_MenuOption_setState__P2021036_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P44887_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -24032,9 +25398,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C2020132_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___2020056; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C2020132_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C43983_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___43907; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C43983_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: @@ -24049,7 +25415,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P2021036_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P44887_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -24062,7 +25428,7 @@ switch (step) { r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P2023187_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P47040_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1113; s.pc = 13; return s.tmp_0; case 13: @@ -24072,12 +25438,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P2021042.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_setSelection__P44893.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_PauseMenu_setSelection__P2021042_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P44893_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P2021042, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P44893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24096,7 +25462,7 @@ function scene_systemMenu_PauseMenu_setSelection__P2021042_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P2023187(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P47040(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24106,13 +25472,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___2030701 = undefined; + s.row___54695 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -24130,17 +25496,17 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.row___2030701 = (r0); + s.row___54695 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___2030701 === s.tmp_1); + r0 = (s.row___54695 === 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___2030701 - 1); + r0 = (s.row___54695 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -24155,7 +25521,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___2030701 > s.tmp_6); + r0 = (s.row___54695 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -24215,12 +25581,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P2023187.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_updateScrollTarget__P47040.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_updateScrollTarget__P2023187_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P47040_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P2023187, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P47040, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24232,7 +25598,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P2023187_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___2030701: undefined, + row___54695: undefined, arg0: undefined, } } @@ -24240,7 +25606,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P2023187_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P2021041(s) { +function scene_systemMenu_PauseMenu_onUpdate__P44892(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24250,22 +25616,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___2030504 = undefined; - s.i___2030508 = undefined; - s.dt___2030537 = undefined; + s.t___54498 = undefined; + s.i___54502 = undefined; + s.dt___54531 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___2030504 = (r0); - s.i___2030508 = (0); + s.t___54498 = (r0); + s.i___54502 = (0); case 1: - s.tmp_1 = r0 = s.i___2030508; + s.tmp_1 = r0 = s.i___54502; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -24274,13 +25640,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P2021034_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P44885_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___2030508); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___54502); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___2030504; - s.tmp_11 = r0 = s.i___2030508; + s.tmp_8 = r0 = s.t___54498; + s.tmp_11 = r0 = s.i___54502; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -24308,11 +25674,11 @@ switch (step) { s.callLocIdx = 1105; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___2030508 + 1); - s.i___2030508 = (r0); + r0 = (s.i___54502 + 1); + s.i___54502 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P2020942_mk(s); + s.tmp_1 = game_currentScene__P44793_mk(s); s.callLocIdx = 1106; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; @@ -24321,7 +25687,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___2030537 = (r0); + s.dt___54531 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -24333,7 +25699,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___2030537 * 100); + r0 = (s.dt___54531 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -24351,7 +25717,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___2030537 * 100); + r0 = (s.dt___54531 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -24361,7 +25727,7 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P2018070_mk(s); + s.tmp_2 = Math_abs__P41921_mk(s); r0 = s.arg0.fields["scrollOffset"]; s.tmp_3 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -24381,8 +25747,8 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P2020732_mk(s); - s.tmp_1 = game_currentScene__P2020942_mk(s); + s.tmp_0 = scene_Camera_offsetY__P44583_mk(s); + s.tmp_1 = game_currentScene__P44793_mk(s); s.callLocIdx = 1109; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; @@ -24398,12 +25764,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P2021041.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]} +scene_systemMenu_PauseMenu_onUpdate__P44892.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__P2021041_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P44892_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P2021041, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P44892, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24419,9 +25785,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P2021041_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___2030504: undefined, - i___2030508: undefined, - dt___2030537: undefined, + t___54498: undefined, + i___54502: undefined, + dt___54531: undefined, arg0: undefined, } } @@ -24429,7 +25795,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P2021041_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P2021034(s) { +function scene_systemMenu_MenuOption_setOffset__P44885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24445,8 +25811,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2020347_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P44198_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["top"]; @@ -24456,10 +25822,10 @@ switch (step) { s.callLocIdx = 1047; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P2020300_mk(s); + s.tmp_0 = Sprite_y__P44151_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2020299_mk(s); + s.tmp_1 = Sprite_y__P44150_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1048; s.pc = 3; return s.tmp_1; @@ -24473,12 +25839,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P2021034.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_MenuOption_setOffset__P44885.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_MenuOption_setOffset__P2021034_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P44885_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P2021034, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P44885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24490,7 +25856,7 @@ function scene_systemMenu_MenuOption_setOffset__P2021034_mk(s) { -function Sprite_top__P2020347(s) { +function Sprite_top__P44198(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24500,22 +25866,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___2030621 = undefined; + s.physics___54615 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 359; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___2030621 = (r0); - s.tmp_0 = PhysicsEngine__C2020454_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___2030621; + s.physics___54615 = (r0); + s.tmp_0 = PhysicsEngine__C44305_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___54615; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -24526,7 +25892,7 @@ switch (step) { s.tmp_3 = r0; r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C44305_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: @@ -24535,18 +25901,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P2020347.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +Sprite_top__P44198.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__P2020347_mk(s) { +function Sprite_top__P44198_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P2020347, depth: s.depth + 1, + parent: s, fn: Sprite_top__P44198, depth: s.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___2030621: undefined, + physics___54615: undefined, arg0: undefined, arg1: undefined, } } @@ -24555,7 +25921,7 @@ function Sprite_top__P2020347_mk(s) { -function PhysicsEngine_moveSprite__P2020458(s) { +function PhysicsEngine_moveSprite__P44309(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24573,17 +25939,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2020454_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C44305_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P2020458.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"]} +PhysicsEngine_moveSprite__P44309.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__P2020458_mk(s) { +function PhysicsEngine_moveSprite__P44309_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P2020458, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P44309, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -24595,7 +25961,7 @@ function PhysicsEngine_moveSprite__P2020458_mk(s) { -function Sprite_top__P2020346(s) { +function Sprite_top__P44197(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24610,20 +25976,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_top__P2020346.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__P2020346.isGetter = true; +Sprite_top__P44197.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__P44197.isGetter = true; -function Sprite_top__P2020346_mk(s) { +function Sprite_top__P44197_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P2020346, depth: s.depth + 1, + parent: s, fn: Sprite_top__P44197, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24633,7 +25999,7 @@ function Sprite_top__P2020346_mk(s) { -function Sprite_y__P2020300(s) { +function Sprite_y__P44151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24649,11 +26015,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2020347_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P44198_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_height__P2020341_mk(s); + s.tmp_4 = Sprite_height__P44192_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 310; s.pc = 2; return s.tmp_4; case 2: @@ -24670,12 +26036,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_y__P2020300.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_y__P44151.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 Sprite_y__P2020300_mk(s) { +function Sprite_y__P44151_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2020300, depth: s.depth + 1, + parent: s, fn: Sprite_y__P44151, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24690,7 +26056,7 @@ function Sprite_y__P2020300_mk(s) { -function Sprite_height__P2020341(s) { +function Sprite_height__P44192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24705,20 +26071,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_height"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_height__P2020341.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__P2020341.isGetter = true; +Sprite_height__P44192.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__P44192.isGetter = true; -function Sprite_height__P2020341_mk(s) { +function Sprite_height__P44192_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P2020341, depth: s.depth + 1, + parent: s, fn: Sprite_height__P44192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24728,7 +26094,7 @@ function Sprite_height__P2020341_mk(s) { -function Math_abs__P2018070(s) { +function Math_abs__P41921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24757,12 +26123,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_abs__P2018070.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +Math_abs__P41921.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 Math_abs__P2018070_mk(s) { +function Math_abs__P41921_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P2018070, depth: s.depth + 1, + parent: s, fn: Math_abs__P41921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24773,7 +26139,7 @@ function Math_abs__P2018070_mk(s) { -function scene_systemMenu_MenuOption_setState__P2021036(s) { +function scene_systemMenu_MenuOption_setState__P44887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24789,7 +26155,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === s.arg1); @@ -24800,7 +26166,7 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P2023186_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P47039_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1051; s.pc = 4; return s.tmp_0; case 4: @@ -24810,12 +26176,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P2021036.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_MenuOption_setState__P44887.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_MenuOption_setState__P2021036_mk(s) { +function scene_systemMenu_MenuOption_setState__P44887_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P2021036, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P44887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24827,7 +26193,7 @@ function scene_systemMenu_MenuOption_setState__P2021036_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P2023186(s) { +function scene_systemMenu_MenuOption_updateCard__P47039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24842,7 +26208,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -24865,7 +26231,7 @@ switch (step) { r0 = s.tmp_3; { step = 6; continue; } case 3: - s.tmp_4 = Sprite_setImage__P2020334_mk(s); + s.tmp_4 = Sprite_setImage__P44185_mk(s); r0 = s.arg0.fields["card"]; s.tmp_4.arg0 = r0; s.tmp_5 = if_basicCard_1_mk(s); @@ -24887,7 +26253,7 @@ switch (step) { r0 = s.retval; { step = 6; continue; } case 4: - s.tmp_0 = Sprite_setImage__P2020334_mk(s); + s.tmp_0 = Sprite_setImage__P44185_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_selectedCard_1_mk(s); @@ -24909,7 +26275,7 @@ switch (step) { r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = Sprite_setImage__P2020334_mk(s); + s.tmp_0 = Sprite_setImage__P44185_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_activeCard_1_mk(s); @@ -24930,10 +26296,10 @@ switch (step) { case 12: r0 = s.retval; case 6: - s.tmp_0 = Sprite_x__P2020298_mk(s); + s.tmp_0 = Sprite_x__P44149_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P2020297_mk(s); + s.tmp_1 = Sprite_x__P44148_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1060; s.pc = 15; return s.tmp_1; @@ -24943,10 +26309,10 @@ switch (step) { s.callLocIdx = 1061; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = Sprite_y__P2020300_mk(s); + s.tmp_0 = Sprite_y__P44151_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2020299_mk(s); + s.tmp_1 = Sprite_y__P44150_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1062; s.pc = 17; return s.tmp_1; @@ -24961,12 +26327,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P2023186.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_MenuOption_updateCard__P47039.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} -function scene_systemMenu_MenuOption_updateCard__P2023186_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P47039_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P2023186, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P47039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24981,7 +26347,7 @@ function scene_systemMenu_MenuOption_updateCard__P2023186_mk(s) { -function Sprite_x__P2020298(s) { +function Sprite_x__P44149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24997,11 +26363,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2020343_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P44194_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_width__P2020340_mk(s); + s.tmp_4 = Sprite_width__P44191_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 305; s.pc = 2; return s.tmp_4; case 2: @@ -25018,12 +26384,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_x__P2020298.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_x__P44149.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__P2020298_mk(s) { +function Sprite_x__P44149_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P2020298, depth: s.depth + 1, + parent: s, fn: Sprite_x__P44149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25038,7 +26404,7 @@ function Sprite_x__P2020298_mk(s) { -function Sprite_left__P2020343(s) { +function Sprite_left__P44194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25048,22 +26414,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___2031207 = undefined; + s.physics___55201 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 351; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___2031207 = (r0); - s.tmp_0 = PhysicsEngine__C2020454_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___2031207; + s.physics___55201 = (r0); + s.tmp_0 = PhysicsEngine__C44305_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___55201; s.tmp_0.arg1 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -25074,7 +26440,7 @@ switch (step) { r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2020454_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C44305_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: @@ -25083,18 +26449,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_left__P2020343.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Sprite_left__P44194.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_left__P2020343_mk(s) { +function Sprite_left__P44194_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2020343, depth: s.depth + 1, + parent: s, fn: Sprite_left__P44194, depth: s.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___2031207: undefined, + physics___55201: undefined, arg0: undefined, arg1: undefined, } } @@ -25103,7 +26469,7 @@ function Sprite_left__P2020343_mk(s) { -function Sprite_left__P2020342(s) { +function Sprite_left__P44193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25118,20 +26484,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P2020342.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__P2020342.isGetter = true; +Sprite_left__P44193.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__P44193.isGetter = true; -function Sprite_left__P2020342_mk(s) { +function Sprite_left__P44193_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2020342, depth: s.depth + 1, + parent: s, fn: Sprite_left__P44193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25141,7 +26507,7 @@ function Sprite_left__P2020342_mk(s) { -function Sprite_width__P2020340(s) { +function Sprite_width__P44191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25156,20 +26522,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_width"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_width__P2020340.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__P2020340.isGetter = true; +Sprite_width__P44191.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__P44191.isGetter = true; -function Sprite_width__P2020340_mk(s) { +function Sprite_width__P44191_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P2020340, depth: s.depth + 1, + parent: s, fn: Sprite_width__P44191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25179,7 +26545,7 @@ function Sprite_width__P2020340_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P2021035(s) { +function scene_systemMenu_MenuOption_setTheme__P44886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25195,9 +26561,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P2023186_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P47039_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1050; s.pc = 1; return s.tmp_0; case 1: @@ -25206,12 +26572,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P2021035.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_MenuOption_setTheme__P44886.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 scene_systemMenu_MenuOption_setTheme__P2021035_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P44886_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P2021035, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P44886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25222,7 +26588,7 @@ function scene_systemMenu_MenuOption_setTheme__P2021035_mk(s) { -function scene_systemMenu_MenuOption_position__P2021033(s) { +function scene_systemMenu_MenuOption_position__P44884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25239,26 +26605,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P2020343_mk(s); + s.tmp_0 = Sprite_left__P44194_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1041; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_top__P2020347_mk(s); + s.tmp_0 = Sprite_top__P44198_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; s.callLocIdx = 1042; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_x__P2020298_mk(s); + s.tmp_0 = Sprite_x__P44149_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P2020297_mk(s); + s.tmp_1 = Sprite_x__P44148_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1043; s.pc = 4; return s.tmp_1; @@ -25268,10 +26634,10 @@ switch (step) { s.callLocIdx = 1044; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P2020300_mk(s); + s.tmp_0 = Sprite_y__P44151_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P2020299_mk(s); + s.tmp_1 = Sprite_y__P44150_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1045; s.pc = 6; return s.tmp_1; @@ -25285,12 +26651,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P2021033.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_MenuOption_position__P44884.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 scene_systemMenu_MenuOption_position__P2021033_mk(s) { +function scene_systemMenu_MenuOption_position__P44884_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P2021033, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P44884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25303,7 +26669,7 @@ function scene_systemMenu_MenuOption_position__P2021033_mk(s) { -function scene_systemMenu_MenuOption_show__P2021032(s) { +function scene_systemMenu_MenuOption_show__P44883(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25318,7 +26684,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2021030_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C44881_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -25338,12 +26704,12 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___2021054; + r0 = globals.CARD_NORMAL___44905; case 2: // jmp value (already in r0) s.tmp_2 = r0; s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P2020218_mk(s); + s.tmp_5 = sprites_create__P44069_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; s.callLocIdx = 1037; s.pc = 4; return s.tmp_5; @@ -25366,7 +26732,7 @@ switch (step) { case 5: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P2020218_mk(s); + s.tmp_2 = sprites_create__P44069_mk(s); r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; @@ -25394,12 +26760,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P2021032.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_MenuOption_show__P44883.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function scene_systemMenu_MenuOption_show__P2021032_mk(s) { +function scene_systemMenu_MenuOption_show__P44883_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P2021032, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P44883, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25414,7 +26780,7 @@ function scene_systemMenu_MenuOption_show__P2021032_mk(s) { -function game_onShade__P2020960(s) { +function game_onShade__P44811(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25428,7 +26794,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P2022938_mk(s); + s.tmp_0 = game_init__P46791_mk(s); s.tmp_0.arg0 = undefined; s.callLocIdx = 1025; s.pc = 4; return s.tmp_0; case 4: @@ -25442,7 +26808,7 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P2020748_mk(s); + s.tmp_2 = scene_createRenderable__P44599_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; @@ -25454,12 +26820,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P2020960.info = {"start":15927,"length":145,"line":474,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +game_onShade__P44811.info = {"start":15927,"length":145,"line":474,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P2020960_mk(s) { +function game_onShade__P44811_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P2020960, depth: s.depth + 1, + parent: s, fn: game_onShade__P44811, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25471,7 +26837,7 @@ function game_onShade__P2020960_mk(s) { -function scene_createRenderable__P2020748(s) { +function scene_createRenderable__P44599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25481,14 +26847,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___2030653 = undefined; + s.renderable___54647 = 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__C2020743_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C44594_VT); s.tmp_0 = r0; s.tmp_1 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_1); @@ -25496,11 +26862,11 @@ switch (step) { r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = renderable_inline__P2030659; + r0 = renderable_inline__P54653; case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P2020744_mk(s); + s.tmp_3 = scene_Renderable_constructor__P44595_mk(s); s.tmp_3.arg0 = s.tmp_0; s.tmp_3.arg1 = s.arg1; s.tmp_3.arg2 = s.tmp_2; @@ -25508,23 +26874,23 @@ switch (step) { s.callLocIdx = 903; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.renderable___2030653 = (s.tmp_0); - r0 = s.renderable___2030653; + s.renderable___54647 = (s.tmp_0); + r0 = s.renderable___54647; return leave(s, r0) default: oops() } } } -scene_createRenderable__P2020748.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"]} +scene_createRenderable__P44599.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 scene_createRenderable__P2020748_mk(s) { +function scene_createRenderable__P44599_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P2020748, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P44599, depth: s.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___2030653: undefined, + renderable___54647: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -25534,7 +26900,7 @@ function scene_createRenderable__P2020748_mk(s) { -function renderable_inline__P2030659(s) { +function renderable_inline__P54653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25548,12 +26914,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -renderable_inline__P2030659.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +renderable_inline__P54653.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function renderable_inline__P2030659_mk(s) { +function renderable_inline__P54653_mk(s) { checkStack(s.depth); return { - parent: s, fn: renderable_inline__P2030659, depth: s.depth + 1, + parent: s, fn: renderable_inline__P54653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -25561,7 +26927,7 @@ function renderable_inline__P2030659_mk(s) { -function scene_Renderable_constructor__P2020744(s) { +function scene_Renderable_constructor__P44595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25579,10 +26945,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2020743_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C44594_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P2020039_mk(s); + s.tmp_0 = sprites_BaseSprite_constructor__P43890_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; s.callLocIdx = 900; s.pc = 1; return s.tmp_0; @@ -25592,12 +26958,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P2020744.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"]} +scene_Renderable_constructor__P44595.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 scene_Renderable_constructor__P2020744_mk(s) { +function scene_Renderable_constructor__P44595_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P2020744, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P44595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25610,7 +26976,7 @@ function scene_Renderable_constructor__P2020744_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P2021039(s) { +function scene_systemMenu_PauseMenu_constructor__P44890(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25627,7 +26993,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2021038_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C44889_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -25635,8 +27001,8 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P2021047_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___2021054); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P44898_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___44905); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; @@ -25655,12 +27021,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P2021039.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_constructor__P44890.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 scene_systemMenu_PauseMenu_constructor__P2021039_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P44890_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P2021039, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P44890, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25674,7 +27040,7 @@ function scene_systemMenu_PauseMenu_constructor__P2021039_mk(s) { -function scene_systemMenu_buildMenuTheme__P2021047(s) { +function scene_systemMenu_buildMenuTheme__P44898(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25684,7 +27050,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___2031883 = undefined; + s.cardsPerRow___55877 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -25692,19 +27058,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); 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___2031883 = (r0); + s.cardsPerRow___55877 = (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___2019918; + r0 = globals.font8___43769; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -25715,7 +27081,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P2019921_mk(s); + s.tmp_1 = image_doubledFont__P43772_mk(s); s.tmp_1.arg0 = s.arg2; s.callLocIdx = 1174; s.pc = 5; return s.tmp_1; case 5: @@ -25728,12 +27094,12 @@ switch (step) { 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___2031883); - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___55877); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_3 = r0; - r0 = (s.cardsPerRow___2031883 * s.arg0); + r0 = (s.cardsPerRow___55877 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___2031883 - 1); + r0 = (s.cardsPerRow___55877 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -25764,7 +27130,7 @@ switch (step) { 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___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -25785,19 +27151,19 @@ switch (step) { 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___2021055); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___2021056); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___2021054); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___44906); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___44907); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___44905); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P2021047.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_buildMenuTheme__P44898.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 scene_systemMenu_buildMenuTheme__P2021047_mk(s) { +function scene_systemMenu_buildMenuTheme__P44898_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P2021047, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P44898, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25816,7 +27182,7 @@ function scene_systemMenu_buildMenuTheme__P2021047_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___2031883: undefined, + cardsPerRow___55877: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -25827,7 +27193,7 @@ function scene_systemMenu_buildMenuTheme__P2021047_mk(s) { -function image_doubledFont__P2019921(s) { +function image_doubledFont__P43772(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25841,7 +27207,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P2019922_mk(s); + s.tmp_0 = image_scaledFont__P43773_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 88; s.pc = 1; return s.tmp_0; @@ -25850,12 +27216,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_doubledFont__P2019921.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} +image_doubledFont__P43772.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} -function image_doubledFont__P2019921_mk(s) { +function image_doubledFont__P43772_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P2019921, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P43772, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25865,7 +27231,7 @@ function image_doubledFont__P2019921_mk(s) { -function image_scaledFont__P2019922(s) { +function image_scaledFont__P43773(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25980,12 +27346,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_scaledFont__P2019922.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +image_scaledFont__P43773.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 image_scaledFont__P2019922_mk(s) { +function image_scaledFont__P43773_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P2019922, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P43773, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26011,7 +27377,7 @@ function image_scaledFont__P2019922_mk(s) { -function controller_Button_onEvent__P2020139(s) { +function controller_Button_onEvent__P43990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26021,7 +27387,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.eventHandler___2031965 = undefined; + s.eventHandler___55959 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26029,28 +27395,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P2022719_mk(s); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P46572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 202; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.eventHandler___2031965 = (r0); - r0 = (s.eventHandler___2031965).fields["callback"] = (s.arg2); + s.eventHandler___55959 = (r0); + r0 = (s.eventHandler___55959).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P2020139.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"]} +controller_Button_onEvent__P43990.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 controller_Button_onEvent__P2020139_mk(s) { +function controller_Button_onEvent__P43990_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P2020139, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P43990, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - eventHandler___2031965: undefined, + eventHandler___55959: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -26060,7 +27426,7 @@ function controller_Button_onEvent__P2020139_mk(s) { -function controller_Button_getOrCreateHandlerForEvent__P2022719(s) { +function controller_Button_getOrCreateHandlerForEvent__P46572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26070,19 +27436,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___2031986 = undefined; - s.eventHandler___2031995 = undefined; - s.unnamed27060___U2 = undefined; - s.unnamed27061___U3 = undefined; - s.newHandler___2032011 = undefined; + s.handlerState___55980 = undefined; + s.eventHandler___55989 = undefined; + s.unnamed260___U2 = undefined; + s.unnamed261___U3 = undefined; + s.newHandler___56005 = 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__C2020132_VT)) failedCast(r0); - s.tmp_3 = controller_Button_handlerState__P2022714_mk(s); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + s.tmp_3 = controller_Button_handlerState__P46567_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 212; s.pc = 10; return s.tmp_3; case 10: @@ -26094,16 +27460,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C2020128_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C43979_VT); s.tmp_4 = r0; - s.tmp_5 = controller_ButtonEventHandlerState_constructor__P2020129_mk(s); + s.tmp_5 = controller_ButtonEventHandlerState_constructor__P43980_mk(s); s.tmp_5.arg0 = s.tmp_4; r0 = s.arg0.fields["id"]; s.tmp_5.arg1 = r0; s.callLocIdx = 214; s.pc = 11; return s.tmp_5; case 11: r0 = s.retval; - s.tmp_7 = game_currentScene__P2020942_mk(s); + s.tmp_7 = game_currentScene__P44793_mk(s); s.callLocIdx = 213; s.pc = 12; return s.tmp_7; case 12: r0 = s.retval; @@ -26112,13 +27478,13 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); case 1: case 2: - s.tmp_0 = controller_Button_handlerState__P2022714_mk(s); + s.tmp_0 = controller_Button_handlerState__P46567_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 215; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.handlerState___2031986 = (r0); - r0 = s.handlerState___2031986.fields["user"]; + s.handlerState___55980 = (r0); + r0 = s.handlerState___55980.fields["user"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -26126,44 +27492,44 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.handlerState___2031986; + s.tmp_3 = r0 = s.handlerState___55980; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["user"] = (s.tmp_4); case 3: case 4: - s.eventHandler___2031995 = (undefined); - r0 = s.handlerState___2031986.fields["user"]; - s.unnamed27060___U2 = (r0); - s.unnamed27061___U3 = (0); + s.eventHandler___55989 = (undefined); + r0 = s.handlerState___55980.fields["user"]; + s.unnamed260___U2 = (r0); + s.unnamed261___U3 = (0); case 5: - s.tmp_0 = r0 = s.unnamed27061___U3; - r0 = pxsim_Array__length(s.unnamed27060___U2); + s.tmp_0 = r0 = s.unnamed261___U3; + r0 = pxsim_Array__length(s.unnamed260___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed27060___U2, s.unnamed27061___U3); - s.eventHandler___2031995 = (r0); - r0 = s.eventHandler___2031995.fields["event"]; + r0 = pxsim_Array__getAt(s.unnamed260___U2, s.unnamed261___U3); + s.eventHandler___55989 = (r0); + r0 = s.eventHandler___55989.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___2031995; + r0 = s.eventHandler___55989; { step = 9; continue; } case 6: case 7: - r0 = (s.unnamed27061___U3 + 1); - s.unnamed27061___U3 = (r0); + r0 = (s.unnamed261___U3 + 1); + s.unnamed261___U3 = (r0); { step = 5; continue; } case 8: - s.unnamed27060___U2 = (undefined); - r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P2032008); + s.unnamed260___U2 = (undefined); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P56002); 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__P2018333_mk(s); + s.tmp_5 = control_onEvent__P42184_mk(s); s.tmp_5.arg0 = s.arg1; r0 = s.arg0.fields["id"]; s.tmp_5.arg1 = r0; @@ -26172,30 +27538,30 @@ switch (step) { s.callLocIdx = 217; s.pc = 14; return s.tmp_5; case 14: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C2020126_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C43977_VT); s.tmp_0 = r0; - s.tmp_1 = controller_ButtonHandler_constructor__P2020127_mk(s); + s.tmp_1 = controller_ButtonHandler_constructor__P43978_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = undefined; s.callLocIdx = 218; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.newHandler___2032011 = (s.tmp_0); - r0 = s.handlerState___2031986.fields["user"]; + s.newHandler___56005 = (s.tmp_0); + r0 = s.handlerState___55980.fields["user"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.newHandler___2032011); - r0 = s.newHandler___2032011; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___56005); + r0 = s.newHandler___56005; case 9: return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent__P2022719.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} +controller_Button_getOrCreateHandlerForEvent__P46572.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 controller_Button_getOrCreateHandlerForEvent__P2022719_mk(s) { +function controller_Button_getOrCreateHandlerForEvent__P46572_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P2022719, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P46572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26205,11 +27571,11 @@ function controller_Button_getOrCreateHandlerForEvent__P2022719_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - handlerState___2031986: undefined, - eventHandler___2031995: undefined, - unnamed27060___U2: undefined, - unnamed27061___U3: undefined, - newHandler___2032011: undefined, + handlerState___55980: undefined, + eventHandler___55989: undefined, + unnamed260___U2: undefined, + unnamed261___U3: undefined, + newHandler___56005: undefined, arg0: undefined, arg1: undefined, } } @@ -26218,7 +27584,7 @@ function controller_Button_getOrCreateHandlerForEvent__P2022719_mk(s) { -function controller_Button_getOrCreateHandlerForEvent_inline__P2032008(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P56002(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26228,7 +27594,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_runButtonEvents__P2022718_mk(s); + s.tmp_0 = controller_Button_runButtonEvents__P46571_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.caps[1]; s.callLocIdx = 216; s.pc = 1; return s.tmp_0; @@ -26238,12 +27604,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent_inline__P2032008.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_getOrCreateHandlerForEvent_inline__P56002.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__P2032008_mk(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P56002_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P2032008, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P56002, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -26252,7 +27618,7 @@ function controller_Button_getOrCreateHandlerForEvent_inline__P2032008_mk(s) { -function controller_Button_runButtonEvents__P2022718(s) { +function controller_Button_runButtonEvents__P46571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26262,25 +27628,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___2032025 = undefined; - s.userHandler___2032029 = undefined; - s.eventHandler___2032040 = undefined; - s.unnamed27058___U3 = undefined; - s.unnamed27059___U4 = undefined; + s.handlerState___56019 = undefined; + s.userHandler___56023 = undefined; + s.eventHandler___56034 = undefined; + s.unnamed258___U3 = undefined; + s.unnamed259___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__C2020132_VT)) failedCast(r0); - s.tmp_0 = controller_Button_handlerState__P2022714_mk(s); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + s.tmp_0 = controller_Button_handlerState__P46567_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 208; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.handlerState___2032025 = (r0); - r0 = pxsim_numops_toBoolDecr(s.handlerState___2032025); + s.handlerState___56019 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___56019); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -26289,19 +27655,19 @@ switch (step) { { step = 13; continue; } case 1: case 2: - s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P2022719_mk(s); + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P46572_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 209; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; - s.userHandler___2032029 = (r0); - r0 = s.userHandler___2032029.fields["callback"]; + s.userHandler___56023 = (r0); + r0 = s.userHandler___56023.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___2032029; + s.tmp_1.arg0 = s.userHandler___56023; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); s.callLocIdx = 210; s.pc = 16; return s.tmp_1; @@ -26315,23 +27681,23 @@ switch (step) { r0 = s.retval; case 3: case 4: - r0 = s.handlerState___2032025.fields["system"]; + r0 = s.handlerState___56019.fields["system"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.eventHandler___2032040 = (undefined); - r0 = s.handlerState___2032025.fields["system"]; - s.unnamed27058___U3 = (r0); - s.unnamed27059___U4 = (0); + s.eventHandler___56034 = (undefined); + r0 = s.handlerState___56019.fields["system"]; + s.unnamed258___U3 = (r0); + s.unnamed259___U4 = (0); case 5: - s.tmp_0 = r0 = s.unnamed27059___U4; - r0 = pxsim_Array__length(s.unnamed27058___U3); + s.tmp_0 = r0 = s.unnamed259___U4; + r0 = pxsim_Array__length(s.unnamed258___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed27058___U3, s.unnamed27059___U4); - s.eventHandler___2032040 = (r0); - r0 = s.eventHandler___2032040.fields["event"]; + r0 = pxsim_Array__getAt(s.unnamed258___U3, s.unnamed259___U4); + s.eventHandler___56034 = (r0); + r0 = s.eventHandler___56034.fields["event"]; s.tmp_3 = r0; r0 = (s.tmp_3 === s.arg1); s.tmp_2 = r0; @@ -26340,14 +27706,14 @@ switch (step) { r0 = s.tmp_2; { step = 7; continue; } case 6: - r0 = s.eventHandler___2032040.fields["callback"]; + r0 = s.eventHandler___56034.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___2032040; + s.tmp_5.arg0 = s.eventHandler___56034; if (!s.tmp_5.arg0.vtable.iface) { setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); s.callLocIdx = 211; s.pc = 17; return s.tmp_5; @@ -26361,11 +27727,11 @@ switch (step) { r0 = s.retval; case 8: case 9: - r0 = (s.unnamed27059___U4 + 1); - s.unnamed27059___U4 = (r0); + r0 = (s.unnamed259___U4 + 1); + s.unnamed259___U4 = (r0); { step = 5; continue; } case 10: - s.unnamed27058___U3 = (undefined); + s.unnamed258___U3 = (undefined); case 11: case 12: case 13: @@ -26373,12 +27739,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_runButtonEvents__P2022718.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} +controller_Button_runButtonEvents__P46571.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 controller_Button_runButtonEvents__P2022718_mk(s) { +function controller_Button_runButtonEvents__P46571_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_runButtonEvents__P2022718, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P46571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26386,11 +27752,11 @@ function controller_Button_runButtonEvents__P2022718_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - handlerState___2032025: undefined, - userHandler___2032029: undefined, - eventHandler___2032040: undefined, - unnamed27058___U3: undefined, - unnamed27059___U4: undefined, + handlerState___56019: undefined, + userHandler___56023: undefined, + eventHandler___56034: undefined, + unnamed258___U3: undefined, + unnamed259___U4: undefined, arg0: undefined, arg1: undefined, } } @@ -26399,7 +27765,7 @@ function controller_Button_runButtonEvents__P2022718_mk(s) { -function controller_Button_handlerState__P2022714(s) { +function controller_Button_handlerState__P46567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26409,32 +27775,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___2032056 = undefined; - s.unnamed27056___U1 = undefined; - s.unnamed27057___U2 = undefined; + s.state___56050 = undefined; + s.unnamed256___U1 = undefined; + s.unnamed257___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - s.state___2032056 = (undefined); - s.tmp_0 = game_currentScene__P2020942_mk(s); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + s.state___56050 = (undefined); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 198; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = r0.fields["buttonEventHandlers"]; - s.unnamed27056___U1 = (r0); - s.unnamed27057___U2 = (0); + s.unnamed256___U1 = (r0); + s.unnamed257___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27057___U2; - r0 = pxsim_Array__length(s.unnamed27056___U1); + s.tmp_0 = r0 = s.unnamed257___U2; + r0 = pxsim_Array__length(s.unnamed256___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed27056___U1, s.unnamed27057___U2); - s.state___2032056 = (r0); - r0 = s.state___2032056.fields["id"]; + r0 = pxsim_Array__getAt(s.unnamed256___U1, s.unnamed257___U2); + s.state___56050 = (r0); + r0 = s.state___56050.fields["id"]; s.tmp_3 = r0; r0 = s.arg0.fields["id"]; s.tmp_4 = r0; @@ -26442,36 +27808,36 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.state___2032056; + r0 = s.state___56050; { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed27057___U2 + 1); - s.unnamed27057___U2 = (r0); + r0 = (s.unnamed257___U2 + 1); + s.unnamed257___U2 = (r0); { step = 1; continue; } case 4: - s.unnamed27056___U1 = (undefined); + s.unnamed256___U1 = (undefined); r0 = undefined; case 5: return leaveAccessor(s, r0) default: oops() } } } -controller_Button_handlerState__P2022714.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__P2022714.isGetter = true; +controller_Button_handlerState__P46567.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__P46567.isGetter = true; -function controller_Button_handlerState__P2022714_mk(s) { +function controller_Button_handlerState__P46567_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_handlerState__P2022714, depth: s.depth + 1, + parent: s, fn: controller_Button_handlerState__P46567, depth: s.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___2032056: undefined, - unnamed27056___U1: undefined, - unnamed27057___U2: undefined, + state___56050: undefined, + unnamed256___U1: undefined, + unnamed257___U2: undefined, arg0: undefined, } } @@ -26479,7 +27845,7 @@ function controller_Button_handlerState__P2022714_mk(s) { -function controller_ButtonEventHandlerState_constructor__P2020129(s) { +function controller_ButtonEventHandlerState_constructor__P43980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26495,18 +27861,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonEventHandlerState__C2020128_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_ButtonEventHandlerState__C43979_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ButtonEventHandlerState_constructor__P2020129.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} +controller_ButtonEventHandlerState_constructor__P43980.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__P2020129_mk(s) { +function controller_ButtonEventHandlerState_constructor__P43980_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonEventHandlerState_constructor__P2020129, depth: s.depth + 1, + parent: s, fn: controller_ButtonEventHandlerState_constructor__P43980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -26516,7 +27882,7 @@ function controller_ButtonEventHandlerState_constructor__P2020129_mk(s) { -function controller_ButtonHandler_constructor__P2020127(s) { +function controller_ButtonHandler_constructor__P43978(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26533,19 +27899,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonHandler__C2020126_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_ButtonHandler__C43977_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__P2020127.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"]} +controller_ButtonHandler_constructor__P43978.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__P2020127_mk(s) { +function controller_ButtonHandler_constructor__P43978_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonHandler_constructor__P2020127, depth: s.depth + 1, + parent: s, fn: controller_ButtonHandler_constructor__P43978, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -26556,7 +27922,7 @@ function controller_ButtonHandler_constructor__P2020127_mk(s) { -function scene_systemMenu_initScreen__P2023199(s) { +function scene_systemMenu_initScreen__P47052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26566,20 +27932,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___2032068 = undefined; - s.tmp_0 = settings_readNumber__P2020011_mk(s); + s.brightness___56062 = undefined; + s.tmp_0 = settings_readNumber__P43862_mk(s); s.tmp_0.arg0 = "#brightness"; s.callLocIdx = 1183; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___2032068 = (r0); - r0 = (s.brightness___2032068 !== undefined); + s.brightness___56062 = (r0); + r0 = (s.brightness___56062 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P2019908_mk(s); - s.tmp_1.arg0 = globals.screen___2019975; - s.tmp_1.arg1 = s.brightness___2032068; + s.tmp_1 = helpers_setScreenBrightness__P43759_mk(s); + s.tmp_1.arg0 = globals.screen___43826; + s.tmp_1.arg1 = s.brightness___56062; s.callLocIdx = 1184; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; @@ -26589,23 +27955,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P2023199.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} +scene_systemMenu_initScreen__P47052.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function scene_systemMenu_initScreen__P2023199_mk(s) { +function scene_systemMenu_initScreen__P47052_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P2023199, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P47052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___2032068: undefined, + brightness___56062: undefined, } } -function settings_readNumber__P2020011(s) { +function settings_readNumber__P43862(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26615,15 +27981,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___2032079 = undefined; - s.nums___2032086 = undefined; + s.buf___56073 = undefined; + s.nums___56080 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___2032079 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___2032079); + s.buf___56073 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___56073); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -26633,20 +27999,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P2018125_mk(s); - s.tmp_2.arg0 = s.buf___2032079; + s.tmp_2 = msgpack_unpackNumberArray__P41976_mk(s); + s.tmp_2.arg0 = s.buf___56073; s.tmp_2.arg1 = 0; s.callLocIdx = 128; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___2032086 = (r0); - s.tmp_0 = r0 = s.nums___2032086; + s.nums___56080 = (r0); + s.tmp_0 = r0 = s.nums___56080; 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___2032086); + r0 = pxsim_Array__length(s.nums___56080); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -26654,7 +28020,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___2032086, 0); + r0 = pxsim_Array__getAt(s.nums___56080, 0); { step = 7; continue; } case 4: case 5: @@ -26666,18 +28032,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P2020011.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +settings_readNumber__P43862.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_readNumber__P2020011_mk(s) { +function settings_readNumber__P43862_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P2020011, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P43862, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___2032079: undefined, - nums___2032086: undefined, + buf___56073: undefined, + nums___56080: undefined, arg0: undefined, } } @@ -26685,7 +28051,7 @@ function settings_readNumber__P2020011_mk(s) { -function settings_readBuffer__P2020008(s) { +function settings_readBuffer__P43859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26703,12 +28069,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P2020008.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +settings_readBuffer__P43859.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__P2020008_mk(s) { +function settings_readBuffer__P43859_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P2020008, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P43859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -26717,7 +28083,7 @@ function settings_readBuffer__P2020008_mk(s) { -function msgpack_unpackNumberArray__P2018125(s) { +function msgpack_unpackNumberArray__P41976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26727,16 +28093,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___2032099 = undefined; - s.fmt___2032106 = undefined; - s.v___2032115 = undefined; + s.res___56093 = undefined; + s.fmt___56100 = undefined; + s.v___56109 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___2032099 = (r0); + s.res___56093 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -26748,14 +28114,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P2022366_mk(s); + s.tmp_4 = msgpack_tagFormat__P46219_mk(s); r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); s.tmp_4.arg0 = r0; s.callLocIdx = 19; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; - s.fmt___2032106 = (r0); - r0 = (s.fmt___2032106 === null); + s.fmt___56100 = (r0); + r0 = (s.fmt___56100 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -26763,21 +28129,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___2032115 = (r0); - r0 = (-31 <= s.v___2032115); + s.v___56109 = (r0); + r0 = (-31 <= s.v___56109); 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___2032115 <= 127); + r0 = (s.v___56109 <= 127); case 3: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.res___2032099, s.v___2032115); + r0 = pxsim_Array__push(s.res___56093, s.v___56109); { step = 5; continue; } case 4: r0 = null; @@ -26785,13 +28151,13 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___2032099; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___2032106, s.arg1); + s.tmp_0 = r0 = s.res___56093; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___56100, 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__P2018117_mk(s); - s.tmp_2.arg0 = s.fmt___2032106; + s.tmp_2 = pins_sizeOf__P41968_mk(s); + s.tmp_2.arg0 = s.fmt___56100; s.callLocIdx = 20; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; @@ -26812,26 +28178,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___2032099; + r0 = s.res___56093; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P2018125.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +msgpack_unpackNumberArray__P41976.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 msgpack_unpackNumberArray__P2018125_mk(s) { +function msgpack_unpackNumberArray__P41976_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P2018125, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P41976, depth: s.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___2032099: undefined, - fmt___2032106: undefined, - v___2032115: undefined, + res___56093: undefined, + fmt___56100: undefined, + v___56109: undefined, arg0: undefined, arg1: undefined, } } @@ -26840,7 +28206,7 @@ function msgpack_unpackNumberArray__P2018125_mk(s) { -function scene_systemMenu_initVolume__P2023198(s) { +function scene_systemMenu_initVolume__P47051(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26850,19 +28216,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___2032160 = undefined; - s.tmp_0 = settings_readNumber__P2020011_mk(s); + s.vol___56154 = undefined; + s.tmp_0 = settings_readNumber__P43862_mk(s); s.tmp_0.arg0 = "#volume"; s.callLocIdx = 1181; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___2032160 = (r0); - r0 = (s.vol___2032160 !== undefined); + s.vol___56154 = (r0); + r0 = (s.vol___56154 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P2019563_mk(s); - s.tmp_1.arg0 = s.vol___2032160; + s.tmp_1 = music_setVolume__P43414_mk(s); + s.tmp_1.arg0 = s.vol___56154; s.callLocIdx = 1182; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; @@ -26872,23 +28238,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P2023198.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_initVolume__P47051.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} -function scene_systemMenu_initVolume__P2023198_mk(s) { +function scene_systemMenu_initVolume__P47051_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P2023198, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P47051, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___2032160: undefined, + vol___56154: undefined, } } -function game_GameOverConfig_constructor__P2020931(s) { +function game_GameOverConfig_constructor__P44782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26903,8 +28269,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2020916_VT)) failedCast(r0); - s.tmp_0 = game_GameOverConfig_init__P2020932_mk(s); + if (!checkSubtype(r0, game_GameOverConfig__C44767_VT)) failedCast(r0); + s.tmp_0 = game_GameOverConfig_init__P44783_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1004; s.pc = 1; return s.tmp_0; case 1: @@ -26913,12 +28279,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_GameOverConfig_constructor__P2020931.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} +game_GameOverConfig_constructor__P44782.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} -function game_GameOverConfig_constructor__P2020931_mk(s) { +function game_GameOverConfig_constructor__P44782_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_constructor__P2020931, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_constructor__P44782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26928,7 +28294,7 @@ function game_GameOverConfig_constructor__P2020931_mk(s) { -function game_GameOverConfig_init__P2020932(s) { +function game_GameOverConfig_init__P44783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26943,21 +28309,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C2020916_VT)) failedCast(r0); + if (!checkSubtype(r0, game_GameOverConfig__C44767_VT)) failedCast(r0); r0 = (s.arg0).fields["scoringType"] = (0); - r0 = (s.arg0).fields["winEffect"] = (globals.confetti___2021217); - r0 = (s.arg0).fields["loseEffect"] = (globals.melt___2021239); + r0 = (s.arg0).fields["winEffect"] = (globals.confetti___45068); + r0 = (s.arg0).fields["loseEffect"] = (globals.melt___45090); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = music_melodyPlayable__P2019866_mk(s); - s.tmp_2.arg0 = globals.powerUp___2019593; + s.tmp_2 = music_melodyPlayable__P43717_mk(s); + s.tmp_2.arg0 = globals.powerUp___43444; s.callLocIdx = 1005; 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__P2019866_mk(s); - s.tmp_2.arg0 = globals.wawawawaa___2019590; + s.tmp_2 = music_melodyPlayable__P43717_mk(s); + s.tmp_2.arg0 = globals.wawawawaa___43441; s.callLocIdx = 1006; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; @@ -26976,12 +28342,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_GameOverConfig_init__P2020932.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} +game_GameOverConfig_init__P44783.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} -function game_GameOverConfig_init__P2020932_mk(s) { +function game_GameOverConfig_init__P44783_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_init__P2020932, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_init__P44783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26993,7 +28359,7 @@ function game_GameOverConfig_init__P2020932_mk(s) { -function melt_inline__P2032223(s) { +function melt_inline__P56217(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27003,11 +28369,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___2032226 = undefined; - s.j___2032234 = undefined; - s.x___2032239 = undefined; - s.y___2032245 = undefined; - s.c___2032251 = undefined; + s.rounds___56220 = undefined; + s.j___56228 = undefined; + s.x___56233 = undefined; + s.y___56239 = undefined; + s.c___56245 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27020,14 +28386,14 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.rounds___2032226 = (r0); - s.j___2032234 = (0); + s.rounds___56220 = (r0); + s.j___56228 = (0); case 1: - r0 = (s.j___2032234 < s.rounds___2032226); + r0 = (s.j___56228 < s.rounds___56220); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P2021006_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -27037,8 +28403,8 @@ switch (step) { s.callLocIdx = 58; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___2032239 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2021006_mk(s); + s.x___56233 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -27048,42 +28414,42 @@ switch (step) { s.callLocIdx = 59; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___2032245 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___2032239, s.y___2032245); - s.c___2032251 = (r0); + s.y___56239 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___56233, s.y___56239); + s.c___56245 = (r0); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___2032239; - r0 = (s.y___2032245 + 1); + s.tmp_1 = r0 = s.x___56233; + r0 = (s.y___56239 + 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___2032251); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___56245); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___2032239; - r0 = (s.y___2032245 + 2); + s.tmp_1 = r0 = s.x___56233; + r0 = (s.y___56239 + 2); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___2032251); - r0 = (s.j___2032234 + 1); - s.j___2032234 = (r0); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___56245); + r0 = (s.j___56228 + 1); + s.j___56228 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -melt_inline__P2032223.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +melt_inline__P56217.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 melt_inline__P2032223_mk(s) { +function melt_inline__P56217_mk(s) { checkStack(s.depth); return { - parent: s, fn: melt_inline__P2032223, depth: s.depth + 1, + parent: s, fn: melt_inline__P56217, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___2032226: undefined, - j___2032234: undefined, - x___2032239: undefined, - y___2032245: undefined, - c___2032251: undefined, + rounds___56220: undefined, + j___56228: undefined, + x___56233: undefined, + y___56239: undefined, + c___56245: undefined, arg0: undefined, arg1: undefined, } } @@ -27092,7 +28458,7 @@ function melt_inline__P2032223_mk(s) { -function confetti_inline__P2032277(s) { +function confetti_inline__P56271(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27102,13 +28468,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___2032280 = undefined; + s.factory___56274 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C2021161_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C45012_VT); s.tmp_0 = r0; s.tmp_2 = if_width_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -27143,27 +28509,27 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P2021162_mk(s); + s.tmp_5 = particles_ConfettiFactory_constructor__P45013_mk(s); s.tmp_5.arg0 = s.tmp_0; s.tmp_5.arg1 = s.tmp_4; s.tmp_5.arg2 = 16; s.callLocIdx = 48; s.pc = 5; return s.tmp_5; case 5: r0 = s.retval; - s.factory___2032280 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P2021138_mk(s); - s.tmp_0.arg0 = s.factory___2032280; + s.factory___56274 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P44989_mk(s); + s.tmp_0.arg0 = s.factory___56274; s.tmp_0.arg1 = 30; s.callLocIdx = 49; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2021094_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C44945_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P2021099_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P44950_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___2032280; + s.tmp_1.arg3 = s.factory___56274; s.callLocIdx = 50; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; @@ -27171,12 +28537,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -confetti_inline__P2032277.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +confetti_inline__P56271.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 confetti_inline__P2032277_mk(s) { +function confetti_inline__P56271_mk(s) { checkStack(s.depth); return { - parent: s, fn: confetti_inline__P2032277, depth: s.depth + 1, + parent: s, fn: confetti_inline__P56271, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27184,7 +28550,7 @@ function confetti_inline__P2032277_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___2032280: undefined, + factory___56274: undefined, arg0: undefined, arg1: undefined, } } @@ -27193,7 +28559,7 @@ function confetti_inline__P2032277_mk(s) { -function particles_ParticleSource_constructor__P2021099(s) { +function particles_ParticleSource_constructor__P44950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27203,8 +28569,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___2032301 = undefined; - s.removedSource___2032310 = undefined; + s.sources___56295 = undefined; + s.removedSource___56304 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27213,62 +28579,62 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P2020039_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P43890_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 1203; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = particles_init__P2023275_mk(s); + s.tmp_0 = particles_init__P47128_mk(s); s.callLocIdx = 1204; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_particleSources__P2023281_mk(s); + s.tmp_0 = particles_particleSources__P47134_mk(s); s.callLocIdx = 1205; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.sources___2032301 = (r0); - r0 = pxsim_Array__length(s.sources___2032301); + s.sources___56295 = (r0); + r0 = pxsim_Array__length(s.sources___56295); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___2023267); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___47120); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P2023278_mk(s); - s.tmp_2.arg0 = s.sources___2032301; + s.tmp_2 = particles_sortSources__P47131_mk(s); + s.tmp_2.arg0 = s.sources___56295; s.callLocIdx = 1206; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___2032301, 0); - s.removedSource___2032310 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P2021109_mk(s); - s.tmp_0.arg0 = s.removedSource___2032310; + r0 = pxsim_Array_.removeAt(s.sources___56295, 0); + s.removedSource___56304 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P44960_mk(s); + s.tmp_0.arg0 = s.removedSource___56304; s.callLocIdx = 1208; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P2021108_mk(s); - s.tmp_0.arg0 = s.removedSource___2032310; + s.tmp_0 = particles_ParticleSource_destroy__P44959_mk(s); + s.tmp_0.arg0 = s.removedSource___56304; s.callLocIdx = 1209; 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__P2021111_mk(s); + s.tmp_0 = particles_ParticleSource_setRate__P44962_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.callLocIdx = 1210; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P2021103_mk(s); + s.tmp_0 = particles_ParticleSource_setAcceleration__P44954_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; s.callLocIdx = 1211; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P2021110_mk(s); + s.tmp_0 = particles_ParticleSource_setAnchor__P44961_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1212; s.pc = 13; return s.tmp_0; @@ -27283,18 +28649,18 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = globals.defaultFactory___2021114; + r0 = globals.defaultFactory___44965; case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P2021113_mk(s); + s.tmp_2 = particles_ParticleSource_setFactory__P44964_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.tmp_1; s.callLocIdx = 1213; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___2032301, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P2021107_mk(s); + r0 = pxsim_Array__push(s.sources___56295, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P44958_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1214; s.pc = 15; return s.tmp_0; @@ -27304,18 +28670,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P2021099.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"]} +particles_ParticleSource_constructor__P44950.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 particles_ParticleSource_constructor__P2021099_mk(s) { +function particles_ParticleSource_constructor__P44950_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P2021099, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P44950, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___2032301: undefined, - removedSource___2032310: undefined, + sources___56295: undefined, + removedSource___56304: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27326,7 +28692,7 @@ function particles_ParticleSource_constructor__P2021099_mk(s) { -function particles_sortSources__P2023278(s) { +function particles_sortSources__P47131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27340,9 +28706,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P2018047_mk(s); + s.tmp_0 = helpers_arraySort__P41898_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = particles_sortSources_inline__P2032508; + s.tmp_0.arg1 = particles_sortSources_inline__P56502; s.callLocIdx = 1252; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -27350,12 +28716,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_sortSources__P2023278.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +particles_sortSources__P47131.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function particles_sortSources__P2023278_mk(s) { +function particles_sortSources__P47131_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P2023278, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P47131, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27365,7 +28731,7 @@ function particles_sortSources__P2023278_mk(s) { -function particles_sortSources_inline__P2032508(s) { +function particles_sortSources_inline__P56502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27403,12 +28769,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_sortSources_inline__P2032508.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +particles_sortSources_inline__P56502.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 particles_sortSources_inline__P2032508_mk(s) { +function particles_sortSources_inline__P56502_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources_inline__P2032508, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P56502, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27424,7 +28790,7 @@ function particles_sortSources_inline__P2032508_mk(s) { -function particles_init__P2023275(s) { +function particles_init__P47128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27434,33 +28800,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2032547 = undefined; - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.scene___56541 = undefined; + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 1242; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.scene___2032547 = (r0); - r0 = s.scene___2032547.fields["particleSources"]; + s.scene___56541 = (r0); + r0 = s.scene___56541.fields["particleSources"]; 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___2032547; + s.tmp_1 = r0 = s.scene___56541; r0 = pxsim_Array__mk(); s.tmp_2 = r0; r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); r0 = pxsim.control.millis(); - globals.lastUpdate___2023270 = (r0); - s.tmp_0 = game_onUpdate__P2020966_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P2023276; + globals.lastUpdate___47123 = (r0); + s.tmp_0 = game_onUpdate__P44817_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P47129; s.callLocIdx = 1243; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P2020967_mk(s); + s.tmp_0 = game_onUpdateInterval__P44818_mk(s); s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P2023277; + s.tmp_0.arg1 = particles_pruneParticles__P47130; s.callLocIdx = 1244; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; @@ -27469,24 +28835,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_init__P2023275.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +particles_init__P47128.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function particles_init__P2023275_mk(s) { +function particles_init__P47128_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P2023275, depth: s.depth + 1, + parent: s, fn: particles_init__P47128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___2032547: undefined, + scene___56541: undefined, } } -function particles_updateParticles__P2023276(s) { +function particles_updateParticles__P47129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27496,16 +28862,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___2032589 = undefined; - s.time___2032596 = undefined; - s.dt___2032599 = undefined; - s.i___2032605 = undefined; - s.tmp_0 = particles_particleSources__P2023281_mk(s); + s.sources___56583 = undefined; + s.time___56590 = undefined; + s.dt___56593 = undefined; + s.i___56599 = undefined; + s.tmp_0 = particles_particleSources__P47134_mk(s); s.callLocIdx = 1245; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sources___2032589 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___2032589); + s.sources___56583 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___56583); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -27514,34 +28880,34 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P2023278_mk(s); - s.tmp_2.arg0 = s.sources___2032589; + s.tmp_2 = particles_sortSources__P47131_mk(s); + s.tmp_2.arg0 = s.sources___56583; s.callLocIdx = 1246; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___2032596 = (r0); - r0 = (s.time___2032596 - globals.lastUpdate___2023270); - s.dt___2032599 = (r0); - globals.lastUpdate___2023270 = (s.time___2032596); - s.i___2032605 = (0); + s.time___56590 = (r0); + r0 = (s.time___56590 - globals.lastUpdate___47123); + s.dt___56593 = (r0); + globals.lastUpdate___47123 = (s.time___56590); + s.i___56599 = (0); case 3: - s.tmp_1 = r0 = s.i___2032605; - r0 = pxsim_Array__length(s.sources___2032589); + s.tmp_1 = r0 = s.i___56599; + r0 = pxsim_Array__length(s.sources___56583); 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__P2021101_mk(s); - r0 = pxsim_Array__getAt(s.sources___2032589, s.i___2032605); + s.tmp_3 = particles_ParticleSource__update__P44952_mk(s); + r0 = pxsim_Array__getAt(s.sources___56583, s.i___56599); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___2032599; + s.tmp_3.arg1 = s.dt___56593; s.callLocIdx = 1247; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___2032605 + 1); - s.i___2032605 = (r0); + r0 = (s.i___56599 + 1); + s.i___56599 = (r0); { step = 3; continue; } case 4: case 5: @@ -27549,28 +28915,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_updateParticles__P2023276.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_updateParticles__P47129.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_updateParticles__P2023276_mk(s) { +function particles_updateParticles__P47129_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P2023276, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P47129, depth: s.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___2032589: undefined, - time___2032596: undefined, - dt___2032599: undefined, - i___2032605: undefined, + sources___56583: undefined, + time___56590: undefined, + dt___56593: undefined, + i___56599: undefined, } } -function particles_ParticleSource__update__P2021101(s) { +function particles_ParticleSource__update__P44952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27580,16 +28946,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2032668 = undefined; - s.current___2032687 = undefined; - s.fixedDt___2032695 = undefined; + s.p___56662 = undefined; + s.current___56681 = undefined; + s.fixedDt___56689 = 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__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; @@ -27615,7 +28981,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P2021108_mk(s); + s.tmp_0 = particles_ParticleSource_destroy__P44959_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1218; s.pc = 28; return s.tmp_0; case 28: @@ -27688,7 +29054,7 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P2021106_mk(s); + s.tmp_2 = particles_ParticleSource_enabled__P44957_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 1221; s.pc = 31; return s.tmp_2; case 31: @@ -27706,18 +29072,18 @@ switch (step) { 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__C2021130_v0_2_mk(s); + s.tmp_0 = particles_ParticleFactory__C44981_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__C2021130_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C44981_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___2032668 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___2032668); + s.p___56662 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___56662); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -27728,8 +29094,8 @@ switch (step) { case 15: r0 = s.arg0.fields["head"]; s.tmp_2 = r0; - r0 = (s.p___2032668).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___2032668); + r0 = (s.p___56662).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___56662); { step = 11; continue; } case 16: r0 = s.arg0.fields["head"]; @@ -27744,7 +29110,7 @@ switch (step) { case 17: case 18: r0 = s.arg0.fields["head"]; - s.current___2032687 = (r0); + s.current___56681 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["_dt"]; s.tmp_2 = r0; @@ -27756,36 +29122,36 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.fixedDt___2032695 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___2032695); + s.fixedDt___56689 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___56689); if (!r0) { step = 23; continue; } case 19: - r0 = s.current___2032687.fields["lifespan"]; + r0 = s.current___56681.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___2032687; + s.tmp_2 = r0 = s.current___56681; 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__C2021094_v4_3_mk(s); + s.tmp_0 = particles_ParticleSource__C44945_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___2032687; - s.tmp_0.arg2 = s.fixedDt___2032695; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C2021094_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.current___56681; + s.tmp_0.arg2 = s.fixedDt___56689; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C44945_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___2032687.fields["next"]; + r0 = s.current___56681.fields["next"]; s.tmp_0 = r0; - s.current___2032687 = (r0); + s.current___56681 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } { step = 19; continue; } @@ -27794,15 +29160,15 @@ switch (step) { { step = 26; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___2032687; + s.tmp_0 = r0 = s.current___56681; 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___2032687.fields["next"]; + r0 = s.current___56681.fields["next"]; s.tmp_0 = r0; - s.current___2032687 = (r0); + s.current___56681 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } { step = 24; continue; } @@ -27813,12 +29179,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P2021101.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +particles_ParticleSource__update__P44952.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 particles_ParticleSource__update__P2021101_mk(s) { +function particles_ParticleSource__update__P44952_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P2021101, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P44952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27828,9 +29194,9 @@ function particles_ParticleSource__update__P2021101_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___2032668: undefined, - current___2032687: undefined, - fixedDt___2032695: undefined, + p___56662: undefined, + current___56681: undefined, + fixedDt___56689: undefined, arg0: undefined, arg1: undefined, } } @@ -27839,7 +29205,7 @@ function particles_ParticleSource__update__P2021101_mk(s) { -function particles_ParticleSource_updateParticle__P2023272(s) { +function particles_ParticleSource_updateParticle__P47125(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27856,7 +29222,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); r0 = (s.arg2 >> 10); s.arg2 = (r0); s.tmp_0 = r0 = s.arg1; @@ -27911,12 +29277,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P2023272.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"]} +particles_ParticleSource_updateParticle__P47125.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 particles_ParticleSource_updateParticle__P2023272_mk(s) { +function particles_ParticleSource_updateParticle__P47125_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P2023272, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P47125, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27933,7 +29299,7 @@ function particles_ParticleSource_updateParticle__P2023272_mk(s) { -function Fx_rightShift__P2018113(s) { +function Fx_rightShift__P41964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27952,12 +29318,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_rightShift__P2018113.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +Fx_rightShift__P41964.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__P2018113_mk(s) { +function Fx_rightShift__P41964_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P2018113, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P41964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27967,7 +29333,7 @@ function Fx_rightShift__P2018113_mk(s) { -function particles_ParticleFactory_createParticle__P2021132(s) { +function particles_ParticleFactory_createParticle__P44983(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27977,17 +29343,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2032778 = undefined; + s.p___56772 = 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__C2021130_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C2021075_VT); - s.p___2032778 = (r0); - s.tmp_0 = r0 = s.p___2032778; + if (!checkSubtype(r0, particles_ParticleFactory__C44981_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C44926_VT); + s.p___56772 = (r0); + s.tmp_0 = r0 = s.p___56772; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -28006,7 +29372,7 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___2032778; + s.tmp_0 = r0 = s.p___56772; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -28025,26 +29391,26 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___2032778).fields["vx"] = (0); - r0 = (s.p___2032778).fields["vy"] = (0); - r0 = (s.p___2032778).fields["lifespan"] = (500); - r0 = s.p___2032778; + r0 = (s.p___56772).fields["vx"] = (0); + r0 = (s.p___56772).fields["vy"] = (0); + r0 = (s.p___56772).fields["lifespan"] = (500); + r0 = s.p___56772; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P2021132.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_ParticleFactory_createParticle__P44983.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 particles_ParticleFactory_createParticle__P2021132_mk(s) { +function particles_ParticleFactory_createParticle__P44983_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P2021132, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P44983, depth: s.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___2032778: undefined, + p___56772: undefined, arg0: undefined, arg1: undefined, } } @@ -28053,7 +29419,7 @@ function particles_ParticleFactory_createParticle__P2021132_mk(s) { -function game_onUpdateInterval__P2020967(s) { +function game_onUpdateInterval__P44818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28063,7 +29429,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___2032569 = undefined; + s.timer___56563 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28088,15 +29454,15 @@ switch (step) { case 3: case 4: r0 = pxsim_pxtrt.mklocRef(); - s.timer___2032569 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___2032569, 0); - r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P2032573); + s.timer___56563 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___56563, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P56567); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___2032569); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___56563); 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__P2018345_mk(s); - s.tmp_2 = game_eventContext__P2020945_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P42196_mk(s); + s.tmp_2 = game_eventContext__P44796_mk(s); s.callLocIdx = 1029; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; @@ -28111,17 +29477,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P2020967.info = {"start":813,"length":401,"line":26,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +game_onUpdateInterval__P44818.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 game_onUpdateInterval__P2020967_mk(s) { +function game_onUpdateInterval__P44818_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P2020967, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P44818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - timer___2032569: undefined, + timer___56563: undefined, arg0: undefined, arg1: undefined, } } @@ -28130,7 +29496,7 @@ function game_onUpdateInterval__P2020967_mk(s) { -function game_onUpdateInterval_inline__P2032573(s) { +function game_onUpdateInterval_inline__P56567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28140,22 +29506,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___2032574 = undefined; - s.tmp_1 = game_currentScene__P2020942_mk(s); + s.time___56568 = undefined; + s.tmp_1 = game_currentScene__P44793_mk(s); s.callLocIdx = 1030; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_millis"]; - s.time___2032574 = (r0); + s.time___56568 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___2032574); + r0 = (s.tmp_1 <= s.time___56568); 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___2032574 + s.caps[1]); + r0 = (s.time___56568 + s.caps[1]); s.tmp_3 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); s.tmp_0 = lambda_1_mk(s); @@ -28170,25 +29536,25 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdateInterval_inline__P2032573.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} +game_onUpdateInterval_inline__P56567.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} -function game_onUpdateInterval_inline__P2032573_mk(s) { +function game_onUpdateInterval_inline__P56567_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval_inline__P2032573, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval_inline__P56567, depth: s.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___2032574: undefined, + time___56568: undefined, } } -function scene_Scene_millis__P2020812(s) { +function scene_Scene_millis__P44663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28203,17 +29569,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2020786_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C44637_VT)) failedCast(r0); r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -scene_Scene_millis__P2020812.info = {"start":7147,"length":61,"line":196,"column":8,"endLine":198,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +scene_Scene_millis__P44663.info = {"start":7147,"length":61,"line":196,"column":8,"endLine":198,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function scene_Scene_millis__P2020812_mk(s) { +function scene_Scene_millis__P44663_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P2020812, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P44663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28222,7 +29588,7 @@ function scene_Scene_millis__P2020812_mk(s) { -function MAX_SOURCES_inline__P2032523(s) { +function MAX_SOURCES_inline__P56517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28232,13 +29598,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___2032524 = undefined; - s.tmp_0 = control_ramSize__P2018288_mk(s); + s.sz___56518 = undefined; + s.tmp_0 = control_ramSize__P42139_mk(s); s.callLocIdx = 42; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___2032524 = (r0); - r0 = (s.sz___2032524 <= 102400); + s.sz___56518 = (r0); + r0 = (s.sz___56518 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -28246,7 +29612,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___2032524 <= 204800); + r0 = (s.sz___56518 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -28263,23 +29629,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -MAX_SOURCES_inline__P2032523.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +MAX_SOURCES_inline__P56517.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__P2032523_mk(s) { +function MAX_SOURCES_inline__P56517_mk(s) { checkStack(s.depth); return { - parent: s, fn: MAX_SOURCES_inline__P2032523, depth: s.depth + 1, + parent: s, fn: MAX_SOURCES_inline__P56517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___2032524: undefined, + sz___56518: undefined, } } -function control_ramSize__P2018288(s) { +function control_ramSize__P42139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28304,12 +29670,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P2018288.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P42139.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} -function control_ramSize__P2018288_mk(s) { +function control_ramSize__P42139_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P2018288, depth: s.depth + 1, + parent: s, fn: control_ramSize__P42139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28319,7 +29685,7 @@ function control_ramSize__P2018288_mk(s) { -function control__ramSize__P2022393(s) { +function control__ramSize__P46246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28333,12 +29699,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P2022393.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P46246.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__P2022393_mk(s) { +function control__ramSize__P46246_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P2022393, depth: s.depth + 1, + parent: s, fn: control__ramSize__P46246, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -28346,7 +29712,7 @@ function control__ramSize__P2022393_mk(s) { -function particles_SprayFactory_constructor__P2021135(s) { +function particles_SprayFactory_constructor__P44986(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28364,19 +29730,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C2021134_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C44985_VT)) failedCast(r0); r0 = undefined; - s.tmp_0 = particles_initTrig__P2023296_mk(s); + s.tmp_0 = particles_initTrig__P47149_mk(s); s.callLocIdx = 1279; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P2021138_mk(s); + s.tmp_0 = particles_SprayFactory_setSpeed__P44989_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1280; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P2021139_mk(s); + s.tmp_0 = particles_SprayFactory_setDirection__P44990_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.tmp_0.arg2 = s.arg3; @@ -28387,12 +29753,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P2021135.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"]} +particles_SprayFactory_constructor__P44986.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__P2021135_mk(s) { +function particles_SprayFactory_constructor__P44986_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P2021135, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P44986, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28405,7 +29771,7 @@ function particles_SprayFactory_constructor__P2021135_mk(s) { -function particles_initTrig__P2023296(s) { +function particles_initTrig__P47149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28415,36 +29781,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___2023282); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___47135); 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__P2021128_mk(s); + s.tmp_2 = particles_cacheSin__P44979_mk(s); s.tmp_2.arg0 = 100; s.callLocIdx = 1267; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - globals.cachedSin___2023282 = (r0); - s.tmp_0 = particles_cacheCos__P2021129_mk(s); + globals.cachedSin___47135 = (r0); + s.tmp_0 = particles_cacheCos__P44980_mk(s); s.tmp_0.arg0 = 100; s.callLocIdx = 1268; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - globals.cachedCos___2023283 = (r0); + globals.cachedCos___47136 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_initTrig__P2023296.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +particles_initTrig__P47149.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function particles_initTrig__P2023296_mk(s) { +function particles_initTrig__P47149_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P2023296, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P47149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28455,7 +29821,7 @@ function particles_initTrig__P2023296_mk(s) { -function particles_cacheCos__P2021129(s) { +function particles_cacheCos__P44980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28465,25 +29831,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___2032404 = undefined; - s.anglePerSlice___2032406 = undefined; - s.i___2032412 = undefined; + s.cos___56398 = undefined; + s.anglePerSlice___56400 = undefined; + s.i___56406 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.cos___2032404 = (r0); + s.cos___56398 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___2032406 = (r0); - s.i___2032412 = (0); + s.anglePerSlice___56400 = (r0); + s.i___56406 = (0); case 1: - r0 = (s.i___2032412 < s.arg0); + r0 = (s.i___56406 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___2032404; - r0 = (s.i___2032412 * s.anglePerSlice___2032406); + s.tmp_1 = r0 = s.cos___56398; + r0 = (s.i___56406 * s.anglePerSlice___56400); s.tmp_4 = r0; r0 = pxsim.Math_.cos(s.tmp_4); s.tmp_3 = r0; @@ -28492,20 +29858,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___2032412 + 1); - s.i___2032412 = (r0); + r0 = (s.i___56406 + 1); + s.i___56406 = (r0); { step = 1; continue; } case 2: - r0 = s.cos___2032404; + r0 = s.cos___56398; return leave(s, r0) default: oops() } } } -particles_cacheCos__P2021129.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_cacheCos__P44980.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function particles_cacheCos__P2021129_mk(s) { +function particles_cacheCos__P44980_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P2021129, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P44980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28513,9 +29879,9 @@ function particles_cacheCos__P2021129_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - cos___2032404: undefined, - anglePerSlice___2032406: undefined, - i___2032412: undefined, + cos___56398: undefined, + anglePerSlice___56400: undefined, + i___56406: undefined, arg0: undefined, } } @@ -28523,7 +29889,7 @@ function particles_cacheCos__P2021129_mk(s) { -function particles_cacheSin__P2021128(s) { +function particles_cacheSin__P44979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28533,25 +29899,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___2032430 = undefined; - s.anglePerSlice___2032432 = undefined; - s.i___2032438 = undefined; + s.sin___56424 = undefined; + s.anglePerSlice___56426 = undefined; + s.i___56432 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.sin___2032430 = (r0); + s.sin___56424 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___2032432 = (r0); - s.i___2032438 = (0); + s.anglePerSlice___56426 = (r0); + s.i___56432 = (0); case 1: - r0 = (s.i___2032438 < s.arg0); + r0 = (s.i___56432 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___2032430; - r0 = (s.i___2032438 * s.anglePerSlice___2032432); + s.tmp_1 = r0 = s.sin___56424; + r0 = (s.i___56432 * s.anglePerSlice___56426); s.tmp_4 = r0; r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; @@ -28560,20 +29926,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___2032438 + 1); - s.i___2032438 = (r0); + r0 = (s.i___56432 + 1); + s.i___56432 = (r0); { step = 1; continue; } case 2: - r0 = s.sin___2032430; + r0 = s.sin___56424; return leave(s, r0) default: oops() } } } -particles_cacheSin__P2021128.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +particles_cacheSin__P44979.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function particles_cacheSin__P2021128_mk(s) { +function particles_cacheSin__P44979_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P2021128, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P44979, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28581,9 +29947,9 @@ function particles_cacheSin__P2021128_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - sin___2032430: undefined, - anglePerSlice___2032432: undefined, - i___2032438: undefined, + sin___56424: undefined, + anglePerSlice___56426: undefined, + i___56432: undefined, arg0: undefined, } } @@ -28591,7 +29957,7 @@ function particles_cacheSin__P2021128_mk(s) { -function particles_SprayFactory_setDirection__P2021139(s) { +function particles_SprayFactory_setDirection__P44990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28608,9 +29974,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C2021134_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C44985_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P2023301_mk(s); + s.tmp_4 = particles_toRadians__P47154_mk(s); s.tmp_5 = r0 = s.arg1; r0 = (s.arg2 >> 1); s.tmp_6 = r0; @@ -28620,19 +29986,19 @@ switch (step) { case 1: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___2023295); + r0 = (s.tmp_3 / globals.angleSlice___47148); 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__P2023301_mk(s); + s.tmp_4 = particles_toRadians__P47154_mk(s); s.tmp_4.arg0 = s.arg2; s.callLocIdx = 1290; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___2023295); + r0 = (s.tmp_3 / globals.angleSlice___47148); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; @@ -28641,12 +30007,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P2021139.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"]} +particles_SprayFactory_setDirection__P44990.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 particles_SprayFactory_setDirection__P2021139_mk(s) { +function particles_SprayFactory_setDirection__P44990_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P2021139, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P44990, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28664,7 +30030,7 @@ function particles_SprayFactory_setDirection__P2021139_mk(s) { -function particles_toRadians__P2023301(s) { +function particles_toRadians__P47154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28682,7 +30048,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P2018070_mk(s); + s.tmp_3 = Math_abs__P41921_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 1271; s.pc = 3; return s.tmp_3; case 3: @@ -28701,12 +30067,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_toRadians__P2023301.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +particles_toRadians__P47154.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function particles_toRadians__P2023301_mk(s) { +function particles_toRadians__P47154_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P2023301, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P47154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28719,7 +30085,7 @@ function particles_toRadians__P2023301_mk(s) { -function particles_ParticleFactory_constructor__P2021131(s) { +function particles_ParticleFactory_constructor__P44982(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28734,17 +30100,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C2021130_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleFactory__C44981_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P2021131.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleFactory_constructor__P44982.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function particles_ParticleFactory_constructor__P2021131_mk(s) { +function particles_ParticleFactory_constructor__P44982_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P2021131, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P44982, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28753,7 +30119,7 @@ function particles_ParticleFactory_constructor__P2021131_mk(s) { -function particles_ParticleSource_setFactory__P2021113(s) { +function particles_ParticleSource_setFactory__P44964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28769,7 +30135,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_factory"] = (s.arg1); @@ -28779,12 +30145,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P2021113.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_ParticleSource_setFactory__P44964.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 particles_ParticleSource_setFactory__P2021113_mk(s) { +function particles_ParticleSource_setFactory__P44964_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P2021113, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P44964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28794,7 +30160,7 @@ function particles_ParticleSource_setFactory__P2021113_mk(s) { -function particles_ParticleSource_setRate__P2021111(s) { +function particles_ParticleSource_setRate__P44962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28810,7 +30176,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (1000 / s.arg1); s.tmp_2 = r0; @@ -28822,12 +30188,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P2021111.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_ParticleSource_setRate__P44962.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 particles_ParticleSource_setRate__P2021111_mk(s) { +function particles_ParticleSource_setRate__P44962_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P2021111, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P44962, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28840,7 +30206,7 @@ function particles_ParticleSource_setRate__P2021111_mk(s) { -function particles_ParticleSource_setAnchor__P2021110(s) { +function particles_ParticleSource_setAnchor__P44961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28856,18 +30222,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P2021110.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_setAnchor__P44961.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 particles_ParticleSource_setAnchor__P2021110_mk(s) { +function particles_ParticleSource_setAnchor__P44961_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P2021110, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P44961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28877,7 +30243,7 @@ function particles_ParticleSource_setAnchor__P2021110_mk(s) { -function particles_ParticleSource_destroy__P2021108(s) { +function particles_ParticleSource_destroy__P44959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28892,8 +30258,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P2021107_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P44958_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; s.callLocIdx = 1228; s.pc = 1; return s.tmp_0; @@ -28905,7 +30271,7 @@ switch (step) { r0 = (s.tmp_2 | 2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P2021102_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P44953_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1229; s.pc = 2; return s.tmp_0; case 2: @@ -28914,12 +30280,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P2021108.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +particles_ParticleSource_destroy__P44959.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function particles_ParticleSource_destroy__P2021108_mk(s) { +function particles_ParticleSource_destroy__P44959_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P2021108, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P44959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28931,7 +30297,7 @@ function particles_ParticleSource_destroy__P2021108_mk(s) { -function particles_ParticleSource_setAcceleration__P2021103(s) { +function particles_ParticleSource_setAcceleration__P44954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28948,7 +30314,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -28965,12 +30331,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P2021103.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"]} +particles_ParticleSource_setAcceleration__P44954.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 particles_ParticleSource_setAcceleration__P2021103_mk(s) { +function particles_ParticleSource_setAcceleration__P44954_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P2021103, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P44954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28984,7 +30350,7 @@ function particles_ParticleSource_setAcceleration__P2021103_mk(s) { -function helpers_arrayShift__P2018044(s) { +function helpers_arrayShift__P41895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29002,12 +30368,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arrayShift__P2018044.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +helpers_arrayShift__P41895.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__P2018044_mk(s) { +function helpers_arrayShift__P41895_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P2018044, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P41895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29016,7 +30382,7 @@ function helpers_arrayShift__P2018044_mk(s) { -function particles_SprayFactory_setSpeed__P2021138(s) { +function particles_SprayFactory_setSpeed__P44989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29032,7 +30398,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C2021134_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C44985_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -29043,12 +30409,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P2021138.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_SprayFactory_setSpeed__P44989.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 particles_SprayFactory_setSpeed__P2021138_mk(s) { +function particles_SprayFactory_setSpeed__P44989_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P2021138, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P44989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29061,7 +30427,7 @@ function particles_SprayFactory_setSpeed__P2021138_mk(s) { -function particles_ConfettiFactory_constructor__P2021162(s) { +function particles_ConfettiFactory_constructor__P45013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29071,8 +30437,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___2032810 = undefined; - s.i___2032826 = undefined; + s.confetti___56804 = undefined; + s.i___56820 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29080,52 +30446,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C2021161_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ConfettiFactory__C45012_VT)) failedCast(r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex2032813); + r0 = pxsim.image.ofBuffer(_hex56807); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex2032815); + r0 = pxsim.image.ofBuffer(_hex56809); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex2032817); + r0 = pxsim.image.ofBuffer(_hex56811); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex2032819); + r0 = pxsim.image.ofBuffer(_hex56813); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex2032821); + r0 = pxsim.image.ofBuffer(_hex56815); s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___2032810 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P2021157_mk(s); + s.confetti___56804 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P45008_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___2032810, 0); + r0 = pxsim_Array__getAt(s.confetti___56804, 0); s.tmp_0.arg3 = r0; s.callLocIdx = 1313; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.i___2032826 = (1); + s.i___56820 = (1); case 1: - s.tmp_1 = r0 = s.i___2032826; - r0 = pxsim_Array__length(s.confetti___2032810); + s.tmp_1 = r0 = s.i___56820; + r0 = pxsim_Array__length(s.confetti___56804); 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 = particles_ShapeFactory_addShape__P2021158_mk(s); + s.tmp_3 = particles_ShapeFactory_addShape__P45009_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___2032810, s.i___2032826); + r0 = pxsim_Array__getAt(s.confetti___56804, s.i___56820); s.tmp_3.arg1 = r0; s.callLocIdx = 1314; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - r0 = (s.i___2032826 + 1); - s.i___2032826 = (r0); + r0 = (s.i___56820 + 1); + s.i___56820 = (r0); { step = 1; continue; } case 2: r0 = (s.arg0).fields["minLifespan"] = (1000); @@ -29134,12 +30500,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P2021162.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"]} +particles_ConfettiFactory_constructor__P45013.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 particles_ConfettiFactory_constructor__P2021162_mk(s) { +function particles_ConfettiFactory_constructor__P45013_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P2021162, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P45013, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29147,23 +30513,23 @@ function particles_ConfettiFactory_constructor__P2021162_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___2032810: undefined, - i___2032826: undefined, + confetti___56804: undefined, + i___56820: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex2032813 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex2032815 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex2032817 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex2032819 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex2032821 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") +const _hex56807 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex56809 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex56811 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex56813 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex56815 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P2021158(s) { +function particles_ShapeFactory_addShape__P45009(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29179,7 +30545,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C2021156_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C45007_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["sources"]; @@ -29191,12 +30557,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P2021158.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +particles_ShapeFactory_addShape__P45009.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 particles_ShapeFactory_addShape__P2021158_mk(s) { +function particles_ShapeFactory_addShape__P45009_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P2021158, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P45009, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29207,7 +30573,7 @@ function particles_ShapeFactory_addShape__P2021158_mk(s) { -function particles_ShapeFactory_constructor__P2021157(s) { +function particles_ShapeFactory_constructor__P45008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29225,8 +30591,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C2021156_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P2021145_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C45007_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P44996_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -29263,12 +30629,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P2021157.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"]} +particles_ShapeFactory_constructor__P45008.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 particles_ShapeFactory_constructor__P2021157_mk(s) { +function particles_ShapeFactory_constructor__P45008_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P2021157, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P45008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29285,7 +30651,7 @@ function particles_ShapeFactory_constructor__P2021157_mk(s) { -function particles_AreaFactory_constructor__P2021145(s) { +function particles_AreaFactory_constructor__P44996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29304,8 +30670,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C2021140_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P2021135_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C44991_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P44986_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 40; s.tmp_0.arg2 = 0; @@ -29335,9 +30701,9 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2021002_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C44853_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2021004_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P44855_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 1292; s.pc = 6; return s.tmp_1; @@ -29348,12 +30714,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P2021145.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"]} +particles_AreaFactory_constructor__P44996.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 particles_AreaFactory_constructor__P2021145_mk(s) { +function particles_AreaFactory_constructor__P44996_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P2021145, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P44996, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29368,7 +30734,7 @@ function particles_AreaFactory_constructor__P2021145_mk(s) { -function effects_ScreenEffect_constructor__P2021210(s) { +function effects_ScreenEffect_constructor__P45061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29387,8 +30753,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C2021209_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P2021206_mk(s); + if (!checkSubtype(r0, effects_ScreenEffect__C45060_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P45057_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -29401,12 +30767,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P2021210.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"]} +effects_ScreenEffect_constructor__P45061.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 effects_ScreenEffect_constructor__P2021210_mk(s) { +function effects_ScreenEffect_constructor__P45061_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P2021210, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P45061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29420,7 +30786,7 @@ function effects_ScreenEffect_constructor__P2021210_mk(s) { -function effects_ParticleEffect_constructor__P2021206(s) { +function effects_ParticleEffect_constructor__P45057(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29438,7 +30804,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C2021205_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C45056_VT)) failedCast(r0); r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); r0 = (s.arg0).fields["defaultRate"] = (s.arg1); r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); @@ -29446,12 +30812,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P2021206.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"]} +effects_ParticleEffect_constructor__P45057.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 effects_ParticleEffect_constructor__P2021206_mk(s) { +function effects_ParticleEffect_constructor__P45057_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P2021206, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P45057, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29463,7 +30829,7 @@ function effects_ParticleEffect_constructor__P2021206_mk(s) { -function music_melodyPlayable__P2019866(s) { +function music_melodyPlayable__P43717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29477,9 +30843,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C2019859_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C43710_VT); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayable_constructor__P2019860_mk(s); + s.tmp_1 = music_MelodyPlayable_constructor__P43711_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 73; s.pc = 1; return s.tmp_1; @@ -29489,12 +30855,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_melodyPlayable__P2019866.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} +music_melodyPlayable__P43717.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} -function music_melodyPlayable__P2019866_mk(s) { +function music_melodyPlayable__P43717_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_melodyPlayable__P2019866, depth: s.depth + 1, + parent: s, fn: music_melodyPlayable__P43717, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29505,7 +30871,7 @@ function music_melodyPlayable__P2019866_mk(s) { -function music_MelodyPlayable_constructor__P2019860(s) { +function music_MelodyPlayable_constructor__P43711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29521,19 +30887,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayable__C2019859_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayable__C43710_VT)) failedCast(r0); r0 = (s.arg0).fields["melody"] = (s.arg1); r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayable_constructor__P2019860.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__P43711.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__P2019860_mk(s) { +function music_MelodyPlayable_constructor__P43711_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayable_constructor__P2019860, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayable_constructor__P43711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29543,7 +30909,7 @@ function music_MelodyPlayable_constructor__P2019860_mk(s) { -function music_Playable_constructor__P2019856(s) { +function music_Playable_constructor__P43707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29558,17 +30924,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Playable__C2019854_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Playable__C43705_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Playable_constructor__P2019856.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__P43707.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__P2019856_mk(s) { +function music_Playable_constructor__P43707_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Playable_constructor__P2019856, depth: s.depth + 1, + parent: s, fn: music_Playable_constructor__P43707, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29577,7 +30943,7 @@ function music_Playable_constructor__P2019856_mk(s) { -function music_Melody_constructor__P2019572(s) { +function music_Melody_constructor__P43423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29593,18 +30959,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C2019569_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C43420_VT)) failedCast(r0); r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P2019572.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__P43423.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__P2019572_mk(s) { +function music_Melody_constructor__P43423_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P2019572, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P43423, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29614,7 +30980,7 @@ function music_Melody_constructor__P2019572_mk(s) { -function Fx8__P2018091(s) { +function Fx8__P41942(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29634,12 +31000,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P2018091.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P41942.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} -function Fx8__P2018091_mk(s) { +function Fx8__P41942_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P2018091, depth: s.depth + 1, + parent: s, fn: Fx8__P41942, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29649,7 +31015,7 @@ function Fx8__P2018091_mk(s) { -function SpriteKind_create__P2020422(s) { +function SpriteKind_create__P44273(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29659,26 +31025,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___2022749 === undefined); + r0 = (globals.nextKind___46602 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___2022749 = (1000); + globals.nextKind___46602 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___2022749; + s.tmp_0 = r0 = globals.nextKind___46602; r0 = (s.tmp_0 + 1); - globals.nextKind___2022749 = (r0); + globals.nextKind___46602 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P2020422.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P44273.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} -function SpriteKind_create__P2020422_mk(s) { +function SpriteKind_create__P44273_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P2020422, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P44273, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29687,7 +31053,7 @@ function SpriteKind_create__P2020422_mk(s) { -function controller_Button_constructor__P2020138(s) { +function controller_Button_constructor__P43989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29704,7 +31070,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -29714,13 +31080,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P2032963); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P56957); 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__P2032970); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P56964); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -29739,12 +31105,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P2020138.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"]} +controller_Button_constructor__P43989.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 controller_Button_constructor__P2020138_mk(s) { +function controller_Button_constructor__P43989_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P2020138, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P43989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29758,7 +31124,7 @@ function controller_Button_constructor__P2020138_mk(s) { -function controller_Button_inline__P2032963(s) { +function controller_Button_inline__P56957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29768,7 +31134,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P2020145_mk(s); + s.tmp_0 = controller_Button_setPressed__P43996_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; s.callLocIdx = 199; s.pc = 1; return s.tmp_0; @@ -29778,12 +31144,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_inline__P2032963.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P56957.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function controller_Button_inline__P2032963_mk(s) { +function controller_Button_inline__P56957_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P2032963, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P56957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29792,7 +31158,7 @@ function controller_Button_inline__P2032963_mk(s) { -function controller_Button_inline__P2032970(s) { +function controller_Button_inline__P56964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29802,7 +31168,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P2020145_mk(s); + s.tmp_0 = controller_Button_setPressed__P43996_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; s.callLocIdx = 200; s.pc = 1; return s.tmp_0; @@ -29812,12 +31178,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_inline__P2032970.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P56964.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function controller_Button_inline__P2032970_mk(s) { +function controller_Button_inline__P56964_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P2032970, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P56964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29826,7 +31192,7 @@ function controller_Button_inline__P2032970_mk(s) { -function controller_setupButton__P2022732(s) { +function controller_setupButton__P46585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29845,12 +31211,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P2022732.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +controller_setupButton__P46585.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 controller_setupButton__P2022732_mk(s) { +function controller_setupButton__P46585_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P2022732, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P46585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29860,7 +31226,7 @@ function controller_setupButton__P2022732_mk(s) { -function controller_Button_setPressed__P2020145(s) { +function controller_Button_setPressed__P43996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29876,14 +31242,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C43983_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__P2019872_mk(s); + s.tmp_2 = power_poke__P43723_mk(s); s.callLocIdx = 203; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; @@ -29891,7 +31257,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = controller_Controller_connected__P2020099_mk(s); + s.tmp_1 = controller_Controller_connected__P43950_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; @@ -29906,7 +31272,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } r0 = (s.arg0).fields["_pressedElasped"] = (0); - s.tmp_0 = controller_Button_raiseButtonDown__P2022716_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P46569_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 205; s.pc = 9; return s.tmp_0; case 9: @@ -29914,7 +31280,7 @@ switch (step) { { step = 4; continue; } case 3: r0 = (s.arg0).fields["_repeatCount"] = (0); - s.tmp_0 = controller_Button_raiseButtonUp__P2022715_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P46568_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 206; s.pc = 10; return s.tmp_0; case 10: @@ -29926,12 +31292,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P2020145.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +controller_Button_setPressed__P43996.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 controller_Button_setPressed__P2020145_mk(s) { +function controller_Button_setPressed__P43996_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P2020145, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P43996, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29944,7 +31310,7 @@ function controller_Button_setPressed__P2020145_mk(s) { -function controller_Button_raiseButtonDown__P2022716(s) { +function controller_Button_raiseButtonDown__P46569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29959,8 +31325,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___2022726); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___46579); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -29975,12 +31341,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P2022716.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +controller_Button_raiseButtonDown__P46569.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Button_raiseButtonDown__P2022716_mk(s) { +function controller_Button_raiseButtonDown__P46569_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P2022716, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P46569, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29990,7 +31356,7 @@ function controller_Button_raiseButtonDown__P2022716_mk(s) { -function controller_Button_raiseButtonUp__P2022715(s) { +function controller_Button_raiseButtonUp__P46568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30005,8 +31371,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___2022726); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___46579); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -30021,12 +31387,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P2022715.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +controller_Button_raiseButtonUp__P46568.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function controller_Button_raiseButtonUp__P2022715_mk(s) { +function controller_Button_raiseButtonUp__P46568_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P2022715, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P46568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30036,7 +31402,7 @@ function controller_Button_raiseButtonUp__P2022715_mk(s) { -function game_addScenePushHandler__P2020961(s) { +function game_addScenePushHandler__P44812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30050,35 +31416,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___2022932); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___46785); 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___2022932 = (r0); + globals._scenePushHandlers___46785 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___2022932, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___46785, 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___2022932, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___46785, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P2020961.info = {"start":16454,"length":242,"line":489,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +game_addScenePushHandler__P44812.info = {"start":16454,"length":242,"line":489,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P2020961_mk(s) { +function game_addScenePushHandler__P44812_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P2020961, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P44812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30089,7 +31455,7 @@ function game_addScenePushHandler__P2020961_mk(s) { -function controller_Controller_id__P2020084(s) { +function controller_Controller_id__P43935(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30104,18 +31470,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); r0 = s.arg0.fields["_id"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_id__P2020084.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__P2020084.isGetter = true; +controller_Controller_id__P43935.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__P43935.isGetter = true; -function controller_Controller_id__P2020084_mk(s) { +function controller_Controller_id__P43935_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P2020084, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P43935, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30124,7 +31490,7 @@ function controller_Controller_id__P2020084_mk(s) { -function controller_Controller_connected__P2020098(s) { +function controller_Controller_connected__P43949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30139,18 +31505,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C2020077_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C43928_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_connected__P2020098.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__P2020098.isGetter = true; +controller_Controller_connected__P43949.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__P43949.isGetter = true; -function controller_Controller_connected__P2020098_mk(s) { +function controller_Controller_connected__P43949_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P2020098, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P43949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30159,7 +31525,7 @@ function controller_Controller_connected__P2020098_mk(s) { -function game_currentScene__P2020942(s) { +function game_currentScene__P44793(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30169,21 +31535,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P2022938_mk(s); + s.tmp_0 = game_init__P46791_mk(s); s.tmp_0.arg0 = undefined; s.callLocIdx = 1008; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___2022930; + r0 = globals._scene___46783; return leave(s, r0) default: oops() } } } -game_currentScene__P2020942.info = {"start":4025,"length":90,"line":118,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P44793.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__P2020942_mk(s) { +function game_currentScene__P44793_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P2020942, depth: s.depth + 1, + parent: s, fn: game_currentScene__P44793, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30192,7 +31558,7 @@ function game_currentScene__P2020942_mk(s) { -function game_addScenePopHandler__P2020963(s) { +function game_addScenePopHandler__P44814(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30206,35 +31572,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___2022933); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___46786); 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___2022933 = (r0); + globals._scenePopHandlers___46786 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___2022933, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___46786, 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___2022933, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___46786, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P2020963.info = {"start":17455,"length":237,"line":513,"column":4,"endLine":517,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +game_addScenePopHandler__P44814.info = {"start":17455,"length":237,"line":513,"column":4,"endLine":517,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P2020963_mk(s) { +function game_addScenePopHandler__P44814_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P2020963, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P44814, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30245,7 +31611,7 @@ function game_addScenePopHandler__P2020963_mk(s) { -function settings_initScopes__P2022620(s) { +function settings_initScopes__P46473(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30255,17 +31621,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___2033065 = undefined; - s.tmp_1 = settings_runNumber__P2020001_mk(s); + s.rn___57059 = undefined; + s.tmp_1 = settings_runNumber__P43852_mk(s); s.callLocIdx = 119; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___2033065 = (r0); - s.tmp_0 = settings_writeNumber__P2020006_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___2022608; - s.tmp_0.arg1 = s.rn___2033065; + s.rn___57059 = (r0); + s.tmp_0 = settings_writeNumber__P43857_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___46461; + s.tmp_0.arg1 = s.rn___57059; s.callLocIdx = 120; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -30274,8 +31640,8 @@ switch (step) { r0 = (s.tmp_1 & 2147483647); s.tmp_0 = r0; r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___2033065); - s.tmp_0 = settings_setScope__P2022619_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___57059); + s.tmp_0 = settings_setScope__P46472_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; s.callLocIdx = 121; s.pc = 3; return s.tmp_0; @@ -30285,23 +31651,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_initScopes__P2022620.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P46473.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__P2022620_mk(s) { +function settings_initScopes__P46473_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P2022620, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P46473, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___2033065: undefined, + rn___57059: undefined, } } -function settings_setScope__P2022619(s) { +function settings_setScope__P46472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30311,7 +31677,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___2033094 = undefined; + s.currScope___57088 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -30336,19 +31702,19 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P2020009_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___2022609; + s.tmp_0 = settings_readString__P43860_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___46462; s.callLocIdx = 117; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___2033094 = (r0); - r0 = (s.currScope___2033094 != s.arg0); + s.currScope___57088 = (r0); + r0 = (s.currScope___57088 != 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__P2020004_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___2022609; + s.tmp_0 = settings_writeString__P43855_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___46462; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 118; s.pc = 8; return s.tmp_0; case 8: @@ -30359,18 +31725,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P2022619.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +settings_setScope__P46472.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__P2022619_mk(s) { +function settings_setScope__P46472_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P2022619, depth: s.depth + 1, + parent: s, fn: settings_setScope__P46472, depth: s.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___2033094: undefined, + currScope___57088: undefined, arg0: undefined, } } @@ -30378,7 +31744,7 @@ function settings_setScope__P2022619_mk(s) { -function settings_readString__P2020009(s) { +function settings_readString__P43860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30388,14 +31754,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___2033115 = undefined; + s.buf___57109 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___2033115 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___2033115); + s.buf___57109 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___57109); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -30405,7 +31771,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___2033115); + r0 = pxsim.BufferMethods.toString(s.buf___57109); { step = 3; continue; } case 2: r0 = undefined; @@ -30413,16 +31779,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P2020009.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +settings_readString__P43860.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__P2020009_mk(s) { +function settings_readString__P43860_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P2020009, depth: s.depth + 1, + parent: s, fn: settings_readString__P43860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___2033115: undefined, + buf___57109: undefined, arg0: undefined, } } @@ -30430,7 +31796,7 @@ function settings_readString__P2020009_mk(s) { -function settings_writeString__P2020004(s) { +function settings_writeString__P43855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30445,7 +31811,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P2020003_mk(s); + s.tmp_0 = settings_writeBuffer__P43854_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; @@ -30456,12 +31822,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeString__P2020004.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_writeString__P43855.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 settings_writeString__P2020004_mk(s) { +function settings_writeString__P43855_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P2020004, depth: s.depth + 1, + parent: s, fn: settings_writeString__P43855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30472,7 +31838,7 @@ function settings_writeString__P2020004_mk(s) { -function settings_runNumber__P2020001(s) { +function settings_runNumber__P43852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30482,8 +31848,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P2020011_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___2022608; + s.tmp_1 = settings_readNumber__P43862_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___46461; s.callLocIdx = 116; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -30501,12 +31867,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P2020001.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P43852.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__P2020001_mk(s) { +function settings_runNumber__P43852_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P2020001, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P43852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30517,7 +31883,7 @@ function settings_runNumber__P2020001_mk(s) { -function control___screen_setupUpdate__P2019937(s) { +function control___screen_setupUpdate__P43788(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30531,8 +31897,8 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___2022575 = (true); - globals.__update___2022573 = (s.arg0); + globals.__updated___46428 = (true); + globals.__update___46426 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); @@ -30543,12 +31909,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P2019937.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +control___screen_setupUpdate__P43788.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__P2019937_mk(s) { +function control___screen_setupUpdate__P43788_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P2019937, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P43788, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30558,7 +31924,7 @@ function control___screen_setupUpdate__P2019937_mk(s) { -function _screen_internal_getScreenHeight__P2019980(s) { +function _screen_internal_getScreenHeight__P43831(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30576,12 +31942,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_getScreenHeight__P2019980.info = {"start":960,"length":127,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenHeight","argumentNames":["defl"]} +_screen_internal_getScreenHeight__P43831.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__P2019980_mk(s) { +function _screen_internal_getScreenHeight__P43831_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenHeight__P2019980, depth: s.depth + 1, + parent: s, fn: _screen_internal_getScreenHeight__P43831, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30590,7 +31956,7 @@ function _screen_internal_getScreenHeight__P2019980_mk(s) { -function _screen_internal_getScreenWidth__P2019979(s) { +function _screen_internal_getScreenWidth__P43830(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30608,12 +31974,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_getScreenWidth__P2019979.info = {"start":810,"length":125,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenWidth","argumentNames":["defl"]} +_screen_internal_getScreenWidth__P43830.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__P2019979_mk(s) { +function _screen_internal_getScreenWidth__P43830_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenWidth__P2019979, depth: s.depth + 1, + parent: s, fn: _screen_internal_getScreenWidth__P43830, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30622,7 +31988,7 @@ function _screen_internal_getScreenWidth__P2019979_mk(s) { -function control___screen_update__P2019936(s) { +function control___screen_update__P43787(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30632,27 +31998,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___2022573); + r0 = pxsim_numops_toBoolDecr(globals.__update___46426); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___2022573; + s.tmp_0.argL = globals.__update___46426; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 109; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___2022575 = (true); + globals.__updated___46428 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P2019936.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +control___screen_update__P43787.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__P2019936_mk(s) { +function control___screen_update__P43787_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P2019936, depth: s.depth + 1, + parent: s, fn: control___screen_update__P43787, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30661,7 +32027,7 @@ function control___screen_update__P2019936_mk(s) { -function pause__P2018355(s) { +function pause__P42206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30685,12 +32051,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P2018355.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P42206.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__P2018355_mk(s) { +function pause__P42206_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P2018355, depth: s.depth + 1, + parent: s, fn: pause__P42206, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30699,7 +32065,7 @@ function pause__P2018355_mk(s) { -function music_Melody_toString__P2019578(s) { +function music_Melody_toString__P43429(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30714,17 +32080,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C2019569_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C43420_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P2019578.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__P43429.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__P2019578_mk(s) { +function music_Melody_toString__P43429_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P2019578, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P43429, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30733,7 +32099,7 @@ function music_Melody_toString__P2019578_mk(s) { -function particles_ShapeFactory_createParticle__P2021160(s) { +function particles_ShapeFactory_createParticle__P45011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30743,23 +32109,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2033153 = undefined; + s.p___57147 = 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__C2021156_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P2021146_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C45007_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P44997_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1311; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___2033153 = (r0); - s.tmp_0 = r0 = s.p___2033153; - s.tmp_2 = Math_FastRandom_randomRange__P2021006_mk(s); + s.p___57147 = (r0); + s.tmp_0 = r0 = s.p___57147; + s.tmp_2 = Math_FastRandom_randomRange__P44857_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; @@ -30769,21 +32135,21 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["color"] = (s.tmp_1); - r0 = s.p___2033153; + r0 = s.p___57147; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P2021160.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__P45011.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__P2021160_mk(s) { +function particles_ShapeFactory_createParticle__P45011_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P2021160, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P45011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___2033153: undefined, + p___57147: undefined, arg0: undefined, arg1: undefined, } } @@ -30792,7 +32158,7 @@ function particles_ShapeFactory_createParticle__P2021160_mk(s) { -function particles_AreaFactory_createParticle__P2021146(s) { +function particles_AreaFactory_createParticle__P44997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30802,23 +32168,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2033165 = undefined; + s.p___57159 = 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__C2021140_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P2021136_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C44991_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P44987_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1293; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___2033165 = (r0); - s.tmp_0 = r0 = s.p___2033165; - s.tmp_2 = Math_FastRandom_randomRange__P2021006_mk(s); + s.p___57159 = (r0); + s.tmp_0 = r0 = s.p___57159; + s.tmp_2 = Math_FastRandom_randomRange__P44857_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["minLifespan"]; @@ -30830,8 +32196,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___2033165; - s.tmp_4 = Math_FastRandom_randomRange__P2021006_mk(s); + s.tmp_0 = r0 = s.p___57159; + s.tmp_4 = Math_FastRandom_randomRange__P44857_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 0; @@ -30847,7 +32213,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___2033165.fields["_x"]; + r0 = s.p___57159.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -30889,8 +32255,8 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___2033165; - s.tmp_9 = Math_FastRandom_randomRange__P2021006_mk(s); + s.tmp_5 = r0 = s.p___57159; + s.tmp_9 = Math_FastRandom_randomRange__P44857_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = 0; @@ -30902,23 +32268,23 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 - s.tmp_4); s.tmp_7 = r0; - r0 = s.p___2033165.fields["_y"]; + r0 = s.p___57159.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___2033165; + r0 = s.p___57159; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P2021146.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_AreaFactory_createParticle__P44997.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 particles_AreaFactory_createParticle__P2021146_mk(s) { +function particles_AreaFactory_createParticle__P44997_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P2021146, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P44997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30932,7 +32298,7 @@ function particles_AreaFactory_createParticle__P2021146_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___2033165: undefined, + p___57159: undefined, arg0: undefined, arg1: undefined, } } @@ -30941,7 +32307,7 @@ function particles_AreaFactory_createParticle__P2021146_mk(s) { -function Fx_iadd__P2018100(s) { +function Fx_iadd__P41951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30962,12 +32328,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_iadd__P2018100.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +Fx_iadd__P41951.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__P2018100_mk(s) { +function Fx_iadd__P41951_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P2018100, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P41951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30978,7 +32344,7 @@ function Fx_iadd__P2018100_mk(s) { -function particles_SprayFactory_createParticle__P2021136(s) { +function particles_SprayFactory_createParticle__P44987(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30988,26 +32354,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___2033221 = undefined; - s.angle___2033225 = undefined; + s.p___57215 = undefined; + s.angle___57219 = 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__C2021134_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P2021132_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C44985_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P44983_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1282; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___2033221 = (r0); + s.p___57215 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P2021006_mk(s); - s.tmp_3.arg0 = globals.galois___2023287; + s.tmp_3 = Math_FastRandom_randomRange__P44857_mk(s); + s.tmp_3.arg0 = globals.galois___47140; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; @@ -31018,9 +32384,9 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 % 100); - s.angle___2033225 = (r0); - s.tmp_0 = r0 = s.p___2033221; - r0 = pxsim_Array__getAt(globals.cachedSin___2023282, s.angle___2033225); + s.angle___57219 = (r0); + s.tmp_0 = r0 = s.p___57215; + r0 = pxsim_Array__getAt(globals.cachedSin___47135, s.angle___57219); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -31029,8 +32395,8 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___2033221; - r0 = pxsim_Array__getAt(globals.cachedCos___2023283, s.angle___2033225); + s.tmp_0 = r0 = s.p___57215; + r0 = pxsim_Array__getAt(globals.cachedCos___47136, s.angle___57219); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -31039,24 +32405,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___2033221; + r0 = s.p___57215; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P2021136.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_SprayFactory_createParticle__P44987.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 particles_SprayFactory_createParticle__P2021136_mk(s) { +function particles_SprayFactory_createParticle__P44987_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P2021136, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P44987, depth: s.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___2033221: undefined, - angle___2033225: undefined, + p___57215: undefined, + angle___57219: undefined, arg0: undefined, arg1: undefined, } } @@ -31065,7 +32431,7 @@ function particles_SprayFactory_createParticle__P2021136_mk(s) { -function sprites_SpriteSet_toString__P2020417(s) { +function sprites_SpriteSet_toString__P44268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31080,7 +32446,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2020406_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C44257_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = s.arg0.fields["_sprites"]; @@ -31102,12 +32468,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P2020417.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteSet_toString__P44268.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__P2020417_mk(s) { +function sprites_SpriteSet_toString__P44268_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P2020417, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P44268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31121,7 +32487,7 @@ function sprites_SpriteSet_toString__P2020417_mk(s) { -function sprites_SpriteSet_length__P2020409(s) { +function sprites_SpriteSet_length__P44260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31136,20 +32502,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2020406_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C44257_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__P2020409.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__P2020409.isGetter = true; +sprites_SpriteSet_length__P44260.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__P44260.isGetter = true; -function sprites_SpriteSet_length__P2020409_mk(s) { +function sprites_SpriteSet_length__P44260_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P2020409, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P44260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31159,7 +32525,7 @@ function sprites_SpriteSet_length__P2020409_mk(s) { -function sprites_SpriteMap_toString__P2020397(s) { +function sprites_SpriteMap_toString__P44248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31174,7 +32540,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -31194,10 +32560,10 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P2018052_mk(s); + s.tmp_10 = helpers_arrayFilter__P41903_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = length_inline__P2033269; + s.tmp_10.arg1 = length_inline__P57263; s.callLocIdx = 514; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; @@ -31219,12 +32585,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P2020397.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteMap_toString__P44248.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_toString__P2020397_mk(s) { +function sprites_SpriteMap_toString__P44248_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P2020397, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P44248, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31244,7 +32610,7 @@ function sprites_SpriteMap_toString__P2020397_mk(s) { -function length_inline__P2033269(s) { +function length_inline__P57263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31268,12 +32634,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -length_inline__P2033269.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +length_inline__P57263.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function length_inline__P2033269_mk(s) { +function length_inline__P57263_mk(s) { checkStack(s.depth); return { - parent: s, fn: length_inline__P2033269, depth: s.depth + 1, + parent: s, fn: length_inline__P57263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31285,7 +32651,7 @@ function length_inline__P2033269_mk(s) { -function ArcadePhysicsEngine_moveSprite__P2020484(s) { +function ArcadePhysicsEngine_moveSprite__P44335(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31295,9 +32661,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___2033301 = undefined; - s.maxDist___2033309 = undefined; - s.ms___2033329 = undefined; + s.tm___57295 = undefined; + s.maxDist___57303 = undefined; + s.ms___57323 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31306,7 +32672,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -31325,19 +32691,19 @@ switch (step) { r0 = (s.tmp_2 + s.arg3); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 751; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___2033301 = (r0); - s.tmp_0 = r0 = s.tm___2033301; + s.tm___57295 = (r0); + s.tmp_0 = r0 = s.tm___57295; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___2033301.fields["_map"]; + r0 = s.tm___57295.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -31356,8 +32722,8 @@ switch (step) { r0 = (s.tmp_6 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.maxDist___2033309 = (r0); - s.tmp_2 = Math_abs__P2018070_mk(s); + s.maxDist___57303 = (r0); + s.tmp_2 = Math_abs__P41921_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); @@ -31366,14 +32732,14 @@ switch (step) { case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___2033309); + r0 = (s.tmp_1 <= s.maxDist___57303); 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__P2018070_mk(s); + s.tmp_5 = Math_abs__P41921_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); @@ -31382,15 +32748,15 @@ switch (step) { case 15: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___2033309); + r0 = (s.tmp_4 <= s.maxDist___57303); 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__C2020468_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C44319_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P2020469_mk(s); + s.tmp_9 = MovingSprite_constructor__P44320_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -31404,18 +32770,18 @@ switch (step) { s.callLocIdx = 758; s.pc = 16; return s.tmp_9; case 16: r0 = s.retval; - s.ms___2033329 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P2022786_mk(s); + s.ms___57323 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P46639_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___2033329; - s.tmp_0.arg2 = s.tm___2033301; + s.tmp_0.arg1 = s.ms___57323; + s.tmp_0.arg2 = s.tm___57295; s.callLocIdx = 759; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 5: - s.tmp_1 = tiles_TileMap_isOnWall__P2020701_mk(s); - s.tmp_1.arg0 = s.tm___2033301; + s.tmp_1 = tiles_TileMap_isOnWall__P44552_mk(s); + s.tmp_1.arg0 = s.tm___57295; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 760; s.pc = 18; return s.tmp_1; case 18: @@ -31426,10 +32792,10 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P2022788_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P46641_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___2033301; + s.tmp_4.arg2 = s.tm___57295; s.callLocIdx = 761; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; @@ -31464,12 +32830,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P2020484.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"]} +ArcadePhysicsEngine_moveSprite__P44335.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 ArcadePhysicsEngine_moveSprite__P2020484_mk(s) { +function ArcadePhysicsEngine_moveSprite__P44335_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P2020484, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P44335, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31481,9 +32847,9 @@ function ArcadePhysicsEngine_moveSprite__P2020484_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___2033301: undefined, - maxDist___2033309: undefined, - ms___2033329: undefined, + tm___57295: undefined, + maxDist___57303: undefined, + ms___57323: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31494,7 +32860,7 @@ function ArcadePhysicsEngine_moveSprite__P2020484_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P2022788(s) { +function ArcadePhysicsEngine_canResolveClipping__P46641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31504,19 +32870,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___2033374 = undefined; - s.sz___2033377 = undefined; - s.maxMove___2033382 = undefined; - s.origY___2033384 = undefined; - s.origX___2033387 = undefined; - s.l___2033390 = undefined; - s.r___2033395 = undefined; - s.t___2033400 = undefined; - s.b___2033405 = undefined; - s.offset___2033410 = undefined; - s.offset___2033435 = undefined; - s.offset___2033466 = undefined; - s.offset___2033491 = undefined; + s.hbox___57368 = undefined; + s.sz___57371 = undefined; + s.maxMove___57376 = undefined; + s.origY___57378 = undefined; + s.origX___57381 = undefined; + s.l___57384 = undefined; + s.r___57389 = undefined; + s.t___57394 = undefined; + s.b___57399 = undefined; + s.offset___57404 = undefined; + s.offset___57429 = undefined; + s.offset___57460 = undefined; + s.offset___57485 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31524,7 +32890,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -31535,9 +32901,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C2020284_v4_1_mk(s); + s.tmp_4 = Sprite__C44135_v4_1_mk(s); s.tmp_4.arg0 = s.arg1; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2020284_VT)) failedCast(s.tmp_4.arg0); + if (!checkSubtype(s.tmp_4.arg0, Sprite__C44135_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: @@ -31545,23 +32911,23 @@ switch (step) { case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___2033374 = (r0); + s.hbox___57368 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___2033377 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P2020476_mk(s); + s.sz___57371 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P44327_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 764; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___2033382 = (r0); + s.maxMove___57376 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___2033384 = (r0); + s.origY___57378 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___2033387 = (r0); - s.tmp_1 = game_Hitbox_left__P2020159_mk(s); - s.tmp_1.arg0 = s.hbox___2033374; + s.origX___57381 = (r0); + s.tmp_1 = game_Hitbox_left__P44010_mk(s); + s.tmp_1.arg0 = s.hbox___57368; s.callLocIdx = 765; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; @@ -31569,9 +32935,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.l___2033390 = (r0); - s.tmp_1 = game_Hitbox_right__P2020161_mk(s); - s.tmp_1.arg0 = s.hbox___2033374; + s.l___57384 = (r0); + s.tmp_1 = game_Hitbox_right__P44012_mk(s); + s.tmp_1.arg0 = s.hbox___57368; s.callLocIdx = 767; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; @@ -31579,9 +32945,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.r___2033395 = (r0); - s.tmp_1 = game_Hitbox_top__P2020160_mk(s); - s.tmp_1.arg0 = s.hbox___2033374; + s.r___57389 = (r0); + s.tmp_1 = game_Hitbox_top__P44011_mk(s); + s.tmp_1.arg0 = s.hbox___57368; s.callLocIdx = 769; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; @@ -31589,9 +32955,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.t___2033400 = (r0); - s.tmp_1 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_1.arg0 = s.hbox___2033374; + s.t___57394 = (r0); + s.tmp_1 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_1.arg0 = s.hbox___57368; s.callLocIdx = 771; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -31599,26 +32965,26 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.b___2033405 = (r0); - r0 = (s.b___2033405 + 1); + s.b___57399 = (r0); + r0 = (s.b___57399 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___2033377); - s.offset___2033410 = (r0); - r0 = (s.offset___2033410 <= s.maxMove___2033382); + r0 = (s.tmp_0 % s.sz___57371); + s.offset___57404 = (r0); + r0 = (s.offset___57404 <= s.maxMove___57376); 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___2033410 * 256); + r0 = (s.offset___57404 * 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__P2020701_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P44552_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 775; s.pc = 26; return s.tmp_3; @@ -31635,35 +33001,35 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___2033384); + r0 = (s.arg1).fields["_y"] = (s.origY___57378); case 4: case 5: case 6: - r0 = (s.t___2033400 / s.sz___2033377); + r0 = (s.t___57394 / s.sz___57371); 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___2033377); + r0 = (s.tmp_1 * s.sz___57371); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___2033400); - s.offset___2033435 = (r0); - r0 = (s.offset___2033435 <= s.maxMove___2033382); + r0 = (s.tmp_0 - s.t___57394); + s.offset___57429 = (r0); + r0 = (s.offset___57429 <= s.maxMove___57376); 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___2033435 * 256); + r0 = (s.offset___57429 * 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__P2020701_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P44552_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 778; s.pc = 27; return s.tmp_3; @@ -31680,29 +33046,29 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___2033384); + r0 = (s.arg1).fields["_y"] = (s.origY___57378); case 8: case 9: case 10: - r0 = (s.r___2033395 + 1); + r0 = (s.r___57389 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___2033377); - s.offset___2033466 = (r0); - r0 = (s.offset___2033466 <= s.maxMove___2033382); + r0 = (s.tmp_0 % s.sz___57371); + s.offset___57460 = (r0); + r0 = (s.offset___57460 <= s.maxMove___57376); 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___2033466 * 256); + r0 = (s.offset___57460 * 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__P2020701_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P44552_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 781; s.pc = 28; return s.tmp_3; @@ -31719,35 +33085,35 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___2033387); + r0 = (s.arg1).fields["_x"] = (s.origX___57381); case 12: case 13: case 14: - r0 = (s.l___2033390 / s.sz___2033377); + r0 = (s.l___57384 / s.sz___57371); 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___2033377); + r0 = (s.tmp_1 * s.sz___57371); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___2033390); - s.offset___2033491 = (r0); - r0 = (s.offset___2033491 <= s.maxMove___2033382); + r0 = (s.tmp_0 - s.l___57384); + s.offset___57485 = (r0); + r0 = (s.offset___57485 <= s.maxMove___57376); 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___2033491 * 256); + r0 = (s.offset___57485 * 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__P2020701_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P44552_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 784; s.pc = 29; return s.tmp_3; @@ -31764,7 +33130,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___2033387); + r0 = (s.arg1).fields["_x"] = (s.origX___57381); case 16: case 17: case 18: @@ -31773,12 +33139,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P2022788.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"]} +ArcadePhysicsEngine_canResolveClipping__P46641.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 ArcadePhysicsEngine_canResolveClipping__P2022788_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P46641_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P2022788, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P46641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31786,19 +33152,19 @@ function ArcadePhysicsEngine_canResolveClipping__P2022788_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___2033374: undefined, - sz___2033377: undefined, - maxMove___2033382: undefined, - origY___2033384: undefined, - origX___2033387: undefined, - l___2033390: undefined, - r___2033395: undefined, - t___2033400: undefined, - b___2033405: undefined, - offset___2033410: undefined, - offset___2033435: undefined, - offset___2033466: undefined, - offset___2033491: undefined, + hbox___57368: undefined, + sz___57371: undefined, + maxMove___57376: undefined, + origY___57378: undefined, + origX___57381: undefined, + l___57384: undefined, + r___57389: undefined, + t___57394: undefined, + b___57399: undefined, + offset___57404: undefined, + offset___57429: undefined, + offset___57460: undefined, + offset___57485: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31808,7 +33174,7 @@ function ArcadePhysicsEngine_canResolveClipping__P2022788_mk(s) { -function Sprite_isStatic__P2020338(s) { +function Sprite_isStatic__P44189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31823,19 +33189,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_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__P2020338.info = {"start":9841,"length":57,"line":355,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P44189.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__P2020338_mk(s) { +function Sprite_isStatic__P44189_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P2020338, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P44189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31845,7 +33211,7 @@ function Sprite_isStatic__P2020338_mk(s) { -function game_Hitbox_bottom__P2020162(s) { +function game_Hitbox_bottom__P44013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31860,10 +33226,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P2020160_mk(s); + s.tmp_3 = game_Hitbox_top__P44011_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 225; s.pc = 1; return s.tmp_3; case 1: @@ -31875,13 +33241,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_bottom__P2020162.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__P2020162.isGetter = true; +game_Hitbox_bottom__P44013.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__P44013.isGetter = true; -function game_Hitbox_bottom__P2020162_mk(s) { +function game_Hitbox_bottom__P44013_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P2020162, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P44013, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31894,7 +33260,7 @@ function game_Hitbox_bottom__P2020162_mk(s) { -function game_Hitbox_right__P2020161(s) { +function game_Hitbox_right__P44012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31909,10 +33275,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P2020159_mk(s); + s.tmp_3 = game_Hitbox_left__P44010_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 222; s.pc = 1; return s.tmp_3; case 1: @@ -31924,13 +33290,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_right__P2020161.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__P2020161.isGetter = true; +game_Hitbox_right__P44012.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__P44012.isGetter = true; -function game_Hitbox_right__P2020161_mk(s) { +function game_Hitbox_right__P44012_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P2020161, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P44012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31943,7 +33309,7 @@ function game_Hitbox_right__P2020161_mk(s) { -function game_Hitbox_top__P2020160(s) { +function game_Hitbox_top__P44011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31958,7 +33324,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -31968,13 +33334,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_top__P2020160.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__P2020160.isGetter = true; +game_Hitbox_top__P44011.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__P44011.isGetter = true; -function game_Hitbox_top__P2020160_mk(s) { +function game_Hitbox_top__P44011_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P2020160, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P44011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31985,7 +33351,7 @@ function game_Hitbox_top__P2020160_mk(s) { -function game_Hitbox_left__P2020159(s) { +function game_Hitbox_left__P44010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32000,7 +33366,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -32010,13 +33376,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_left__P2020159.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__P2020159.isGetter = true; +game_Hitbox_left__P44010.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__P44010.isGetter = true; -function game_Hitbox_left__P2020159_mk(s) { +function game_Hitbox_left__P44010_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P2020159, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P44010, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32027,7 +33393,7 @@ function game_Hitbox_left__P2020159_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P2022786(s) { +function ArcadePhysicsEngine_tilemapCollisions__P46639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32037,37 +33403,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2033651 = undefined; - s.hbox___2033676 = undefined; - s.tileScale___2033679 = undefined; - s.tileSize___2033682 = undefined; - s.xDiff___2033686 = undefined; - s.yDiff___2033693 = undefined; - s.right___2033709 = undefined; - s.x0___2033713 = undefined; - s.collidedTiles___2033728 = undefined; - s.y___2033730 = undefined; - s.y0___2033744 = undefined; - s.obstacle___2033760 = undefined; - s.collisionDirection___2033787 = undefined; - s.tile___2033813 = undefined; - s.unnamed27072___U14 = undefined; - s.unnamed27073___U15 = undefined; - s.down___2033904 = undefined; - s.y0___2033908 = undefined; - s.collidedTiles___2033923 = undefined; - s.x___2033925 = undefined; - s.x0___2033935 = undefined; - s.obstacle___2033949 = undefined; - s.collisionDirection___2033976 = undefined; - s.tile___2034002 = undefined; - s.unnamed27074___U24 = undefined; - s.unnamed27075___U25 = undefined; - s.overlappedTiles___2034096 = undefined; - s.x___2034098 = undefined; - s.x0___2034108 = undefined; - s.y___2034118 = undefined; - s.y0___2034128 = undefined; + s.s___57645 = undefined; + s.hbox___57670 = undefined; + s.tileScale___57673 = undefined; + s.tileSize___57676 = undefined; + s.xDiff___57680 = undefined; + s.yDiff___57687 = undefined; + s.right___57703 = undefined; + s.x0___57707 = undefined; + s.collidedTiles___57722 = undefined; + s.y___57724 = undefined; + s.y0___57738 = undefined; + s.obstacle___57754 = undefined; + s.collisionDirection___57781 = undefined; + s.tile___57807 = undefined; + s.unnamed272___U14 = undefined; + s.unnamed273___U15 = undefined; + s.down___57898 = undefined; + s.y0___57902 = undefined; + s.collidedTiles___57917 = undefined; + s.x___57919 = undefined; + s.x0___57929 = undefined; + s.obstacle___57943 = undefined; + s.collisionDirection___57970 = undefined; + s.tile___57996 = undefined; + s.unnamed274___U24 = undefined; + s.unnamed275___U25 = undefined; + s.overlappedTiles___58090 = undefined; + s.x___58092 = undefined; + s.x0___58102 = undefined; + s.y___58112 = undefined; + s.y0___58122 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32075,18 +33441,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___2033651 = (r0); - r0 = s.s___2033651.fields["flags"]; + s.s___57645 = (r0); + r0 = s.s___57645.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__P2020701_mk(s); + s.tmp_5 = tiles_TileMap_isOnWall__P44552_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___2033651; + s.tmp_5.arg1 = s.s___57645; s.callLocIdx = 647; s.pc = 97; return s.tmp_5; case 97: r0 = s.retval; @@ -32097,7 +33463,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_6 = r0 = s.s___2033651; + s.tmp_6 = r0 = s.s___57645; r0 = s.tmp_6.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & -257); @@ -32107,7 +33473,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___2033651.fields["_image"]; + r0 = s.s___57645.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -32117,34 +33483,34 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite__C2020284_v4_1_mk(s); - s.tmp_4.arg0 = s.s___2033651; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2020284_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = Sprite__C44135_v4_1_mk(s); + s.tmp_4.arg0 = s.s___57645; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C44135_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___2033651.fields["_hitbox"]; - s.hbox___2033676 = (r0); + r0 = s.s___57645.fields["_hitbox"]; + s.hbox___57670 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___2033679 = (r0); - r0 = (1 << s.tileScale___2033679); - s.tileSize___2033682 = (r0); - r0 = s.s___2033651.fields["_x"]; + s.tileScale___57673 = (r0); + r0 = (1 << s.tileScale___57673); + s.tileSize___57676 = (r0); + r0 = s.s___57645.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___2033651.fields["_lastX"]; + r0 = s.s___57645.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___2033686 = (r0); - r0 = s.s___2033651.fields["_y"]; + s.xDiff___57680 = (r0); + r0 = s.s___57645.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___2033651.fields["_lastY"]; + r0 = s.s___57645.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___2033693 = (r0); - r0 = s.s___2033651.fields["flags"]; + s.yDiff___57687 = (r0); + r0 = s.s___57645.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2818); s.tmp_2 = r0; @@ -32154,16 +33520,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 83; continue; } - r0 = (s.xDiff___2033686 !== 0); + r0 = (s.xDiff___57680 !== 0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 43; continue; } - r0 = (s.xDiff___2033686 > 0); - s.right___2033709 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___2033709); + r0 = (s.xDiff___57680 > 0); + s.right___57703 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___57703); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P2020161_mk(s); - s.tmp_1.arg0 = s.hbox___2033676; + s.tmp_1 = game_Hitbox_right__P44012_mk(s); + s.tmp_1.arg0 = s.hbox___57670; s.callLocIdx = 652; s.pc = 99; return s.tmp_1; case 99: r0 = s.retval; @@ -32171,8 +33537,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P2020159_mk(s); - s.tmp_3.arg0 = s.hbox___2033676; + s.tmp_3 = game_Hitbox_left__P44010_mk(s); + s.tmp_3.arg0 = s.hbox___57670; s.callLocIdx = 654; s.pc = 100; return s.tmp_3; case 100: r0 = s.retval; @@ -32183,30 +33549,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___2033713 = (r0); + s.x0___57707 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___2033728 = (r0); - s.tmp_1 = game_Hitbox_top__P2020160_mk(s); - s.tmp_1.arg0 = s.hbox___2033676; + s.collidedTiles___57722 = (r0); + s.tmp_1 = game_Hitbox_top__P44011_mk(s); + s.tmp_1.arg0 = s.hbox___57670; s.callLocIdx = 658; s.pc = 101; return s.tmp_1; case 101: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___2033693); - s.y___2033730 = (r0); + r0 = (s.tmp_0 - s.yDiff___57687); + s.y___57724 = (r0); case 9: - s.tmp_1 = r0 = s.y___2033730; - s.tmp_3 = r0 = s.tileSize___2033682; - s.tmp_6 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_6.arg0 = s.hbox___2033676; + s.tmp_1 = r0 = s.y___57724; + s.tmp_3 = r0 = s.tileSize___57676; + s.tmp_6 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_6.arg0 = s.hbox___57670; s.callLocIdx = 660; s.pc = 102; return s.tmp_6; case 102: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___2033693); + r0 = (s.tmp_5 - s.yDiff___57687); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -32216,15 +33582,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P2018108_mk(s); - s.tmp_10.arg0 = s.y___2033730; - s.tmp_12 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_12.arg0 = s.hbox___2033676; + s.tmp_10 = Fx_min__P41959_mk(s); + s.tmp_10.arg0 = s.y___57724; + s.tmp_12 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_12.arg0 = s.hbox___57670; s.callLocIdx = 663; s.pc = 104; return s.tmp_12; case 104: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___2033693); + r0 = (s.tmp_11 - s.yDiff___57687); s.tmp_10.arg1 = r0; s.callLocIdx = 665; s.pc = 103; return s.tmp_10; case 103: @@ -32232,33 +33598,33 @@ switch (step) { s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___2033744 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P2020699_mk(s); + s.y0___57738 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P44550_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___2033713; - s.tmp_1.arg2 = s.y0___2033744; + s.tmp_1.arg1 = s.x0___57707; + s.tmp_1.arg2 = s.y0___57738; s.callLocIdx = 668; 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__P2020700_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P44551_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___2033713; - s.tmp_2.arg2 = s.y0___2033744; + s.tmp_2.arg1 = s.x0___57707; + s.tmp_2.arg2 = s.y0___57738; s.callLocIdx = 669; s.pc = 106; return s.tmp_2; case 106: r0 = s.retval; - s.obstacle___2033760 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P2033768); + s.obstacle___57754 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P57762); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___2033760); - s.tmp_4 = helpers_arraySome__P2018049_mk(s); - s.tmp_4.arg0 = s.collidedTiles___2033728; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___57754); + s.tmp_4 = helpers_arraySome__P41900_mk(s); + s.tmp_4.arg0 = s.collidedTiles___57722; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 670; s.pc = 107; return s.tmp_4; case 107: @@ -32270,22 +33636,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___2033728, s.obstacle___2033760); + r0 = pxsim_Array__push(s.collidedTiles___57722, s.obstacle___57754); case 10: case 11: case 12: case 13: - r0 = (s.tileSize___2033682 << 8); + r0 = (s.tileSize___57676 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___2033730); - s.y___2033730 = (r0); + r0 = (s.tmp_0 + s.y___57724); + s.y___57724 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___2033728); + r0 = pxsim_Array__length(s.collidedTiles___57722); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 41; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___2033709); + r0 = pxsim_numops_toBoolDecr(s.right___57703); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -32294,23 +33660,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___2033787 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___2033709); + s.collisionDirection___57781 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___57703); if (!r0) { step = 17; continue; } - r0 = (s.x0___2033713 << s.tileScale___2033679); + r0 = (s.x0___57707 << s.tileScale___57673); 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___2033676.fields["width"]; + r0 = s.hbox___57670.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___2033713 + 1); + r0 = (s.x0___57707 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___2033679); + r0 = (s.tmp_5 << s.tileScale___57673); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -32318,24 +33684,24 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___2033651; - r0 = s.hbox___2033676.fields["ox"]; + s.tmp_8 = r0 = s.s___57645; + r0 = s.hbox___57670.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___2033813 = (undefined); - s.unnamed27072___U14 = (s.collidedTiles___2033728); - s.unnamed27073___U15 = (0); + s.tile___57807 = (undefined); + s.unnamed272___U14 = (s.collidedTiles___57722); + s.unnamed273___U15 = (0); case 19: - s.tmp_0 = r0 = s.unnamed27073___U15; - r0 = pxsim_Array__length(s.unnamed27072___U14); + s.tmp_0 = r0 = s.unnamed273___U15; + r0 = pxsim_Array__length(s.unnamed272___U14); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 22; continue; } - r0 = pxsim_Array__getAt(s.unnamed27072___U14, s.unnamed27073___U15); - s.tile___2033813 = (r0); - r0 = s.s___2033651.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed272___U14, s.unnamed273___U15); + s.tile___57807 = (r0); + r0 = s.s___57645.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -32345,29 +33711,29 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 20; continue; } - s.tmp_6 = Sprite_registerObstacle__P2020369_mk(s); - s.tmp_6.arg0 = s.s___2033651; - s.tmp_6.arg1 = s.collisionDirection___2033787; - s.tmp_6.arg2 = s.tile___2033813; + s.tmp_6 = Sprite_registerObstacle__P44220_mk(s); + s.tmp_6.arg0 = s.s___57645; + s.tmp_6.arg1 = s.collisionDirection___57781; + s.tmp_6.arg2 = s.tile___57807; s.tmp_6.arg3 = s.arg2; s.callLocIdx = 676; s.pc = 108; return s.tmp_6; case 108: r0 = s.retval; case 20: case 21: - r0 = (s.unnamed27073___U15 + 1); - s.unnamed27073___U15 = (r0); + r0 = (s.unnamed273___U15 + 1); + s.unnamed273___U15 = (r0); { step = 19; continue; } case 22: - s.unnamed27072___U14 = (undefined); - r0 = s.s___2033651.fields["flags"]; + s.unnamed272___U14 = (undefined); + r0 = s.s___57645.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 = 23; continue; } - s.tmp_2 = Sprite_destroy__P2020371_mk(s); - s.tmp_2.arg0 = s.s___2033651; + s.tmp_2 = Sprite_destroy__P44222_mk(s); + s.tmp_2.arg0 = s.s___57645; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 677; s.pc = 109; return s.tmp_2; @@ -32375,7 +33741,7 @@ switch (step) { r0 = s.retval; { step = 40; continue; } case 23: - r0 = s.s___2033651.fields["_vx"]; + r0 = s.s___57645.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -32386,7 +33752,7 @@ switch (step) { r0 = s.tmp_0; { step = 25; continue; } case 24: - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -32398,13 +33764,13 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 36; continue; } - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.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___2033709); + r0 = pxsim_numops_toBoolDecr(s.right___57703); s.tmp_10 = r0; r0 = pxsim_Boolean__bang(s.tmp_10); s.tmp_9 = r0; @@ -32413,8 +33779,8 @@ switch (step) { r0 = s.tmp_9; { step = 27; continue; } case 26: - s.tmp_12 = Sprite_vx__P2020301_mk(s); - s.tmp_12.arg0 = s.s___2033651; + s.tmp_12 = Sprite_vx__P44152_mk(s); + s.tmp_12.arg0 = s.s___57645; s.callLocIdx = 678; s.pc = 110; return s.tmp_12; case 110: r0 = s.retval; @@ -32428,14 +33794,14 @@ switch (step) { r0 = s.tmp_13; { step = 31; continue; } case 28: - s.tmp_14 = r0 = s.right___2033709; + s.tmp_14 = r0 = s.right___57703; 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__P2020301_mk(s); - s.tmp_16.arg0 = s.s___2033651; + s.tmp_16 = Sprite_vx__P44152_mk(s); + s.tmp_16.arg0 = s.s___57645; s.callLocIdx = 679; s.pc = 111; return s.tmp_16; case 111: r0 = s.retval; @@ -32450,8 +33816,8 @@ switch (step) { s.tmp_18 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_18); if (!r0) { step = 32; continue; } - s.tmp_19 = r0 = s.s___2033651; - r0 = s.s___2033651.fields["_vx"]; + s.tmp_19 = r0 = s.s___57645; + r0 = s.s___57645.fields["_vx"]; s.tmp_21 = r0; r0 = (0 - s.tmp_21); s.tmp_20 = r0; @@ -32473,12 +33839,12 @@ switch (step) { { step = 35; continue; } case 34: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___2033651).fields["_vx"] = (0); + r0 = (s.s___57645).fields["_vx"] = (0); case 35: { step = 39; continue; } case 36: - s.tmp_2 = Math_sign__P2018071_mk(s); - r0 = s.s___2033651.fields["_vx"]; + s.tmp_2 = Math_sign__P41922_mk(s); + r0 = s.s___57645.fields["_vx"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -32488,7 +33854,7 @@ switch (step) { case 112: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P2018071_mk(s); + s.tmp_6 = Math_sign__P41922_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -32512,16 +33878,16 @@ switch (step) { case 42: case 43: case 44: - r0 = (s.yDiff___2033693 !== 0); + r0 = (s.yDiff___57687 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 81; continue; } - r0 = (s.yDiff___2033693 > 0); - s.down___2033904 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___2033904); + r0 = (s.yDiff___57687 > 0); + s.down___57898 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___57898); if (!r0) { step = 45; continue; } - s.tmp_1 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_1.arg0 = s.hbox___2033676; + s.tmp_1 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_1.arg0 = s.hbox___57670; s.callLocIdx = 687; s.pc = 114; return s.tmp_1; case 114: r0 = s.retval; @@ -32529,8 +33895,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 46; continue; } case 45: - s.tmp_3 = game_Hitbox_top__P2020160_mk(s); - s.tmp_3.arg0 = s.hbox___2033676; + s.tmp_3 = game_Hitbox_top__P44011_mk(s); + s.tmp_3.arg0 = s.hbox___57670; s.callLocIdx = 689; s.pc = 115; return s.tmp_3; case 115: r0 = s.retval; @@ -32541,23 +33907,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___2033908 = (r0); + s.y0___57902 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___2033923 = (r0); - s.tmp_0 = game_Hitbox_left__P2020159_mk(s); - s.tmp_0.arg0 = s.hbox___2033676; + s.collidedTiles___57917 = (r0); + s.tmp_0 = game_Hitbox_left__P44010_mk(s); + s.tmp_0.arg0 = s.hbox___57670; s.callLocIdx = 693; s.pc = 116; return s.tmp_0; case 116: r0 = s.retval; - s.x___2033925 = (r0); + s.x___57919 = (r0); case 47: - s.tmp_1 = r0 = s.x___2033925; - s.tmp_3 = r0 = s.tileSize___2033682; - s.tmp_5 = game_Hitbox_right__P2020161_mk(s); - s.tmp_5.arg0 = s.hbox___2033676; + s.tmp_1 = r0 = s.x___57919; + s.tmp_3 = r0 = s.tileSize___57676; + s.tmp_5 = game_Hitbox_right__P44012_mk(s); + s.tmp_5.arg0 = s.hbox___57670; s.callLocIdx = 694; s.pc = 117; return s.tmp_5; case 117: r0 = s.retval; @@ -32570,10 +33936,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 52; continue; } - s.tmp_9 = Fx_min__P2018108_mk(s); - s.tmp_9.arg0 = s.x___2033925; - s.tmp_10 = game_Hitbox_right__P2020161_mk(s); - s.tmp_10.arg0 = s.hbox___2033676; + s.tmp_9 = Fx_min__P41959_mk(s); + s.tmp_9.arg0 = s.x___57919; + s.tmp_10 = game_Hitbox_right__P44012_mk(s); + s.tmp_10.arg0 = s.hbox___57670; s.callLocIdx = 696; s.pc = 119; return s.tmp_10; case 119: r0 = s.retval; @@ -32584,33 +33950,33 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___2033935 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P2020699_mk(s); + s.x0___57929 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P44550_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___2033935; - s.tmp_1.arg2 = s.y0___2033908; + s.tmp_1.arg1 = s.x0___57929; + s.tmp_1.arg2 = s.y0___57902; s.callLocIdx = 700; 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 = 50; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P2020700_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P44551_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___2033935; - s.tmp_2.arg2 = s.y0___2033908; + s.tmp_2.arg1 = s.x0___57929; + s.tmp_2.arg2 = s.y0___57902; s.callLocIdx = 701; s.pc = 121; return s.tmp_2; case 121: r0 = s.retval; - s.obstacle___2033949 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P2033957); + s.obstacle___57943 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P57951); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___2033949); - s.tmp_4 = helpers_arraySome__P2018049_mk(s); - s.tmp_4.arg0 = s.collidedTiles___2033923; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___57943); + s.tmp_4 = helpers_arraySome__P41900_mk(s); + s.tmp_4.arg0 = s.collidedTiles___57917; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 702; s.pc = 122; return s.tmp_4; case 122: @@ -32622,22 +33988,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 48; continue; } - r0 = pxsim_Array__push(s.collidedTiles___2033923, s.obstacle___2033949); + r0 = pxsim_Array__push(s.collidedTiles___57917, s.obstacle___57943); case 48: case 49: case 50: case 51: - r0 = (s.tileSize___2033682 << 8); + r0 = (s.tileSize___57676 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___2033925); - s.x___2033925 = (r0); + r0 = (s.tmp_0 + s.x___57919); + s.x___57919 = (r0); { step = 47; continue; } case 52: - r0 = pxsim_Array__length(s.collidedTiles___2033923); + r0 = pxsim_Array__length(s.collidedTiles___57917); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___2033904); + r0 = pxsim_numops_toBoolDecr(s.down___57898); if (!r0) { step = 53; continue; } r0 = 3; { step = 54; continue; } @@ -32646,23 +34012,23 @@ switch (step) { case 54: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___2033976 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___2033904); + s.collisionDirection___57970 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___57898); if (!r0) { step = 55; continue; } - r0 = (s.y0___2033908 << s.tileScale___2033679); + r0 = (s.y0___57902 << s.tileScale___57673); 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___2033676.fields["height"]; + r0 = s.hbox___57670.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 56; continue; } case 55: - r0 = (s.y0___2033908 + 1); + r0 = (s.y0___57902 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___2033679); + r0 = (s.tmp_5 << s.tileScale___57673); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -32670,24 +34036,24 @@ switch (step) { case 56: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___2033651; - r0 = s.hbox___2033676.fields["oy"]; + s.tmp_8 = r0 = s.s___57645; + r0 = s.hbox___57670.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___2034002 = (undefined); - s.unnamed27074___U24 = (s.collidedTiles___2033923); - s.unnamed27075___U25 = (0); + s.tile___57996 = (undefined); + s.unnamed274___U24 = (s.collidedTiles___57917); + s.unnamed275___U25 = (0); case 57: - s.tmp_0 = r0 = s.unnamed27075___U25; - r0 = pxsim_Array__length(s.unnamed27074___U24); + s.tmp_0 = r0 = s.unnamed275___U25; + r0 = pxsim_Array__length(s.unnamed274___U24); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 60; continue; } - r0 = pxsim_Array__getAt(s.unnamed27074___U24, s.unnamed27075___U25); - s.tile___2034002 = (r0); - r0 = s.s___2033651.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed274___U24, s.unnamed275___U25); + s.tile___57996 = (r0); + r0 = s.s___57645.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -32697,29 +34063,29 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 58; continue; } - s.tmp_6 = Sprite_registerObstacle__P2020369_mk(s); - s.tmp_6.arg0 = s.s___2033651; - s.tmp_6.arg1 = s.collisionDirection___2033976; - s.tmp_6.arg2 = s.tile___2034002; + s.tmp_6 = Sprite_registerObstacle__P44220_mk(s); + s.tmp_6.arg0 = s.s___57645; + s.tmp_6.arg1 = s.collisionDirection___57970; + s.tmp_6.arg2 = s.tile___57996; s.tmp_6.arg3 = s.arg2; s.callLocIdx = 708; s.pc = 123; return s.tmp_6; case 123: r0 = s.retval; case 58: case 59: - r0 = (s.unnamed27075___U25 + 1); - s.unnamed27075___U25 = (r0); + r0 = (s.unnamed275___U25 + 1); + s.unnamed275___U25 = (r0); { step = 57; continue; } case 60: - s.unnamed27074___U24 = (undefined); - r0 = s.s___2033651.fields["flags"]; + s.unnamed274___U24 = (undefined); + r0 = s.s___57645.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 = 61; continue; } - s.tmp_2 = Sprite_destroy__P2020371_mk(s); - s.tmp_2.arg0 = s.s___2033651; + s.tmp_2 = Sprite_destroy__P44222_mk(s); + s.tmp_2.arg0 = s.s___57645; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 709; s.pc = 124; return s.tmp_2; @@ -32727,7 +34093,7 @@ switch (step) { r0 = s.retval; { step = 78; continue; } case 61: - r0 = s.s___2033651.fields["_vy"]; + r0 = s.s___57645.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -32738,7 +34104,7 @@ switch (step) { r0 = s.tmp_0; { step = 63; continue; } case 62: - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -32750,13 +34116,13 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 74; continue; } - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.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 = 72; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___2033904); + r0 = pxsim_numops_toBoolDecr(s.down___57898); s.tmp_10 = r0; r0 = pxsim_Boolean__bang(s.tmp_10); s.tmp_9 = r0; @@ -32765,8 +34131,8 @@ switch (step) { r0 = s.tmp_9; { step = 65; continue; } case 64: - s.tmp_12 = Sprite_vy__P2020303_mk(s); - s.tmp_12.arg0 = s.s___2033651; + s.tmp_12 = Sprite_vy__P44154_mk(s); + s.tmp_12.arg0 = s.s___57645; s.callLocIdx = 710; s.pc = 125; return s.tmp_12; case 125: r0 = s.retval; @@ -32780,14 +34146,14 @@ switch (step) { r0 = s.tmp_13; { step = 69; continue; } case 66: - s.tmp_14 = r0 = s.down___2033904; + s.tmp_14 = r0 = s.down___57898; 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__P2020303_mk(s); - s.tmp_16.arg0 = s.s___2033651; + s.tmp_16 = Sprite_vy__P44154_mk(s); + s.tmp_16.arg0 = s.s___57645; s.callLocIdx = 711; s.pc = 126; return s.tmp_16; case 126: r0 = s.retval; @@ -32802,8 +34168,8 @@ switch (step) { s.tmp_18 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_18); if (!r0) { step = 70; continue; } - s.tmp_19 = r0 = s.s___2033651; - r0 = s.s___2033651.fields["_vy"]; + s.tmp_19 = r0 = s.s___57645; + r0 = s.s___57645.fields["_vy"]; s.tmp_21 = r0; r0 = (0 - s.tmp_21); s.tmp_20 = r0; @@ -32825,12 +34191,12 @@ switch (step) { { step = 73; continue; } case 72: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___2033651).fields["_vy"] = (0); + r0 = (s.s___57645).fields["_vy"] = (0); case 73: { step = 77; continue; } case 74: - s.tmp_2 = Math_sign__P2018071_mk(s); - r0 = s.s___2033651.fields["_vy"]; + s.tmp_2 = Math_sign__P41922_mk(s); + r0 = s.s___57645.fields["_vy"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -32840,7 +34206,7 @@ switch (step) { case 127: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P2018071_mk(s); + s.tmp_6 = Math_sign__P41922_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -32866,7 +34232,7 @@ switch (step) { case 82: case 83: case 84: - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -32877,18 +34243,18 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 95; continue; } r0 = pxsim_Array__mk(); - s.overlappedTiles___2034096 = (r0); - s.tmp_0 = game_Hitbox_left__P2020159_mk(s); - s.tmp_0.arg0 = s.hbox___2033676; + s.overlappedTiles___58090 = (r0); + s.tmp_0 = game_Hitbox_left__P44010_mk(s); + s.tmp_0.arg0 = s.hbox___57670; s.callLocIdx = 719; s.pc = 129; return s.tmp_0; case 129: r0 = s.retval; - s.x___2034098 = (r0); + s.x___58092 = (r0); case 85: - s.tmp_1 = r0 = s.x___2034098; - s.tmp_3 = r0 = s.tileSize___2033682; - s.tmp_5 = game_Hitbox_right__P2020161_mk(s); - s.tmp_5.arg0 = s.hbox___2033676; + s.tmp_1 = r0 = s.x___58092; + s.tmp_3 = r0 = s.tileSize___57676; + s.tmp_5 = game_Hitbox_right__P44012_mk(s); + s.tmp_5.arg0 = s.hbox___57670; s.callLocIdx = 720; s.pc = 130; return s.tmp_5; case 130: r0 = s.retval; @@ -32901,10 +34267,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 92; continue; } - s.tmp_9 = Fx_min__P2018108_mk(s); - s.tmp_9.arg0 = s.x___2034098; - s.tmp_10 = game_Hitbox_right__P2020161_mk(s); - s.tmp_10.arg0 = s.hbox___2033676; + s.tmp_9 = Fx_min__P41959_mk(s); + s.tmp_9.arg0 = s.x___58092; + s.tmp_10 = game_Hitbox_right__P44012_mk(s); + s.tmp_10.arg0 = s.hbox___57670; s.callLocIdx = 722; s.pc = 132; return s.tmp_10; case 132: r0 = s.retval; @@ -32915,21 +34281,21 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___2034108 = (r0); - s.tmp_0 = game_Hitbox_top__P2020160_mk(s); - s.tmp_0.arg0 = s.hbox___2033676; + s.x0___58102 = (r0); + s.tmp_0 = game_Hitbox_top__P44011_mk(s); + s.tmp_0.arg0 = s.hbox___57670; s.callLocIdx = 726; s.pc = 133; return s.tmp_0; case 133: r0 = s.retval; - s.y___2034118 = (r0); + s.y___58112 = (r0); case 86: - s.tmp_1 = r0 = s.y___2034118; - s.tmp_3 = r0 = s.tileSize___2033682; - s.tmp_5 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_5.arg0 = s.hbox___2033676; + s.tmp_1 = r0 = s.y___58112; + s.tmp_3 = r0 = s.tileSize___57676; + s.tmp_5 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_5.arg0 = s.hbox___57670; s.callLocIdx = 727; s.pc = 134; return s.tmp_5; case 134: r0 = s.retval; @@ -32942,10 +34308,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 91; continue; } - s.tmp_9 = Fx_min__P2018108_mk(s); - s.tmp_9.arg0 = s.y___2034118; - s.tmp_10 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_10.arg0 = s.hbox___2033676; + s.tmp_9 = Fx_min__P41959_mk(s); + s.tmp_9.arg0 = s.y___58112; + s.tmp_10 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_10.arg0 = s.hbox___57670; s.callLocIdx = 729; s.pc = 136; return s.tmp_10; case 136: r0 = s.retval; @@ -32956,14 +34322,14 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___2033679 + 8); + r0 = (s.tileScale___57673 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___2034128 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P2020699_mk(s); + s.y0___58122 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P44550_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___2034108; - s.tmp_3.arg2 = s.y0___2034128; + s.tmp_3.arg1 = s.x0___58102; + s.tmp_3.arg2 = s.y0___58122; s.callLocIdx = 733; s.pc = 137; return s.tmp_3; case 137: r0 = s.retval; @@ -32977,7 +34343,7 @@ switch (step) { r0 = s.tmp_0; { step = 88; continue; } case 87: - r0 = s.s___2033651.fields["flags"]; + r0 = s.s___57645.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 2048); s.tmp_7 = r0; @@ -32993,11 +34359,11 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 89; continue; } - s.tmp_10 = r0 = s.overlappedTiles___2034096; - s.tmp_12 = tiles_TileMap_getTile__P2020692_mk(s); + s.tmp_10 = r0 = s.overlappedTiles___58090; + s.tmp_12 = tiles_TileMap_getTile__P44543_mk(s); s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___2034108; - s.tmp_12.arg2 = s.y0___2034128; + s.tmp_12.arg1 = s.x0___58102; + s.tmp_12.arg2 = s.y0___58122; s.callLocIdx = 734; s.pc = 138; return s.tmp_12; case 138: r0 = s.retval; @@ -33005,26 +34371,26 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); case 89: case 90: - r0 = (s.tileSize___2033682 << 8); + r0 = (s.tileSize___57676 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___2034118); - s.y___2034118 = (r0); + r0 = (s.tmp_0 + s.y___58112); + s.y___58112 = (r0); { step = 86; continue; } case 91: - r0 = (s.tileSize___2033682 << 8); + r0 = (s.tileSize___57676 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___2034098); - s.x___2034098 = (r0); + r0 = (s.tmp_0 + s.x___58092); + s.x___58092 = (r0); { step = 85; continue; } case 92: - r0 = pxsim_Array__length(s.overlappedTiles___2034096); + r0 = pxsim_Array__length(s.overlappedTiles___58090); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 93; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P2022787_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P46640_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___2033651; - s.tmp_1.arg2 = s.overlappedTiles___2034096; + s.tmp_1.arg1 = s.s___57645; + s.tmp_1.arg2 = s.overlappedTiles___58090; s.callLocIdx = 737; s.pc = 139; return s.tmp_1; case 139: r0 = s.retval; @@ -33036,12 +34402,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P2022786.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"]} +ArcadePhysicsEngine_tilemapCollisions__P46639.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 ArcadePhysicsEngine_tilemapCollisions__P2022786_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P46639_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P2022786, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P46639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33065,37 +34431,37 @@ function ArcadePhysicsEngine_tilemapCollisions__P2022786_mk(s) { tmp_19: undefined, tmp_20: undefined, tmp_21: undefined, - s___2033651: undefined, - hbox___2033676: undefined, - tileScale___2033679: undefined, - tileSize___2033682: undefined, - xDiff___2033686: undefined, - yDiff___2033693: undefined, - right___2033709: undefined, - x0___2033713: undefined, - collidedTiles___2033728: undefined, - y___2033730: undefined, - y0___2033744: undefined, - obstacle___2033760: undefined, - collisionDirection___2033787: undefined, - tile___2033813: undefined, - unnamed27072___U14: undefined, - unnamed27073___U15: undefined, - down___2033904: undefined, - y0___2033908: undefined, - collidedTiles___2033923: undefined, - x___2033925: undefined, - x0___2033935: undefined, - obstacle___2033949: undefined, - collisionDirection___2033976: undefined, - tile___2034002: undefined, - unnamed27074___U24: undefined, - unnamed27075___U25: undefined, - overlappedTiles___2034096: undefined, - x___2034098: undefined, - x0___2034108: undefined, - y___2034118: undefined, - y0___2034128: undefined, + s___57645: undefined, + hbox___57670: undefined, + tileScale___57673: undefined, + tileSize___57676: undefined, + xDiff___57680: undefined, + yDiff___57687: undefined, + right___57703: undefined, + x0___57707: undefined, + collidedTiles___57722: undefined, + y___57724: undefined, + y0___57738: undefined, + obstacle___57754: undefined, + collisionDirection___57781: undefined, + tile___57807: undefined, + unnamed272___U14: undefined, + unnamed273___U15: undefined, + down___57898: undefined, + y0___57902: undefined, + collidedTiles___57917: undefined, + x___57919: undefined, + x0___57929: undefined, + obstacle___57943: undefined, + collisionDirection___57970: undefined, + tile___57996: undefined, + unnamed274___U24: undefined, + unnamed275___U25: undefined, + overlappedTiles___58090: undefined, + x___58092: undefined, + x0___58102: undefined, + y___58112: undefined, + y0___58122: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33105,7 +34471,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P2022786_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P2033768(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P57762(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33127,12 +34493,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P2033768.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P57762.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P2033768_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P57762_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P2033768, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P57762, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33143,7 +34509,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P2033768_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P2033957(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P57951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33165,12 +34531,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P2033957.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P57951.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P2033957_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P57951_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P2033957, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P57951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33181,7 +34547,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P2033957_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P2022787(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P46640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33191,11 +34557,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___2034175 = undefined; - s.tile___2034178 = undefined; - s.unnamed27076___U2 = undefined; - s.unnamed27077___U3 = undefined; - s.tileOverlapHandlers___2034199 = undefined; + s.alreadyHandled___58169 = undefined; + s.tile___58172 = undefined; + s.unnamed276___U2 = undefined; + s.unnamed277___U3 = undefined; + s.tileOverlapHandlers___58193 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33203,25 +34569,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___2034175 = (r0); - s.tile___2034178 = (undefined); - s.unnamed27076___U2 = (s.arg2); - s.unnamed27077___U3 = (0); + s.alreadyHandled___58169 = (r0); + s.tile___58172 = (undefined); + s.unnamed276___U2 = (s.arg2); + s.unnamed277___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27077___U3; - r0 = pxsim_Array__length(s.unnamed27076___U2); + s.tmp_0 = r0 = s.unnamed277___U3; + r0 = pxsim_Array__length(s.unnamed276___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed27076___U2, s.unnamed27077___U3); - s.tile___2034178 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182); + r0 = pxsim_Array__getAt(s.unnamed276___U2, s.unnamed277___U3); + s.tile___58172 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P58176); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___2034178); - s.tmp_4 = helpers_arraySome__P2018049_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___2034175; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___58172); + s.tmp_4 = helpers_arraySome__P41900_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___58169; s.tmp_4.arg1 = s.tmp_2; s.callLocIdx = 742; s.pc = 8; return s.tmp_4; case 8: @@ -33232,26 +34598,26 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___2034175, s.tile___2034178); - s.tmp_0 = game_currentScene__P2020942_mk(s); + r0 = pxsim_Array__push(s.alreadyHandled___58169, s.tile___58172); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 743; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___2034199 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___2034199); + s.tileOverlapHandlers___58193 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___58193); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P2034207); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P58201); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___2034178); - r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P2034223); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___58172); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P58217); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___2034178); - s.tmp_2 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_3 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___2034199; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___58172); + s.tmp_2 = helpers_arrayForEach__P41902_mk(s); + s.tmp_3 = helpers_arrayFilter__P41903_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___58193; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 746; s.pc = 11; return s.tmp_3; case 11: @@ -33264,32 +34630,32 @@ switch (step) { case 4: case 5: case 6: - r0 = (s.unnamed27077___U3 + 1); - s.unnamed27077___U3 = (r0); + r0 = (s.unnamed277___U3 + 1); + s.unnamed277___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed27076___U2 = (undefined); + s.unnamed276___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P2022787.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"]} +ArcadePhysicsEngine_tilemapOverlaps__P46640.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 ArcadePhysicsEngine_tilemapOverlaps__P2022787_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P46640_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P2022787, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P46640, depth: s.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___2034175: undefined, - tile___2034178: undefined, - unnamed27076___U2: undefined, - unnamed27077___U3: undefined, - tileOverlapHandlers___2034199: undefined, + alreadyHandled___58169: undefined, + tile___58172: undefined, + unnamed276___U2: undefined, + unnamed277___U3: undefined, + tileOverlapHandlers___58193: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33299,7 +34665,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P2022787_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P58176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33336,12 +34702,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P58176.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P58176_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P58176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33356,7 +34722,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P2034182_mk(s) { -function forEach_inline__P2034207(s) { +function forEach_inline__P58201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33383,7 +34749,7 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P2020711_mk(s); + s.tmp_5 = tiles_getTileImage__P44562_mk(s); s.tmp_5.arg0 = s.caps[1]; s.callLocIdx = 745; s.pc = 3; return s.tmp_5; case 3: @@ -33397,12 +34763,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P2034207.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P58201.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P2034207_mk(s) { +function forEach_inline__P58201_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2034207, depth: s.depth + 1, + parent: s, fn: forEach_inline__P58201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33418,7 +34784,7 @@ function forEach_inline__P2034207_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P2034223(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P58217(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33451,12 +34817,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P2034223.info = {"start":23507,"length":28,"line":639,"column":29,"endLine":639,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P58217.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__P2034223_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P58217_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P2034223, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P58217, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33466,7 +34832,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P2034223_mk(s) { -function tiles_getTileImage__P2020711(s) { +function tiles_getTileImage__P44562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33476,16 +34842,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2034231 = undefined; + s.scene___58225 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 876; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___2034231 = (r0); + s.scene___58225 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -33495,7 +34861,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___2034231.fields["tileMap"]; + r0 = s.scene___58225.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -33505,14 +34871,14 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex2034241); + r0 = pxsim.image.ofBuffer(_hex58235); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P2020702_mk(s); - r0 = s.scene___2034231.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P44553_mk(s); + r0 = s.scene___58225.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P2020647_mk(s); + s.tmp_6 = tiles_Location_tileSet__P44498_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 877; s.pc = 8; return s.tmp_6; case 8: @@ -33525,12 +34891,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_getTileImage__P2020711.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__P44562.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__P2020711_mk(s) { +function tiles_getTileImage__P44562_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P2020711, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P44562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33539,16 +34905,16 @@ function tiles_getTileImage__P2020711_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___2034231: undefined, + scene___58225: undefined, arg0: undefined, } } -const _hex2034241 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex58235 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P2020702(s) { +function tiles_TileMap_getTileImage__P44553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33564,8 +34930,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P2020669_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P44520_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -33575,12 +34941,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P2020702.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__P44553.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__P2020702_mk(s) { +function tiles_TileMap_getTileImage__P44553_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P2020702, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P44553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33591,7 +34957,7 @@ function tiles_TileMap_getTileImage__P2020702_mk(s) { -function tiles_TileMapData_getTileImage__P2020669(s) { +function tiles_TileMapData_getTileImage__P44520(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33601,25 +34967,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___2034296 = undefined; - s.cachedImage___2034300 = undefined; - s.originalImage___2034307 = undefined; + s.size___58290 = undefined; + s.cachedImage___58294 = undefined; + s.originalImage___58301 = 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__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___2034296 = (r0); + s.size___58290 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___2034300 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___2034300); + s.cachedImage___58294 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___58294); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -33628,58 +34994,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___2034307 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___2034307); + s.originalImage___58301 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___58301); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___2034307); + r0 = pxsim_ImageMethods.width(s.originalImage___58301); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___2034296); + r0 = (s.tmp_1 <= s.size___58290); 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___2034307); + r0 = pxsim_ImageMethods.height(s.originalImage___58301); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___2034296); + r0 = (s.tmp_2 <= s.size___58290); 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___2034300 = (s.originalImage___2034307); + s.cachedImage___58294 = (s.originalImage___58301); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___2034296, s.size___2034296); - s.cachedImage___2034300 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___2034300, s.originalImage___2034307, 0, 0); + r0 = pxsim.image.create(s.size___58290, s.size___58290); + s.cachedImage___58294 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___58294, s.originalImage___58301, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___2034300); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___58294); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___2034300; + r0 = s.cachedImage___58294; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P2020669.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__P44520.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__P2020669_mk(s) { +function tiles_TileMapData_getTileImage__P44520_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P2020669, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P44520, depth: s.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___2034296: undefined, - cachedImage___2034300: undefined, - originalImage___2034307: undefined, + size___58290: undefined, + cachedImage___58294: undefined, + originalImage___58301: undefined, arg0: undefined, arg1: undefined, } } @@ -33688,7 +35054,7 @@ function tiles_TileMapData_getTileImage__P2020669_mk(s) { -function tiles_TileMapData_scale__P2020664(s) { +function tiles_TileMapData_scale__P44515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33703,18 +35069,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2020664.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__P2020664.isGetter = true; +tiles_TileMapData_scale__P44515.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__P44515.isGetter = true; -function tiles_TileMapData_scale__P2020664_mk(s) { +function tiles_TileMapData_scale__P44515_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2020664, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P44515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33723,7 +35089,7 @@ function tiles_TileMapData_scale__P2020664_mk(s) { -function tiles_Location_tileSet__P2020647(s) { +function tiles_Location_tileSet__P44498(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33738,9 +35104,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P2020693_mk(s); - s.tmp_1 = tiles_Location_tileMap__P2020638_mk(s); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P44544_mk(s); + s.tmp_1 = tiles_Location_tileMap__P44489_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 806; s.pc = 2; return s.tmp_1; case 2: @@ -33756,13 +35122,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P2020647.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__P2020647.isGetter = true; +tiles_Location_tileSet__P44498.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__P44498.isGetter = true; -function tiles_Location_tileSet__P2020647_mk(s) { +function tiles_Location_tileSet__P44498_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P2020647, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P44498, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33773,7 +35139,7 @@ function tiles_Location_tileSet__P2020647_mk(s) { -function tiles_TileMap_getTileIndex__P2020693(s) { +function tiles_TileMap_getTileIndex__P44544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33790,8 +35156,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P2020666_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P44517_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -33802,12 +35168,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P2020693.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__P44544.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__P2020693_mk(s) { +function tiles_TileMap_getTileIndex__P44544_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P2020693, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P44544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33819,7 +35185,7 @@ function tiles_TileMap_getTileIndex__P2020693_mk(s) { -function tiles_TileMapData_getTile__P2020666(s) { +function tiles_TileMapData_getTile__P44517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33836,8 +35202,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2020672_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P44523_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -33870,12 +35236,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P2020666.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__P44517.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__P2020666_mk(s) { +function tiles_TileMapData_getTile__P44517_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P2020666, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P44517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33895,7 +35261,7 @@ function tiles_TileMapData_getTile__P2020666_mk(s) { -function tiles_TileMapData_isOutsideMap__P2020672(s) { +function tiles_TileMapData_isOutsideMap__P44523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33912,7 +35278,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -33952,12 +35318,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P2020672.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__P44523.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__P2020672_mk(s) { +function tiles_TileMapData_isOutsideMap__P44523_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P2020672, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P44523, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33976,7 +35342,7 @@ function tiles_TileMapData_isOutsideMap__P2020672_mk(s) { -function tiles_Location_tileMap__P2020638(s) { +function tiles_Location_tileMap__P44489(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33991,8 +35357,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 797; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; @@ -34000,13 +35366,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileMap__P2020638.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__P2020638.isGetter = true; +tiles_Location_tileMap__P44489.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__P44489.isGetter = true; -function tiles_Location_tileMap__P2020638_mk(s) { +function tiles_Location_tileMap__P44489_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileMap__P2020638, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileMap__P44489, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34016,7 +35382,7 @@ function tiles_Location_tileMap__P2020638_mk(s) { -function tiles_Location_row__P2020640(s) { +function tiles_Location_row__P44491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34031,18 +35397,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P2020640.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__P2020640.isGetter = true; +tiles_Location_row__P44491.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__P44491.isGetter = true; -function tiles_Location_row__P2020640_mk(s) { +function tiles_Location_row__P44491_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P2020640, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P44491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -34051,7 +35417,7 @@ function tiles_Location_row__P2020640_mk(s) { -function tiles_Location_column__P2020639(s) { +function tiles_Location_column__P44490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34066,18 +35432,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_column__P2020639.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__P2020639.isGetter = true; +tiles_Location_column__P44490.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__P44490.isGetter = true; -function tiles_Location_column__P2020639_mk(s) { +function tiles_Location_column__P44490_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_column__P2020639, depth: s.depth + 1, + parent: s, fn: tiles_Location_column__P44490, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -34086,7 +35452,7 @@ function tiles_Location_column__P2020639_mk(s) { -function tiles_TileMap_getObstacle__P2020700(s) { +function tiles_TileMap_getObstacle__P44551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34096,8 +35462,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___2034470 = undefined; - s.tile___2034482 = undefined; + s.index___58464 = undefined; + s.tile___58476 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34105,8 +35471,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2020672_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P44523_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -34120,7 +35486,7 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P2020666_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P44517_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; @@ -34131,20 +35497,20 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_3 = r0; - s.index___2034470 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P2020669_mk(s); + s.index___58464 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P44520_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___2034470; + s.tmp_0.arg1 = s.index___58464; s.callLocIdx = 856; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___2034482 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2020441_VT); + s.tile___58476 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C44292_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P2020447_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P44298_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___2034482; + s.tmp_1.arg1 = s.tile___58476; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -34157,7 +35523,7 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___2034470; + s.tmp_1.arg5 = s.index___58464; s.callLocIdx = 860; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; @@ -34165,12 +35531,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getObstacle__P2020700.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"]} +tiles_TileMap_getObstacle__P44551.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 tiles_TileMap_getObstacle__P2020700_mk(s) { +function tiles_TileMap_getObstacle__P44551_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P2020700, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P44551, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34178,8 +35544,8 @@ function tiles_TileMap_getObstacle__P2020700_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___2034470: undefined, - tile___2034482: undefined, + index___58464: undefined, + tile___58476: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34189,7 +35555,7 @@ function tiles_TileMap_getObstacle__P2020700_mk(s) { -function tiles_TileMap_layer__P2020688(s) { +function tiles_TileMap_layer__P44539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34204,18 +35570,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P2020688.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__P2020688.isGetter = true; +tiles_TileMap_layer__P44539.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__P44539.isGetter = true; -function tiles_TileMap_layer__P2020688_mk(s) { +function tiles_TileMap_layer__P44539_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P2020688, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P44539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -34224,7 +35590,7 @@ function tiles_TileMap_layer__P2020688_mk(s) { -function sprites_StaticObstacle_constructor__P2020447(s) { +function sprites_StaticObstacle_constructor__P44298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34244,7 +35610,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2020441_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C44292_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -34254,12 +35620,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P2020447.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"]} +sprites_StaticObstacle_constructor__P44298.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 sprites_StaticObstacle_constructor__P2020447_mk(s) { +function sprites_StaticObstacle_constructor__P44298_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P2020447, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P44298, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34273,7 +35639,7 @@ function sprites_StaticObstacle_constructor__P2020447_mk(s) { -function tiles_TileMap_isObstacle__P2020699(s) { +function tiles_TileMap_isObstacle__P44550(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34290,7 +35656,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -34311,7 +35677,7 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P2020672_mk(s); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P44523_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_8.arg0 = r0; s.tmp_8.arg1 = s.arg1; @@ -34337,12 +35703,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P2020699.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"]} +tiles_TileMap_isObstacle__P44550.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 tiles_TileMap_isObstacle__P2020699_mk(s) { +function tiles_TileMap_isObstacle__P44550_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P2020699, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P44550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34365,7 +35731,7 @@ function tiles_TileMap_isObstacle__P2020699_mk(s) { -function tiles_TileMapData_isWall__P2020671(s) { +function tiles_TileMapData_isWall__P44522(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34382,7 +35748,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); @@ -34391,12 +35757,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P2020671.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"]} +tiles_TileMapData_isWall__P44522.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 tiles_TileMapData_isWall__P2020671_mk(s) { +function tiles_TileMapData_isWall__P44522_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P2020671, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P44522, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34409,7 +35775,7 @@ function tiles_TileMapData_isWall__P2020671_mk(s) { -function tiles_TileMap_getTile__P2020692(s) { +function tiles_TileMap_getTile__P44543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34426,10 +35792,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2020636_VT); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C44487_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P2020637_mk(s); + s.tmp_1 = tiles_Location_constructor__P44488_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -34441,12 +35807,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P2020692.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__P44543.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__P2020692_mk(s) { +function tiles_TileMap_getTile__P44543_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P2020692, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P44543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34459,7 +35825,7 @@ function tiles_TileMap_getTile__P2020692_mk(s) { -function tiles_Location_constructor__P2020637(s) { +function tiles_Location_constructor__P44488(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34477,19 +35843,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C44487_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__P2020637.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__P44488.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__P2020637_mk(s) { +function tiles_Location_constructor__P44488_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P2020637, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P44488, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34501,7 +35867,7 @@ function tiles_Location_constructor__P2020637_mk(s) { -function Sprite_registerObstacle__P2020369(s) { +function Sprite_registerObstacle__P44220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34511,10 +35877,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___2034383 = undefined; - s.wallCollisionHandlers___2034390 = undefined; - s.wallHandlersToRun___2034415 = undefined; - s.asTileLocation___2034428 = undefined; + s.collisionHandlers___58377 = undefined; + s.wallCollisionHandlers___58384 = undefined; + s.wallHandlersToRun___58409 = undefined; + s.asTileLocation___58422 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34523,11 +35889,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_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__P2020942_mk(s); + s.tmp_1 = game_currentScene__P44793_mk(s); s.callLocIdx = 414; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -34547,24 +35913,24 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___2034383 = (r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.collisionHandlers___58377 = (r0); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 416; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___2034390 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___2034383); + s.wallCollisionHandlers___58384 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___58377); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P2034398); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P58392); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P2034404); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P58398); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_3 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___2034383; + s.tmp_2 = helpers_arrayForEach__P41902_mk(s); + s.tmp_3 = helpers_arrayFilter__P41903_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___58377; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 418; s.pc = 13; return s.tmp_3; case 13: @@ -34576,7 +35942,7 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___2034390); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___58384); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -34584,7 +35950,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P2020942_mk(s); + s.tmp_1 = game_currentScene__P44793_mk(s); s.callLocIdx = 421; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; @@ -34593,21 +35959,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P2034417); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P58411); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___2034390; + s.tmp_1 = helpers_arrayFilter__P41903_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___58384; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 423; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___2034415 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___2034415); + s.wallHandlersToRun___58409 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___58409); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P2020692_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P44543_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -34646,13 +36012,13 @@ switch (step) { s.callLocIdx = 428; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___2034428 = (r0); - r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P2034444); + s.asTileLocation___58422 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P58438); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___2034428); - s.tmp_1 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___2034415; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___58422); + s.tmp_1 = helpers_arrayForEach__P41902_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___58409; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 430; s.pc = 19; return s.tmp_1; case 19: @@ -34665,12 +36031,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P2020369.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P44220.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P2020369_mk(s) { +function Sprite_registerObstacle__P44220_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P2020369, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P44220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34680,10 +36046,10 @@ function Sprite_registerObstacle__P2020369_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___2034383: undefined, - wallCollisionHandlers___2034390: undefined, - wallHandlersToRun___2034415: undefined, - asTileLocation___2034428: undefined, + collisionHandlers___58377: undefined, + wallCollisionHandlers___58384: undefined, + wallHandlersToRun___58409: undefined, + asTileLocation___58422: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34694,7 +36060,7 @@ function Sprite_registerObstacle__P2020369_mk(s) { -function forEach_inline__P2034398(s) { +function forEach_inline__P58392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34716,12 +36082,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P2034398.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P58392.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P2034398_mk(s) { +function forEach_inline__P58392_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2034398, depth: s.depth + 1, + parent: s, fn: forEach_inline__P58392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34732,7 +36098,7 @@ function forEach_inline__P2034398_mk(s) { -function Sprite_registerObstacle_inline__P2034404(s) { +function Sprite_registerObstacle_inline__P58398(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34764,12 +36130,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P2034404.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P58398.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P2034404_mk(s) { +function Sprite_registerObstacle_inline__P58398_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P2034404, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P58398, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34779,7 +36145,7 @@ function Sprite_registerObstacle_inline__P2034404_mk(s) { -function wallHandlersToRun_inline__P2034417(s) { +function wallHandlersToRun_inline__P58411(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34801,12 +36167,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -wallHandlersToRun_inline__P2034417.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +wallHandlersToRun_inline__P58411.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function wallHandlersToRun_inline__P2034417_mk(s) { +function wallHandlersToRun_inline__P58411_mk(s) { checkStack(s.depth); return { - parent: s, fn: wallHandlersToRun_inline__P2034417, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P58411, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34817,7 +36183,7 @@ function wallHandlersToRun_inline__P2034417_mk(s) { -function Sprite_registerObstacle_inline__P2034444(s) { +function Sprite_registerObstacle_inline__P58438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34850,12 +36216,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P2034444.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P58438.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P2034444_mk(s) { +function Sprite_registerObstacle_inline__P58438_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P2034444, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P58438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34865,7 +36231,7 @@ function Sprite_registerObstacle_inline__P2034444_mk(s) { -function Math_sign__P2018071(s) { +function Math_sign__P41922(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34900,12 +36266,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P2018071.info = {"start":16355,"length":125,"line":547,"column":4,"endLine":551,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +Math_sign__P41922.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 Math_sign__P2018071_mk(s) { +function Math_sign__P41922_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P2018071, depth: s.depth + 1, + parent: s, fn: Math_sign__P41922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34916,7 +36282,7 @@ function Math_sign__P2018071_mk(s) { -function helpers_arraySome__P2018049(s) { +function helpers_arraySome__P41900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34926,26 +36292,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___2034452 = undefined; - s.i___2034455 = undefined; + s.len___58446 = undefined; + s.i___58449 = 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___2034452 = (r0); - s.i___2034455 = (0); + s.len___58446 = (r0); + s.i___58449 = (0); case 1: - r0 = (s.i___2034455 < s.len___2034452); + r0 = (s.i___58449 < s.len___58446); 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___2034455); + r0 = pxsim_Array__getAt(s.arg0, s.i___58449); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___2034455; + s.tmp_2.arg1 = s.i___58449; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: @@ -34957,8 +36323,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___2034455 + 1); - s.i___2034455 = (r0); + r0 = (s.i___58449 + 1); + s.i___58449 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -34966,18 +36332,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P2018049.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"]} +helpers_arraySome__P41900.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 helpers_arraySome__P2018049_mk(s) { +function helpers_arraySome__P41900_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P2018049, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P41900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___2034452: undefined, - i___2034455: undefined, + len___58446: undefined, + i___58449: undefined, arg0: undefined, arg1: undefined, } } @@ -34986,7 +36352,7 @@ function helpers_arraySome__P2018049_mk(s) { -function tiles_TileMap_isOnWall__P2020701(s) { +function tiles_TileMap_isOnWall__P44552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34996,24 +36362,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___2033557 = undefined; - s.left___2033560 = undefined; - s.right___2033566 = undefined; - s.top___2033572 = undefined; - s.bottom___2033578 = undefined; - s.col___2033584 = undefined; - s.row___2033590 = undefined; + s.hbox___57551 = undefined; + s.left___57554 = undefined; + s.right___57560 = undefined; + s.top___57566 = undefined; + s.bottom___57572 = undefined; + s.col___57578 = undefined; + s.row___57584 = 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__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___2033557 = (r0); - s.tmp_1 = game_Hitbox_left__P2020159_mk(s); - s.tmp_1.arg0 = s.hbox___2033557; + s.hbox___57551 = (r0); + s.tmp_1 = game_Hitbox_left__P44010_mk(s); + s.tmp_1.arg0 = s.hbox___57551; s.callLocIdx = 861; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; @@ -35023,9 +36389,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___2033560 = (r0); - s.tmp_1 = game_Hitbox_right__P2020161_mk(s); - s.tmp_1.arg0 = s.hbox___2033557; + s.left___57554 = (r0); + s.tmp_1 = game_Hitbox_right__P44012_mk(s); + s.tmp_1.arg0 = s.hbox___57551; s.callLocIdx = 864; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -35035,9 +36401,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___2033566 = (r0); - s.tmp_1 = game_Hitbox_top__P2020160_mk(s); - s.tmp_1.arg0 = s.hbox___2033557; + s.right___57560 = (r0); + s.tmp_1 = game_Hitbox_top__P44011_mk(s); + s.tmp_1.arg0 = s.hbox___57551; s.callLocIdx = 867; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; @@ -35047,9 +36413,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___2033572 = (r0); - s.tmp_1 = game_Hitbox_bottom__P2020162_mk(s); - s.tmp_1.arg0 = s.hbox___2033557; + s.top___57566 = (r0); + s.tmp_1 = game_Hitbox_bottom__P44013_mk(s); + s.tmp_1.arg0 = s.hbox___57551; s.callLocIdx = 870; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; @@ -35059,23 +36425,23 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___2033578 = (r0); - s.col___2033584 = (s.left___2033560); + s.bottom___57572 = (r0); + s.col___57578 = (s.left___57554); case 1: - r0 = (s.col___2033584 <= s.right___2033566); + r0 = (s.col___57578 <= s.right___57560); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___2033590 = (s.top___2033572); + s.row___57584 = (s.top___57566); case 2: - r0 = (s.row___2033590 <= s.bottom___2033578); + r0 = (s.row___57584 <= s.bottom___57572); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P2020699_mk(s); + s.tmp_2 = tiles_TileMap_isObstacle__P44550_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___2033584; - s.tmp_2.arg2 = s.row___2033590; + s.tmp_2.arg1 = s.col___57578; + s.tmp_2.arg2 = s.row___57584; s.callLocIdx = 873; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; @@ -35086,12 +36452,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___2033590 + 1); - s.row___2033590 = (r0); + r0 = (s.row___57584 + 1); + s.row___57584 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___2033584 + 1); - s.col___2033584 = (r0); + r0 = (s.col___57578 + 1); + s.col___57578 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -35099,24 +36465,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P2020701.info = {"start":16873,"length":627,"line":534,"column":8,"endLine":551,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_TileMap_isOnWall__P44552.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 tiles_TileMap_isOnWall__P2020701_mk(s) { +function tiles_TileMap_isOnWall__P44552_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P2020701, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P44552, depth: s.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___2033557: undefined, - left___2033560: undefined, - right___2033566: undefined, - top___2033572: undefined, - bottom___2033578: undefined, - col___2033584: undefined, - row___2033590: undefined, + hbox___57551: undefined, + left___57554: undefined, + right___57560: undefined, + top___57566: undefined, + bottom___57572: undefined, + col___57578: undefined, + row___57584: undefined, arg0: undefined, arg1: undefined, } } @@ -35125,7 +36491,7 @@ function tiles_TileMap_isOnWall__P2020701_mk(s) { -function MovingSprite_constructor__P2020469(s) { +function MovingSprite_constructor__P44320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35147,7 +36513,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C2020468_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C44319_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -35159,12 +36525,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P2020469.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"]} +MovingSprite_constructor__P44320.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__P2020469_mk(s) { +function MovingSprite_constructor__P44320_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P2020469, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P44320, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -35180,7 +36546,7 @@ function MovingSprite_constructor__P2020469_mk(s) { -function ArcadePhysicsEngine_move__P2020482(s) { +function ArcadePhysicsEngine_move__P44333(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35190,76 +36556,76 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___2034527 = undefined; - s.dt2___2034533 = undefined; - s.scene___2034537 = undefined; - s.tileMap___2034540 = undefined; - s.movingSprites___2034543 = undefined; - s.MAX_STEP_COUNT___2034574 = undefined; - s.overlapHandlers___2034586 = undefined; - s.selected___2034593 = undefined; - s.buffers___2034594 = undefined; - s.count___2034598 = undefined; - s.currMovers___2034608 = undefined; - s.remainingMovers___2034615 = undefined; - s.ms___2034620 = undefined; - s.unnamed27066___U13 = undefined; - s.unnamed27067___U14 = undefined; - s.s___2034622 = undefined; - s.stepX___2034715 = undefined; - s.stepY___2034729 = undefined; - s.bounce___2034792 = undefined; + s.dtMs___58521 = undefined; + s.dt2___58527 = undefined; + s.scene___58531 = undefined; + s.tileMap___58534 = undefined; + s.movingSprites___58537 = undefined; + s.MAX_STEP_COUNT___58568 = undefined; + s.overlapHandlers___58580 = undefined; + s.selected___58587 = undefined; + s.buffers___58588 = undefined; + s.count___58592 = undefined; + s.currMovers___58602 = undefined; + s.remainingMovers___58609 = undefined; + s.ms___58614 = undefined; + s.unnamed266___U13 = undefined; + s.unnamed267___U14 = undefined; + s.s___58616 = undefined; + s.stepX___58709 = undefined; + s.stepY___58723 = undefined; + s.bounce___58786 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - s.tmp_0 = Math_min__P2018073_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = Math_min__P41924_mk(s); s.tmp_0.arg0 = 100; r0 = (s.arg1 * 1000); s.tmp_0.arg1 = r0; s.callLocIdx = 539; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.dtMs___2034527 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___2034527, 2); - s.dt2___2034533 = (r0); - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.dtMs___58521 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___58521, 2); + s.dt2___58527 = (r0); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 540; s.pc = 54; return s.tmp_0; case 54: r0 = s.retval; - s.scene___2034537 = (r0); - r0 = s.scene___2034537.fields["tileMap"]; - s.tileMap___2034540 = (r0); - r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P2034545); + s.scene___58531 = (r0); + r0 = s.scene___58531.fields["tileMap"]; + s.tileMap___58534 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P58539); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___2034527); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___2034533); - s.tmp_1 = helpers_arrayMap__P2018048_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___58521); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___58527); + s.tmp_1 = helpers_arrayMap__P41899_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 542; s.pc = 55; return s.tmp_1; case 55: r0 = s.retval; - s.movingSprites___2034543 = (r0); - s.tmp_0 = helpers_arrayForEach__P2018051_mk(s); + s.movingSprites___58537 = (r0); + s.tmp_0 = helpers_arrayForEach__P41902_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P2034557; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P58551; s.callLocIdx = 546; s.pc = 56; return s.tmp_0; case 56: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P2020395_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P44246_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; s.callLocIdx = 547; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P2020394_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P44245_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; @@ -35275,41 +36641,41 @@ switch (step) { 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___2034527); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___58521); 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___2034574 = (r0); - s.tmp_0 = helpers_arraySlice__P2018057_mk(s); - r0 = s.scene___2034537.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___58568 = (r0); + s.tmp_0 = helpers_arraySlice__P41908_mk(s); + r0 = s.scene___58531.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; s.callLocIdx = 553; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.overlapHandlers___2034586 = (r0); - s.selected___2034593 = (0); + s.overlapHandlers___58580 = (r0); + s.selected___58587 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___2034543); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___58537); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___2034594 = (s.tmp_0); - s.count___2034598 = (0); + s.buffers___58588 = (s.tmp_0); + s.count___58592 = (0); case 1: - r0 = (s.count___2034598 < s.MAX_STEP_COUNT___2034574); + r0 = (s.count___58592 < s.MAX_STEP_COUNT___58568); 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___2034594, s.selected___2034593); + r0 = pxsim_Array__getAt(s.buffers___58588, s.selected___58587); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -35319,43 +36685,43 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 52; continue; } - r0 = pxsim_Array__getAt(s.buffers___2034594, s.selected___2034593); - s.currMovers___2034608 = (r0); - r0 = (s.selected___2034593 ^ 1); - s.selected___2034593 = (r0); - r0 = pxsim_Array__getAt(s.buffers___2034594, s.selected___2034593); - s.remainingMovers___2034615 = (r0); - s.ms___2034620 = (undefined); - s.unnamed27066___U13 = (s.currMovers___2034608); - s.unnamed27067___U14 = (0); + r0 = pxsim_Array__getAt(s.buffers___58588, s.selected___58587); + s.currMovers___58602 = (r0); + r0 = (s.selected___58587 ^ 1); + s.selected___58587 = (r0); + r0 = pxsim_Array__getAt(s.buffers___58588, s.selected___58587); + s.remainingMovers___58609 = (r0); + s.ms___58614 = (undefined); + s.unnamed266___U13 = (s.currMovers___58602); + s.unnamed267___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed27067___U14; - r0 = pxsim_Array__length(s.unnamed27066___U13); + s.tmp_0 = r0 = s.unnamed267___U14; + r0 = pxsim_Array__length(s.unnamed266___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 49; continue; } - r0 = pxsim_Array__getAt(s.unnamed27066___U13, s.unnamed27067___U14); - s.ms___2034620 = (r0); - r0 = s.ms___2034620.fields["sprite"]; - s.s___2034622 = (r0); - r0 = s.ms___2034620.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed266___U13, s.unnamed267___U14); + s.ms___58614 = (r0); + r0 = s.ms___58614.fields["sprite"]; + s.s___58616 = (r0); + r0 = s.ms___58614.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___2034622.fields["_vx"]; + r0 = s.s___58616.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___2034622.fields["_vx"]; + r0 = s.s___58616.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___2034620).fields["dx"] = (0); + r0 = (s.ms___58614).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___2034622.fields["_vx"]; + r0 = s.s___58616.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -35364,7 +36730,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___2034620.fields["cachedVx"]; + r0 = s.ms___58614.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -35375,7 +36741,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___2034622.fields["_vx"]; + r0 = s.s___58616.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -35384,7 +36750,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___2034620.fields["cachedVx"]; + r0 = s.ms___58614.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -35396,14 +36762,14 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 12; continue; } - s.tmp_9 = r0 = s.ms___2034620; - r0 = s.ms___2034620.fields["dx"]; + s.tmp_9 = r0 = s.ms___58614; + r0 = s.ms___58614.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___2034620; - r0 = s.ms___2034620.fields["xStep"]; + s.tmp_0 = r0 = s.ms___58614; + r0 = s.ms___58614.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -35411,29 +36777,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___2034622.fields["_vx"]; + r0 = s.s___58616.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___2034620).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___58614).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___2034620.fields["cachedVy"]; + r0 = s.ms___58614.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___2034622.fields["_vy"]; + r0 = s.s___58616.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___2034622.fields["_vy"]; + r0 = s.s___58616.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___2034620).fields["dy"] = (0); + r0 = (s.ms___58614).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___2034622.fields["_vy"]; + r0 = s.s___58616.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -35442,7 +36808,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___2034620.fields["cachedVy"]; + r0 = s.ms___58614.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -35453,7 +36819,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___2034622.fields["_vy"]; + r0 = s.s___58616.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -35462,7 +36828,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___2034620.fields["cachedVy"]; + r0 = s.ms___58614.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -35474,14 +36840,14 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 24; continue; } - s.tmp_9 = r0 = s.ms___2034620; - r0 = s.ms___2034620.fields["dy"]; + s.tmp_9 = r0 = s.ms___58614; + r0 = s.ms___58614.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___2034620; - r0 = s.ms___2034620.fields["yStep"]; + s.tmp_0 = r0 = s.ms___58614; + r0 = s.ms___58614.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -35489,20 +36855,20 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___2034622.fields["_vy"]; + r0 = s.s___58616.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___2034620).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___58614).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P2018107_mk(s); - r0 = s.ms___2034620.fields["xStep"]; + s.tmp_2 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["xStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 558; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P2018107_mk(s); - r0 = s.ms___2034620.fields["dx"]; + s.tmp_4 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["dx"]; s.tmp_4.arg0 = r0; s.callLocIdx = 559; s.pc = 61; return s.tmp_4; case 61: @@ -35512,23 +36878,23 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___2034620.fields["dx"]; + r0 = s.ms___58614.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___2034620.fields["xStep"]; + r0 = s.ms___58614.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___2034715 = (s.tmp_5); - s.tmp_2 = Fx_abs__P2018107_mk(s); - r0 = s.ms___2034620.fields["yStep"]; + s.stepX___58709 = (s.tmp_5); + s.tmp_2 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["yStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 560; s.pc = 62; return s.tmp_2; case 62: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P2018107_mk(s); - r0 = s.ms___2034620.fields["dy"]; + s.tmp_4 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 561; s.pc = 63; return s.tmp_4; case 63: @@ -35538,45 +36904,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___2034620.fields["dy"]; + r0 = s.ms___58614.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___2034620.fields["yStep"]; + r0 = s.ms___58614.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___2034729 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___2034620; - r0 = s.ms___2034620.fields["dx"]; + s.stepY___58723 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___58614; + r0 = s.ms___58614.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___2034715); + r0 = (s.tmp_2 - s.stepX___58709); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___2034620; - r0 = s.ms___2034620.fields["dy"]; + s.tmp_0 = r0 = s.ms___58614; + r0 = s.ms___58614.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___2034729); + r0 = (s.tmp_2 - s.stepY___58723); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___2034622.fields["_x"]; + r0 = s.s___58616.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___2034622).fields["_lastX"] = (s.tmp_0); - r0 = s.s___2034622.fields["_y"]; + r0 = (s.s___58616).fields["_lastX"] = (s.tmp_0); + r0 = s.s___58616.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___2034622).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___2034622; - r0 = s.s___2034622.fields["_x"]; + r0 = (s.s___58616).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___58616; + r0 = s.s___58616.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___2034715); + r0 = (s.tmp_2 + s.stepX___58709); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___2034622; - r0 = s.s___2034622.fields["_y"]; + s.tmp_0 = r0 = s.s___58616; + r0 = s.s___58616.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___2034729); + r0 = (s.tmp_2 + s.stepY___58723); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___2034622.fields["flags"]; + r0 = s.s___58616.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -35586,22 +36952,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 33; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P2020396_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P44247_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___2034622; + s.tmp_4.arg1 = s.s___58616; s.callLocIdx = 566; s.pc = 64; return s.tmp_4; case 64: r0 = s.retval; case 33: case 34: - s.tmp_0 = r0 = s.tileMap___2034540; + s.tmp_0 = r0 = s.tileMap___58534; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 35; continue; } r0 = s.tmp_0; { step = 36; continue; } case 35: - r0 = s.tileMap___2034540.fields["_map"]; + r0 = s.tileMap___58534.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -35615,20 +36981,20 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P2022786_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P46639_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___2034620; - s.tmp_6.arg2 = s.tileMap___2034540; + s.tmp_6.arg1 = s.ms___58614; + s.tmp_6.arg2 = s.tileMap___58534; s.callLocIdx = 568; s.pc = 65; return s.tmp_6; case 65: r0 = s.retval; case 37: case 38: - r0 = s.s___2034622.fields["flags"]; + r0 = s.s___58616.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___2034792 = (r0); - r0 = s.s___2034622.fields["flags"]; + s.bounce___58786 = (r0); + r0 = s.s___58616.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); s.tmp_0 = r0; @@ -35637,13 +37003,13 @@ switch (step) { r0 = s.tmp_0; { step = 42; continue; } case 39: - s.tmp_2 = r0 = s.bounce___2034792; + s.tmp_2 = r0 = s.bounce___58786; 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___2034540); + r0 = pxsim_numops_toBoolDecr(s.tileMap___58534); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 41: @@ -35655,81 +37021,81 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 43; continue; } - s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P2022785_mk(s); + s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P46638_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___2034620; - s.tmp_6.arg2 = s.bounce___2034792; - r0 = s.scene___2034537.fields["camera"]; + s.tmp_6.arg1 = s.ms___58614; + s.tmp_6.arg2 = s.bounce___58786; + r0 = s.scene___58531.fields["camera"]; s.tmp_6.arg3 = r0; s.callLocIdx = 569; s.pc = 66; return s.tmp_6; case 66: r0 = s.retval; case 43: case 44: - s.tmp_2 = Fx_abs__P2018107_mk(s); - r0 = s.ms___2034620.fields["dx"]; + s.tmp_2 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["dx"]; s.tmp_2.arg0 = r0; s.callLocIdx = 570; s.pc = 67; return s.tmp_2; case 67: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___2020464); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___44315); 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__P2018107_mk(s); - r0 = s.ms___2034620.fields["dy"]; + s.tmp_4 = Fx_abs__P41958_mk(s); + r0 = s.ms___58614.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 571; s.pc = 68; return s.tmp_4; case 68: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___2020464); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___44315); 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___2034615, s.ms___2034620); + r0 = pxsim_Array__push(s.remainingMovers___58609, s.ms___58614); case 47: case 48: - r0 = (s.unnamed27067___U14 + 1); - s.unnamed27067___U14 = (r0); + r0 = (s.unnamed267___U14 + 1); + s.unnamed267___U14 = (r0); { step = 4; continue; } case 49: - s.unnamed27066___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P2022784_mk(s); + s.unnamed266___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P46637_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___2034608; - s.tmp_0.arg2 = s.overlapHandlers___2034586; + s.tmp_0.arg1 = s.currMovers___58602; + s.tmp_0.arg2 = s.overlapHandlers___58580; s.callLocIdx = 572; s.pc = 69; return s.tmp_0; case 69: r0 = s.retval; case 50: - r0 = pxsim_Array__length(s.currMovers___2034608); + r0 = pxsim_Array__length(s.currMovers___58602); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 51; continue; } - r0 = pxsim_Array_.pop(s.currMovers___2034608); + r0 = pxsim_Array_.pop(s.currMovers___58602); { step = 50; continue; } case 51: - r0 = (s.count___2034598 + 1); - s.count___2034598 = (r0); + r0 = (s.count___58592 + 1); + s.count___58592 = (r0); { step = 1; continue; } case 52: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P2020482.info = {"start":2822,"length":4105,"line":112,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P44333.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 ArcadePhysicsEngine_move__P2020482_mk(s) { +function ArcadePhysicsEngine_move__P44333_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P2020482, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P44333, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35743,25 +37109,25 @@ function ArcadePhysicsEngine_move__P2020482_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtMs___2034527: undefined, - dt2___2034533: undefined, - scene___2034537: undefined, - tileMap___2034540: undefined, - movingSprites___2034543: undefined, - MAX_STEP_COUNT___2034574: undefined, - overlapHandlers___2034586: undefined, - selected___2034593: undefined, - buffers___2034594: undefined, - count___2034598: undefined, - currMovers___2034608: undefined, - remainingMovers___2034615: undefined, - ms___2034620: undefined, - unnamed27066___U13: undefined, - unnamed27067___U14: undefined, - s___2034622: undefined, - stepX___2034715: undefined, - stepY___2034729: undefined, - bounce___2034792: undefined, + dtMs___58521: undefined, + dt2___58527: undefined, + scene___58531: undefined, + tileMap___58534: undefined, + movingSprites___58537: undefined, + MAX_STEP_COUNT___58568: undefined, + overlapHandlers___58580: undefined, + selected___58587: undefined, + buffers___58588: undefined, + count___58592: undefined, + currMovers___58602: undefined, + remainingMovers___58609: undefined, + ms___58614: undefined, + unnamed266___U13: undefined, + unnamed267___U14: undefined, + s___58616: undefined, + stepX___58709: undefined, + stepY___58723: undefined, + bounce___58786: undefined, arg0: undefined, arg1: undefined, } } @@ -35770,7 +37136,7 @@ function ArcadePhysicsEngine_move__P2020482_mk(s) { -function movingSprites_inline__P2034545(s) { +function movingSprites_inline__P58539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35784,7 +37150,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P2022783_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P46636_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.caps[1]; @@ -35795,12 +37161,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -movingSprites_inline__P2034545.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +movingSprites_inline__P58539.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__P2034545_mk(s) { +function movingSprites_inline__P58539_mk(s) { checkStack(s.depth); return { - parent: s, fn: movingSprites_inline__P2034545, depth: s.depth + 1, + parent: s, fn: movingSprites_inline__P58539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35810,7 +37176,7 @@ function movingSprites_inline__P2034545_mk(s) { -function ArcadePhysicsEngine_move_inline__P2034557(s) { +function ArcadePhysicsEngine_move_inline__P58551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35824,7 +37190,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P2020301_mk(s); + s.tmp_1 = Sprite_vx__P44152_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 543; s.pc = 5; return s.tmp_1; case 5: @@ -35835,7 +37201,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P2020303_mk(s); + s.tmp_2 = Sprite_vy__P44154_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 544; s.pc = 6; return s.tmp_2; case 6: @@ -35845,7 +37211,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P2020368_mk(s); + s.tmp_4 = Sprite_clearObstacles__P44219_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 545; s.pc = 7; return s.tmp_4; case 7: @@ -35856,12 +37222,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move_inline__P2034557.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +ArcadePhysicsEngine_move_inline__P58551.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function ArcadePhysicsEngine_move_inline__P2034557_mk(s) { +function ArcadePhysicsEngine_move_inline__P58551_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move_inline__P2034557, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P58551, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35875,7 +37241,7 @@ function ArcadePhysicsEngine_move_inline__P2034557_mk(s) { -function ArcadePhysicsEngine_screenEdgeCollisions__P2022785(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P46638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35885,8 +37251,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___2035375 = undefined; - s.offset___2035390 = undefined; + s.s___59369 = undefined; + s.offset___59384 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35895,10 +37261,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___2035375 = (r0); - r0 = s.s___2035375.fields["_image"]; + s.s___59369 = (r0); + r0 = s.s___59369.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -35908,16 +37274,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C2020284_v4_1_mk(s); - s.tmp_4.arg0 = s.s___2035375; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C2020284_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = Sprite__C44135_v4_1_mk(s); + s.tmp_4.arg0 = s.s___59369; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C44135_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__P2020740_mk(s); + s.tmp_3 = scene_Camera_isUpdated__P44591_mk(s); s.tmp_3.arg0 = s.arg3; s.callLocIdx = 617; s.pc = 22; return s.tmp_3; case 22: @@ -35929,15 +37295,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_4 = scene_Camera_update__P2020741_mk(s); + s.tmp_4 = scene_Camera_update__P44592_mk(s); s.tmp_4.arg0 = s.arg3; s.callLocIdx = 618; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; case 3: case 4: - s.tmp_2 = game_Hitbox_left__P2020159_mk(s); - r0 = s.s___2035375.fields["_hitbox"]; + s.tmp_2 = game_Hitbox_left__P44010_mk(s); + r0 = s.s___59369.fields["_hitbox"]; s.tmp_2.arg0 = r0; s.callLocIdx = 619; s.pc = 24; return s.tmp_2; case 24: @@ -35948,31 +37314,31 @@ switch (step) { r0 = s.arg3.fields["_offsetX"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - s.offset___2035390 = (r0); - r0 = (s.offset___2035390 < 0); + s.offset___59384 = (r0); + r0 = (s.offset___59384 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = Sprite_left__P2020343_mk(s); - s.tmp_2 = r0 = s.s___2035375; + s.tmp_1 = Sprite_left__P44194_mk(s); + s.tmp_2 = r0 = s.s___59369; s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_left__P2020342_mk(s); + s.tmp_4 = Sprite_left__P44193_mk(s); s.tmp_4.arg0 = s.tmp_2; s.callLocIdx = 622; s.pc = 26; return s.tmp_4; case 26: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.offset___2035390); + r0 = (s.tmp_3 - s.offset___59384); s.tmp_1.arg1 = r0; s.callLocIdx = 623; 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__P2020302_mk(s); - s.tmp_0.arg0 = s.s___2035375; - s.tmp_2 = Sprite_vx__P2020301_mk(s); - s.tmp_2.arg0 = s.s___2035375; + s.tmp_0 = Sprite_vx__P44153_mk(s); + s.tmp_0.arg0 = s.s___59369; + s.tmp_2 = Sprite_vx__P44152_mk(s); + s.tmp_2.arg0 = s.s___59369; s.callLocIdx = 624; s.pc = 28; return s.tmp_2; case 28: r0 = s.retval; @@ -35986,8 +37352,8 @@ switch (step) { case 6: { step = 12; continue; } case 7: - s.tmp_4 = game_Hitbox_right__P2020161_mk(s); - r0 = s.s___2035375.fields["_hitbox"]; + s.tmp_4 = game_Hitbox_right__P44012_mk(s); + r0 = s.s___59369.fields["_hitbox"]; s.tmp_4.arg0 = r0; s.callLocIdx = 626; s.pc = 29; return s.tmp_4; case 29: @@ -35999,35 +37365,35 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___2035390 = (r0); + s.offset___59384 = (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__P2020345_mk(s); - s.tmp_9 = r0 = s.s___2035375; + s.tmp_8 = Sprite_right__P44196_mk(s); + s.tmp_9 = r0 = s.s___59369; s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_right__P2020344_mk(s); + s.tmp_11 = Sprite_right__P44195_mk(s); s.tmp_11.arg0 = s.tmp_9; s.callLocIdx = 629; s.pc = 31; return s.tmp_11; case 31: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___2035390); + r0 = (s.tmp_10 - s.offset___59384); s.tmp_8.arg1 = r0; s.callLocIdx = 630; 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__P2020302_mk(s); - s.tmp_0.arg0 = s.s___2035375; - s.tmp_2 = Sprite_vx__P2020301_mk(s); - s.tmp_2.arg0 = s.s___2035375; + s.tmp_0 = Sprite_vx__P44153_mk(s); + s.tmp_0.arg0 = s.s___59369; + s.tmp_2 = Sprite_vx__P44152_mk(s); + s.tmp_2.arg0 = s.s___59369; s.callLocIdx = 631; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; @@ -36042,8 +37408,8 @@ switch (step) { case 10: case 11: case 12: - s.tmp_3 = game_Hitbox_top__P2020160_mk(s); - r0 = s.s___2035375.fields["_hitbox"]; + s.tmp_3 = game_Hitbox_top__P44011_mk(s); + r0 = s.s___59369.fields["_hitbox"]; s.tmp_3.arg0 = r0; s.callLocIdx = 633; s.pc = 34; return s.tmp_3; case 34: @@ -36055,31 +37421,31 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_1 - s.tmp_4); s.tmp_0 = r0; - s.offset___2035390 = (r0); + s.offset___59384 = (r0); r0 = (s.tmp_0 < 0); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 15; continue; } - s.tmp_6 = Sprite_top__P2020347_mk(s); - s.tmp_7 = r0 = s.s___2035375; + s.tmp_6 = Sprite_top__P44198_mk(s); + s.tmp_7 = r0 = s.s___59369; s.tmp_6.arg0 = r0; - s.tmp_9 = Sprite_top__P2020346_mk(s); + s.tmp_9 = Sprite_top__P44197_mk(s); s.tmp_9.arg0 = s.tmp_7; s.callLocIdx = 636; s.pc = 36; return s.tmp_9; case 36: r0 = s.retval; s.tmp_8 = r0; - r0 = (s.tmp_8 - s.offset___2035390); + r0 = (s.tmp_8 - s.offset___59384); s.tmp_6.arg1 = r0; s.callLocIdx = 637; 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__P2020304_mk(s); - s.tmp_0.arg0 = s.s___2035375; - s.tmp_2 = Sprite_vy__P2020303_mk(s); - s.tmp_2.arg0 = s.s___2035375; + s.tmp_0 = Sprite_vy__P44155_mk(s); + s.tmp_0.arg0 = s.s___59369; + s.tmp_2 = Sprite_vy__P44154_mk(s); + s.tmp_2.arg0 = s.s___59369; s.callLocIdx = 638; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; @@ -36093,8 +37459,8 @@ switch (step) { case 14: { step = 20; continue; } case 15: - s.tmp_4 = game_Hitbox_bottom__P2020162_mk(s); - r0 = s.s___2035375.fields["_hitbox"]; + s.tmp_4 = game_Hitbox_bottom__P44013_mk(s); + r0 = s.s___59369.fields["_hitbox"]; s.tmp_4.arg0 = r0; s.callLocIdx = 640; s.pc = 39; return s.tmp_4; case 39: @@ -36106,35 +37472,35 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___2035390 = (r0); + s.offset___59384 = (r0); r0 = (s.tmp_0 > 0); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 18; continue; } - s.tmp_8 = Sprite_bottom__P2020349_mk(s); - s.tmp_9 = r0 = s.s___2035375; + s.tmp_8 = Sprite_bottom__P44200_mk(s); + s.tmp_9 = r0 = s.s___59369; s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_bottom__P2020348_mk(s); + s.tmp_11 = Sprite_bottom__P44199_mk(s); s.tmp_11.arg0 = s.tmp_9; s.callLocIdx = 643; s.pc = 41; return s.tmp_11; case 41: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___2035390); + r0 = (s.tmp_10 - s.offset___59384); s.tmp_8.arg1 = r0; s.callLocIdx = 644; 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__P2020304_mk(s); - s.tmp_0.arg0 = s.s___2035375; - s.tmp_2 = Sprite_vy__P2020303_mk(s); - s.tmp_2.arg0 = s.s___2035375; + s.tmp_0 = Sprite_vy__P44155_mk(s); + s.tmp_0.arg0 = s.s___59369; + s.tmp_2 = Sprite_vy__P44154_mk(s); + s.tmp_2.arg0 = s.s___59369; s.callLocIdx = 645; s.pc = 43; return s.tmp_2; case 43: r0 = s.retval; @@ -36153,12 +37519,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_screenEdgeCollisions__P2022785.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"]} +ArcadePhysicsEngine_screenEdgeCollisions__P46638.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__P2022785_mk(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P46638_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P2022785, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P46638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36172,8 +37538,8 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P2022785_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - s___2035375: undefined, - offset___2035390: undefined, + s___59369: undefined, + offset___59384: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36184,7 +37550,7 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P2022785_mk(s) { -function scene_Camera_isUpdated__P2020740(s) { +function scene_Camera_isUpdated__P44591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36199,7 +37565,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); r0 = s.arg0.fields["sprite"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36211,7 +37577,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 1: - s.tmp_5 = Sprite_x__P2020297_mk(s); + s.tmp_5 = Sprite_x__P44148_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_5.arg0 = r0; s.callLocIdx = 889; s.pc = 5; return s.tmp_5; @@ -36227,7 +37593,7 @@ switch (step) { r0 = s.tmp_3; { step = 3; continue; } case 2: - s.tmp_8 = Sprite_y__P2020299_mk(s); + s.tmp_8 = Sprite_y__P44150_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_8.arg0 = r0; s.callLocIdx = 890; s.pc = 6; return s.tmp_8; @@ -36248,12 +37614,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_isUpdated__P2020740.info = {"start":2403,"length":150,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"isUpdated","argumentNames":["this"]} +scene_Camera_isUpdated__P44591.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__P2020740_mk(s) { +function scene_Camera_isUpdated__P44591_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_isUpdated__P2020740, depth: s.depth + 1, + parent: s, fn: scene_Camera_isUpdated__P44591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36274,7 +37640,7 @@ function scene_Camera_isUpdated__P2020740_mk(s) { -function Sprite_bottom__P2020349(s) { +function Sprite_bottom__P44200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36290,11 +37656,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2020347_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P44198_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_height__P2020341_mk(s); + s.tmp_3 = Sprite_height__P44192_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 364; s.pc = 2; return s.tmp_3; case 2: @@ -36309,12 +37675,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_bottom__P2020349.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P44200.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 Sprite_bottom__P2020349_mk(s) { +function Sprite_bottom__P44200_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P2020349, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P44200, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36328,7 +37694,7 @@ function Sprite_bottom__P2020349_mk(s) { -function Sprite_bottom__P2020348(s) { +function Sprite_bottom__P44199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36343,14 +37709,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P2020346_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P44197_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 362; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_height__P2020341_mk(s); + s.tmp_3 = Sprite_height__P44192_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 363; s.pc = 2; return s.tmp_3; case 2: @@ -36360,13 +37726,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P2020348.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__P2020348.isGetter = true; +Sprite_bottom__P44199.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__P44199.isGetter = true; -function Sprite_bottom__P2020348_mk(s) { +function Sprite_bottom__P44199_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P2020348, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P44199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36379,7 +37745,7 @@ function Sprite_bottom__P2020348_mk(s) { -function Sprite_right__P2020345(s) { +function Sprite_right__P44196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36395,11 +37761,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2020343_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P44194_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_width__P2020340_mk(s); + s.tmp_3 = Sprite_width__P44191_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 356; s.pc = 2; return s.tmp_3; case 2: @@ -36414,12 +37780,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_right__P2020345.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P44196.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 Sprite_right__P2020345_mk(s) { +function Sprite_right__P44196_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2020345, depth: s.depth + 1, + parent: s, fn: Sprite_right__P44196, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36433,7 +37799,7 @@ function Sprite_right__P2020345_mk(s) { -function Sprite_right__P2020344(s) { +function Sprite_right__P44195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36448,14 +37814,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P2020342_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P44193_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 354; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_width__P2020340_mk(s); + s.tmp_3 = Sprite_width__P44191_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 355; s.pc = 2; return s.tmp_3; case 2: @@ -36465,13 +37831,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_right__P2020344.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__P2020344.isGetter = true; +Sprite_right__P44195.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__P44195.isGetter = true; -function Sprite_right__P2020344_mk(s) { +function Sprite_right__P44195_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2020344, depth: s.depth + 1, + parent: s, fn: Sprite_right__P44195, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36484,7 +37850,7 @@ function Sprite_right__P2020344_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P2022784(s) { +function ArcadePhysicsEngine_spriteCollisions__P46637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36494,18 +37860,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___2034849 = undefined; - s.unnamed27068___U1 = undefined; - s.unnamed27069___U2 = undefined; - s.sprite___2034851 = undefined; - s.overSprites___2034858 = undefined; - s.overlapper___2034866 = undefined; - s.unnamed27070___U6 = undefined; - s.unnamed27071___U7 = undefined; - s.thisKind___2034872 = undefined; - s.otherKind___2034876 = undefined; - s.higher___2034889 = undefined; - s.lower___2034898 = undefined; + s.ms___58843 = undefined; + s.unnamed268___U1 = undefined; + s.unnamed269___U2 = undefined; + s.sprite___58845 = undefined; + s.overSprites___58852 = undefined; + s.overlapper___58860 = undefined; + s.unnamed270___U6 = undefined; + s.unnamed271___U7 = undefined; + s.thisKind___58866 = undefined; + s.otherKind___58870 = undefined; + s.higher___58883 = undefined; + s.lower___58892 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36513,7 +37879,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36525,20 +37891,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___2034849 = (undefined); - s.unnamed27068___U1 = (s.arg1); - s.unnamed27069___U2 = (0); + s.ms___58843 = (undefined); + s.unnamed268___U1 = (s.arg1); + s.unnamed269___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed27069___U2; - r0 = pxsim_Array__length(s.unnamed27068___U1); + s.tmp_0 = r0 = s.unnamed269___U2; + r0 = pxsim_Array__length(s.unnamed268___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed27068___U1, s.unnamed27069___U2); - s.ms___2034849 = (r0); - r0 = s.ms___2034849.fields["sprite"]; - s.sprite___2034851 = (r0); - r0 = s.sprite___2034851.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed268___U1, s.unnamed269___U2); + s.ms___58843 = (r0); + r0 = s.ms___58843.fields["sprite"]; + s.sprite___58845 = (r0); + r0 = s.sprite___58845.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4610); s.tmp_0 = r0; @@ -36547,27 +37913,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P2020392_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P44243_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___2034849.fields["sprite"]; + r0 = s.ms___58843.fields["sprite"]; s.tmp_2.arg1 = r0; s.callLocIdx = 610; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___2034858 = (r0); - s.overlapper___2034866 = (undefined); - s.unnamed27070___U6 = (s.overSprites___2034858); - s.unnamed27071___U7 = (0); + s.overSprites___58852 = (r0); + s.overlapper___58860 = (undefined); + s.unnamed270___U6 = (s.overSprites___58852); + s.unnamed271___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed27071___U7; - r0 = pxsim_Array__length(s.unnamed27070___U6); + s.tmp_0 = r0 = s.unnamed271___U7; + r0 = pxsim_Array__length(s.unnamed270___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed27070___U6, s.unnamed27071___U7); - s.overlapper___2034866 = (r0); - r0 = s.overlapper___2034866.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed270___U6, s.unnamed271___U7); + s.overlapper___58860 = (r0); + r0 = s.overlapper___58860.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -36576,13 +37942,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___2034851.fields["_kind"]; - s.thisKind___2034872 = (r0); - r0 = s.overlapper___2034866.fields["_kind"]; - s.otherKind___2034876 = (r0); - r0 = s.sprite___2034851.fields["_kindsOverlappedWith"]; + r0 = s.sprite___58845.fields["_kind"]; + s.thisKind___58866 = (r0); + r0 = s.overlapper___58860.fields["_kind"]; + s.otherKind___58870 = (r0); + r0 = s.sprite___58845.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___2034876, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___58870, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -36591,37 +37957,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___2034851.fields["id"]; + r0 = s.sprite___58845.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___2034866.fields["id"]; + r0 = s.overlapper___58860.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___2034851; + r0 = s.sprite___58845; { step = 12; continue; } case 11: - r0 = s.overlapper___2034866; + r0 = s.overlapper___58860; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___2034889 = (s.tmp_6); - r0 = (s.higher___2034889 === s.sprite___2034851); + s.higher___58883 = (s.tmp_6); + r0 = (s.higher___58883 === s.sprite___58845); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___2034866; + r0 = s.overlapper___58860; { step = 14; continue; } case 13: - r0 = s.sprite___2034851; + r0 = s.sprite___58845; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___2034898 = (s.tmp_1); - r0 = s.higher___2034889.fields["_overlappers"]; + s.lower___58892 = (s.tmp_1); + r0 = s.higher___58883.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___2034898.fields["id"]; + r0 = s.lower___58892.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -36629,19 +37995,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P2034918); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P58912); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___2034872); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___2034876); - r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P2034942); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___58866); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___58870); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P58936); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___2034889); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___2034898); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___2034851); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___2034866); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___2034872); - s.tmp_6 = helpers_arrayForEach__P2018051_mk(s); - s.tmp_7 = helpers_arrayFilter__P2018052_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___58883); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___58892); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___58845); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___58860); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___58866); + s.tmp_6 = helpers_arrayForEach__P41902_mk(s); + s.tmp_7 = helpers_arrayFilter__P41903_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; s.callLocIdx = 613; s.pc = 24; return s.tmp_7; @@ -36655,28 +38021,28 @@ switch (step) { case 15: case 16: case 17: - r0 = (s.unnamed27071___U7 + 1); - s.unnamed27071___U7 = (r0); + r0 = (s.unnamed271___U7 + 1); + s.unnamed271___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed27070___U6 = (undefined); + s.unnamed270___U6 = (undefined); case 19: - r0 = (s.unnamed27069___U2 + 1); - s.unnamed27069___U2 = (r0); + r0 = (s.unnamed269___U2 + 1); + s.unnamed269___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed27068___U1 = (undefined); + s.unnamed268___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P2022784.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"]} +ArcadePhysicsEngine_spriteCollisions__P46637.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 ArcadePhysicsEngine_spriteCollisions__P2022784_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P46637_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P2022784, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P46637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36686,18 +38052,18 @@ function ArcadePhysicsEngine_spriteCollisions__P2022784_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___2034849: undefined, - unnamed27068___U1: undefined, - unnamed27069___U2: undefined, - sprite___2034851: undefined, - overSprites___2034858: undefined, - overlapper___2034866: undefined, - unnamed27070___U6: undefined, - unnamed27071___U7: undefined, - thisKind___2034872: undefined, - otherKind___2034876: undefined, - higher___2034889: undefined, - lower___2034898: undefined, + ms___58843: undefined, + unnamed268___U1: undefined, + unnamed269___U2: undefined, + sprite___58845: undefined, + overSprites___58852: undefined, + overlapper___58860: undefined, + unnamed270___U6: undefined, + unnamed271___U7: undefined, + thisKind___58866: undefined, + otherKind___58870: undefined, + higher___58883: undefined, + lower___58892: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36707,7 +38073,7 @@ function ArcadePhysicsEngine_spriteCollisions__P2022784_mk(s) { -function forEach_inline__P2034918(s) { +function forEach_inline__P58912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36764,12 +38130,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P2034918.info = {"start":11113,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P58912.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__P2034918_mk(s) { +function forEach_inline__P58912_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P2034918, depth: s.depth + 1, + parent: s, fn: forEach_inline__P58912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36787,7 +38153,7 @@ function forEach_inline__P2034918_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P2034942(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P58936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36806,7 +38172,7 @@ switch (step) { 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__P2034952); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P58946); 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]); @@ -36819,12 +38185,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P2034942.info = {"start":11310,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_spriteCollisions_inline__P58936.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__P2034942_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P58936_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P2034942, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P58936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36835,7 +38201,7 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P2034942_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P2034952(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P58946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36911,12 +38277,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P2034952.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_spriteCollisions_inline__P58946.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_spriteCollisions_inline__P2034952_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P58946_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P2034952, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P58946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36937,7 +38303,7 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P2034952_mk(s) { -function sprites_SpriteMap_overlaps__P2020392(s) { +function sprites_SpriteMap_overlaps__P44243(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36947,47 +38313,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___2034986 = undefined; - s.o___2034990 = undefined; + s.n___58980 = undefined; + s.o___58984 = 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__C2020389_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P2020391_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P44242_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 487; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___2034986 = (r0); - r0 = pxsim_pxtcore_mkAction(1, o_inline__P2034992); + s.n___58980 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P58986); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P2018052_mk(s); - s.tmp_1.arg0 = s.n___2034986; + s.tmp_1 = helpers_arrayFilter__P41903_mk(s); + s.tmp_1.arg0 = s.n___58980; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 489; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___2034990 = (r0); - r0 = s.o___2034990; + s.o___58984 = (r0); + r0 = s.o___58984; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P2020392.info = {"start":923,"length":189,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"overlaps","argumentNames":["this","sprite"]} +sprites_SpriteMap_overlaps__P44243.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__P2020392_mk(s) { +function sprites_SpriteMap_overlaps__P44243_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P2020392, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P44243, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___2034986: undefined, - o___2034990: undefined, + n___58980: undefined, + o___58984: undefined, arg0: undefined, arg1: undefined, } } @@ -36996,7 +38362,7 @@ function sprites_SpriteMap_overlaps__P2020392_mk(s) { -function o_inline__P2034992(s) { +function o_inline__P58986(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37010,7 +38376,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P2020363_mk(s); + s.tmp_0 = Sprite_overlapsWith__P44214_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 488; s.pc = 1; return s.tmp_0; @@ -37019,12 +38385,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -o_inline__P2034992.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +o_inline__P58986.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} -function o_inline__P2034992_mk(s) { +function o_inline__P58986_mk(s) { checkStack(s.depth); return { - parent: s, fn: o_inline__P2034992, depth: s.depth + 1, + parent: s, fn: o_inline__P58986, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37034,7 +38400,7 @@ function o_inline__P2034992_mk(s) { -function sprites_SpriteMap_neighbors__P2020391(s) { +function sprites_SpriteMap_neighbors__P44242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37044,112 +38410,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___2035257 = undefined; - s.layer___2035259 = undefined; + s.n___59251 = undefined; + s.layer___59253 = 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__C2020389_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___2035257 = (r0); + s.n___59251 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___2035259 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P2022748_mk(s); + s.layer___59253 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P46601_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P2020342_mk(s); + s.tmp_1 = Sprite_left__P44193_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 475; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P2020346_mk(s); + s.tmp_2 = Sprite_top__P44197_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 476; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___2035259; - s.tmp_0.arg4 = s.n___2035257; + s.tmp_0.arg3 = s.layer___59253; + s.tmp_0.arg4 = s.n___59251; s.callLocIdx = 477; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P2022748_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P46601_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P2020342_mk(s); + s.tmp_1 = Sprite_left__P44193_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 478; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P2020348_mk(s); + s.tmp_2 = Sprite_bottom__P44199_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 479; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___2035259; - s.tmp_0.arg4 = s.n___2035257; + s.tmp_0.arg3 = s.layer___59253; + s.tmp_0.arg4 = s.n___59251; s.callLocIdx = 480; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P2022748_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P46601_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P2020344_mk(s); + s.tmp_1 = Sprite_right__P44195_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 481; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P2020346_mk(s); + s.tmp_2 = Sprite_top__P44197_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 482; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___2035259; - s.tmp_0.arg4 = s.n___2035257; + s.tmp_0.arg3 = s.layer___59253; + s.tmp_0.arg4 = s.n___59251; s.callLocIdx = 483; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P2022748_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P46601_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P2020344_mk(s); + s.tmp_1 = Sprite_right__P44195_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 484; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P2020348_mk(s); + s.tmp_2 = Sprite_bottom__P44199_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 485; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___2035259; - s.tmp_0.arg4 = s.n___2035257; + s.tmp_0.arg3 = s.layer___59253; + s.tmp_0.arg4 = s.n___59251; s.callLocIdx = 486; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___2035257, s.arg1); - r0 = s.n___2035257; + r0 = pxsim_Array_.removeElement(s.n___59251, s.arg1); + r0 = s.n___59251; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P2020391.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_SpriteMap_neighbors__P44242.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 sprites_SpriteMap_neighbors__P2020391_mk(s) { +function sprites_SpriteMap_neighbors__P44242_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P2020391, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P44242, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___2035257: undefined, - layer___2035259: undefined, + n___59251: undefined, + layer___59253: undefined, arg0: undefined, arg1: undefined, } } @@ -37158,7 +38524,7 @@ function sprites_SpriteMap_neighbors__P2020391_mk(s) { -function sprites_SpriteMap_mergeAtKey__P2022748(s) { +function sprites_SpriteMap_mergeAtKey__P46601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37168,11 +38534,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___2035308 = undefined; - s.bucket___2035313 = undefined; - s.sprite___2035320 = undefined; - s.unnamed27064___U3 = undefined; - s.unnamed27065___U4 = undefined; + s.k___59302 = undefined; + s.bucket___59307 = undefined; + s.sprite___59314 = undefined; + s.unnamed264___U3 = undefined; + s.unnamed265___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37182,33 +38548,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P2022746_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P46599_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 513; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___2035308 = (r0); + s.k___59302 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___2035308); - s.bucket___2035313 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___2035313); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___59302); + s.bucket___59307 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___59307); if (!r0) { step = 7; continue; } - s.sprite___2035320 = (undefined); - s.unnamed27064___U3 = (s.bucket___2035313); - s.unnamed27065___U4 = (0); + s.sprite___59314 = (undefined); + s.unnamed264___U3 = (s.bucket___59307); + s.unnamed265___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27065___U4; - r0 = pxsim_Array__length(s.unnamed27064___U3); + s.tmp_0 = r0 = s.unnamed265___U4; + r0 = pxsim_Array__length(s.unnamed264___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed27064___U3, s.unnamed27065___U4); - s.sprite___2035320 = (r0); - r0 = s.sprite___2035320.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed264___U3, s.unnamed265___U4); + s.sprite___59314 = (r0); + r0 = s.sprite___59314.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -37217,7 +38583,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___2035320, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___59314, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -37225,26 +38591,26 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.arg4, s.sprite___2035320); + r0 = pxsim_Array__push(s.arg4, s.sprite___59314); case 4: case 5: - r0 = (s.unnamed27065___U4 + 1); - s.unnamed27065___U4 = (r0); + r0 = (s.unnamed265___U4 + 1); + s.unnamed265___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed27064___U3 = (undefined); + s.unnamed264___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P2022748.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_mergeAtKey__P46601.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 sprites_SpriteMap_mergeAtKey__P2022748_mk(s) { +function sprites_SpriteMap_mergeAtKey__P46601_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P2022748, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P46601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37252,11 +38618,11 @@ function sprites_SpriteMap_mergeAtKey__P2022748_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___2035308: undefined, - bucket___2035313: undefined, - sprite___2035320: undefined, - unnamed27064___U3: undefined, - unnamed27065___U4: undefined, + k___59302: undefined, + bucket___59307: undefined, + sprite___59314: undefined, + unnamed264___U3: undefined, + unnamed265___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37268,7 +38634,7 @@ function sprites_SpriteMap_mergeAtKey__P2022748_mk(s) { -function sprites_SpriteMap_key__P2022746(s) { +function sprites_SpriteMap_key__P46599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37278,8 +38644,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___2035341 = undefined; - s.yi___2035353 = undefined; + s.xi___59335 = undefined; + s.yi___59347 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37287,8 +38653,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P2018069_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P41920_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -37299,8 +38665,8 @@ switch (step) { s.callLocIdx = 501; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___2035341 = (r0); - s.tmp_0 = Math_clamp__P2018069_mk(s); + s.xi___59335 = (r0); + s.tmp_0 = Math_clamp__P41920_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -37311,28 +38677,28 @@ switch (step) { s.callLocIdx = 502; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___2035353 = (r0); - s.tmp_0 = r0 = s.xi___2035341; + s.yi___59347 = (r0); + s.tmp_0 = r0 = s.xi___59335; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___2035353 * s.tmp_2); + r0 = (s.yi___59347 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P2022746.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"]} +sprites_SpriteMap_key__P46599.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 sprites_SpriteMap_key__P2022746_mk(s) { +function sprites_SpriteMap_key__P46599_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P2022746, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P46599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___2035341: undefined, - yi___2035353: undefined, + xi___59335: undefined, + yi___59347: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37342,7 +38708,7 @@ function sprites_SpriteMap_key__P2022746_mk(s) { -function Sprite_overlapsWith__P2020363(s) { +function Sprite_overlapsWith__P44214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37352,15 +38718,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___2035070 = undefined; - s.B___2035071 = undefined; + s.A___59064 = undefined; + s.B___59065 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -37406,7 +38772,7 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 9; continue; } - s.tmp_9 = game_Hitbox_overlapsWith__P2020166_mk(s); + s.tmp_9 = game_Hitbox_overlapsWith__P44017_mk(s); r0 = s.arg1.fields["_hitbox"]; s.tmp_9.arg0 = r0; r0 = s.arg0.fields["_hitbox"]; @@ -37417,7 +38783,7 @@ switch (step) { { step = 27; continue; } case 9: case 10: - s.tmp_13 = game_Hitbox_overlapsWith__P2020166_mk(s); + s.tmp_13 = game_Hitbox_overlapsWith__P44017_mk(s); r0 = s.arg1.fields["_hitbox"]; s.tmp_13.arg0 = r0; r0 = s.arg0.fields["_hitbox"]; @@ -37436,7 +38802,7 @@ switch (step) { { step = 27; continue; } case 11: case 12: - s.tmp_17 = Sprite_isScaled__P2022739_mk(s); + s.tmp_17 = Sprite_isScaled__P46592_mk(s); s.tmp_17.arg0 = s.arg0; s.callLocIdx = 385; s.pc = 30; return s.tmp_17; case 30: @@ -37451,7 +38817,7 @@ switch (step) { r0 = s.tmp_14; { step = 14; continue; } case 13: - s.tmp_20 = Sprite_isScaled__P2022739_mk(s); + s.tmp_20 = Sprite_isScaled__P46592_mk(s); s.tmp_20.arg0 = s.arg1; s.callLocIdx = 386; s.pc = 31; return s.tmp_20; case 31: @@ -37469,13 +38835,13 @@ switch (step) { s.tmp_22 = r0; r0 = s.arg0.fields["_image"]; s.tmp_23 = r0; - s.tmp_26 = Sprite_left__P2020342_mk(s); + s.tmp_26 = Sprite_left__P44193_mk(s); s.tmp_26.arg0 = s.arg0; s.callLocIdx = 387; s.pc = 32; return s.tmp_26; case 32: r0 = s.retval; s.tmp_25 = r0; - s.tmp_28 = Sprite_left__P2020342_mk(s); + s.tmp_28 = Sprite_left__P44193_mk(s); s.tmp_28.arg0 = s.arg1; s.callLocIdx = 388; s.pc = 33; return s.tmp_28; case 33: @@ -37483,13 +38849,13 @@ switch (step) { s.tmp_27 = r0; r0 = (s.tmp_25 - s.tmp_27); s.tmp_24 = r0; - s.tmp_31 = Sprite_top__P2020346_mk(s); + s.tmp_31 = Sprite_top__P44197_mk(s); s.tmp_31.arg0 = s.arg0; s.callLocIdx = 389; s.pc = 34; return s.tmp_31; case 34: r0 = s.retval; s.tmp_30 = r0; - s.tmp_33 = Sprite_top__P2020346_mk(s); + s.tmp_33 = Sprite_top__P44197_mk(s); s.tmp_33.arg0 = s.arg1; s.callLocIdx = 390; s.pc = 35; return s.tmp_33; case 35: @@ -37501,7 +38867,7 @@ switch (step) { { step = 27; continue; } { step = 26; continue; } case 15: - s.tmp_36 = Sprite_sx__P2020313_mk(s); + s.tmp_36 = Sprite_sx__P44164_mk(s); s.tmp_36.arg0 = s.arg0; s.callLocIdx = 391; s.pc = 36; return s.tmp_36; case 36: @@ -37514,7 +38880,7 @@ switch (step) { r0 = s.tmp_34; { step = 17; continue; } case 16: - s.tmp_38 = Sprite_sy__P2020315_mk(s); + s.tmp_38 = Sprite_sy__P44166_mk(s); s.tmp_38.arg0 = s.arg0; s.callLocIdx = 392; s.pc = 37; return s.tmp_38; case 37: @@ -37529,7 +38895,7 @@ switch (step) { r0 = s.tmp_39; { step = 19; continue; } case 18: - s.tmp_41 = Sprite_sx__P2020313_mk(s); + s.tmp_41 = Sprite_sx__P44164_mk(s); s.tmp_41.arg0 = s.arg1; s.callLocIdx = 393; s.pc = 38; return s.tmp_41; case 38: @@ -37544,7 +38910,7 @@ switch (step) { r0 = s.tmp_42; { step = 21; continue; } case 20: - s.tmp_44 = Sprite_sy__P2020315_mk(s); + s.tmp_44 = Sprite_sy__P44166_mk(s); s.tmp_44.arg0 = s.arg1; s.callLocIdx = 394; s.pc = 39; return s.tmp_44; case 39: @@ -37560,13 +38926,13 @@ switch (step) { { step = 27; continue; } case 22: case 23: - s.tmp_49 = Sprite_sx__P2020313_mk(s); + s.tmp_49 = Sprite_sx__P44164_mk(s); s.tmp_49.arg0 = s.arg0; s.callLocIdx = 395; s.pc = 40; return s.tmp_49; case 40: r0 = s.retval; s.tmp_48 = r0; - s.tmp_51 = Sprite_sy__P2020315_mk(s); + s.tmp_51 = Sprite_sy__P44166_mk(s); s.tmp_51.arg0 = s.arg0; s.callLocIdx = 396; s.pc = 41; return s.tmp_51; case 41: @@ -37574,13 +38940,13 @@ switch (step) { s.tmp_50 = r0; r0 = (s.tmp_48 * s.tmp_50); s.tmp_47 = r0; - s.tmp_54 = Sprite_sx__P2020313_mk(s); + s.tmp_54 = Sprite_sx__P44164_mk(s); s.tmp_54.arg0 = s.arg1; s.callLocIdx = 397; s.pc = 42; return s.tmp_54; case 42: r0 = s.retval; s.tmp_53 = r0; - s.tmp_56 = Sprite_sy__P2020315_mk(s); + s.tmp_56 = Sprite_sy__P44166_mk(s); s.tmp_56.arg0 = s.arg1; s.callLocIdx = 398; s.pc = 43; return s.tmp_56; case 43: @@ -37592,97 +38958,97 @@ switch (step) { s.tmp_46 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_46); if (!r0) { step = 24; continue; } - s.A___2035070 = (s.arg0); - s.B___2035071 = (s.arg1); + s.A___59064 = (s.arg0); + s.B___59065 = (s.arg1); { step = 25; continue; } case 24: - s.A___2035070 = (s.arg1); - s.B___2035071 = (s.arg0); + s.A___59064 = (s.arg1); + s.B___59065 = (s.arg0); case 25: - s.tmp_0 = helpers_imageBlit__P2019896_mk(s); - r0 = s.A___2035070.fields["_image"]; + s.tmp_0 = helpers_imageBlit__P43747_mk(s); + r0 = s.A___59064.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_left__P2020342_mk(s); - s.tmp_3.arg0 = s.B___2035071; + s.tmp_3 = Sprite_left__P44193_mk(s); + s.tmp_3.arg0 = s.B___59065; s.callLocIdx = 400; s.pc = 45; return s.tmp_3; case 45: r0 = s.retval; s.tmp_2 = r0; - s.tmp_5 = Sprite_left__P2020342_mk(s); - s.tmp_5.arg0 = s.A___2035070; + s.tmp_5 = Sprite_left__P44193_mk(s); + s.tmp_5.arg0 = s.A___59064; s.callLocIdx = 401; s.pc = 46; return s.tmp_5; case 46: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1 = r0; - s.tmp_7 = Sprite_sx__P2020313_mk(s); - s.tmp_7.arg0 = s.A___2035070; + s.tmp_7 = Sprite_sx__P44164_mk(s); + s.tmp_7.arg0 = s.A___59064; s.callLocIdx = 402; s.pc = 47; return s.tmp_7; case 47: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_1 / s.tmp_6); s.tmp_0.arg1 = r0; - s.tmp_10 = Sprite_top__P2020346_mk(s); - s.tmp_10.arg0 = s.B___2035071; + s.tmp_10 = Sprite_top__P44197_mk(s); + s.tmp_10.arg0 = s.B___59065; s.callLocIdx = 403; s.pc = 48; return s.tmp_10; case 48: r0 = s.retval; s.tmp_9 = r0; - s.tmp_12 = Sprite_top__P2020346_mk(s); - s.tmp_12.arg0 = s.A___2035070; + s.tmp_12 = Sprite_top__P44197_mk(s); + s.tmp_12.arg0 = s.A___59064; s.callLocIdx = 404; s.pc = 49; return s.tmp_12; case 49: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_9 - s.tmp_11); s.tmp_8 = r0; - s.tmp_14 = Sprite_sy__P2020315_mk(s); - s.tmp_14.arg0 = s.A___2035070; + s.tmp_14 = Sprite_sy__P44166_mk(s); + s.tmp_14.arg0 = s.A___59064; s.callLocIdx = 405; s.pc = 50; return s.tmp_14; case 50: r0 = s.retval; s.tmp_13 = r0; r0 = (s.tmp_8 / s.tmp_13); s.tmp_0.arg2 = r0; - s.tmp_16 = Sprite_width__P2020340_mk(s); - s.tmp_16.arg0 = s.B___2035071; + s.tmp_16 = Sprite_width__P44191_mk(s); + s.tmp_16.arg0 = s.B___59065; s.callLocIdx = 406; s.pc = 51; return s.tmp_16; case 51: r0 = s.retval; s.tmp_15 = r0; - s.tmp_18 = Sprite_sx__P2020313_mk(s); - s.tmp_18.arg0 = s.A___2035070; + s.tmp_18 = Sprite_sx__P44164_mk(s); + s.tmp_18.arg0 = s.A___59064; s.callLocIdx = 407; s.pc = 52; return s.tmp_18; case 52: r0 = s.retval; s.tmp_17 = r0; r0 = (s.tmp_15 / s.tmp_17); s.tmp_0.arg3 = r0; - s.tmp_20 = Sprite_height__P2020341_mk(s); - s.tmp_20.arg0 = s.B___2035071; + s.tmp_20 = Sprite_height__P44192_mk(s); + s.tmp_20.arg0 = s.B___59065; s.callLocIdx = 408; s.pc = 53; return s.tmp_20; case 53: r0 = s.retval; s.tmp_19 = r0; - s.tmp_22 = Sprite_sy__P2020315_mk(s); - s.tmp_22.arg0 = s.A___2035070; + s.tmp_22 = Sprite_sy__P44166_mk(s); + s.tmp_22.arg0 = s.A___59064; s.callLocIdx = 409; s.pc = 54; return s.tmp_22; case 54: r0 = s.retval; s.tmp_21 = r0; r0 = (s.tmp_19 / s.tmp_21); s.tmp_0.arg4 = r0; - r0 = s.B___2035071.fields["_image"]; + r0 = s.B___59065.fields["_image"]; s.tmp_0.arg5 = r0; s.tmp_0.arg6 = 0; s.tmp_0.arg7 = 0; - r0 = s.B___2035071.fields["_image"]; + r0 = s.B___59065.fields["_image"]; s.tmp_23 = r0; r0 = pxsim_ImageMethods.width(s.tmp_23); s.tmp_0.arg8 = r0; - r0 = s.B___2035071.fields["_image"]; + r0 = s.B___59065.fields["_image"]; s.tmp_24 = r0; r0 = pxsim_ImageMethods.height(s.tmp_24); s.tmp_0.arg9 = r0; @@ -37698,12 +39064,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P2020363.info = {"start":20623,"length":1735,"line":689,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P44214.info = {"start":20623,"length":1735,"line":689,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P2020363_mk(s) { +function Sprite_overlapsWith__P44214_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P2020363, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P44214, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37762,8 +39128,8 @@ function Sprite_overlapsWith__P2020363_mk(s) { tmp_54: undefined, tmp_55: undefined, tmp_56: undefined, - A___2035070: undefined, - B___2035071: undefined, + A___59064: undefined, + B___59065: undefined, arg0: undefined, arg1: undefined, } } @@ -37772,7 +39138,7 @@ function Sprite_overlapsWith__P2020363_mk(s) { -function Sprite_isScaled__P2022739(s) { +function Sprite_isScaled__P46592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37787,7 +39153,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_sx"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== 256); @@ -37807,12 +39173,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isScaled__P2022739.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} +Sprite_isScaled__P46592.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} -function Sprite_isScaled__P2022739_mk(s) { +function Sprite_isScaled__P46592_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isScaled__P2022739, depth: s.depth + 1, + parent: s, fn: Sprite_isScaled__P46592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37825,7 +39191,7 @@ function Sprite_isScaled__P2022739_mk(s) { -function game_Hitbox_overlapsWith__P2020166(s) { +function game_Hitbox_overlapsWith__P44017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37841,26 +39207,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); - s.tmp_0 = game_Hitbox_updateIfInvalid__P2020165_mk(s); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); + s.tmp_0 = game_Hitbox_updateIfInvalid__P44016_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 249; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = game_Hitbox_updateIfInvalid__P2020165_mk(s); + s.tmp_0 = game_Hitbox_updateIfInvalid__P44016_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 250; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.tmp_1 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_1 = game_Hitbox_contains__P44015_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = game_Hitbox_left__P2020159_mk(s); + s.tmp_2 = game_Hitbox_left__P44010_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 251; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; s.tmp_1.arg1 = r0; - s.tmp_3 = game_Hitbox_top__P2020160_mk(s); + s.tmp_3 = game_Hitbox_top__P44011_mk(s); s.tmp_3.arg0 = s.arg1; s.callLocIdx = 252; s.pc = 22; return s.tmp_3; case 22: @@ -37876,15 +39242,15 @@ switch (step) { { step = 17; continue; } case 1: case 2: - s.tmp_5 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_5 = game_Hitbox_contains__P44015_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_6 = game_Hitbox_left__P2020159_mk(s); + s.tmp_6 = game_Hitbox_left__P44010_mk(s); s.tmp_6.arg0 = s.arg1; s.callLocIdx = 254; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5.arg1 = r0; - s.tmp_7 = game_Hitbox_bottom__P2020162_mk(s); + s.tmp_7 = game_Hitbox_bottom__P44013_mk(s); s.tmp_7.arg0 = s.arg1; s.callLocIdx = 255; s.pc = 25; return s.tmp_7; case 25: @@ -37900,15 +39266,15 @@ switch (step) { { step = 17; continue; } case 3: case 4: - s.tmp_9 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_9 = game_Hitbox_contains__P44015_mk(s); s.tmp_9.arg0 = s.arg0; - s.tmp_10 = game_Hitbox_right__P2020161_mk(s); + s.tmp_10 = game_Hitbox_right__P44012_mk(s); s.tmp_10.arg0 = s.arg1; s.callLocIdx = 257; s.pc = 27; return s.tmp_10; case 27: r0 = s.retval; s.tmp_9.arg1 = r0; - s.tmp_11 = game_Hitbox_top__P2020160_mk(s); + s.tmp_11 = game_Hitbox_top__P44011_mk(s); s.tmp_11.arg0 = s.arg1; s.callLocIdx = 258; s.pc = 28; return s.tmp_11; case 28: @@ -37924,15 +39290,15 @@ switch (step) { { step = 17; continue; } case 5: case 6: - s.tmp_13 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_13 = game_Hitbox_contains__P44015_mk(s); s.tmp_13.arg0 = s.arg0; - s.tmp_14 = game_Hitbox_right__P2020161_mk(s); + s.tmp_14 = game_Hitbox_right__P44012_mk(s); s.tmp_14.arg0 = s.arg1; s.callLocIdx = 260; s.pc = 30; return s.tmp_14; case 30: r0 = s.retval; s.tmp_13.arg1 = r0; - s.tmp_15 = game_Hitbox_bottom__P2020162_mk(s); + s.tmp_15 = game_Hitbox_bottom__P44013_mk(s); s.tmp_15.arg0 = s.arg1; s.callLocIdx = 261; s.pc = 31; return s.tmp_15; case 31: @@ -37948,15 +39314,15 @@ switch (step) { { step = 17; continue; } case 7: case 8: - s.tmp_17 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_17 = game_Hitbox_contains__P44015_mk(s); s.tmp_17.arg0 = s.arg1; - s.tmp_18 = game_Hitbox_left__P2020159_mk(s); + s.tmp_18 = game_Hitbox_left__P44010_mk(s); s.tmp_18.arg0 = s.arg0; s.callLocIdx = 263; s.pc = 33; return s.tmp_18; case 33: r0 = s.retval; s.tmp_17.arg1 = r0; - s.tmp_19 = game_Hitbox_top__P2020160_mk(s); + s.tmp_19 = game_Hitbox_top__P44011_mk(s); s.tmp_19.arg0 = s.arg0; s.callLocIdx = 264; s.pc = 34; return s.tmp_19; case 34: @@ -37972,15 +39338,15 @@ switch (step) { { step = 17; continue; } case 9: case 10: - s.tmp_21 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_21 = game_Hitbox_contains__P44015_mk(s); s.tmp_21.arg0 = s.arg1; - s.tmp_22 = game_Hitbox_left__P2020159_mk(s); + s.tmp_22 = game_Hitbox_left__P44010_mk(s); s.tmp_22.arg0 = s.arg0; s.callLocIdx = 266; s.pc = 36; return s.tmp_22; case 36: r0 = s.retval; s.tmp_21.arg1 = r0; - s.tmp_23 = game_Hitbox_bottom__P2020162_mk(s); + s.tmp_23 = game_Hitbox_bottom__P44013_mk(s); s.tmp_23.arg0 = s.arg0; s.callLocIdx = 267; s.pc = 37; return s.tmp_23; case 37: @@ -37996,15 +39362,15 @@ switch (step) { { step = 17; continue; } case 11: case 12: - s.tmp_25 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_25 = game_Hitbox_contains__P44015_mk(s); s.tmp_25.arg0 = s.arg1; - s.tmp_26 = game_Hitbox_right__P2020161_mk(s); + s.tmp_26 = game_Hitbox_right__P44012_mk(s); s.tmp_26.arg0 = s.arg0; s.callLocIdx = 269; s.pc = 39; return s.tmp_26; case 39: r0 = s.retval; s.tmp_25.arg1 = r0; - s.tmp_27 = game_Hitbox_top__P2020160_mk(s); + s.tmp_27 = game_Hitbox_top__P44011_mk(s); s.tmp_27.arg0 = s.arg0; s.callLocIdx = 270; s.pc = 40; return s.tmp_27; case 40: @@ -38020,15 +39386,15 @@ switch (step) { { step = 17; continue; } case 13: case 14: - s.tmp_29 = game_Hitbox_contains__P2020164_mk(s); + s.tmp_29 = game_Hitbox_contains__P44015_mk(s); s.tmp_29.arg0 = s.arg1; - s.tmp_30 = game_Hitbox_right__P2020161_mk(s); + s.tmp_30 = game_Hitbox_right__P44012_mk(s); s.tmp_30.arg0 = s.arg0; s.callLocIdx = 272; s.pc = 42; return s.tmp_30; case 42: r0 = s.retval; s.tmp_29.arg1 = r0; - s.tmp_31 = game_Hitbox_bottom__P2020162_mk(s); + s.tmp_31 = game_Hitbox_bottom__P44013_mk(s); s.tmp_31.arg0 = s.arg0; s.callLocIdx = 273; s.pc = 43; return s.tmp_31; case 43: @@ -38049,12 +39415,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_overlapsWith__P2020166.info = {"start":2515,"length":695,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +game_Hitbox_overlapsWith__P44017.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 game_Hitbox_overlapsWith__P2020166_mk(s) { +function game_Hitbox_overlapsWith__P44017_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_overlapsWith__P2020166, depth: s.depth + 1, + parent: s, fn: game_Hitbox_overlapsWith__P44017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38096,7 +39462,7 @@ function game_Hitbox_overlapsWith__P2020166_mk(s) { -function game_Hitbox_contains__P2020164(s) { +function game_Hitbox_contains__P44015(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38113,9 +39479,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2020151_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C44002_VT)) failedCast(r0); s.tmp_1 = r0 = s.arg1; - s.tmp_3 = game_Hitbox_left__P2020159_mk(s); + s.tmp_3 = game_Hitbox_left__P44010_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 229; s.pc = 7; return s.tmp_3; case 7: @@ -38129,7 +39495,7 @@ switch (step) { { step = 2; continue; } case 1: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = game_Hitbox_right__P2020161_mk(s); + s.tmp_6 = game_Hitbox_right__P44012_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 230; s.pc = 8; return s.tmp_6; case 8: @@ -38145,7 +39511,7 @@ switch (step) { { step = 4; continue; } case 3: s.tmp_8 = r0 = s.arg2; - s.tmp_10 = game_Hitbox_top__P2020160_mk(s); + s.tmp_10 = game_Hitbox_top__P44011_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 231; s.pc = 9; return s.tmp_10; case 9: @@ -38161,7 +39527,7 @@ switch (step) { { step = 6; continue; } case 5: s.tmp_12 = r0 = s.arg2; - s.tmp_14 = game_Hitbox_bottom__P2020162_mk(s); + s.tmp_14 = game_Hitbox_bottom__P44013_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 232; s.pc = 10; return s.tmp_14; case 10: @@ -38175,12 +39541,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_contains__P2020164.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_contains__P44015.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 game_Hitbox_contains__P2020164_mk(s) { +function game_Hitbox_contains__P44015_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_contains__P2020164, depth: s.depth + 1, + parent: s, fn: game_Hitbox_contains__P44015, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38207,7 +39573,7 @@ function game_Hitbox_contains__P2020164_mk(s) { -function helpers_imageBlit__P2019896(s) { +function helpers_imageBlit__P43747(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38232,7 +39598,7 @@ switch (step) { s.arg11 = (s.lambdaArgs[11]); s.lambdaArgs = null; } - s.tmp_0 = r0 = globals._blitArgs___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -38242,36 +39608,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - globals._blitArgs___2022568 = (s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___2022568; + globals._blitArgs___46421 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; 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___2022568; + s.tmp_0 = r0 = globals._blitArgs___46421; r0 = (s.arg9 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); @@ -38284,7 +39650,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___2022568, 8, s.tmp_0); + r0 = pxsim_Array_.setAt(globals._blitArgs___46421, 8, s.tmp_0); r0 = pxsim_numops_toBoolDecr(s.arg11); if (!r0) { step = 5; continue; } r0 = 1; @@ -38294,17 +39660,17 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___2022568, 9, s.tmp_0); - r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___2022568); + r0 = pxsim_Array_.setAt(globals._blitArgs___46421, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___46421); return leave(s, r0) default: oops() } } } -helpers_imageBlit__P2019896.info = {"start":4459,"length":642,"line":154,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} +helpers_imageBlit__P43747.info = {"start":4459,"length":642,"line":154,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} -function helpers_imageBlit__P2019896_mk(s) { +function helpers_imageBlit__P43747_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageBlit__P2019896, depth: s.depth + 1, + parent: s, fn: helpers_imageBlit__P43747, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38326,7 +39692,7 @@ function helpers_imageBlit__P2019896_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P2022783(s) { +function ArcadePhysicsEngine_createMovingSprite__P46636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38336,16 +39702,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___2035696 = undefined; - s.ovy___2035701 = undefined; - s.fx___2035728 = undefined; - s.c___2035735 = undefined; - s.fy___2035778 = undefined; - s.c___2035785 = undefined; - s.dx___2035824 = undefined; - s.dy___2035837 = undefined; - s.xStep___2035850 = undefined; - s.yStep___2035852 = undefined; + s.ovx___59690 = undefined; + s.ovy___59695 = undefined; + s.fx___59722 = undefined; + s.c___59729 = undefined; + s.fy___59772 = undefined; + s.c___59779 = undefined; + s.dx___59818 = undefined; + s.dy___59831 = undefined; + s.xStep___59844 = undefined; + s.yStep___59846 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38354,23 +39720,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P2022789_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P46642_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; s.callLocIdx = 573; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___2035696 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P2022789_mk(s); + s.ovx___59690 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P46642_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; s.callLocIdx = 574; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___2035701 = (r0); + s.ovy___59695 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -38404,21 +39770,21 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___2035728 = (r0); + s.fx___59722 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___2035728); - s.c___2035735 = (r0); - r0 = (s.c___2035735 < 0); + r0 = (s.tmp_0 - s.fx___59722); + s.c___59729 = (r0); + r0 = (s.c___59729 < 0); 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__P2018108_mk(s); + s.tmp_3 = Fx_min__P41959_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___2035728); + r0 = (s.tmp_4 + s.fx___59722); s.tmp_3.arg1 = r0; s.callLocIdx = 582; s.pc = 27; return s.tmp_3; case 27: @@ -38427,16 +39793,16 @@ switch (step) { r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); { step = 5; continue; } case 2: - r0 = (s.c___2035735 > 0); + r0 = (s.c___59729 > 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__P2018109_mk(s); + s.tmp_3 = Fx_max__P41960_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___2035728); + r0 = (s.tmp_4 - s.fx___59722); s.tmp_3.arg1 = r0; s.callLocIdx = 584; s.pc = 28; return s.tmp_3; case 28: @@ -38478,21 +39844,21 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___2035778 = (r0); + s.fy___59772 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___2035778); - s.c___2035785 = (r0); - r0 = (s.c___2035785 < 0); + r0 = (s.tmp_0 - s.fy___59772); + s.c___59779 = (r0); + r0 = (s.c___59779 < 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__P2018108_mk(s); + s.tmp_3 = Fx_min__P41959_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___2035778); + r0 = (s.tmp_4 + s.fy___59772); s.tmp_3.arg1 = r0; s.callLocIdx = 592; s.pc = 29; return s.tmp_3; case 29: @@ -38501,16 +39867,16 @@ switch (step) { r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); { step = 13; continue; } case 10: - r0 = (s.c___2035785 > 0); + r0 = (s.c___59779 > 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__P2018109_mk(s); + s.tmp_3 = Fx_max__P41960_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___2035778); + r0 = (s.tmp_4 - s.fy___59772); s.tmp_3.arg1 = r0; s.callLocIdx = 594; s.pc = 30; return s.tmp_3; case 30: @@ -38526,7 +39892,7 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P2022789_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P46642_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; @@ -38536,7 +39902,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P2022789_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P46642_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; @@ -38547,7 +39913,7 @@ switch (step) { r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovx___2035696); + r0 = (s.tmp_4 + s.ovx___59690); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -38558,10 +39924,10 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dx___2035824 = (r0); + s.dx___59818 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___2035701); + r0 = (s.tmp_4 + s.ovy___59695); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -38572,12 +39938,12 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dy___2035837 = (r0); - s.xStep___2035850 = (s.dx___2035824); - s.yStep___2035852 = (s.dy___2035837); + s.dy___59831 = (r0); + s.xStep___59844 = (s.dx___59818); + s.yStep___59846 = (s.dy___59831); case 17: - s.tmp_2 = Fx_abs__P2018107_mk(s); - s.tmp_2.arg0 = s.xStep___2035850; + s.tmp_2 = Fx_abs__P41958_mk(s); + s.tmp_2.arg0 = s.xStep___59844; s.callLocIdx = 603; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; @@ -38591,8 +39957,8 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P2018107_mk(s); - s.tmp_5.arg0 = s.yStep___2035852; + s.tmp_5 = Fx_abs__P41958_mk(s); + s.tmp_5.arg0 = s.yStep___59846; s.callLocIdx = 604; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; @@ -38605,8 +39971,8 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P2018107_mk(s); - s.tmp_10.arg0 = s.xStep___2035850; + s.tmp_10 = Fx_abs__P41958_mk(s); + s.tmp_10.arg0 = s.xStep___59844; s.callLocIdx = 605; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; @@ -38617,12 +39983,12 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 20; continue; } - r0 = pxsim.Math_.idiv(s.xStep___2035850, 2); - s.xStep___2035850 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___59844, 2); + s.xStep___59844 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P2018107_mk(s); - s.tmp_2.arg0 = s.yStep___2035852; + s.tmp_2 = Fx_abs__P41958_mk(s); + s.tmp_2.arg0 = s.yStep___59846; s.callLocIdx = 607; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; @@ -38633,25 +39999,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = pxsim.Math_.idiv(s.yStep___2035852, 2); - s.yStep___2035852 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___59846, 2); + s.yStep___59846 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2020468_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C44319_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P2020469_mk(s); + s.tmp_1 = MovingSprite_constructor__P44320_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___2035824; - s.tmp_1.arg5 = s.dy___2035837; - s.tmp_1.arg6 = s.xStep___2035850; - s.tmp_1.arg7 = s.yStep___2035852; + s.tmp_1.arg4 = s.dx___59818; + s.tmp_1.arg5 = s.dy___59831; + s.tmp_1.arg6 = s.xStep___59844; + s.tmp_1.arg7 = s.yStep___59846; s.callLocIdx = 609; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; @@ -38659,12 +40025,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P2022783.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"]} +ArcadePhysicsEngine_createMovingSprite__P46636.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__P2022783_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P46636_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P2022783, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P46636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38678,16 +40044,16 @@ function ArcadePhysicsEngine_createMovingSprite__P2022783_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___2035696: undefined, - ovy___2035701: undefined, - fx___2035728: undefined, - c___2035735: undefined, - fy___2035778: undefined, - c___2035785: undefined, - dx___2035824: undefined, - dy___2035837: undefined, - xStep___2035850: undefined, - yStep___2035852: undefined, + ovx___59690: undefined, + ovy___59695: undefined, + fx___59722: undefined, + c___59729: undefined, + fy___59772: undefined, + c___59779: undefined, + dx___59818: undefined, + dy___59831: undefined, + xStep___59844: undefined, + yStep___59846: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38698,7 +40064,7 @@ function ArcadePhysicsEngine_createMovingSprite__P2022783_mk(s) { -function ArcadePhysicsEngine_constrain__P2022789(s) { +function ArcadePhysicsEngine_constrain__P46642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38714,9 +40080,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P2018109_mk(s); - s.tmp_1 = Fx_min__P2018108_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P41960_mk(s); + s.tmp_1 = Fx_min__P41959_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -38732,12 +40098,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P2022789.info = {"start":27343,"length":193,"line":761,"column":4,"endLine":769,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P46642.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__P2022789_mk(s) { +function ArcadePhysicsEngine_constrain__P46642_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P2022789, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P46642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38749,7 +40115,7 @@ function ArcadePhysicsEngine_constrain__P2022789_mk(s) { -function Fx_compare__P2018106(s) { +function Fx_compare__P41957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38768,12 +40134,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P2018106.info = {"start":1395,"length":106,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"compare","argumentNames":["a","b"]} +Fx_compare__P41957.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__P2018106_mk(s) { +function Fx_compare__P41957_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P2018106, depth: s.depth + 1, + parent: s, fn: Fx_compare__P41957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -38783,7 +40149,7 @@ function Fx_compare__P2018106_mk(s) { -function sprites_SpriteMap_insertAABB__P2020396(s) { +function sprites_SpriteMap_insertAABB__P44247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38793,32 +40159,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___2035516 = undefined; - s.top___2035519 = undefined; - s.xn___2035522 = undefined; - s.yn___2035533 = undefined; - s.x___2035544 = undefined; - s.y___2035549 = undefined; + s.left___59510 = undefined; + s.top___59513 = undefined; + s.xn___59516 = undefined; + s.yn___59527 = undefined; + s.x___59538 = undefined; + s.y___59543 = 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__C2020389_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2020342_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P44193_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 504; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___2035516 = (r0); - s.tmp_0 = Sprite_top__P2020346_mk(s); + s.left___59510 = (r0); + s.tmp_0 = Sprite_top__P44197_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 505; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___2035519 = (r0); - s.tmp_3 = Sprite_width__P2020340_mk(s); + s.top___59513 = (r0); + s.tmp_3 = Sprite_width__P44191_mk(s); s.tmp_3.arg0 = s.arg1; s.callLocIdx = 506; s.pc = 7; return s.tmp_3; case 7: @@ -38833,8 +40199,8 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___2035522 = (r0); - s.tmp_3 = Sprite_height__P2020341_mk(s); + s.xn___59516 = (r0); + s.tmp_3 = Sprite_height__P44192_mk(s); s.tmp_3.arg0 = s.arg1; s.callLocIdx = 507; s.pc = 8; return s.tmp_3; case 8: @@ -38849,24 +40215,24 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___2035533 = (r0); - s.x___2035544 = (0); + s.yn___59527 = (r0); + s.x___59538 = (0); case 1: - r0 = (s.x___2035544 <= s.xn___2035522); + r0 = (s.x___59538 <= s.xn___59516); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___2035549 = (0); + s.y___59543 = (0); case 2: - r0 = (s.y___2035549 <= s.yn___2035533); + r0 = (s.y___59543 <= s.yn___59527); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P2022747_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P46600_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___2035516; - s.tmp_4 = Math_min__P2018073_mk(s); - s.tmp_5 = Sprite_width__P2020340_mk(s); + s.tmp_2 = r0 = s.left___59510; + s.tmp_4 = Math_min__P41924_mk(s); + s.tmp_5 = Sprite_width__P44191_mk(s); s.tmp_5.arg0 = s.arg1; s.callLocIdx = 508; s.pc = 11; return s.tmp_5; case 11: @@ -38874,7 +40240,7 @@ switch (step) { s.tmp_4.arg0 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_6 = r0; - r0 = (s.x___2035544 * s.tmp_6); + r0 = (s.x___59538 * s.tmp_6); s.tmp_4.arg1 = r0; s.callLocIdx = 509; s.pc = 10; return s.tmp_4; case 10: @@ -38882,9 +40248,9 @@ switch (step) { s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___2035519; - s.tmp_9 = Math_min__P2018073_mk(s); - s.tmp_10 = Sprite_height__P2020341_mk(s); + s.tmp_7 = r0 = s.top___59513; + s.tmp_9 = Math_min__P41924_mk(s); + s.tmp_10 = Sprite_height__P44192_mk(s); s.tmp_10.arg0 = s.arg1; s.callLocIdx = 510; s.pc = 13; return s.tmp_10; case 13: @@ -38892,7 +40258,7 @@ switch (step) { s.tmp_9.arg0 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_11 = r0; - r0 = (s.y___2035549 * s.tmp_11); + r0 = (s.y___59543 * s.tmp_11); s.tmp_9.arg1 = r0; s.callLocIdx = 511; s.pc = 12; return s.tmp_9; case 12: @@ -38904,24 +40270,24 @@ switch (step) { s.callLocIdx = 512; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = (s.y___2035549 + 1); - s.y___2035549 = (r0); + r0 = (s.y___59543 + 1); + s.y___59543 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___2035544 + 1); - s.x___2035544 = (r0); + r0 = (s.x___59538 + 1); + s.x___59538 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P2020396.info = {"start":3184,"length":521,"line":91,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAABB","argumentNames":["this","sprite"]} +sprites_SpriteMap_insertAABB__P44247.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 sprites_SpriteMap_insertAABB__P2020396_mk(s) { +function sprites_SpriteMap_insertAABB__P44247_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P2020396, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P44247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38935,12 +40301,12 @@ function sprites_SpriteMap_insertAABB__P2020396_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___2035516: undefined, - top___2035519: undefined, - xn___2035522: undefined, - yn___2035533: undefined, - x___2035544: undefined, - y___2035549: undefined, + left___59510: undefined, + top___59513: undefined, + xn___59516: undefined, + yn___59527: undefined, + x___59538: undefined, + y___59543: undefined, arg0: undefined, arg1: undefined, } } @@ -38949,7 +40315,7 @@ function sprites_SpriteMap_insertAABB__P2020396_mk(s) { -function sprites_SpriteMap_insertAtKey__P2022747(s) { +function sprites_SpriteMap_insertAtKey__P46600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38959,8 +40325,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___2035584 = undefined; - s.bucket___2035589 = undefined; + s.k___59578 = undefined; + s.bucket___59583 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38969,20 +40335,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P2022746_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P46599_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 503; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___2035584 = (r0); + s.k___59578 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___2035584); - s.bucket___2035589 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___2035589); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___59578); + s.bucket___59583 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___59583); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -38990,40 +40356,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___2035584; + s.tmp_3 = r0 = s.k___59578; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___2035589 = (s.tmp_4); + s.bucket___59583 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___2035589, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___59583, s.arg3, 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(s.bucket___2035589, s.arg3); + r0 = pxsim_Array__push(s.bucket___59583, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P2022747.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"]} +sprites_SpriteMap_insertAtKey__P46600.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 sprites_SpriteMap_insertAtKey__P2022747_mk(s) { +function sprites_SpriteMap_insertAtKey__P46600_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P2022747, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P46600, depth: s.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___2035584: undefined, - bucket___2035589: undefined, + k___59578: undefined, + bucket___59583: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39034,7 +40400,7 @@ function sprites_SpriteMap_insertAtKey__P2022747_mk(s) { -function sprites_SpriteMap_clear__P2020395(s) { +function sprites_SpriteMap_clear__P44246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39049,7 +40415,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -39058,12 +40424,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P2020395.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} +sprites_SpriteMap_clear__P44246.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} -function sprites_SpriteMap_clear__P2020395_mk(s) { +function sprites_SpriteMap_clear__P44246_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P2020395, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P44246, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39074,7 +40440,7 @@ function sprites_SpriteMap_clear__P2020395_mk(s) { -function sprites_SpriteMap_resizeBuckets__P2020394(s) { +function sprites_SpriteMap_resizeBuckets__P44245(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39084,115 +40450,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___2035619 = undefined; - s.maxHeight___2035620 = undefined; - s.sprite___2035622 = undefined; - s.unnamed27062___U3 = undefined; - s.unnamed27063___U4 = undefined; - s.tMap___2035638 = undefined; - s.areaWidth___2035642 = undefined; - s.areaHeight___2035649 = undefined; + s.maxWidth___59613 = undefined; + s.maxHeight___59614 = undefined; + s.sprite___59616 = undefined; + s.unnamed262___U3 = undefined; + s.unnamed263___U4 = undefined; + s.tMap___59632 = undefined; + s.areaWidth___59636 = undefined; + s.areaHeight___59643 = 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__C2020389_VT)) failedCast(r0); - s.maxWidth___2035619 = (0); - s.maxHeight___2035620 = (0); - s.sprite___2035622 = (undefined); - s.unnamed27062___U3 = (s.arg1); - s.unnamed27063___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.maxWidth___59613 = (0); + s.maxHeight___59614 = (0); + s.sprite___59616 = (undefined); + s.unnamed262___U3 = (s.arg1); + s.unnamed263___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27063___U4; - r0 = pxsim_Array__length(s.unnamed27062___U3); + s.tmp_0 = r0 = s.unnamed263___U4; + r0 = pxsim_Array__length(s.unnamed262___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed27062___U3, s.unnamed27063___U4); - s.sprite___2035622 = (r0); - s.tmp_4 = Sprite_width__P2020340_mk(s); - s.tmp_4.arg0 = s.sprite___2035622; + r0 = pxsim_Array__getAt(s.unnamed262___U3, s.unnamed263___U4); + s.sprite___59616 = (r0); + s.tmp_4 = Sprite_width__P44191_mk(s); + s.tmp_4.arg0 = s.sprite___59616; s.callLocIdx = 492; s.pc = 11; return s.tmp_4; case 11: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___2035619); + r0 = (s.tmp_3 > s.maxWidth___59613); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - s.tmp_5 = Sprite_width__P2020340_mk(s); - s.tmp_5.arg0 = s.sprite___2035622; + s.tmp_5 = Sprite_width__P44191_mk(s); + s.tmp_5.arg0 = s.sprite___59616; s.callLocIdx = 493; s.pc = 12; return s.tmp_5; case 12: r0 = s.retval; - s.maxWidth___2035619 = (r0); + s.maxWidth___59613 = (r0); case 2: case 3: - s.tmp_2 = Sprite_height__P2020341_mk(s); - s.tmp_2.arg0 = s.sprite___2035622; + s.tmp_2 = Sprite_height__P44192_mk(s); + s.tmp_2.arg0 = s.sprite___59616; s.callLocIdx = 494; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___2035620); + r0 = (s.tmp_1 > s.maxHeight___59614); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_height__P2020341_mk(s); - s.tmp_3.arg0 = s.sprite___2035622; + s.tmp_3 = Sprite_height__P44192_mk(s); + s.tmp_3.arg0 = s.sprite___59616; s.callLocIdx = 495; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; - s.maxHeight___2035620 = (r0); + s.maxHeight___59614 = (r0); case 4: case 5: - r0 = (s.unnamed27063___U4 + 1); - s.unnamed27063___U4 = (r0); + r0 = (s.unnamed263___U4 + 1); + s.unnamed263___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed27062___U3 = (undefined); - s.tmp_0 = game_currentScene__P2020942_mk(s); + s.unnamed262___U3 = (undefined); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 496; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___2035638 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___2035638); + s.tMap___59632 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___59632); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P2020686_mk(s); - s.tmp_0.arg0 = s.tMap___2035638; + s.tmp_0 = tiles_TileMap_areaWidth__P44537_mk(s); + s.tmp_0.arg0 = s.tMap___59632; s.callLocIdx = 497; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___2035642 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___2035638); + s.areaWidth___59636 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___59632); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P2020687_mk(s); - s.tmp_0.arg0 = s.tMap___2035638; + s.tmp_0 = tiles_TileMap_areaHeight__P44538_mk(s); + s.tmp_0.arg0 = s.tMap___59632; s.callLocIdx = 498; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___2035649 = (s.tmp_1); + s.areaHeight___59643 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P2018069_mk(s); + s.tmp_2 = Math_clamp__P41920_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___2035642 >> 2); + r0 = (s.areaWidth___59636 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___2035619 * 2); + r0 = (s.maxWidth___59613 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 499; s.pc = 18; return s.tmp_2; case 18: @@ -39200,11 +40566,11 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P2018069_mk(s); + s.tmp_2 = Math_clamp__P41920_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___2035649 >> 2); + r0 = (s.areaHeight___59643 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___2035620 * 2); + r0 = (s.maxHeight___59614 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 500; s.pc = 19; return s.tmp_2; case 19: @@ -39214,25 +40580,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___2035649, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___59643, 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___2035642, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___59636, s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["columnCount"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_resizeBuckets__P2020394.info = {"start":1696,"length":826,"line":52,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"resizeBuckets","argumentNames":["this","sprites"]} +sprites_SpriteMap_resizeBuckets__P44245.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 sprites_SpriteMap_resizeBuckets__P2020394_mk(s) { +function sprites_SpriteMap_resizeBuckets__P44245_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P2020394, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P44245, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39240,14 +40606,14 @@ function sprites_SpriteMap_resizeBuckets__P2020394_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___2035619: undefined, - maxHeight___2035620: undefined, - sprite___2035622: undefined, - unnamed27062___U3: undefined, - unnamed27063___U4: undefined, - tMap___2035638: undefined, - areaWidth___2035642: undefined, - areaHeight___2035649: undefined, + maxWidth___59613: undefined, + maxHeight___59614: undefined, + sprite___59616: undefined, + unnamed262___U3: undefined, + unnamed263___U4: undefined, + tMap___59632: undefined, + areaWidth___59636: undefined, + areaHeight___59643: undefined, arg0: undefined, arg1: undefined, } } @@ -39256,7 +40622,7 @@ function sprites_SpriteMap_resizeBuckets__P2020394_mk(s) { -function Sprite_clearObstacles__P2020368(s) { +function Sprite_clearObstacles__P44219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39271,7 +40637,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -39280,12 +40646,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P2020368.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P44219.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P2020368_mk(s) { +function Sprite_clearObstacles__P44219_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P2020368, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P44219, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39296,7 +40662,7 @@ function Sprite_clearObstacles__P2020368_mk(s) { -function Fx_idiv__P2018105(s) { +function Fx_idiv__P41956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39315,12 +40681,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P2018105.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} +Fx_idiv__P41956.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__P2018105_mk(s) { +function Fx_idiv__P41956_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P2018105, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P41956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39330,7 +40696,7 @@ function Fx_idiv__P2018105_mk(s) { -function helpers_arrayMap__P2018048(s) { +function helpers_arrayMap__P41899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39340,58 +40706,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___2035914 = undefined; - s.len___2035916 = undefined; - s.i___2035919 = undefined; + s.res___59908 = undefined; + s.len___59910 = undefined; + s.i___59913 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___2035914 = (r0); + s.res___59908 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___2035916 = (r0); - s.i___2035919 = (0); + s.len___59910 = (r0); + s.i___59913 = (0); case 1: - r0 = (s.i___2035919 < s.len___2035916); + r0 = (s.i___59913 < s.len___59910); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___2035914; + s.tmp_1 = r0 = s.res___59908; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___2035919); + r0 = pxsim_Array__getAt(s.arg0, s.i___59913); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___2035919; + s.tmp_3.arg1 = s.i___59913; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 3; 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___2035919 + 1); - s.i___2035919 = (r0); + r0 = (s.i___59913 + 1); + s.i___59913 = (r0); { step = 1; continue; } case 2: - r0 = s.res___2035914; + r0 = s.res___59908; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P2018048.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"]} +helpers_arrayMap__P41899.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 helpers_arrayMap__P2018048_mk(s) { +function helpers_arrayMap__P41899_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P2018048, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P41899, depth: s.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___2035914: undefined, - len___2035916: undefined, - i___2035919: undefined, + res___59908: undefined, + len___59910: undefined, + i___59913: undefined, arg0: undefined, arg1: undefined, } } @@ -39400,7 +40766,7 @@ function helpers_arrayMap__P2018048_mk(s) { -function ArcadePhysicsEngine_draw__P2020481(s) { +function ArcadePhysicsEngine_draw__P44332(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39415,8 +40781,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P2020393_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P44244_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; s.callLocIdx = 538; s.pc = 1; return s.tmp_0; @@ -39426,12 +40792,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P2020481.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P44332.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__P2020481_mk(s) { +function ArcadePhysicsEngine_draw__P44332_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P2020481, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P44332, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39441,7 +40807,7 @@ function ArcadePhysicsEngine_draw__P2020481_mk(s) { -function sprites_SpriteMap_draw__P2020393(s) { +function sprites_SpriteMap_draw__P44244(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39451,70 +40817,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___2035940 = undefined; - s.y___2035946 = undefined; - s.left___2035952 = undefined; - s.top___2035957 = undefined; - s.k___2035962 = undefined; - s.b___2035967 = undefined; + s.x___59934 = undefined; + s.y___59940 = undefined; + s.left___59946 = undefined; + s.top___59951 = undefined; + s.k___59956 = undefined; + s.b___59961 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2020389_VT)) failedCast(r0); - s.x___2035940 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C44240_VT)) failedCast(r0); + s.x___59934 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___2035940 < s.tmp_1); + r0 = (s.x___59934 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___2035946 = (0); + s.y___59940 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___2035946 < s.tmp_1); + r0 = (s.y___59940 < 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___2035940 * s.tmp_2); - s.left___2035952 = (r0); + r0 = (s.x___59934 * s.tmp_2); + s.left___59946 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___2035946 * s.tmp_0); - s.top___2035957 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P2022746_mk(s); + r0 = (s.y___59940 * s.tmp_0); + s.top___59951 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P46599_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___2035952; - s.tmp_0.arg2 = s.top___2035957; + s.tmp_0.arg1 = s.left___59946; + s.tmp_0.arg2 = s.top___59951; s.callLocIdx = 490; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___2035962 = (r0); + s.k___59956 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___2035962); - s.b___2035967 = (r0); - s.tmp_0 = r0 = s.b___2035967; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___59956); + s.b___59961 = (r0); + s.tmp_0 = r0 = s.b___59961; 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___2035967); + r0 = pxsim_Array__length(s.b___59961); 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__P2019902_mk(s); - s.tmp_2.arg0 = globals.screen___2019975; - s.tmp_2.arg1 = s.left___2035952; - s.tmp_2.arg2 = s.top___2035957; + s.tmp_2 = helpers_imageDrawRect__P43753_mk(s); + s.tmp_2.arg0 = globals.screen___43826; + s.tmp_2.arg1 = s.left___59946; + s.tmp_2.arg2 = s.top___59951; r0 = s.arg0.fields["cellWidth"]; s.tmp_2.arg3 = r0; r0 = s.arg0.fields["cellHeight"]; @@ -39525,34 +40891,34 @@ switch (step) { r0 = s.retval; case 5: case 6: - r0 = (s.y___2035946 + 1); - s.y___2035946 = (r0); + r0 = (s.y___59940 + 1); + s.y___59940 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___2035940 + 1); - s.x___2035940 = (r0); + r0 = (s.x___59934 + 1); + s.x___59934 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P2020393.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} +sprites_SpriteMap_draw__P44244.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__P2020393_mk(s) { +function sprites_SpriteMap_draw__P44244_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P2020393, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P44244, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___2035940: undefined, - y___2035946: undefined, - left___2035952: undefined, - top___2035957: undefined, - k___2035962: undefined, - b___2035967: undefined, + x___59934: undefined, + y___59940: undefined, + left___59946: undefined, + top___59951: undefined, + k___59956: undefined, + b___59961: undefined, arg0: undefined, } } @@ -39560,7 +40926,7 @@ function sprites_SpriteMap_draw__P2020393_mk(s) { -function ArcadePhysicsEngine_removeSprite__P2020480(s) { +function ArcadePhysicsEngine_removeSprite__P44331(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39576,7 +40942,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -39584,12 +40950,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P2020480.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_removeSprite__P44331.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__P2020480_mk(s) { +function ArcadePhysicsEngine_removeSprite__P44331_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P2020480, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P44331, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39600,7 +40966,7 @@ function ArcadePhysicsEngine_removeSprite__P2020480_mk(s) { -function ArcadePhysicsEngine_addSprite__P2020479(s) { +function ArcadePhysicsEngine_addSprite__P44330(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39610,31 +40976,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___2036004 = undefined; + s.tm___59998 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2020470_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C44321_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__P2020942_mk(s); + s.tmp_0 = game_currentScene__P44793_mk(s); s.callLocIdx = 536; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___2036004 = (r0); - s.tmp_0 = r0 = s.tm___2036004; + s.tm___59998 = (r0); + s.tmp_0 = r0 = s.tm___59998; 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__P2020701_mk(s); - s.tmp_1.arg0 = s.tm___2036004; + s.tmp_1 = tiles_TileMap_isOnWall__P44552_mk(s); + s.tmp_1.arg0 = s.tm___59998; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 537; s.pc = 6; return s.tmp_1; case 6: @@ -39656,12 +41022,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P2020479.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_addSprite__P44330.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 ArcadePhysicsEngine_addSprite__P2020479_mk(s) { +function ArcadePhysicsEngine_addSprite__P44330_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P2020479, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P44330, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39669,7 +41035,7 @@ function ArcadePhysicsEngine_addSprite__P2020479_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___2036004: undefined, + tm___59998: undefined, arg0: undefined, arg1: undefined, } } @@ -39678,7 +41044,7 @@ function ArcadePhysicsEngine_addSprite__P2020479_mk(s) { -function tiles_TileMapData_constructor__P2020661(s) { +function tiles_TileMapData_constructor__P44512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39697,11 +41063,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_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__P2020665_mk(s); + s.tmp_0 = tiles_TileMapData_scale__P44516_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 808; s.pc = 1; return s.tmp_0; @@ -39719,12 +41085,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P2020661.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"]} +tiles_TileMapData_constructor__P44512.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 tiles_TileMapData_constructor__P2020661_mk(s) { +function tiles_TileMapData_constructor__P44512_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P2020661, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P44512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39739,7 +41105,7 @@ function tiles_TileMapData_constructor__P2020661_mk(s) { -function tiles_TileMapData_scale__P2020665(s) { +function tiles_TileMapData_scale__P44516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39755,7 +41121,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2020660_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C44511_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); @@ -39765,12 +41131,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2020665.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMapData_scale__P44516.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 tiles_TileMapData_scale__P2020665_mk(s) { +function tiles_TileMapData_scale__P44516_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2020665, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P44516, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39782,7 +41148,7 @@ function tiles_TileMapData_scale__P2020665_mk(s) { -function tiles_TileMap_constructor__P2020680(s) { +function tiles_TileMap_constructor__P44531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39798,19 +41164,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P2020682_mk(s); + s.tmp_0 = tiles_TileMap_scale__P44533_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 814; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P2036065); + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P60059); 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__P2020748_mk(s); + s.tmp_3 = scene_createRenderable__P44599_mk(s); s.tmp_3.arg0 = -1; s.tmp_3.arg1 = s.tmp_0; s.tmp_3.arg2 = undefined; @@ -39823,12 +41189,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P2020680.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_constructor__P44531.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 tiles_TileMap_constructor__P2020680_mk(s) { +function tiles_TileMap_constructor__P44531_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P2020680, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P44531, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39842,7 +41208,7 @@ function tiles_TileMap_constructor__P2020680_mk(s) { -function tiles_TileMap_inline__P2036065(s) { +function tiles_TileMap_inline__P60059(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39857,7 +41223,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P2022859_mk(s); + s.tmp_0 = tiles_TileMap_draw__P46712_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; @@ -39868,12 +41234,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_inline__P2036065.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +tiles_TileMap_inline__P60059.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 tiles_TileMap_inline__P2036065_mk(s) { +function tiles_TileMap_inline__P60059_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_inline__P2036065, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P60059, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39884,7 +41250,7 @@ function tiles_TileMap_inline__P2036065_mk(s) { -function tiles_TileMap_draw__P2022859(s) { +function tiles_TileMap_draw__P46712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39894,21 +41260,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___2036076 = undefined; - s.offsetX___2036082 = undefined; - s.offsetY___2036087 = undefined; - s.x0___2036092 = undefined; - s.xn___2036099 = undefined; - s.y0___2036116 = undefined; - s.yn___2036123 = undefined; - s.x___2036140 = undefined; - s.y___2036146 = undefined; - s.index___2036152 = undefined; - s.tile___2036159 = undefined; - s.x___2036195 = undefined; - s.xLine___2036201 = undefined; - s.y___2036227 = undefined; - s.yLine___2036233 = undefined; + s.bitmask___60070 = undefined; + s.offsetX___60076 = undefined; + s.offsetY___60081 = undefined; + s.x0___60086 = undefined; + s.xn___60093 = undefined; + s.y0___60110 = undefined; + s.yn___60117 = undefined; + s.x___60134 = undefined; + s.y___60140 = undefined; + s.index___60146 = undefined; + s.tile___60153 = undefined; + s.x___60189 = undefined; + s.xLine___60195 = undefined; + s.y___60221 = undefined; + s.yLine___60227 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39916,7 +41282,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -39941,16 +41307,16 @@ switch (step) { r0 = (1 << s.tmp_8); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); - s.bitmask___2036076 = (r0); + s.bitmask___60070 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___2036076); - s.offsetX___2036082 = (r0); + r0 = (s.tmp_0 & s.bitmask___60070); + s.offsetX___60076 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___2036076); - s.offsetY___2036087 = (r0); - s.tmp_0 = Math_max__P2018072_mk(s); + r0 = (s.tmp_0 & s.bitmask___60070); + s.offsetY___60081 = (r0); + s.tmp_0 = Math_max__P41923_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -39961,8 +41327,8 @@ switch (step) { s.callLocIdx = 834; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.x0___2036092 = (r0); - s.tmp_0 = Math_min__P2018073_mk(s); + s.x0___60086 = (r0); + s.tmp_0 = Math_min__P41924_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -39982,8 +41348,8 @@ switch (step) { s.callLocIdx = 837; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.xn___2036099 = (r0); - s.tmp_0 = Math_max__P2018072_mk(s); + s.xn___60093 = (r0); + s.tmp_0 = Math_max__P41923_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -39994,8 +41360,8 @@ switch (step) { s.callLocIdx = 839; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.y0___2036116 = (r0); - s.tmp_0 = Math_min__P2018073_mk(s); + s.y0___60110 = (r0); + s.tmp_0 = Math_min__P41924_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -40015,92 +41381,92 @@ switch (step) { s.callLocIdx = 842; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.yn___2036123 = (r0); - s.x___2036140 = (s.x0___2036092); + s.yn___60117 = (r0); + s.x___60134 = (s.x0___60086); case 3: - r0 = (s.x___2036140 <= s.xn___2036099); + r0 = (s.x___60134 <= s.xn___60093); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___2036146 = (s.y0___2036116); + s.y___60140 = (s.y0___60110); case 4: - r0 = (s.y___2036146 <= s.yn___2036123); + r0 = (s.y___60140 <= s.yn___60117); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P2020666_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P44517_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___2036140; - s.tmp_1.arg2 = s.y___2036146; + s.tmp_1.arg1 = s.x___60134; + s.tmp_1.arg2 = s.y___60140; s.callLocIdx = 843; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - s.index___2036152 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P2020669_mk(s); + s.index___60146 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P44520_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___2036152; + s.tmp_0.arg1 = s.index___60146; s.callLocIdx = 844; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tile___2036159 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___2036159); + s.tile___60153 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___60153); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___2036159; - r0 = (s.x___2036140 - s.x0___2036092); + s.tmp_1 = r0 = s.tile___60153; + r0 = (s.x___60134 - s.x0___60086); 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___2036082); + r0 = (s.tmp_3 - s.offsetX___60076); s.tmp_2 = r0; - r0 = (s.y___2036146 - s.y0___2036116); + r0 = (s.y___60140 - s.y0___60110); 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___2036087); + r0 = (s.tmp_7 - s.offsetY___60081); 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___2036146 + 1); - s.y___2036146 = (r0); + r0 = (s.y___60140 + 1); + s.y___60140 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___2036140 + 1); - s.x___2036140 = (r0); + r0 = (s.x___60134 + 1); + s.x___60134 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___2020910); + r0 = pxsim_numops_toBoolDecr(globals.debug___44761); if (!r0) { step = 21; continue; } - s.x___2036195 = (s.x0___2036092); + s.x___60189 = (s.x0___60086); case 9: - r0 = (s.x___2036195 <= s.xn___2036099); + r0 = (s.x___60189 <= s.xn___60093); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___2036195 - s.x0___2036092); + r0 = (s.x___60189 - s.x0___60086); 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___2036082); - s.xLine___2036201 = (r0); - r0 = (s.xLine___2036201 >= 0); + r0 = (s.tmp_1 - s.offsetX___60076); + s.xLine___60195 = (r0); + r0 = (s.xLine___60195 >= 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___2036201; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + s.tmp_1 = r0 = s.xLine___60195; + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -40108,11 +41474,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_4 = helpers_imageDrawLine__P43752_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___2036201; + s.tmp_4.arg1 = s.xLine___60195; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___2036201; + s.tmp_4.arg3 = s.xLine___60195; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; @@ -40121,33 +41487,33 @@ switch (step) { r0 = s.retval; case 12: case 13: - r0 = (s.x___2036195 + 1); - s.x___2036195 = (r0); + r0 = (s.x___60189 + 1); + s.x___60189 = (r0); { step = 9; continue; } case 14: - s.y___2036227 = (s.y0___2036116); + s.y___60221 = (s.y0___60110); case 15: - r0 = (s.y___2036227 <= s.yn___2036123); + r0 = (s.y___60221 <= s.yn___60117); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___2036227 - s.y0___2036116); + r0 = (s.y___60221 - s.y0___60110); 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___2036087); - s.yLine___2036233 = (r0); - r0 = (s.yLine___2036233 >= 0); + r0 = (s.tmp_1 - s.offsetY___60081); + s.yLine___60227 = (r0); + r0 = (s.yLine___60227 >= 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___2036233; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + s.tmp_1 = r0 = s.yLine___60227; + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -40155,21 +41521,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P2019901_mk(s); + s.tmp_4 = helpers_imageDrawLine__P43752_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___2036233; + s.tmp_4.arg2 = s.yLine___60227; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___2036233; + s.tmp_4.arg4 = s.yLine___60227; s.tmp_4.arg5 = 1; s.callLocIdx = 850; s.pc = 31; return s.tmp_4; case 31: r0 = s.retval; case 18: case 19: - r0 = (s.y___2036227 + 1); - s.y___2036227 = (r0); + r0 = (s.y___60221 + 1); + s.y___60221 = (r0); { step = 15; continue; } case 20: case 21: @@ -40179,12 +41545,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P2022859.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_draw__P46712.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 tiles_TileMap_draw__P2022859_mk(s) { +function tiles_TileMap_draw__P46712_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P2022859, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P46712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40196,21 +41562,21 @@ function tiles_TileMap_draw__P2022859_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___2036076: undefined, - offsetX___2036082: undefined, - offsetY___2036087: undefined, - x0___2036092: undefined, - xn___2036099: undefined, - y0___2036116: undefined, - yn___2036123: undefined, - x___2036140: undefined, - y___2036146: undefined, - index___2036152: undefined, - tile___2036159: undefined, - x___2036195: undefined, - xLine___2036201: undefined, - y___2036227: undefined, - yLine___2036233: undefined, + bitmask___60070: undefined, + offsetX___60076: undefined, + offsetY___60081: undefined, + x0___60086: undefined, + xn___60093: undefined, + y0___60110: undefined, + yn___60117: undefined, + x___60134: undefined, + y___60140: undefined, + index___60146: undefined, + tile___60153: undefined, + x___60189: undefined, + xLine___60195: undefined, + y___60221: undefined, + yLine___60227: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40220,7 +41586,7 @@ function tiles_TileMap_draw__P2022859_mk(s) { -function tiles_TileMap_scale__P2020682(s) { +function tiles_TileMap_scale__P44533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40236,13 +41602,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_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__P2020665_mk(s); + s.tmp_1 = tiles_TileMapData_scale__P44516_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -40255,12 +41621,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P2020682.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMap_scale__P44533.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 tiles_TileMap_scale__P2020682_mk(s) { +function tiles_TileMap_scale__P44533_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2020682, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P44533, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40272,7 +41638,7 @@ function tiles_TileMap_scale__P2020682_mk(s) { -function tiles_TileMap_data__P2020683(s) { +function tiles_TileMap_data__P44534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40287,18 +41653,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2020678_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C44529_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P2020683.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__P2020683.isGetter = true; +tiles_TileMap_data__P44534.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__P44534.isGetter = true; -function tiles_TileMap_data__P2020683_mk(s) { +function tiles_TileMap_data__P44534_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P2020683, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P44534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -40307,7 +41673,7 @@ function tiles_TileMap_data__P2020683_mk(s) { -function Sprite_toString__P2020377(s) { +function Sprite_toString__P44228(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40322,7 +41688,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -40340,7 +41706,7 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P2020297_mk(s); + s.tmp_14 = Sprite_x__P44148_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 443; s.pc = 2; return s.tmp_14; case 2: @@ -40359,7 +41725,7 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P2020299_mk(s); + s.tmp_17 = Sprite_y__P44150_mk(s); s.tmp_17.arg0 = s.arg0; s.callLocIdx = 444; s.pc = 4; return s.tmp_17; case 4: @@ -40378,7 +41744,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P2020301_mk(s); + s.tmp_20 = Sprite_vx__P44152_mk(s); s.tmp_20.arg0 = s.arg0; s.callLocIdx = 445; s.pc = 6; return s.tmp_20; case 6: @@ -40397,7 +41763,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P2020303_mk(s); + s.tmp_23 = Sprite_vy__P44154_mk(s); s.tmp_23.arg0 = s.arg0; s.callLocIdx = 446; s.pc = 8; return s.tmp_23; case 8: @@ -40418,12 +41784,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P2020377.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P44228.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P2020377_mk(s) { +function Sprite_toString__P44228_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P2020377, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P44228, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40456,7 +41822,7 @@ function Sprite_toString__P2020377_mk(s) { -function Sprite___update__P2020359(s) { +function Sprite___update__P44210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40473,7 +41839,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -40495,7 +41861,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__P2020372_mk(s); + s.tmp_0 = Sprite__destroyCore__P44223_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 380; s.pc = 11; return s.tmp_0; case 11: @@ -40513,7 +41879,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P2020357_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P44208_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 381; s.pc = 12; return s.tmp_2; @@ -40524,7 +41890,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P2020371_mk(s); + s.tmp_4 = Sprite_destroy__P44222_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; @@ -40537,13 +41903,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_1 = sprites_BaseSpriteSayRenderer__C2020202_v1_4_mk(s); + s.tmp_1 = sprites_BaseSpriteSayRenderer__C44053_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__C2020202_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C44053_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: @@ -40554,12 +41920,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P2020359.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__P44210.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__P2020359_mk(s) { +function Sprite___update__P44210_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P2020359, depth: s.depth + 1, + parent: s, fn: Sprite___update__P44210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40576,7 +41942,7 @@ function Sprite___update__P2020359_mk(s) { -function Sprite_isOutOfScreen__P2020357(s) { +function Sprite_isOutOfScreen__P44208(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40586,15 +41952,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___2036422 = undefined; - s.oy___2036430 = undefined; + s.ox___60416 = undefined; + s.oy___60424 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -40608,7 +41974,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___2036422 = (s.tmp_2); + s.ox___60416 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -40622,14 +41988,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___2036430 = (s.tmp_2); - s.tmp_3 = Sprite_right__P2020344_mk(s); + s.oy___60424 = (s.tmp_2); + s.tmp_3 = Sprite_right__P44195_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 371; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___2036422); + r0 = (s.tmp_2 - s.ox___60416); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -40638,13 +42004,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P2020348_mk(s); + s.tmp_6 = Sprite_bottom__P44199_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 372; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___2036430); + r0 = (s.tmp_5 - s.oy___60424); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -40655,15 +42021,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P2020342_mk(s); + s.tmp_10 = Sprite_left__P44193_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 373; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___2036422); + r0 = (s.tmp_9 - s.ox___60416); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -40674,15 +42040,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P2020346_mk(s); + s.tmp_15 = Sprite_top__P44197_mk(s); s.tmp_15.arg0 = s.arg0; s.callLocIdx = 374; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___2036430); + r0 = (s.tmp_14 - s.oy___60424); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -40692,12 +42058,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P2020357.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__P44208.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__P2020357_mk(s) { +function Sprite_isOutOfScreen__P44208_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P2020357, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P44208, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40717,8 +42083,8 @@ function Sprite_isOutOfScreen__P2020357_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___2036422: undefined, - oy___2036430: undefined, + ox___60416: undefined, + oy___60424: undefined, arg0: undefined, arg1: undefined, } } @@ -40727,7 +42093,7 @@ function Sprite_isOutOfScreen__P2020357_mk(s) { -function sprites_BaseSpriteSayRenderer_update__P2020205(s) { +function sprites_BaseSpriteSayRenderer_update__P44056(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40745,17 +42111,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C44053_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_update__P2020205.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__P44056.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__P2020205_mk(s) { +function sprites_BaseSpriteSayRenderer_update__P44056_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_update__P2020205, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_update__P44056, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40767,7 +42133,7 @@ function sprites_BaseSpriteSayRenderer_update__P2020205_mk(s) { -function Sprite_data__P2020320(s) { +function Sprite_data__P44171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40783,18 +42149,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P2020320.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__P44171.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__P2020320_mk(s) { +function Sprite_data__P44171_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P2020320, depth: s.depth + 1, + parent: s, fn: Sprite_data__P44171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40804,7 +42170,7 @@ function Sprite_data__P2020320_mk(s) { -function Sprite_data__P2020319(s) { +function Sprite_data__P44170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40819,7 +42185,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -40838,13 +42204,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P2020319.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__P2020319.isGetter = true; +Sprite_data__P44170.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__P44170.isGetter = true; -function Sprite_data__P2020319_mk(s) { +function Sprite_data__P44170_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P2020319, depth: s.depth + 1, + parent: s, fn: Sprite_data__P44170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40858,7 +42224,7 @@ function Sprite_data__P2020319_mk(s) { -function scene_BackgroundLayer_constructor__P2020629(s) { +function scene_BackgroundLayer_constructor__P44480(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40876,9 +42242,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C2020622_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C44473_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P2018072_mk(s); + s.tmp_2 = Math_max__P41923_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 794; s.pc = 7; return s.tmp_2; @@ -40924,12 +42290,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_constructor__P2020629.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"]} +scene_BackgroundLayer_constructor__P44480.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 scene_BackgroundLayer_constructor__P2020629_mk(s) { +function scene_BackgroundLayer_constructor__P44480_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_constructor__P2020629, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P44480, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40944,7 +42310,7 @@ function scene_BackgroundLayer_constructor__P2020629_mk(s) { -function scene_Camera_y__P2020734(s) { +function scene_Camera_y__P44585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40959,10 +42325,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___2019975); + r0 = pxsim_ImageMethods.height(globals.screen___43826); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -40970,13 +42336,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_y__P2020734.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__P2020734.isGetter = true; +scene_Camera_y__P44585.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__P44585.isGetter = true; -function scene_Camera_y__P2020734_mk(s) { +function scene_Camera_y__P44585_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P2020734, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P44585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40988,7 +42354,7 @@ function scene_Camera_y__P2020734_mk(s) { -function scene_Camera_x__P2020733(s) { +function scene_Camera_x__P44584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41003,10 +42369,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___2019975); + r0 = pxsim_ImageMethods.width(globals.screen___43826); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -41014,13 +42380,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_x__P2020733.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__P2020733.isGetter = true; +scene_Camera_x__P44584.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__P44584.isGetter = true; -function scene_Camera_x__P2020733_mk(s) { +function scene_Camera_x__P44584_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_x__P2020733, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P44584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41032,7 +42398,7 @@ function scene_Camera_x__P2020733_mk(s) { -function scene_Scene_data__P2020811(s) { +function scene_Scene_data__P44662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41047,18 +42413,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2020786_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C44637_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P2020811.info = {"start":7014,"length":53,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P2020811.isGetter = true; +scene_Scene_data__P44662.info = {"start":7014,"length":53,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P44662.isGetter = true; -function scene_Scene_data__P2020811_mk(s) { +function scene_Scene_data__P44662_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P2020811, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P44662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41067,7 +42433,7 @@ function scene_Scene_data__P2020811_mk(s) { -function particles_ParticleSource___draw__P2021100(s) { +function particles_ParticleSource___draw__P44951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41077,18 +42443,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___2036477 = undefined; - s.left___2036480 = undefined; - s.top___2036490 = undefined; + s.current___60471 = undefined; + s.left___60474 = undefined; + s.top___60484 = 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__C2021094_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___2036477 = (r0); + s.current___60471 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -41106,7 +42472,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___2036480 = (s.tmp_4); + s.left___60474 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -41124,49 +42490,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___2036490 = (s.tmp_4); + s.top___60484 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___2036477); + r0 = pxsim_numops_toBoolDecr(s.current___60471); if (!r0) { step = 8; continue; } - r0 = s.current___2036477.fields["lifespan"]; + r0 = s.current___60471.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__P2023273_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P47126_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___2036477; - s.tmp_2.arg2 = s.left___2036480; - s.tmp_2.arg3 = s.top___2036490; + s.tmp_2.arg1 = s.current___60471; + s.tmp_2.arg2 = s.left___60474; + s.tmp_2.arg3 = s.top___60484; s.callLocIdx = 1217; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___2036477.fields["next"]; - s.current___2036477 = (r0); + r0 = s.current___60471.fields["next"]; + s.current___60471 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P2021100.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__P44951.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__P2021100_mk(s) { +function particles_ParticleSource___draw__P44951_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P2021100, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P44951, depth: s.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___2036477: undefined, - left___2036480: undefined, - top___2036490: undefined, + current___60471: undefined, + left___60474: undefined, + top___60484: undefined, arg0: undefined, arg1: undefined, } } @@ -41175,7 +42541,7 @@ function particles_ParticleSource___draw__P2021100_mk(s) { -function particles_ParticleSource_drawParticle__P2023273(s) { +function particles_ParticleSource_drawParticle__P47126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41193,8 +42559,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2021094_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C2021130_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C44945_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C44981_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -41206,7 +42572,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__C2021130_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C44981_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: @@ -41215,12 +42581,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P2023273.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__P47126.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__P2023273_mk(s) { +function particles_ParticleSource_drawParticle__P47126_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P2023273, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P47126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41235,7 +42601,7 @@ function particles_ParticleSource_drawParticle__P2023273_mk(s) { -function particles_ParticleFactory_drawParticle__P2021133(s) { +function particles_ParticleFactory_drawParticle__P44984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41253,8 +42619,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C2021130_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2019975; + if (!checkSubtype(r0, particles_ParticleFactory__C44981_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___43826; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -41268,12 +42634,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P2021133.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__P44984.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__P2021133_mk(s) { +function particles_ParticleFactory_drawParticle__P44984_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P2021133, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P44984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41290,7 +42656,7 @@ function particles_ParticleFactory_drawParticle__P2021133_mk(s) { -function sprites_BaseSprite___update__P2020045(s) { +function sprites_BaseSprite___update__P43896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41307,17 +42673,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2020037_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P2020045.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__P43896.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__P2020045_mk(s) { +function sprites_BaseSprite___update__P43896_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P2020045, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P43896, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41328,7 +42694,7 @@ function sprites_BaseSprite___update__P2020045_mk(s) { -function sprites_BaseSprite___draw__P2020043(s) { +function sprites_BaseSprite___draw__P43894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41344,10 +42710,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2020037_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C2020037_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C43888_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C2020037_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C43888_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: @@ -41355,10 +42721,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C2020037_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C43888_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C2020037_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C43888_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: @@ -41369,12 +42735,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P2020043.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__P43894.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__P2020043_mk(s) { +function sprites_BaseSprite___draw__P43894_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P2020043, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P43894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41387,7 +42753,7 @@ function sprites_BaseSprite___draw__P2020043_mk(s) { -function sprites_BaseSprite___drawCore__P2020044(s) { +function sprites_BaseSprite___drawCore__P43895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41403,17 +42769,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2020037_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P2020044.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__P43895.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__P2020044_mk(s) { +function sprites_BaseSprite___drawCore__P43895_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P2020044, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P43895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41423,7 +42789,7 @@ function sprites_BaseSprite___drawCore__P2020044_mk(s) { -function sprites_BaseSprite___visible__P2020040(s) { +function sprites_BaseSprite___visible__P43891(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41438,17 +42804,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C2020037_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C43888_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P2020040.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__P43891.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__P2020040_mk(s) { +function sprites_BaseSprite___visible__P43891_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P2020040, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P43891, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41457,7 +42823,7 @@ function sprites_BaseSprite___visible__P2020040_mk(s) { -function game_SplashDialog_drawTextCore__P2020885(s) { +function game_SplashDialog_drawTextCore__P44736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41467,17 +42833,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scrollMax___2036551 = undefined; - s.left___2036594 = undefined; - s.ysub___2036639 = undefined; - s.left___2036650 = undefined; + s.scrollMax___60545 = undefined; + s.left___60588 = undefined; + s.ysub___60633 = undefined; + s.left___60644 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_SplashDialog__C2020875_VT)) failedCast(r0); - s.tmp_0 = Math_max__P2018072_mk(s); + if (!checkSubtype(r0, game_SplashDialog__C44726_VT)) failedCast(r0); + s.tmp_0 = Math_max__P41923_mk(s); r0 = s.arg0.fields["maxOffset"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["maxSubOffset"]; @@ -41485,7 +42851,7 @@ switch (step) { s.callLocIdx = 979; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.scrollMax___2036551 = (r0); + s.scrollMax___60545 = (r0); r0 = s.arg0.fields["timer"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 0); @@ -41495,7 +42861,7 @@ switch (step) { s.tmp_2 = r0 = s.arg0; r0 = s.tmp_2.fields["timer"]; s.tmp_4 = r0; - s.tmp_7 = game_eventContext__P2020945_mk(s); + s.tmp_7 = game_eventContext__P44796_mk(s); s.callLocIdx = 980; s.pc = 16; return s.tmp_7; case 16: r0 = s.retval; @@ -41535,11 +42901,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___2036551); + r0 = (s.tmp_1 >= s.scrollMax___60545); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = (s.arg0).fields["offset"] = (s.scrollMax___2036551); + r0 = (s.arg0).fields["offset"] = (s.scrollMax___60545); r0 = (s.arg0).fields["timer"] = (2); case 6: case 7: @@ -41579,13 +42945,13 @@ switch (step) { r0 = (s.tmp_6 >> 1); s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); - s.left___2036594 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); + s.left___60588 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_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___2036594; + s.tmp_0.arg2 = s.left___60588; s.tmp_0.arg3 = 10; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; @@ -41597,7 +42963,7 @@ switch (step) { r0 = s.retval; { step = 10; continue; } case 9: - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); r0 = s.arg0.fields["image"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["text"]; @@ -41639,7 +43005,7 @@ switch (step) { r0 = (10 + s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_1 + 2); - s.ysub___2036639 = (r0); + s.ysub___60633 = (r0); r0 = s.arg0.fields["maxSubOffset"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); @@ -41675,14 +43041,14 @@ switch (step) { r0 = (s.tmp_6 >> 1); s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); - s.left___2036650 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); + s.left___60644 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_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___2036650; - s.tmp_0.arg3 = s.ysub___2036639; + s.tmp_0.arg2 = s.left___60644; + s.tmp_0.arg3 = s.ysub___60633; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; r0 = s.arg0.fields["font"]; @@ -41693,14 +43059,14 @@ switch (step) { r0 = s.retval; { step = 12; continue; } case 11: - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); + s.tmp_0 = helpers_imagePrint__P43784_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__P2018073_mk(s); + s.tmp_3 = Math_min__P41924_mk(s); r0 = s.arg0.fields["offset"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["maxSubOffset"]; @@ -41711,7 +43077,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___2036639; + s.tmp_0.arg3 = s.ysub___60633; r0 = s.arg0.fields["textColor"]; s.tmp_0.arg4 = r0; r0 = s.arg0.fields["font"]; @@ -41723,7 +43089,7 @@ switch (step) { case 12: case 13: case 14: - s.tmp_0 = game_BaseDialog_drawBorder__P2022892_mk(s); + s.tmp_0 = game_BaseDialog_drawBorder__P46745_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 990; s.pc = 25; return s.tmp_0; case 25: @@ -41732,12 +43098,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_SplashDialog_drawTextCore__P2020885.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__P44736.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__P2020885_mk(s) { +function game_SplashDialog_drawTextCore__P44736_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_SplashDialog_drawTextCore__P2020885, depth: s.depth + 1, + parent: s, fn: game_SplashDialog_drawTextCore__P44736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41750,10 +43116,10 @@ function game_SplashDialog_drawTextCore__P2020885_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - scrollMax___2036551: undefined, - left___2036594: undefined, - ysub___2036639: undefined, - left___2036650: undefined, + scrollMax___60545: undefined, + left___60588: undefined, + ysub___60633: undefined, + left___60644: undefined, arg0: undefined, } } @@ -41761,7 +43127,7 @@ function game_SplashDialog_drawTextCore__P2020885_mk(s) { -function game_BaseDialog_setText__P2020861(s) { +function game_BaseDialog_setText__P44712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41777,17 +43143,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2020846_VT)) failedCast(r0); + if (!checkSubtype(r0, game_BaseDialog__C44697_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_setText__P2020861.info = {"start":2302,"length":77,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} +game_BaseDialog_setText__P44712.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 game_BaseDialog_setText__P2020861_mk(s) { +function game_BaseDialog_setText__P44712_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_setText__P2020861, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setText__P44712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41797,7 +43163,7 @@ function game_BaseDialog_setText__P2020861_mk(s) { -function controller_AnyButton_isPressed__P2022720(s) { +function controller_AnyButton_isPressed__P46573(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41807,36 +43173,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___2036700 = undefined; - s.b___2036704 = undefined; - s.unnamed27054___U2 = undefined; - s.unnamed27055___U3 = undefined; + s.ctrl___60694 = undefined; + s.b___60698 = undefined; + s.unnamed254___U2 = undefined; + s.unnamed255___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C2022712_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P2020071_mk(s); + if (!checkSubtype(r0, controller_AnyButton__C46565_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P43922_mk(s); s.callLocIdx = 196; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___2036700 = (r0); - s.b___2036704 = (undefined); - r0 = s.ctrl___2036700.fields["buttons"]; - s.unnamed27054___U2 = (r0); - s.unnamed27055___U3 = (0); + s.ctrl___60694 = (r0); + s.b___60698 = (undefined); + r0 = s.ctrl___60694.fields["buttons"]; + s.unnamed254___U2 = (r0); + s.unnamed255___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed27055___U3; - r0 = pxsim_Array__length(s.unnamed27054___U2); + s.tmp_0 = r0 = s.unnamed255___U3; + r0 = pxsim_Array__length(s.unnamed254___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed27054___U2, s.unnamed27055___U3); - s.b___2036704 = (r0); - s.tmp_3 = controller_Button__C2020132_v0_1_mk(s); - s.tmp_3.arg0 = s.b___2036704; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2020132_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed254___U2, s.unnamed255___U3); + s.b___60698 = (r0); + s.tmp_3 = controller_Button__C43983_v0_1_mk(s); + s.tmp_3.arg0 = s.b___60698; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C43983_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: @@ -41848,31 +43214,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed27055___U3 + 1); - s.unnamed27055___U3 = (r0); + r0 = (s.unnamed255___U3 + 1); + s.unnamed255___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed27054___U2 = (undefined); + s.unnamed254___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P2022720.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__P46573.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__P2022720_mk(s) { +function controller_AnyButton_isPressed__P46573_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P2022720, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P46573, depth: s.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___2036700: undefined, - b___2036704: undefined, - unnamed27054___U2: undefined, - unnamed27055___U3: undefined, + ctrl___60694: undefined, + b___60698: undefined, + unnamed254___U2: undefined, + unnamed255___U3: undefined, arg0: undefined, } } @@ -41880,7 +43246,7 @@ function controller_AnyButton_isPressed__P2022720_mk(s) { -function controller_Button_toString__P2020137(s) { +function controller_Button_toString__P43988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41895,7 +43261,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2020132_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C43983_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -41935,12 +43301,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P2020137.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__P43988.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__P2020137_mk(s) { +function controller_Button_toString__P43988_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P2020137, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P43988, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41956,7 +43322,7 @@ function controller_Button_toString__P2020137_mk(s) { -function sprites_BaseSpriteSayRenderer_constructor__P2020203(s) { +function sprites_BaseSpriteSayRenderer_constructor__P44054(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41974,7 +43340,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C44053_VT)) failedCast(r0); r0 = (s.arg0).fields["text"] = (s.arg1); r0 = (s.arg0).fields["fgColor"] = (s.arg2); r0 = (s.arg0).fields["bgColor"] = (s.arg3); @@ -41982,12 +43348,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_constructor__P2020203.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_BaseSpriteSayRenderer_constructor__P44054.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 sprites_BaseSpriteSayRenderer_constructor__P2020203_mk(s) { +function sprites_BaseSpriteSayRenderer_constructor__P44054_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P2020203, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P44054, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41999,7 +43365,7 @@ function sprites_BaseSpriteSayRenderer_constructor__P2020203_mk(s) { -function sprites_StaticObstacle_width__P2020451(s) { +function sprites_StaticObstacle_width__P44302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42014,20 +43380,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2020441_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C44292_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__P2020451.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__P2020451.isGetter = true; +sprites_StaticObstacle_width__P44302.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__P44302.isGetter = true; -function sprites_StaticObstacle_width__P2020451_mk(s) { +function sprites_StaticObstacle_width__P44302_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P2020451, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P44302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42037,7 +43403,7 @@ function sprites_StaticObstacle_width__P2020451_mk(s) { -function sprites_StaticObstacle_height__P2020450(s) { +function sprites_StaticObstacle_height__P44301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42052,20 +43418,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2020441_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C44292_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__P2020450.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__P2020450.isGetter = true; +sprites_StaticObstacle_height__P44301.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__P44301.isGetter = true; -function sprites_StaticObstacle_height__P2020450_mk(s) { +function sprites_StaticObstacle_height__P44301_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P2020450, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P44301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42075,7 +43441,7 @@ function sprites_StaticObstacle_height__P2020450_mk(s) { -function sprites_StaticObstacle_y__P2020449(s) { +function sprites_StaticObstacle_y__P44300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42090,7 +43456,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2020441_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C44292_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -42103,13 +43469,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P2020449.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__P2020449.isGetter = true; +sprites_StaticObstacle_y__P44300.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__P44300.isGetter = true; -function sprites_StaticObstacle_y__P2020449_mk(s) { +function sprites_StaticObstacle_y__P44300_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P2020449, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P44300, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42122,7 +43488,7 @@ function sprites_StaticObstacle_y__P2020449_mk(s) { -function sprites_StaticObstacle_x__P2020448(s) { +function sprites_StaticObstacle_x__P44299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42137,7 +43503,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C2020441_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C44292_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -42150,13 +43516,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P2020448.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__P2020448.isGetter = true; +sprites_StaticObstacle_x__P44299.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__P44299.isGetter = true; -function sprites_StaticObstacle_x__P2020448_mk(s) { +function sprites_StaticObstacle_x__P44299_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P2020448, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P44299, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42169,7 +43535,7 @@ function sprites_StaticObstacle_x__P2020448_mk(s) { -function tiles_Location_top__P2020644(s) { +function tiles_Location_top__P44495(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42184,10 +43550,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P2020638_mk(s); + s.tmp_3 = tiles_Location_tileMap__P44489_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 804; s.pc = 1; return s.tmp_3; case 1: @@ -42199,13 +43565,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_top__P2020644.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__P2020644.isGetter = true; +tiles_Location_top__P44495.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__P44495.isGetter = true; -function tiles_Location_top__P2020644_mk(s) { +function tiles_Location_top__P44495_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_top__P2020644, depth: s.depth + 1, + parent: s, fn: tiles_Location_top__P44495, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42218,7 +43584,7 @@ function tiles_Location_top__P2020644_mk(s) { -function tiles_Location_left__P2020643(s) { +function tiles_Location_left__P44494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42233,10 +43599,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P2020638_mk(s); + s.tmp_3 = tiles_Location_tileMap__P44489_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 802; s.pc = 1; return s.tmp_3; case 1: @@ -42248,13 +43614,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_left__P2020643.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__P2020643.isGetter = true; +tiles_Location_left__P44494.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__P44494.isGetter = true; -function tiles_Location_left__P2020643_mk(s) { +function tiles_Location_left__P44494_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_left__P2020643, depth: s.depth + 1, + parent: s, fn: tiles_Location_left__P44494, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42267,7 +43633,7 @@ function tiles_Location_left__P2020643_mk(s) { -function tiles_Location_y__P2020642(s) { +function tiles_Location_y__P44493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42277,26 +43643,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___2036760 = undefined; + s.scale___60754 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2020638_mk(s); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P44489_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 800; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___2036760 = (r0); + s.scale___60754 = (r0); r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___2036760); + r0 = (s.tmp_1 << s.scale___60754); s.tmp_0 = r0; - r0 = (s.scale___2036760 - 1); + r0 = (s.scale___60754 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -42304,19 +43670,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_y__P2020642.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__P2020642.isGetter = true; +tiles_Location_y__P44493.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__P44493.isGetter = true; -function tiles_Location_y__P2020642_mk(s) { +function tiles_Location_y__P44493_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P2020642, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P44493, depth: s.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___2036760: undefined, + scale___60754: undefined, arg0: undefined, } } @@ -42324,7 +43690,7 @@ function tiles_Location_y__P2020642_mk(s) { -function tiles_Location_x__P2020641(s) { +function tiles_Location_x__P44492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42334,26 +43700,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___2036776 = undefined; + s.scale___60770 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2020636_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2020638_mk(s); + if (!checkSubtype(r0, tiles_Location__C44487_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P44489_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 798; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___2036776 = (r0); + s.scale___60770 = (r0); r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___2036776); + r0 = (s.tmp_1 << s.scale___60770); s.tmp_0 = r0; - r0 = (s.scale___2036776 - 1); + r0 = (s.scale___60770 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -42361,19 +43727,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_x__P2020641.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__P2020641.isGetter = true; +tiles_Location_x__P44492.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__P44492.isGetter = true; -function tiles_Location_x__P2020641_mk(s) { +function tiles_Location_x__P44492_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P2020641, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P44492, depth: s.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___2036776: undefined, + scale___60770: undefined, arg0: undefined, } } @@ -42381,7 +43747,7 @@ function tiles_Location_x__P2020641_mk(s) { -function particles_ShapeFactory_drawParticle__P2021159(s) { +function particles_ShapeFactory_drawParticle__P45010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42391,7 +43757,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___2036795 = undefined; + s.pImage___60789 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42400,8 +43766,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C2021156_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P2021007_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C45007_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P44858_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; @@ -42411,12 +43777,12 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.pImage___2036795 = (r0); + s.pImage___60789 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___2036795, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___2019975; - s.tmp_1 = r0 = s.pImage___2036795; + r0 = pxsim_ImageMethods.replace(s.pImage___60789, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___43826; + s.tmp_1 = r0 = s.pImage___60789; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -42438,12 +43804,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P2021159.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__P45010.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__P2021159_mk(s) { +function particles_ShapeFactory_drawParticle__P45010_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P2021159, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P45010, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42455,7 +43821,7 @@ function particles_ShapeFactory_drawParticle__P2021159_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___2036795: undefined, + pImage___60789: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42466,7 +43832,7 @@ function particles_ShapeFactory_drawParticle__P2021159_mk(s) { -function Math_FastRandom_pickRandom__P2021007(s) { +function Math_FastRandom_pickRandom__P44858(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42482,7 +43848,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2021002_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C44853_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -42505,7 +43871,7 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P2021006_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P44857_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = 0; r0 = pxsim_Array__length(s.arg1); @@ -42521,12 +43887,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P2021007.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__P44858.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__P2021007_mk(s) { +function Math_FastRandom_pickRandom__P44858_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P2021007, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P44858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42544,7 +43910,7 @@ function Math_FastRandom_pickRandom__P2021007_mk(s) { -function particles_AreaFactory_drawParticle__P2021147(s) { +function particles_AreaFactory_drawParticle__P44998(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42554,7 +43920,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___2036841 = undefined; + s.col___60835 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42563,7 +43929,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C2021140_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C44991_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -42590,8 +43956,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___2036841 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___2019975; + s.col___60835 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___43826; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -42600,17 +43966,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___2036841); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___60835); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P2021147.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__P44998.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__P2021147_mk(s) { +function particles_AreaFactory_drawParticle__P44998_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P2021147, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P44998, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42618,7 +43984,7 @@ function particles_AreaFactory_drawParticle__P2021147_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___2036841: undefined, + col___60835: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42629,7 +43995,7 @@ function particles_AreaFactory_drawParticle__P2021147_mk(s) { -function particles_SprayFactory_drawParticle__P2021137(s) { +function particles_SprayFactory_drawParticle__P44988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42647,8 +44013,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C2021134_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___2019975; + if (!checkSubtype(r0, particles_SprayFactory__C44985_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___43826; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -42662,12 +44028,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P2021137.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__P44988.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__P2021137_mk(s) { +function particles_SprayFactory_drawParticle__P44988_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P2021137, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P44988, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42684,7 +44050,7 @@ function particles_SprayFactory_drawParticle__P2021137_mk(s) { -function scene_Renderable___drawCore__P2020746(s) { +function scene_Renderable___drawCore__P44597(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42700,10 +44066,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2020743_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C44594_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___2019975; + s.tmp_0.arg1 = globals.screen___43826; 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); @@ -42720,12 +44086,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P2020746.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__P44597.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__P2020746_mk(s) { +function scene_Renderable___drawCore__P44597_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P2020746, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P44597, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42736,7 +44102,7 @@ function scene_Renderable___drawCore__P2020746_mk(s) { -function scene_Renderable___visible__P2020745(s) { +function scene_Renderable___visible__P44596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42751,7 +44117,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2020743_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C44594_VT)) failedCast(r0); s.tmp_0 = if_shouldBeVisible_1_mk(s); s.tmp_0.arg0 = s.arg0; if (!s.tmp_0.arg0.vtable.iface) { @@ -42768,12 +44134,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P2020745.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__P44596.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__P2020745_mk(s) { +function scene_Renderable___visible__P44596_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P2020745, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P44596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42783,7 +44149,7 @@ function scene_Renderable___visible__P2020745_mk(s) { -function Sprite___drawCore__P2020358(s) { +function Sprite___drawCore__P44209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42793,24 +44159,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___2036885 = undefined; - s.oy___2036893 = undefined; - s.l___2036901 = undefined; - s.t___2036907 = undefined; + s.ox___60879 = undefined; + s.oy___60887 = undefined; + s.l___60895 = undefined; + s.t___60901 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_0 = Sprite_drawSay__P2022740_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_0 = Sprite_drawSay__P46593_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 375; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_1 = Sprite_isOutOfScreen__P2020357_mk(s); + s.tmp_1 = Sprite_isOutOfScreen__P44208_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 376; s.pc = 9; return s.tmp_1; @@ -42835,7 +44201,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___2036885 = (s.tmp_4); + s.ox___60879 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -42849,42 +44215,42 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___2036893 = (s.tmp_2); - s.tmp_2 = Sprite_left__P2020342_mk(s); + s.oy___60887 = (s.tmp_2); + s.tmp_2 = Sprite_left__P44193_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 377; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___2036885); + r0 = (s.tmp_1 - s.ox___60879); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___2036901 = (r0); - s.tmp_2 = Sprite_top__P2020346_mk(s); + s.l___60895 = (r0); + s.tmp_2 = Sprite_top__P44197_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 378; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___2036893); + r0 = (s.tmp_1 - s.oy___60887); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___2036907 = (r0); - s.tmp_0 = Sprite__C2020284_v6_3_mk(s); + s.t___60901 = (r0); + s.tmp_0 = Sprite__C44135_v6_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___2036901; - s.tmp_0.arg2 = s.t___2036907; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2020284_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.l___60895; + s.tmp_0.arg2 = s.t___60901; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C44135_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__P2022741_mk(s); + s.tmp_0 = Sprite_drawDebug__P46594_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___2036901; - s.tmp_0.arg2 = s.t___2036907; - s.tmp_0.arg3 = s.ox___2036885; - s.tmp_0.arg4 = s.oy___2036893; + s.tmp_0.arg1 = s.l___60895; + s.tmp_0.arg2 = s.t___60901; + s.tmp_0.arg3 = s.ox___60879; + s.tmp_0.arg4 = s.oy___60887; s.callLocIdx = 379; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; @@ -42893,22 +44259,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P2020358.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__P44209.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__P2020358_mk(s) { +function Sprite___drawCore__P44209_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P2020358, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P44209, depth: s.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___2036885: undefined, - oy___2036893: undefined, - l___2036901: undefined, - t___2036907: undefined, + ox___60879: undefined, + oy___60887: undefined, + l___60895: undefined, + t___60901: undefined, arg0: undefined, arg1: undefined, } } @@ -42917,7 +44283,7 @@ function Sprite___drawCore__P2020358_mk(s) { -function Sprite_drawSprite__P2022742(s) { +function Sprite_drawSprite__P46595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42934,8 +44300,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); - s.tmp_3 = Sprite_isScaled__P2022739_mk(s); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); + s.tmp_3 = Sprite_isScaled__P46592_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 471; s.pc = 3; return s.tmp_3; case 3: @@ -42949,20 +44315,20 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___2019975, s.tmp_4, s.arg1, s.arg2); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___43826, s.tmp_4, s.arg1, s.arg2); { step = 2; continue; } case 1: - s.tmp_0 = helpers_imageBlit__P2019896_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.tmp_0 = helpers_imageBlit__P43747_mk(s); + s.tmp_0.arg0 = globals.screen___43826; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_1 = Sprite_width__P2020340_mk(s); + s.tmp_1 = Sprite_width__P44191_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 472; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg3 = r0; - s.tmp_2 = Sprite_height__P2020341_mk(s); + s.tmp_2 = Sprite_height__P44192_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 473; s.pc = 6; return s.tmp_2; case 6: @@ -42990,12 +44356,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSprite__P2022742.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} +Sprite_drawSprite__P46595.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} -function Sprite_drawSprite__P2022742_mk(s) { +function Sprite_drawSprite__P46595_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSprite__P2022742, depth: s.depth + 1, + parent: s, fn: Sprite_drawSprite__P46595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43011,7 +44377,7 @@ function Sprite_drawSprite__P2022742_mk(s) { -function Sprite_drawDebug__P2022741(s) { +function Sprite_drawDebug__P46594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43021,9 +44387,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___2036931 = undefined; - s.tx___2036935 = undefined; - s.ty___2036937 = undefined; + s.font___60925 = undefined; + s.tx___60929 = undefined; + s.ty___60931 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43033,17 +44399,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_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___2036931 = (globals.font5___2019923); - s.tx___2036935 = (s.arg1); + s.font___60925 = (globals.font5___43774); + s.tx___60929 = (s.arg1); s.tmp_1 = r0 = s.arg2; - s.tmp_3 = Sprite_height__P2020341_mk(s); + s.tmp_3 = Sprite_height__P44192_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 447; s.pc = 13; return s.tmp_3; case 13: @@ -43052,12 +44418,12 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___2036937 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; + s.ty___60931 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); + s.tmp_0.arg0 = globals.screen___43826; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P2020297_mk(s); + s.tmp_7 = Sprite_x__P44148_mk(s); s.tmp_7.arg0 = s.arg0; s.callLocIdx = 448; s.pc = 15; return s.tmp_7; case 15: @@ -43078,7 +44444,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P2020299_mk(s); + s.tmp_11 = Sprite_y__P44150_mk(s); s.tmp_11.arg0 = s.arg0; s.callLocIdx = 449; s.pc = 17; return s.tmp_11; case 17: @@ -43097,17 +44463,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___2036935; - s.tmp_0.arg3 = s.ty___2036937; + s.tmp_0.arg2 = s.tx___60929; + s.tmp_0.arg3 = s.ty___60931; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___2036931; + s.tmp_0.arg5 = s.font___60925; s.tmp_0.arg6 = undefined; s.callLocIdx = 450; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = r0 = s.tx___2036935; + s.tmp_0 = r0 = s.tx___60929; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___2036931; + s.tmp_2.arg0 = s.font___60925; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); } else { @@ -43120,8 +44486,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___2036935 = (r0); - s.tmp_1 = Sprite_vx__P2020301_mk(s); + s.tx___60929 = (r0); + s.tmp_1 = Sprite_vx__P44152_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 452; s.pc = 20; return s.tmp_1; case 20: @@ -43132,7 +44498,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P2020303_mk(s); + s.tmp_2 = Sprite_vy__P44154_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 453; s.pc = 21; return s.tmp_2; case 21: @@ -43142,9 +44508,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___2036937; + s.tmp_4 = r0 = s.ty___60931; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___2036931; + s.tmp_7.arg0 = s.font___60925; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -43159,10 +44525,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___2036937 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; - s.tmp_6 = Sprite_vx__P2020301_mk(s); + s.ty___60931 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); + s.tmp_0.arg0 = globals.screen___43826; + s.tmp_6 = Sprite_vx__P44152_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 455; s.pc = 24; return s.tmp_6; case 24: @@ -43183,7 +44549,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P2020303_mk(s); + s.tmp_10 = Sprite_vy__P44154_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 456; s.pc = 26; return s.tmp_10; case 26: @@ -43202,17 +44568,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___2036935; - s.tmp_0.arg3 = s.ty___2036937; + s.tmp_0.arg2 = s.tx___60929; + s.tmp_0.arg3 = s.ty___60931; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___2036931; + s.tmp_0.arg5 = s.font___60925; s.tmp_0.arg6 = undefined; s.callLocIdx = 457; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; case 3: case 4: - s.tmp_1 = Sprite_ax__P2020305_mk(s); + s.tmp_1 = Sprite_ax__P44156_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 458; s.pc = 28; return s.tmp_1; case 28: @@ -43223,7 +44589,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_ay__P2020307_mk(s); + s.tmp_2 = Sprite_ay__P44158_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 459; s.pc = 29; return s.tmp_2; case 29: @@ -43233,9 +44599,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___2036937; + s.tmp_4 = r0 = s.ty___60931; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___2036931; + s.tmp_7.arg0 = s.font___60925; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -43250,10 +44616,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___2036937 = (r0); - s.tmp_0 = helpers_imagePrint__P2019933_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; - s.tmp_6 = Sprite_ax__P2020305_mk(s); + s.ty___60931 = (r0); + s.tmp_0 = helpers_imagePrint__P43784_mk(s); + s.tmp_0.arg0 = globals.screen___43826; + s.tmp_6 = Sprite_ax__P44156_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 461; s.pc = 32; return s.tmp_6; case 32: @@ -43274,7 +44640,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P2020307_mk(s); + s.tmp_10 = Sprite_ay__P44158_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 462; s.pc = 34; return s.tmp_10; case 34: @@ -43293,10 +44659,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___2036935; - s.tmp_0.arg3 = s.ty___2036937; + s.tmp_0.arg2 = s.tx___60929; + s.tmp_0.arg3 = s.ty___60931; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___2036931; + s.tmp_0.arg5 = s.font___60925; s.tmp_0.arg6 = undefined; s.callLocIdx = 463; s.pc = 31; return s.tmp_0; case 31: @@ -43305,11 +44671,11 @@ switch (step) { case 8: case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.debug___2020910); + r0 = pxsim_numops_toBoolDecr(globals.debug___44761); if (!r0) { step = 11; continue; } - s.tmp_0 = helpers_imageDrawRect__P2019902_mk(s); - s.tmp_0.arg0 = globals.screen___2019975; - s.tmp_3 = game_Hitbox_left__P2020159_mk(s); + s.tmp_0 = helpers_imageDrawRect__P43753_mk(s); + s.tmp_0.arg0 = globals.screen___43826; + s.tmp_3 = game_Hitbox_left__P44010_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; s.callLocIdx = 464; s.pc = 37; return s.tmp_3; @@ -43322,7 +44688,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 - s.arg3); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P2020160_mk(s); + s.tmp_7 = game_Hitbox_top__P44011_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; s.callLocIdx = 466; s.pc = 38; return s.tmp_7; @@ -43359,12 +44725,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawDebug__P2022741.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} +Sprite_drawDebug__P46594.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} -function Sprite_drawDebug__P2022741_mk(s) { +function Sprite_drawDebug__P46594_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawDebug__P2022741, depth: s.depth + 1, + parent: s, fn: Sprite_drawDebug__P46594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43379,9 +44745,9 @@ function Sprite_drawDebug__P2022741_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - font___2036931: undefined, - tx___2036935: undefined, - ty___2036937: undefined, + font___60925: undefined, + tx___60929: undefined, + ty___60931: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43393,7 +44759,7 @@ function Sprite_drawDebug__P2022741_mk(s) { -function Sprite_drawSay__P2022740(s) { +function Sprite_drawSay__P46593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43409,7 +44775,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -43428,23 +44794,23 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 1; continue; } - s.tmp_6 = sprites_BaseSpriteSayRenderer__C2020202_v0_4_mk(s); + s.tmp_6 = sprites_BaseSpriteSayRenderer__C44053_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = globals.screen___2019975; + s.tmp_6.arg1 = globals.screen___43826; s.tmp_6.arg2 = s.arg1; s.tmp_6.arg3 = s.arg0; - if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(s.tmp_6.arg0); + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C44053_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__C2020202_v2_1_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C44053_v2_1_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C44053_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: @@ -43454,13 +44820,13 @@ switch (step) { case 2: { step = 4; continue; } case 3: - s.tmp_0 = sprites_BaseSpriteSayRenderer__C2020202_v0_4_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C44053_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.screen___2019975; + s.tmp_0.arg1 = globals.screen___43826; s.tmp_0.arg2 = s.arg1; s.tmp_0.arg3 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C44053_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: @@ -43472,12 +44838,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSay__P2022740.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} +Sprite_drawSay__P46593.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} -function Sprite_drawSay__P2022740_mk(s) { +function Sprite_drawSay__P46593_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSay__P2022740, depth: s.depth + 1, + parent: s, fn: Sprite_drawSay__P46593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43494,7 +44860,7 @@ function Sprite_drawSay__P2022740_mk(s) { -function sprites_BaseSpriteSayRenderer_destroy__P2020206(s) { +function sprites_BaseSpriteSayRenderer_destroy__P44057(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43509,17 +44875,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C44053_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_destroy__P2020206.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} +sprites_BaseSpriteSayRenderer_destroy__P44057.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} -function sprites_BaseSpriteSayRenderer_destroy__P2020206_mk(s) { +function sprites_BaseSpriteSayRenderer_destroy__P44057_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P2020206, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P44057, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -43528,7 +44894,7 @@ function sprites_BaseSpriteSayRenderer_destroy__P2020206_mk(s) { -function sprites_BaseSpriteSayRenderer_draw__P2020204(s) { +function sprites_BaseSpriteSayRenderer_draw__P44055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43546,17 +44912,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C2020202_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C44053_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_draw__P2020204.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__P44055.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__P2020204_mk(s) { +function sprites_BaseSpriteSayRenderer_draw__P44055_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P2020204, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P44055, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -43568,7 +44934,7 @@ function sprites_BaseSpriteSayRenderer_draw__P2020204_mk(s) { -function Sprite___visible__P2020339(s) { +function Sprite___visible__P44190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43583,7 +44949,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2020284_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C44135_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -43594,12 +44960,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P2020339.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__P44190.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__P2020339_mk(s) { +function Sprite___visible__P44190_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P2020339, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P44190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43611,7 +44977,7 @@ function Sprite___visible__P2020339_mk(s) { -function scene_Camera_top__P2020737(s) { +function scene_Camera_top__P44588(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43626,18 +44992,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P2020737.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__P2020737.isGetter = true; +scene_Camera_top__P44588.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__P44588.isGetter = true; -function scene_Camera_top__P2020737_mk(s) { +function scene_Camera_top__P44588_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P2020737, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P44588, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -43646,7 +45012,7 @@ function scene_Camera_top__P2020737_mk(s) { -function scene_Camera_left__P2020735(s) { +function scene_Camera_left__P44586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43661,18 +45027,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2020724_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C44575_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P2020735.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__P2020735.isGetter = true; +scene_Camera_left__P44586.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__P44586.isGetter = true; -function scene_Camera_left__P2020735_mk(s) { +function scene_Camera_left__P44586_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P2020735, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P44586, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -43680,7 +45046,7 @@ function scene_Camera_left__P2020735_mk(s) { -function game_SplashDialog__C2020875_v1_2_mk(s) { +function game_SplashDialog__C44726_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43695,7 +45061,294 @@ function game_SplashDialog__C2020875_v1_2_mk(s) { } } -function game_BaseDialog__C2020846_v0_1_mk(s) { +function game_BaseDialog__C44697_v0_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 controller_Button__C43983_v0_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 if_handler_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 lambda_2_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, + arg1: undefined, +} } + + +function lambda_3_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, + arg1: undefined, + arg2: undefined, +} } + + +function PhysicsEngine__C44305_v4_2_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, + arg1: undefined, +} } + + +function if___update_3_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, + arg1: undefined, + arg2: undefined, +} } + + +function PhysicsEngine__C44305_v3_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 if_charHeight_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 if_charWidth_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 if_multiplier_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 if_data_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 if_xOffset_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 if_yOffset_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 if___draw_2_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, + arg1: undefined, +} } + + +function if_z_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 if_id_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 if_s_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 if_vx_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 if_vy_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_BaseDialog__C44697_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43709,7 +45362,7 @@ function game_BaseDialog__C2020846_v0_1_mk(s) { } } -function controller_Button__C2020132_v0_1_mk(s) { +function PhysicsEngine__C44305_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43720,10 +45373,11 @@ function controller_Button__C2020132_v0_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_handler_1_mk(s) { +function if_handler_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43734,10 +45388,11 @@ function if_handler_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function lambda_2_mk(s) { +function Sprite__C44135_v5_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43748,11 +45403,10 @@ function lambda_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function lambda_3_mk(s) { +function Sprite__C44135_v4_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43763,12 +45417,10 @@ function lambda_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C2020454_v4_2_mk(s) { +function if_id_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43783,7 +45435,7 @@ function PhysicsEngine__C2020454_v4_2_mk(s) { } } -function if___update_3_mk(s) { +function lambda_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43796,38 +45448,11 @@ function if___update_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function PhysicsEngine__C2020454_v3_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 if_charHeight_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 if_charWidth_1_mk(s) { +function lambda_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43841,7 +45466,7 @@ function if_charWidth_1_mk(s) { } } -function if_multiplier_1_mk(s) { +function if_condition_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43855,7 +45480,7 @@ function if_multiplier_1_mk(s) { } } -function if_data_1_mk(s) { +function if_effect_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43866,10 +45491,12 @@ function if_data_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_xOffset_1_mk(s) { +function if_sourceFactory_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43880,10 +45507,12 @@ function if_xOffset_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_yOffset_1_mk(s) { +function PhysicsEngine__C44305_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43894,10 +45523,11 @@ function if_yOffset_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if___draw_2_mk(s) { +function if_destroyHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43908,11 +45538,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_generator_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43926,7 +45555,7 @@ function if_z_1_mk(s) { } } -function if_id_1_mk(s) { +function if_padding_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43940,7 +45569,7 @@ function if_id_1_mk(s) { } } -function if_s_1_mk(s) { +function if_cardsPerRow_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43954,7 +45583,7 @@ function if_s_1_mk(s) { } } -function if_vx_1_mk(s) { +function if_cardWidth_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43968,7 +45597,7 @@ function if_vx_1_mk(s) { } } -function if_vy_1_mk(s) { +function if_cardSpacing_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43982,7 +45611,7 @@ function if_vy_1_mk(s) { } } -function game_BaseDialog__C2020846_v2_1_mk(s) { +function if_cardsTop_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43996,7 +45625,7 @@ function game_BaseDialog__C2020846_v2_1_mk(s) { } } -function PhysicsEngine__C2020454_v0_2_mk(s) { +function if_headerText_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44007,11 +45636,10 @@ function PhysicsEngine__C2020454_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_handler_2_mk(s) { +function if_headerFont_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44022,11 +45650,10 @@ function if_handler_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite__C2020284_v5_1_mk(s) { +function if_infoTop_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44040,7 +45667,7 @@ function Sprite__C2020284_v5_1_mk(s) { } } -function Sprite__C2020284_v4_1_mk(s) { +function if_infoFont_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44054,7 +45681,7 @@ function Sprite__C2020284_v4_1_mk(s) { } } -function if_id_2_mk(s) { +function if_getText_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44065,11 +45692,10 @@ function if_id_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function lambda_4_mk(s) { +function PhysicsEngine__C44305_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44086,21 +45712,7 @@ function lambda_4_mk(s) { } } -function lambda_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 if_condition_1_mk(s) { +function if_basicCard_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44114,7 +45726,7 @@ function if_condition_1_mk(s) { } } -function if_effect_3_mk(s) { +function if_selectedCard_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44125,12 +45737,10 @@ function if_effect_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_sourceFactory_3_mk(s) { +function if_activeCard_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44141,12 +45751,10 @@ function if_sourceFactory_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C2020454_v1_2_mk(s) { +function if_z_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44161,133 +45769,7 @@ function PhysicsEngine__C2020454_v1_2_mk(s) { } } -function if_destroyHandler_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 if_generator_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 if_padding_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 if_cardsPerRow_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 if_cardWidth_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 if_cardSpacing_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 if_cardsTop_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 if_headerText_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 if_headerFont_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 if_infoTop_1_mk(s) { +function if_callback_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44301,7 +45783,7 @@ function if_infoTop_1_mk(s) { } } -function if_infoFont_1_mk(s) { +function if_flags_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44315,7 +45797,7 @@ function if_infoFont_1_mk(s) { } } -function if_getText_1_mk(s) { +function particles_ParticleFactory__C44981_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44326,10 +45808,11 @@ function if_getText_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function PhysicsEngine__C2020454_v2_4_mk(s) { +function particles_ParticleSource__C44945_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44342,11 +45825,10 @@ function PhysicsEngine__C2020454_v2_4_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function if_basicCard_1_mk(s) { +function if_x_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44360,7 +45842,7 @@ function if_basicCard_1_mk(s) { } } -function if_selectedCard_1_mk(s) { +function if_y_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44374,7 +45856,7 @@ function if_selectedCard_1_mk(s) { } } -function if_activeCard_1_mk(s) { +function if_height_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44388,7 +45870,7 @@ function if_activeCard_1_mk(s) { } } -function if_z_2_mk(s) { +function if_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44400,10 +45882,11 @@ function if_z_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function if_callback_1_mk(s) { +function if_tileIndex_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44417,7 +45900,7 @@ function if_callback_1_mk(s) { } } -function if_flags_1_mk(s) { +function if_left_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44431,7 +45914,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C2021130_v0_2_mk(s) { +function if_top_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44442,11 +45925,10 @@ function particles_ParticleFactory__C2021130_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource__C2021094_v4_3_mk(s) { +function sprites_BaseSpriteSayRenderer__C44053_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44459,52 +45941,11 @@ function particles_ParticleSource__C2021094_v4_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function if_x_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 if_y_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 if_height_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 if_handler_3_mk(s) { +function particles_ParticleFactory__C44981_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44517,10 +45958,11 @@ function if_handler_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function if_tileIndex_1_mk(s) { +function sprites_BaseSprite__C43888_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44534,7 +45976,7 @@ function if_tileIndex_1_mk(s) { } } -function if_left_1_mk(s) { +function sprites_BaseSprite__C43888_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44545,10 +45987,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_shouldBeVisible_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44562,7 +46005,7 @@ function if_top_1_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C2020202_v1_4_mk(s) { +function Sprite__C44135_v6_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44575,11 +46018,10 @@ function sprites_BaseSpriteSayRenderer__C2020202_v1_4_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function particles_ParticleFactory__C2021130_v1_4_mk(s) { +function sprites_BaseSpriteSayRenderer__C44053_v0_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44596,7 +46038,7 @@ function particles_ParticleFactory__C2021130_v1_4_mk(s) { } } -function sprites_BaseSprite__C2020037_v0_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C44053_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44610,7 +46052,7 @@ function sprites_BaseSprite__C2020037_v0_1_mk(s) { } } -function sprites_BaseSprite__C2020037_v2_2_mk(s) { +function if_scene_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44621,11 +46063,10 @@ function sprites_BaseSprite__C2020037_v2_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_shouldBeVisible_1_mk(s) { +function if_state_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44639,7 +46080,7 @@ function if_shouldBeVisible_1_mk(s) { } } -function Sprite__C2020284_v6_3_mk(s) { +function if__pack_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44651,70 +46092,10 @@ function Sprite__C2020284_v6_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function sprites_BaseSpriteSayRenderer__C2020202_v0_4_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, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - -function sprites_BaseSpriteSayRenderer__C2020202_v2_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 if_scene_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 if_state_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 if__pack_2_mk(s) { +function if__unpack_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44742,7 +46123,7 @@ function if_width_1_mk(s) { arg0: undefined, } } -const controller_Controller__C2020077_VT = mkVTable({ +const controller_Controller__C43928_VT = mkVTable({ name: "Controller", numFields: 5, classNo: 16, @@ -44761,28 +46142,28 @@ const controller_Controller__C2020077_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P2020082, - "set/_controlledSprites": controller_Controller__controlledSprites__P2020083, - "id": controller_Controller_id__P2020084, - "left": controller_Controller_left__P2020086, - "right": controller_Controller_right__P2020087, - "up": controller_Controller_up__P2020088, - "down": controller_Controller_down__P2020089, - "button": controller_Controller_button__P2022711, - "connected": controller_Controller_connected__P2020098, - "set/connected": controller_Controller_connected__P2020099, - "__preUpdate": controller_Controller___preUpdate__P2020105, - "__update": controller_Controller___update__P2020106, + "_controlledSprites": controller_Controller__controlledSprites__P43933, + "set/_controlledSprites": controller_Controller__controlledSprites__P43934, + "id": controller_Controller_id__P43935, + "left": controller_Controller_left__P43937, + "right": controller_Controller_right__P43938, + "up": controller_Controller_up__P43939, + "down": controller_Controller_down__P43940, + "button": controller_Controller_button__P46564, + "connected": controller_Controller_connected__P43949, + "set/connected": controller_Controller_connected__P43950, + "__preUpdate": controller_Controller___preUpdate__P43956, + "__update": controller_Controller___update__P43957, }, }); -const controller_Button__C2020132_VT = mkVTable({ +const controller_Button__C43983_VT = mkVTable({ name: "Button", numFields: 7, classNo: 17, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P2020143, + "isPressed": controller_Button_isPressed__P43994, }, iface: { "_owner": null, @@ -44799,29 +46180,29 @@ const controller_Button__C2020132_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "handlerState": controller_Button_handlerState__P2022714, - "toString": controller_Button_toString__P2020137, - "raiseButtonUp": controller_Button_raiseButtonUp__P2022715, - "raiseButtonDown": controller_Button_raiseButtonDown__P2022716, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P2022717, - "onEvent": controller_Button_onEvent__P2020139, - "isPressed": controller_Button_isPressed__P2020143, - "pressureLevel": controller_Button_pressureLevel__P2020144, - "setPressed": controller_Button_setPressed__P2020145, - "__update": controller_Button___update__P2020146, - "runButtonEvents": controller_Button_runButtonEvents__P2022718, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P2022719, + "handlerState": controller_Button_handlerState__P46567, + "toString": controller_Button_toString__P43988, + "raiseButtonUp": controller_Button_raiseButtonUp__P46568, + "raiseButtonDown": controller_Button_raiseButtonDown__P46569, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P46570, + "onEvent": controller_Button_onEvent__P43990, + "isPressed": controller_Button_isPressed__P43994, + "pressureLevel": controller_Button_pressureLevel__P43995, + "setPressed": controller_Button_setPressed__P43996, + "__update": controller_Button___update__P43997, + "runButtonEvents": controller_Button_runButtonEvents__P46571, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P46572, }, - toStringMethod: controller_Button_toString__P2020137, + toStringMethod: controller_Button_toString__P43988, }); -const controller_AnyButton__C2022712_VT = mkVTable({ +const controller_AnyButton__C46565_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 18, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P2022720, + "isPressed": controller_AnyButton_isPressed__P46573, }, iface: { "_owner": null, @@ -44838,21 +46219,21 @@ const controller_AnyButton__C2022712_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P2022720, - "handlerState": controller_Button_handlerState__P2022714, - "toString": controller_Button_toString__P2020137, - "raiseButtonUp": controller_Button_raiseButtonUp__P2022715, - "raiseButtonDown": controller_Button_raiseButtonDown__P2022716, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P2022717, - "onEvent": controller_Button_onEvent__P2020139, - "pressureLevel": controller_Button_pressureLevel__P2020144, - "setPressed": controller_Button_setPressed__P2020145, - "__update": controller_Button___update__P2020146, - "runButtonEvents": controller_Button_runButtonEvents__P2022718, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P2022719, + "isPressed": controller_AnyButton_isPressed__P46573, + "handlerState": controller_Button_handlerState__P46567, + "toString": controller_Button_toString__P43988, + "raiseButtonUp": controller_Button_raiseButtonUp__P46568, + "raiseButtonDown": controller_Button_raiseButtonDown__P46569, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P46570, + "onEvent": controller_Button_onEvent__P43990, + "pressureLevel": controller_Button_pressureLevel__P43995, + "setPressed": controller_Button_setPressed__P43996, + "__update": controller_Button___update__P43997, + "runButtonEvents": controller_Button_runButtonEvents__P46571, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P46572, }, }); -const game_GameOverConfig__C2020916_VT = mkVTable({ +const game_GameOverConfig__C44767_VT = mkVTable({ name: "GameOverConfig", numFields: 14, classNo: 19, @@ -44889,10 +46270,10 @@ const game_GameOverConfig__C2020916_VT = mkVTable({ "set/messageSetByUser": null, "scoringTypeSetByUser": null, "set/scoringTypeSetByUser": null, - "init": game_GameOverConfig_init__P2020932, + "init": game_GameOverConfig_init__P44783, }, }); -const Math_FastRandom__C2021002_VT = mkVTable({ +const Math_FastRandom__C44853_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 20, @@ -44905,16 +46286,58 @@ const Math_FastRandom__C2021002_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P2021005, - "randomRange": Math_FastRandom_randomRange__P2021006, - "pickRandom": Math_FastRandom_pickRandom__P2021007, + "next": Math_FastRandom_next__P44856, + "randomRange": Math_FastRandom_randomRange__P44857, + "pickRandom": Math_FastRandom_pickRandom__P44858, + }, +}); +const DataView__C107448_VT = mkVTable({ + name: "DataView", + numFields: 3, + classNo: 21, + lastSubtypeNo: 21, + maxBgInstances: null, + methods: { + }, + iface: { + "_buffer": null, + "set/_buffer": null, + "_byteLength": null, + "set/_byteLength": null, + "_byteOffset": null, + "set/_byteOffset": null, + "buffer": DataView_buffer__P107449, + "byteLength": DataView_byteLength__P107450, + "byteOffset": DataView_byteOffset__P107451, + "IS_BIG_ENDIAN": DataView_IS_BIG_ENDIAN__P107452, + "getUint32": DataView_getUint32__P107460, + "setUint32": DataView_setUint32__P107468, + "getter": DataView_getter__P107469, + "setter": DataView_setter__P107470, }, }); -const TypedArray__C2055013_VT = mkVTable({ +const ArrayBuffer__C46125_VT = mkVTable({ + name: "ArrayBuffer", + numFields: 2, + classNo: 22, + lastSubtypeNo: 22, + maxBgInstances: null, + methods: { + }, + iface: { + "_byteLength": null, + "set/_byteLength": null, + "_bytes": null, + "set/_bytes": null, + "byteLength": ArrayBuffer_byteLength__P46127, + "bytes": ArrayBuffer_bytes__P46128, + }, +}); +const TypedArray__C46151_VT = mkVTable({ name: "TypedArray", numFields: 7, - classNo: 21, - lastSubtypeNo: 23, + classNo: 23, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, @@ -44933,20 +46356,58 @@ const TypedArray__C2055013_VT = mkVTable({ "set/_pack": null, "_unpack": null, "set/_unpack": null, - "fromArray": TypedArray_fromArray__P2055014, - "fromArrayBuffer": TypedArray_fromArrayBuffer__P2055015, - "buffer": TypedArray_buffer__P2055017, - "byteOffset": TypedArray_byteOffset__P2055019, - "length": TypedArray_length__P2055021, - "set": TypedArray_set__P2055023, - "init": TypedArray_init__P2055026, + "fromArray": TypedArray_fromArray__P46153, + "fromArrayBuffer": TypedArray_fromArrayBuffer__P46154, + "buffer": TypedArray_buffer__P46156, + "byteOffset": TypedArray_byteOffset__P46158, + "bytesPerElement": TypedArray_bytesPerElement__P46159, + "length": TypedArray_length__P46160, + "get": TypedArray_get__P46161, + "set": TypedArray_set__P46162, + "setFromArray": TypedArray_setFromArray__P46163, + "init": TypedArray_init__P48959, }, }); -const Uint8Array__C2022328_VT = mkVTable({ +const Uint32Array__C46189_VT = mkVTable({ + name: "Uint32Array", + numFields: 7, + classNo: 24, + lastSubtypeNo: 24, + maxBgInstances: null, + methods: { + }, + iface: { + "BYTES_PER_ELEMENT": null, + "set/BYTES_PER_ELEMENT": null, + "_buffer": null, + "set/_buffer": null, + "_byteLength": null, + "set/_byteLength": null, + "_byteOffset": null, + "set/_byteOffset": null, + "_length": null, + "set/_length": null, + "_pack": null, + "set/_pack": null, + "_unpack": null, + "set/_unpack": null, + "fromArray": TypedArray_fromArray__P46153, + "fromArrayBuffer": TypedArray_fromArrayBuffer__P46154, + "buffer": TypedArray_buffer__P46156, + "byteOffset": TypedArray_byteOffset__P46158, + "bytesPerElement": TypedArray_bytesPerElement__P46159, + "length": TypedArray_length__P46160, + "get": TypedArray_get__P46161, + "set": TypedArray_set__P46162, + "setFromArray": TypedArray_setFromArray__P46163, + "init": TypedArray_init__P48959, + }, +}); +const Uint8Array__C46181_VT = mkVTable({ name: "Uint8Array", numFields: 7, - classNo: 22, - lastSubtypeNo: 22, + classNo: 25, + lastSubtypeNo: 25, maxBgInstances: null, methods: { }, @@ -44965,20 +46426,23 @@ const Uint8Array__C2022328_VT = mkVTable({ "set/_pack": null, "_unpack": null, "set/_unpack": null, - "fromArray": TypedArray_fromArray__P2055014, - "fromArrayBuffer": TypedArray_fromArrayBuffer__P2055015, - "buffer": TypedArray_buffer__P2055017, - "byteOffset": TypedArray_byteOffset__P2055019, - "length": TypedArray_length__P2055021, - "set": TypedArray_set__P2055023, - "init": TypedArray_init__P2055026, + "fromArray": TypedArray_fromArray__P46153, + "fromArrayBuffer": TypedArray_fromArrayBuffer__P46154, + "buffer": TypedArray_buffer__P46156, + "byteOffset": TypedArray_byteOffset__P46158, + "bytesPerElement": TypedArray_bytesPerElement__P46159, + "length": TypedArray_length__P46160, + "get": TypedArray_get__P46161, + "set": TypedArray_set__P46162, + "setFromArray": TypedArray_setFromArray__P46163, + "init": TypedArray_init__P48959, }, }); -const Int8Array__C2022312_VT = mkVTable({ - name: "Int8Array", +const Uint16Array__C46185_VT = mkVTable({ + name: "Uint16Array", numFields: 7, - classNo: 23, - lastSubtypeNo: 23, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, @@ -44997,25 +46461,28 @@ const Int8Array__C2022312_VT = mkVTable({ "set/_pack": null, "_unpack": null, "set/_unpack": null, - "fromArray": TypedArray_fromArray__P2055014, - "fromArrayBuffer": TypedArray_fromArrayBuffer__P2055015, - "buffer": TypedArray_buffer__P2055017, - "byteOffset": TypedArray_byteOffset__P2055019, - "length": TypedArray_length__P2055021, - "set": TypedArray_set__P2055023, - "init": TypedArray_init__P2055026, + "fromArray": TypedArray_fromArray__P46153, + "fromArrayBuffer": TypedArray_fromArrayBuffer__P46154, + "buffer": TypedArray_buffer__P46156, + "byteOffset": TypedArray_byteOffset__P46158, + "bytesPerElement": TypedArray_bytesPerElement__P46159, + "length": TypedArray_length__P46160, + "get": TypedArray_get__P46161, + "set": TypedArray_set__P46162, + "setFromArray": TypedArray_setFromArray__P46163, + "init": TypedArray_init__P48959, }, }); -const game_BaseDialog__C2020846_VT = mkVTable({ +const game_BaseDialog__C44697_VT = mkVTable({ name: "BaseDialog", numFields: 11, - classNo: 24, - lastSubtypeNo: 25, + classNo: 27, + lastSubtypeNo: 28, maxBgInstances: null, methods: { - "update": game_BaseDialog_update__P2020860, - "setText": game_BaseDialog_setText__P2020861, - "drawTextCore": game_BaseDialog_drawTextCore__P2020862, + "update": game_BaseDialog_update__P44711, + "setText": game_BaseDialog_setText__P44712, + "drawTextCore": game_BaseDialog_drawTextCore__P44713, }, iface: { "image": null, @@ -45040,31 +46507,31 @@ const game_BaseDialog__C2020846_VT = mkVTable({ "set/font": null, "textColor": null, "set/textColor": null, - "resize": game_BaseDialog_resize__P2020859, - "update": game_BaseDialog_update__P2020860, - "setText": game_BaseDialog_setText__P2020861, - "drawTextCore": game_BaseDialog_drawTextCore__P2020862, - "drawCursorRow": game_BaseDialog_drawCursorRow__P2020863, - "drawBorder": game_BaseDialog_drawBorder__P2022892, - "fastFill": game_BaseDialog_fastFill__P2022893, - "clearInterior": game_BaseDialog_clearInterior__P2022894, - "drawPartial": game_BaseDialog_drawPartial__P2022895, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P2022896, - "textAreaWidth": game_BaseDialog_textAreaWidth__P2022898, - "textAreaHeight": game_BaseDialog_textAreaHeight__P2022899, - "setFont": game_BaseDialog_setFont__P2022900, + "resize": game_BaseDialog_resize__P44710, + "update": game_BaseDialog_update__P44711, + "setText": game_BaseDialog_setText__P44712, + "drawTextCore": game_BaseDialog_drawTextCore__P44713, + "drawCursorRow": game_BaseDialog_drawCursorRow__P44714, + "drawBorder": game_BaseDialog_drawBorder__P46745, + "fastFill": game_BaseDialog_fastFill__P46746, + "clearInterior": game_BaseDialog_clearInterior__P46747, + "drawPartial": game_BaseDialog_drawPartial__P46748, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P46749, + "textAreaWidth": game_BaseDialog_textAreaWidth__P46751, + "textAreaHeight": game_BaseDialog_textAreaHeight__P46752, + "setFont": game_BaseDialog_setFont__P46753, }, }); -const game_SplashDialog__C2020875_VT = mkVTable({ +const game_SplashDialog__C44726_VT = mkVTable({ name: "SplashDialog", numFields: 17, - classNo: 25, - lastSubtypeNo: 25, + classNo: 28, + lastSubtypeNo: 28, maxBgInstances: null, methods: { - "update": game_BaseDialog_update__P2020860, - "setText": game_SplashDialog_setText__P2020883, - "drawTextCore": game_SplashDialog_drawTextCore__P2020885, + "update": game_BaseDialog_update__P44711, + "setText": game_SplashDialog_setText__P44734, + "drawTextCore": game_SplashDialog_drawTextCore__P44736, }, iface: { "image": null, @@ -45101,28 +46568,28 @@ const game_SplashDialog__C2020875_VT = mkVTable({ "set/maxOffset": null, "maxSubOffset": null, "set/maxSubOffset": null, - "updateFont": game_SplashDialog_updateFont__P2022903, - "setText": game_SplashDialog_setText__P2020883, - "setSubtext": game_SplashDialog_setSubtext__P2020884, - "drawTextCore": game_SplashDialog_drawTextCore__P2020885, - "resize": game_BaseDialog_resize__P2020859, - "update": game_BaseDialog_update__P2020860, - "drawCursorRow": game_BaseDialog_drawCursorRow__P2020863, - "drawBorder": game_BaseDialog_drawBorder__P2022892, - "fastFill": game_BaseDialog_fastFill__P2022893, - "clearInterior": game_BaseDialog_clearInterior__P2022894, - "drawPartial": game_BaseDialog_drawPartial__P2022895, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P2022896, - "textAreaWidth": game_BaseDialog_textAreaWidth__P2022898, - "textAreaHeight": game_BaseDialog_textAreaHeight__P2022899, - "setFont": game_BaseDialog_setFont__P2022900, + "updateFont": game_SplashDialog_updateFont__P46756, + "setText": game_SplashDialog_setText__P44734, + "setSubtext": game_SplashDialog_setSubtext__P44735, + "drawTextCore": game_SplashDialog_drawTextCore__P44736, + "resize": game_BaseDialog_resize__P44710, + "update": game_BaseDialog_update__P44711, + "drawCursorRow": game_BaseDialog_drawCursorRow__P44714, + "drawBorder": game_BaseDialog_drawBorder__P46745, + "fastFill": game_BaseDialog_fastFill__P46746, + "clearInterior": game_BaseDialog_clearInterior__P46747, + "drawPartial": game_BaseDialog_drawPartial__P46748, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P46749, + "textAreaWidth": game_BaseDialog_textAreaWidth__P46751, + "textAreaHeight": game_BaseDialog_textAreaHeight__P46752, + "setFont": game_BaseDialog_setFont__P46753, }, }); -const control_EventContext__C2018337_VT = mkVTable({ +const control_EventContext__C42188_VT = mkVTable({ name: "EventContext", numFields: 10, - classNo: 26, - lastSubtypeNo: 26, + classNo: 29, + lastSubtypeNo: 29, maxBgInstances: null, methods: { }, @@ -45147,20 +46614,20 @@ const control_EventContext__C2018337_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P2018342, - "runCallbacks": control_EventContext_runCallbacks__P2022427, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P2022428, - "register": control_EventContext_register__P2018343, - "unregister": control_EventContext_unregister__P2018344, - "registerFrameHandler": control_EventContext_registerFrameHandler__P2018345, - "registerHandler": control_EventContext_registerHandler__P2018347, + "deltaTime": control_EventContext_deltaTime__P42193, + "runCallbacks": control_EventContext_runCallbacks__P46280, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P46281, + "register": control_EventContext_register__P42194, + "unregister": control_EventContext_unregister__P42195, + "registerFrameHandler": control_EventContext_registerFrameHandler__P42196, + "registerHandler": control_EventContext_registerHandler__P42198, }, }); -const control_FrameCallback__C2018334_VT = mkVTable({ +const control_FrameCallback__C42185_VT = mkVTable({ name: "FrameCallback", numFields: 2, - classNo: 27, - lastSubtypeNo: 27, + classNo: 30, + lastSubtypeNo: 30, maxBgInstances: null, methods: { }, @@ -45171,43 +46638,43 @@ const control_FrameCallback__C2018334_VT = mkVTable({ "set/handler": null, }, }); -const sprites_BaseSprite__C2020037_VT = mkVTable({ +const sprites_BaseSprite__C43888_VT = mkVTable({ name: "BaseSprite", numFields: 2, - classNo: 28, - lastSubtypeNo: 31, + classNo: 31, + lastSubtypeNo: 34, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P2020040, - "__draw": sprites_BaseSprite___draw__P2020043, - "__drawCore": sprites_BaseSprite___drawCore__P2020044, - "__update": sprites_BaseSprite___update__P2020045, + "__visible": sprites_BaseSprite___visible__P43891, + "__draw": sprites_BaseSprite___draw__P43894, + "__drawCore": sprites_BaseSprite___drawCore__P43895, + "__update": sprites_BaseSprite___update__P43896, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P2020040, - "z": sprites_BaseSprite_z__P2020041, - "set/z": sprites_BaseSprite_z__P2020042, - "__draw": sprites_BaseSprite___draw__P2020043, - "__drawCore": sprites_BaseSprite___drawCore__P2020044, - "__update": sprites_BaseSprite___update__P2020045, + "__visible": sprites_BaseSprite___visible__P43891, + "z": sprites_BaseSprite_z__P43892, + "set/z": sprites_BaseSprite_z__P43893, + "__draw": sprites_BaseSprite___draw__P43894, + "__drawCore": sprites_BaseSprite___drawCore__P43895, + "__update": sprites_BaseSprite___update__P43896, }, }); -const particles_ParticleSource__C2021094_VT = mkVTable({ +const particles_ParticleSource__C44945_VT = mkVTable({ name: "ParticleSource", numFields: 13, - classNo: 29, - lastSubtypeNo: 29, + classNo: 32, + lastSubtypeNo: 32, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P2020040, - "__draw": particles_ParticleSource___draw__P2021100, - "__drawCore": sprites_BaseSprite___drawCore__P2020044, - "__update": sprites_BaseSprite___update__P2020045, - "updateParticle": particles_ParticleSource_updateParticle__P2023272, + "__visible": sprites_BaseSprite___visible__P43891, + "__draw": particles_ParticleSource___draw__P44951, + "__drawCore": sprites_BaseSprite___drawCore__P43895, + "__update": sprites_BaseSprite___update__P43896, + "updateParticle": particles_ParticleSource_updateParticle__P47125, }, iface: { "_z": null, @@ -45236,32 +46703,32 @@ const particles_ParticleSource__C2021094_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P2021100, - "_update": particles_ParticleSource__update__P2021101, - "_prune": particles_ParticleSource__prune__P2021102, - "setAcceleration": particles_ParticleSource_setAcceleration__P2021103, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P2021105, - "enabled": particles_ParticleSource_enabled__P2021106, - "set/enabled": particles_ParticleSource_enabled__P2021107, - "destroy": particles_ParticleSource_destroy__P2021108, - "clear": particles_ParticleSource_clear__P2021109, - "setAnchor": particles_ParticleSource_setAnchor__P2021110, - "setRate": particles_ParticleSource_setRate__P2021111, - "setFactory": particles_ParticleSource_setFactory__P2021113, - "updateParticle": particles_ParticleSource_updateParticle__P2023272, - "drawParticle": particles_ParticleSource_drawParticle__P2023273, - "__visible": sprites_BaseSprite___visible__P2020040, - "z": sprites_BaseSprite_z__P2020041, - "set/z": sprites_BaseSprite_z__P2020042, - "__drawCore": sprites_BaseSprite___drawCore__P2020044, - "__update": sprites_BaseSprite___update__P2020045, + "__draw": particles_ParticleSource___draw__P44951, + "_update": particles_ParticleSource__update__P44952, + "_prune": particles_ParticleSource__prune__P44953, + "setAcceleration": particles_ParticleSource_setAcceleration__P44954, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P44956, + "enabled": particles_ParticleSource_enabled__P44957, + "set/enabled": particles_ParticleSource_enabled__P44958, + "destroy": particles_ParticleSource_destroy__P44959, + "clear": particles_ParticleSource_clear__P44960, + "setAnchor": particles_ParticleSource_setAnchor__P44961, + "setRate": particles_ParticleSource_setRate__P44962, + "setFactory": particles_ParticleSource_setFactory__P44964, + "updateParticle": particles_ParticleSource_updateParticle__P47125, + "drawParticle": particles_ParticleSource_drawParticle__P47126, + "__visible": sprites_BaseSprite___visible__P43891, + "z": sprites_BaseSprite_z__P43892, + "set/z": sprites_BaseSprite_z__P43893, + "__drawCore": sprites_BaseSprite___drawCore__P43895, + "__update": sprites_BaseSprite___update__P43896, }, }); -const control_EventHandler__C2022422_VT = mkVTable({ +const control_EventHandler__C46275_VT = mkVTable({ name: "EventHandler", numFields: 4, - classNo: 32, - lastSubtypeNo: 32, + classNo: 35, + lastSubtypeNo: 35, maxBgInstances: null, methods: { }, @@ -45274,15 +46741,15 @@ const control_EventHandler__C2022422_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P2022423, - "unregister": control_EventHandler_unregister__P2022424, + "register": control_EventHandler_register__P46276, + "unregister": control_EventHandler_unregister__P46277, }, }); -const scene_Scene__C2020786_VT = mkVTable({ +const scene_Scene__C44637_VT = mkVTable({ name: "Scene", numFields: 25, - classNo: 33, - lastSubtypeNo: 33, + classNo: 36, + lastSubtypeNo: 36, maxBgInstances: null, methods: { }, @@ -45337,39 +46804,39 @@ const scene_Scene__C2020786_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P2020810, - "data": scene_Scene_data__P2020811, - "millis": scene_Scene_millis__P2020812, - "addSprite": scene_Scene_addSprite__P2020813, - "render": scene_Scene_render__P2020815, + "init": scene_Scene_init__P44661, + "data": scene_Scene_data__P44662, + "millis": scene_Scene_millis__P44663, + "addSprite": scene_Scene_addSprite__P44664, + "render": scene_Scene_render__P44666, }, }); -const PhysicsEngine__C2020454_VT = mkVTable({ +const PhysicsEngine__C44305_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, - classNo: 34, - lastSubtypeNo: 35, + classNo: 37, + lastSubtypeNo: 38, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P2020456, - "removeSprite": PhysicsEngine_removeSprite__P2020457, - "moveSprite": PhysicsEngine_moveSprite__P2020458, - "draw": PhysicsEngine_draw__P2020459, - "move": PhysicsEngine_move__P2020460, + "addSprite": PhysicsEngine_addSprite__P44307, + "removeSprite": PhysicsEngine_removeSprite__P44308, + "moveSprite": PhysicsEngine_moveSprite__P44309, + "draw": PhysicsEngine_draw__P44310, + "move": PhysicsEngine_move__P44311, }, iface: { - "addSprite": PhysicsEngine_addSprite__P2020456, - "removeSprite": PhysicsEngine_removeSprite__P2020457, - "moveSprite": PhysicsEngine_moveSprite__P2020458, - "draw": PhysicsEngine_draw__P2020459, - "move": PhysicsEngine_move__P2020460, + "addSprite": PhysicsEngine_addSprite__P44307, + "removeSprite": PhysicsEngine_removeSprite__P44308, + "moveSprite": PhysicsEngine_moveSprite__P44309, + "draw": PhysicsEngine_draw__P44310, + "move": PhysicsEngine_move__P44311, }, }); -const scene_Camera__C2020724_VT = mkVTable({ +const scene_Camera__C44575_VT = mkVTable({ name: "Camera", numFields: 10, - classNo: 36, - lastSubtypeNo: 36, + classNo: 39, + lastSubtypeNo: 39, maxBgInstances: null, methods: { }, @@ -45394,23 +46861,23 @@ const scene_Camera__C2020724_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P2020729, - "set/offsetX": scene_Camera_offsetX__P2020730, - "offsetY": scene_Camera_offsetY__P2020731, - "set/offsetY": scene_Camera_offsetY__P2020732, - "x": scene_Camera_x__P2020733, - "y": scene_Camera_y__P2020734, - "left": scene_Camera_left__P2020735, - "top": scene_Camera_top__P2020737, - "isUpdated": scene_Camera_isUpdated__P2020740, - "update": scene_Camera_update__P2020741, + "offsetX": scene_Camera_offsetX__P44580, + "set/offsetX": scene_Camera_offsetX__P44581, + "offsetY": scene_Camera_offsetY__P44582, + "set/offsetY": scene_Camera_offsetY__P44583, + "x": scene_Camera_x__P44584, + "y": scene_Camera_y__P44585, + "left": scene_Camera_left__P44586, + "top": scene_Camera_top__P44588, + "isUpdated": scene_Camera_isUpdated__P44591, + "update": scene_Camera_update__P44592, }, }); -const scene_Background__C2020612_VT = mkVTable({ +const scene_Background__C44463_VT = mkVTable({ name: "Background", numFields: 4, - classNo: 37, - lastSubtypeNo: 37, + classNo: 40, + lastSubtypeNo: 40, maxBgInstances: null, methods: { }, @@ -45423,16 +46890,16 @@ const scene_Background__C2020612_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "image": scene_Background_image__P2020618, - "set/image": scene_Background_image__P2020619, - "draw": scene_Background_draw__P2020621, + "image": scene_Background_image__P44469, + "set/image": scene_Background_image__P44470, + "draw": scene_Background_draw__P44472, }, }); -const scene_BackgroundLayer__C2020622_VT = mkVTable({ +const scene_BackgroundLayer__C44473_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 38, - lastSubtypeNo: 38, + classNo: 41, + lastSubtypeNo: 41, maxBgInstances: null, methods: { }, @@ -45449,23 +46916,23 @@ const scene_BackgroundLayer__C2020622_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P2020630, + "draw": scene_BackgroundLayer_draw__P44481, }, }); -const Sprite__C2020284_VT = mkVTable({ +const Sprite__C44135_VT = mkVTable({ name: "Sprite", numFields: 30, - classNo: 30, - lastSubtypeNo: 30, + classNo: 33, + lastSubtypeNo: 33, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P2020339, - "__draw": sprites_BaseSprite___draw__P2020043, - "__drawCore": Sprite___drawCore__P2020358, - "__update": Sprite___update__P2020359, - "setHitbox": Sprite_setHitbox__P2020337, - "recalcSize": Sprite_recalcSize__P2022738, - "drawSprite": Sprite_drawSprite__P2022742, + "__visible": Sprite___visible__P44190, + "__draw": sprites_BaseSprite___draw__P43894, + "__drawCore": Sprite___drawCore__P44209, + "__update": Sprite___update__P44210, + "setHitbox": Sprite_setHitbox__P44188, + "recalcSize": Sprite_recalcSize__P46591, + "drawSprite": Sprite_drawSprite__P46595, }, iface: { "_z": null, @@ -45528,71 +46995,71 @@ const Sprite__C2020284_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P2020297, - "set/x": Sprite_x__P2020298, - "y": Sprite_y__P2020299, - "set/y": Sprite_y__P2020300, - "vx": Sprite_vx__P2020301, - "set/vx": Sprite_vx__P2020302, - "vy": Sprite_vy__P2020303, - "set/vy": Sprite_vy__P2020304, - "ax": Sprite_ax__P2020305, - "set/ax": Sprite_ax__P2020306, - "ay": Sprite_ay__P2020307, - "set/ay": Sprite_ay__P2020308, - "fx": Sprite_fx__P2020309, - "set/fx": Sprite_fx__P2020310, - "fy": Sprite_fy__P2020311, - "set/fy": Sprite_fy__P2020312, - "sx": Sprite_sx__P2020313, - "sy": Sprite_sy__P2020315, - "data": Sprite_data__P2020319, - "set/data": Sprite_data__P2020320, - "image": Sprite_image__P2020333, - "setImage": Sprite_setImage__P2020334, - "calcDimensionalHash": Sprite_calcDimensionalHash__P2020335, - "resetHitbox": Sprite_resetHitbox__P2020336, - "setHitbox": Sprite_setHitbox__P2020337, - "isStatic": Sprite_isStatic__P2020338, - "__visible": Sprite___visible__P2020339, - "recalcSize": Sprite_recalcSize__P2022738, - "isScaled": Sprite_isScaled__P2022739, - "width": Sprite_width__P2020340, - "height": Sprite_height__P2020341, - "left": Sprite_left__P2020342, - "set/left": Sprite_left__P2020343, - "right": Sprite_right__P2020344, - "set/right": Sprite_right__P2020345, - "top": Sprite_top__P2020346, - "set/top": Sprite_top__P2020347, - "bottom": Sprite_bottom__P2020348, - "set/bottom": Sprite_bottom__P2020349, - "kind": Sprite_kind__P2020350, - "setKind": Sprite_setKind__P2020351, - "isOutOfScreen": Sprite_isOutOfScreen__P2020357, - "__drawCore": Sprite___drawCore__P2020358, - "__update": Sprite___update__P2020359, - "setFlag": Sprite_setFlag__P2020362, - "overlapsWith": Sprite_overlapsWith__P2020363, - "clearObstacles": Sprite_clearObstacles__P2020368, - "registerObstacle": Sprite_registerObstacle__P2020369, - "destroy": Sprite_destroy__P2020371, - "_destroyCore": Sprite__destroyCore__P2020372, - "toString": Sprite_toString__P2020377, - "drawSay": Sprite_drawSay__P2022740, - "drawDebug": Sprite_drawDebug__P2022741, - "drawSprite": Sprite_drawSprite__P2022742, - "z": sprites_BaseSprite_z__P2020041, - "set/z": sprites_BaseSprite_z__P2020042, - "__draw": sprites_BaseSprite___draw__P2020043, + "x": Sprite_x__P44148, + "set/x": Sprite_x__P44149, + "y": Sprite_y__P44150, + "set/y": Sprite_y__P44151, + "vx": Sprite_vx__P44152, + "set/vx": Sprite_vx__P44153, + "vy": Sprite_vy__P44154, + "set/vy": Sprite_vy__P44155, + "ax": Sprite_ax__P44156, + "set/ax": Sprite_ax__P44157, + "ay": Sprite_ay__P44158, + "set/ay": Sprite_ay__P44159, + "fx": Sprite_fx__P44160, + "set/fx": Sprite_fx__P44161, + "fy": Sprite_fy__P44162, + "set/fy": Sprite_fy__P44163, + "sx": Sprite_sx__P44164, + "sy": Sprite_sy__P44166, + "data": Sprite_data__P44170, + "set/data": Sprite_data__P44171, + "image": Sprite_image__P44184, + "setImage": Sprite_setImage__P44185, + "calcDimensionalHash": Sprite_calcDimensionalHash__P44186, + "resetHitbox": Sprite_resetHitbox__P44187, + "setHitbox": Sprite_setHitbox__P44188, + "isStatic": Sprite_isStatic__P44189, + "__visible": Sprite___visible__P44190, + "recalcSize": Sprite_recalcSize__P46591, + "isScaled": Sprite_isScaled__P46592, + "width": Sprite_width__P44191, + "height": Sprite_height__P44192, + "left": Sprite_left__P44193, + "set/left": Sprite_left__P44194, + "right": Sprite_right__P44195, + "set/right": Sprite_right__P44196, + "top": Sprite_top__P44197, + "set/top": Sprite_top__P44198, + "bottom": Sprite_bottom__P44199, + "set/bottom": Sprite_bottom__P44200, + "kind": Sprite_kind__P44201, + "setKind": Sprite_setKind__P44202, + "isOutOfScreen": Sprite_isOutOfScreen__P44208, + "__drawCore": Sprite___drawCore__P44209, + "__update": Sprite___update__P44210, + "setFlag": Sprite_setFlag__P44213, + "overlapsWith": Sprite_overlapsWith__P44214, + "clearObstacles": Sprite_clearObstacles__P44219, + "registerObstacle": Sprite_registerObstacle__P44220, + "destroy": Sprite_destroy__P44222, + "_destroyCore": Sprite__destroyCore__P44223, + "toString": Sprite_toString__P44228, + "drawSay": Sprite_drawSay__P46593, + "drawDebug": Sprite_drawDebug__P46594, + "drawSprite": Sprite_drawSprite__P46595, + "z": sprites_BaseSprite_z__P43892, + "set/z": sprites_BaseSprite_z__P43893, + "__draw": sprites_BaseSprite___draw__P43894, }, - toStringMethod: Sprite_toString__P2020377, + toStringMethod: Sprite_toString__P44228, }); -const tiles_TileMap__C2020678_VT = mkVTable({ +const tiles_TileMap__C44529_VT = mkVTable({ name: "TileMap", numFields: 5, - classNo: 39, - lastSubtypeNo: 39, + classNo: 42, + lastSubtypeNo: 42, maxBgInstances: null, methods: { }, @@ -45607,29 +47074,29 @@ const tiles_TileMap__C2020678_VT = mkVTable({ "set/renderable": null, "handlerState": null, "set/handlerState": null, - "scale": tiles_TileMap_scale__P2020681, - "set/scale": tiles_TileMap_scale__P2020682, - "data": tiles_TileMap_data__P2020683, - "offsetX": tiles_TileMap_offsetX__P2020684, - "offsetY": tiles_TileMap_offsetY__P2020685, - "areaWidth": tiles_TileMap_areaWidth__P2020686, - "areaHeight": tiles_TileMap_areaHeight__P2020687, - "layer": tiles_TileMap_layer__P2020688, - "enabled": tiles_TileMap_enabled__P2020690, - "getTile": tiles_TileMap_getTile__P2020692, - "getTileIndex": tiles_TileMap_getTileIndex__P2020693, - "draw": tiles_TileMap_draw__P2022859, - "isObstacle": tiles_TileMap_isObstacle__P2020699, - "getObstacle": tiles_TileMap_getObstacle__P2020700, - "isOnWall": tiles_TileMap_isOnWall__P2020701, - "getTileImage": tiles_TileMap_getTileImage__P2020702, + "scale": tiles_TileMap_scale__P44532, + "set/scale": tiles_TileMap_scale__P44533, + "data": tiles_TileMap_data__P44534, + "offsetX": tiles_TileMap_offsetX__P44535, + "offsetY": tiles_TileMap_offsetY__P44536, + "areaWidth": tiles_TileMap_areaWidth__P44537, + "areaHeight": tiles_TileMap_areaHeight__P44538, + "layer": tiles_TileMap_layer__P44539, + "enabled": tiles_TileMap_enabled__P44541, + "getTile": tiles_TileMap_getTile__P44543, + "getTileIndex": tiles_TileMap_getTileIndex__P44544, + "draw": tiles_TileMap_draw__P46712, + "isObstacle": tiles_TileMap_isObstacle__P44550, + "getObstacle": tiles_TileMap_getObstacle__P44551, + "isOnWall": tiles_TileMap_isOnWall__P44552, + "getTileImage": tiles_TileMap_getTileImage__P44553, }, }); -const tiles_TileMapData__C2020660_VT = mkVTable({ +const tiles_TileMapData__C44511_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 40, - lastSubtypeNo: 40, + classNo: 43, + lastSubtypeNo: 43, maxBgInstances: null, methods: { }, @@ -45648,28 +47115,28 @@ const tiles_TileMapData__C2020660_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P2020662, - "height": tiles_TileMapData_height__P2020663, - "scale": tiles_TileMapData_scale__P2020664, - "set/scale": tiles_TileMapData_scale__P2020665, - "getTile": tiles_TileMapData_getTile__P2020666, - "getTileImage": tiles_TileMapData_getTileImage__P2020669, - "isWall": tiles_TileMapData_isWall__P2020671, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P2020672, + "width": tiles_TileMapData_width__P44513, + "height": tiles_TileMapData_height__P44514, + "scale": tiles_TileMapData_scale__P44515, + "set/scale": tiles_TileMapData_scale__P44516, + "getTile": tiles_TileMapData_getTile__P44517, + "getTileImage": tiles_TileMapData_getTileImage__P44520, + "isWall": tiles_TileMapData_isWall__P44522, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P44523, }, }); -const ArcadePhysicsEngine__C2020470_VT = mkVTable({ +const ArcadePhysicsEngine__C44321_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 35, - lastSubtypeNo: 35, + classNo: 38, + lastSubtypeNo: 38, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P2020479, - "removeSprite": ArcadePhysicsEngine_removeSprite__P2020480, - "moveSprite": ArcadePhysicsEngine_moveSprite__P2020484, - "draw": ArcadePhysicsEngine_draw__P2020481, - "move": ArcadePhysicsEngine_move__P2020482, + "addSprite": ArcadePhysicsEngine_addSprite__P44330, + "removeSprite": ArcadePhysicsEngine_removeSprite__P44331, + "moveSprite": ArcadePhysicsEngine_moveSprite__P44335, + "draw": ArcadePhysicsEngine_draw__P44332, + "move": ArcadePhysicsEngine_move__P44333, }, iface: { "sprites": null, @@ -45684,31 +47151,31 @@ const ArcadePhysicsEngine__C2020470_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P2020472, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P2020473, - "minStep": ArcadePhysicsEngine_minStep__P2020474, - "set/minStep": ArcadePhysicsEngine_minStep__P2020475, - "maxStep": ArcadePhysicsEngine_maxStep__P2020476, - "set/maxStep": ArcadePhysicsEngine_maxStep__P2020477, - "addSprite": ArcadePhysicsEngine_addSprite__P2020479, - "removeSprite": ArcadePhysicsEngine_removeSprite__P2020480, - "draw": ArcadePhysicsEngine_draw__P2020481, - "move": ArcadePhysicsEngine_move__P2020482, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P2022783, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P2022784, - "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P2022785, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P2022786, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P2022787, - "moveSprite": ArcadePhysicsEngine_moveSprite__P2020484, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P2022788, - "constrain": ArcadePhysicsEngine_constrain__P2022789, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P44323, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P44324, + "minStep": ArcadePhysicsEngine_minStep__P44325, + "set/minStep": ArcadePhysicsEngine_minStep__P44326, + "maxStep": ArcadePhysicsEngine_maxStep__P44327, + "set/maxStep": ArcadePhysicsEngine_maxStep__P44328, + "addSprite": ArcadePhysicsEngine_addSprite__P44330, + "removeSprite": ArcadePhysicsEngine_removeSprite__P44331, + "draw": ArcadePhysicsEngine_draw__P44332, + "move": ArcadePhysicsEngine_move__P44333, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P46636, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P46637, + "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P46638, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P46639, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P46640, + "moveSprite": ArcadePhysicsEngine_moveSprite__P44335, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P46641, + "constrain": ArcadePhysicsEngine_constrain__P46642, }, }); -const sprites_SpriteMap__C2020389_VT = mkVTable({ +const sprites_SpriteMap__C44240_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 41, - lastSubtypeNo: 41, + classNo: 44, + lastSubtypeNo: 44, maxBgInstances: null, methods: { }, @@ -45723,43 +47190,43 @@ const sprites_SpriteMap__C2020389_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P2020391, - "overlaps": sprites_SpriteMap_overlaps__P2020392, - "draw": sprites_SpriteMap_draw__P2020393, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P2020394, - "clear": sprites_SpriteMap_clear__P2020395, - "key": sprites_SpriteMap_key__P2022746, - "insertAtKey": sprites_SpriteMap_insertAtKey__P2022747, - "insertAABB": sprites_SpriteMap_insertAABB__P2020396, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P2022748, - "toString": sprites_SpriteMap_toString__P2020397, + "neighbors": sprites_SpriteMap_neighbors__P44242, + "overlaps": sprites_SpriteMap_overlaps__P44243, + "draw": sprites_SpriteMap_draw__P44244, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P44245, + "clear": sprites_SpriteMap_clear__P44246, + "key": sprites_SpriteMap_key__P46599, + "insertAtKey": sprites_SpriteMap_insertAtKey__P46600, + "insertAABB": sprites_SpriteMap_insertAABB__P44247, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P46601, + "toString": sprites_SpriteMap_toString__P44248, }, - toStringMethod: sprites_SpriteMap_toString__P2020397, + toStringMethod: sprites_SpriteMap_toString__P44248, }); -const sprites_SpriteSet__C2020406_VT = mkVTable({ +const sprites_SpriteSet__C44257_VT = mkVTable({ name: "SpriteSet", numFields: 1, - classNo: 42, - lastSubtypeNo: 42, + classNo: 45, + lastSubtypeNo: 45, maxBgInstances: null, methods: { }, iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P2020409, - "add": sprites_SpriteSet_add__P2020411, - "remove": sprites_SpriteSet_remove__P2020413, - "contains": sprites_SpriteSet_contains__P2020414, - "toString": sprites_SpriteSet_toString__P2020417, + "length": sprites_SpriteSet_length__P44260, + "add": sprites_SpriteSet_add__P44262, + "remove": sprites_SpriteSet_remove__P44264, + "contains": sprites_SpriteSet_contains__P44265, + "toString": sprites_SpriteSet_toString__P44268, }, - toStringMethod: sprites_SpriteSet_toString__P2020417, + toStringMethod: sprites_SpriteSet_toString__P44268, }); -const game_Hitbox__C2020151_VT = mkVTable({ +const game_Hitbox__C44002_VT = mkVTable({ name: "Hitbox", numFields: 6, - classNo: 43, - lastSubtypeNo: 43, + classNo: 46, + lastSubtypeNo: 46, maxBgInstances: null, methods: { }, @@ -45776,21 +47243,21 @@ const game_Hitbox__C2020151_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P2020159, - "top": game_Hitbox_top__P2020160, - "right": game_Hitbox_right__P2020161, - "bottom": game_Hitbox_bottom__P2020162, - "isValid": game_Hitbox_isValid__P2020163, - "contains": game_Hitbox_contains__P2020164, - "updateIfInvalid": game_Hitbox_updateIfInvalid__P2020165, - "overlapsWith": game_Hitbox_overlapsWith__P2020166, + "left": game_Hitbox_left__P44010, + "top": game_Hitbox_top__P44011, + "right": game_Hitbox_right__P44012, + "bottom": game_Hitbox_bottom__P44013, + "isValid": game_Hitbox_isValid__P44014, + "contains": game_Hitbox_contains__P44015, + "updateIfInvalid": game_Hitbox_updateIfInvalid__P44016, + "overlapsWith": game_Hitbox_overlapsWith__P44017, }, }); -const control_PollEvent__C2022401_VT = mkVTable({ +const control_PollEvent__C46254_VT = mkVTable({ name: "PollEvent", numFields: 6, - classNo: 44, - lastSubtypeNo: 44, + classNo: 47, + lastSubtypeNo: 47, maxBgInstances: null, methods: { }, @@ -45809,28 +47276,11 @@ const control_PollEvent__C2022401_VT = mkVTable({ "set/once": null, }, }); -const ArrayBuffer__C2022274_VT = mkVTable({ - name: "ArrayBuffer", - numFields: 2, - classNo: 45, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - }, - iface: { - "_byteLength": null, - "set/_byteLength": null, - "_bytes": null, - "set/_bytes": null, - "byteLength": ArrayBuffer_byteLength__P2022276, - "bytes": ArrayBuffer_bytes__P2022277, - }, -}); -const scene_systemMenu_PauseMenu__C2021038_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C44889_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 46, - lastSubtypeNo: 46, + classNo: 48, + lastSubtypeNo: 48, maxBgInstances: null, methods: { }, @@ -45849,19 +47299,19 @@ const scene_systemMenu_PauseMenu__C2021038_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P2021040, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P2021041, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P2021042, - "drawText": scene_systemMenu_PauseMenu_drawText__P2021043, - "dispose": scene_systemMenu_PauseMenu_dispose__P2021044, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P2023187, + "show": scene_systemMenu_PauseMenu_show__P44891, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P44892, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P44893, + "drawText": scene_systemMenu_PauseMenu_drawText__P44894, + "dispose": scene_systemMenu_PauseMenu_dispose__P44895, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P47040, }, }); -const scene_systemMenu_MenuOption__C2021030_VT = mkVTable({ +const scene_systemMenu_MenuOption__C44881_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 47, - lastSubtypeNo: 47, + classNo: 49, + lastSubtypeNo: 49, maxBgInstances: null, methods: { }, @@ -45882,20 +47332,20 @@ const scene_systemMenu_MenuOption__C2021030_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P2021032, - "position": scene_systemMenu_MenuOption_position__P2021033, - "setOffset": scene_systemMenu_MenuOption_setOffset__P2021034, - "setTheme": scene_systemMenu_MenuOption_setTheme__P2021035, - "setState": scene_systemMenu_MenuOption_setState__P2021036, - "dispose": scene_systemMenu_MenuOption_dispose__P2021037, - "updateCard": scene_systemMenu_MenuOption_updateCard__P2023186, + "show": scene_systemMenu_MenuOption_show__P44883, + "position": scene_systemMenu_MenuOption_position__P44884, + "setOffset": scene_systemMenu_MenuOption_setOffset__P44885, + "setTheme": scene_systemMenu_MenuOption_setTheme__P44886, + "setState": scene_systemMenu_MenuOption_setState__P44887, + "dispose": scene_systemMenu_MenuOption_dispose__P44888, + "updateCard": scene_systemMenu_MenuOption_updateCard__P47039, }, }); -const effects_ParticleEffect__C2021205_VT = mkVTable({ +const effects_ParticleEffect__C45056_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 48, - lastSubtypeNo: 49, + classNo: 50, + lastSubtypeNo: 51, maxBgInstances: null, methods: { }, @@ -45906,15 +47356,15 @@ const effects_ParticleEffect__C2021205_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P2021207, - "destroy": effects_ParticleEffect_destroy__P2021208, + "start": effects_ParticleEffect_start__P45058, + "destroy": effects_ParticleEffect_destroy__P45059, }, }); -const effects_ImageEffect__C2021233_VT = mkVTable({ +const effects_ImageEffect__C45084_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 50, - lastSubtypeNo: 50, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: null, methods: { }, @@ -45927,21 +47377,21 @@ const effects_ImageEffect__C2021233_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P2021235, - "change": effects_ImageEffect_change__P2021236, + "applyTo": effects_ImageEffect_applyTo__P45086, + "change": effects_ImageEffect_change__P45087, }, }); -const scene_Renderable__C2020743_VT = mkVTable({ +const scene_Renderable__C44594_VT = mkVTable({ name: "Renderable", numFields: 4, - classNo: 31, - lastSubtypeNo: 31, + classNo: 34, + lastSubtypeNo: 34, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P2020745, - "__draw": sprites_BaseSprite___draw__P2020043, - "__drawCore": scene_Renderable___drawCore__P2020746, - "__update": sprites_BaseSprite___update__P2020045, + "__visible": scene_Renderable___visible__P44596, + "__draw": sprites_BaseSprite___draw__P43894, + "__drawCore": scene_Renderable___drawCore__P44597, + "__update": sprites_BaseSprite___update__P43896, }, iface: { "_z": null, @@ -45952,19 +47402,19 @@ const scene_Renderable__C2020743_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P2020745, - "__drawCore": scene_Renderable___drawCore__P2020746, - "z": sprites_BaseSprite_z__P2020041, - "set/z": sprites_BaseSprite_z__P2020042, - "__draw": sprites_BaseSprite___draw__P2020043, - "__update": sprites_BaseSprite___update__P2020045, + "__visible": scene_Renderable___visible__P44596, + "__drawCore": scene_Renderable___drawCore__P44597, + "z": sprites_BaseSprite_z__P43892, + "set/z": sprites_BaseSprite_z__P43893, + "__draw": sprites_BaseSprite___draw__P43894, + "__update": sprites_BaseSprite___update__P43896, }, }); -const controller_ButtonHandler__C2020126_VT = mkVTable({ +const controller_ButtonHandler__C43977_VT = mkVTable({ name: "ButtonHandler", numFields: 2, - classNo: 51, - lastSubtypeNo: 51, + classNo: 53, + lastSubtypeNo: 53, maxBgInstances: null, methods: { }, @@ -45975,11 +47425,11 @@ const controller_ButtonHandler__C2020126_VT = mkVTable({ "set/callback": null, }, }); -const controller_ButtonEventHandlerState__C2020128_VT = mkVTable({ +const controller_ButtonEventHandlerState__C43979_VT = mkVTable({ name: "ButtonEventHandlerState", numFields: 3, - classNo: 52, - lastSubtypeNo: 52, + classNo: 54, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -45992,11 +47442,11 @@ const controller_ButtonEventHandlerState__C2020128_VT = mkVTable({ "set/system": null, }, }); -const effects_ScreenEffect__C2021209_VT = mkVTable({ +const effects_ScreenEffect__C45060_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 49, - lastSubtypeNo: 49, + classNo: 51, + lastSubtypeNo: 51, maxBgInstances: null, methods: { }, @@ -46011,34 +47461,34 @@ const effects_ScreenEffect__C2021209_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P2021207, - "destroy": effects_ParticleEffect_destroy__P2021208, + "start": effects_ParticleEffect_start__P45058, + "destroy": effects_ParticleEffect_destroy__P45059, }, }); -const particles_ParticleFactory__C2021130_VT = mkVTable({ +const particles_ParticleFactory__C44981_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 53, - lastSubtypeNo: 57, + classNo: 55, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P2021132, - "drawParticle": particles_ParticleFactory_drawParticle__P2021133, + "createParticle": particles_ParticleFactory_createParticle__P44983, + "drawParticle": particles_ParticleFactory_drawParticle__P44984, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P2021132, - "drawParticle": particles_ParticleFactory_drawParticle__P2021133, + "createParticle": particles_ParticleFactory_createParticle__P44983, + "drawParticle": particles_ParticleFactory_drawParticle__P44984, }, }); -const particles_SprayFactory__C2021134_VT = mkVTable({ +const particles_SprayFactory__C44985_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 54, - lastSubtypeNo: 57, + classNo: 56, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P2021136, - "drawParticle": particles_SprayFactory_drawParticle__P2021137, + "createParticle": particles_SprayFactory_createParticle__P44987, + "drawParticle": particles_SprayFactory_drawParticle__P44988, }, iface: { "speed": null, @@ -46047,21 +47497,21 @@ const particles_SprayFactory__C2021134_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P2021136, - "drawParticle": particles_SprayFactory_drawParticle__P2021137, - "setSpeed": particles_SprayFactory_setSpeed__P2021138, - "setDirection": particles_SprayFactory_setDirection__P2021139, + "createParticle": particles_SprayFactory_createParticle__P44987, + "drawParticle": particles_SprayFactory_drawParticle__P44988, + "setSpeed": particles_SprayFactory_setSpeed__P44989, + "setDirection": particles_SprayFactory_setDirection__P44990, }, }); -const particles_AreaFactory__C2021140_VT = mkVTable({ +const particles_AreaFactory__C44991_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 55, - lastSubtypeNo: 57, + classNo: 57, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P2021146, - "drawParticle": particles_AreaFactory_drawParticle__P2021147, + "createParticle": particles_AreaFactory_createParticle__P44997, + "drawParticle": particles_AreaFactory_drawParticle__P44998, }, iface: { "speed": null, @@ -46080,21 +47530,21 @@ const particles_AreaFactory__C2021140_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P2021146, - "drawParticle": particles_AreaFactory_drawParticle__P2021147, - "setSpeed": particles_SprayFactory_setSpeed__P2021138, - "setDirection": particles_SprayFactory_setDirection__P2021139, + "createParticle": particles_AreaFactory_createParticle__P44997, + "drawParticle": particles_AreaFactory_drawParticle__P44998, + "setSpeed": particles_SprayFactory_setSpeed__P44989, + "setDirection": particles_SprayFactory_setDirection__P44990, }, }); -const particles_ShapeFactory__C2021156_VT = mkVTable({ +const particles_ShapeFactory__C45007_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 56, - lastSubtypeNo: 57, + classNo: 58, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P2021160, - "drawParticle": particles_ShapeFactory_drawParticle__P2021159, + "createParticle": particles_ShapeFactory_createParticle__P45011, + "drawParticle": particles_ShapeFactory_drawParticle__P45010, }, iface: { "speed": null, @@ -46119,22 +47569,22 @@ const particles_ShapeFactory__C2021156_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P2021158, - "drawParticle": particles_ShapeFactory_drawParticle__P2021159, - "createParticle": particles_ShapeFactory_createParticle__P2021160, - "setSpeed": particles_SprayFactory_setSpeed__P2021138, - "setDirection": particles_SprayFactory_setDirection__P2021139, + "addShape": particles_ShapeFactory_addShape__P45009, + "drawParticle": particles_ShapeFactory_drawParticle__P45010, + "createParticle": particles_ShapeFactory_createParticle__P45011, + "setSpeed": particles_SprayFactory_setSpeed__P44989, + "setDirection": particles_SprayFactory_setDirection__P44990, }, }); -const particles_ConfettiFactory__C2021161_VT = mkVTable({ +const particles_ConfettiFactory__C45012_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 57, - lastSubtypeNo: 57, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P2021160, - "drawParticle": particles_ShapeFactory_drawParticle__P2021159, + "createParticle": particles_ShapeFactory_createParticle__P45011, + "drawParticle": particles_ShapeFactory_drawParticle__P45010, }, iface: { "speed": null, @@ -46159,18 +47609,18 @@ const particles_ConfettiFactory__C2021161_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P2021158, - "drawParticle": particles_ShapeFactory_drawParticle__P2021159, - "createParticle": particles_ShapeFactory_createParticle__P2021160, - "setSpeed": particles_SprayFactory_setSpeed__P2021138, - "setDirection": particles_SprayFactory_setDirection__P2021139, + "addShape": particles_ShapeFactory_addShape__P45009, + "drawParticle": particles_ShapeFactory_drawParticle__P45010, + "createParticle": particles_ShapeFactory_createParticle__P45011, + "setSpeed": particles_SprayFactory_setSpeed__P44989, + "setDirection": particles_SprayFactory_setDirection__P44990, }, }); -const particles_Particle__C2021075_VT = mkVTable({ +const particles_Particle__C44926_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 58, - lastSubtypeNo: 58, + classNo: 60, + lastSubtypeNo: 60, maxBgInstances: 200, methods: { }, @@ -46193,11 +47643,11 @@ const particles_Particle__C2021075_VT = mkVTable({ "set/color": null, }, }); -const music_Playable__C2019854_VT = mkVTable({ +const music_Playable__C43705_VT = mkVTable({ name: "Playable", numFields: 1, - classNo: 59, - lastSubtypeNo: 60, + classNo: 61, + lastSubtypeNo: 62, maxBgInstances: null, methods: { }, @@ -46206,11 +47656,11 @@ const music_Playable__C2019854_VT = mkVTable({ "set/stopped": null, }, }); -const music_MelodyPlayable__C2019859_VT = mkVTable({ +const music_MelodyPlayable__C43710_VT = mkVTable({ name: "MelodyPlayable", numFields: 2, - classNo: 60, - lastSubtypeNo: 60, + classNo: 62, + lastSubtypeNo: 62, maxBgInstances: null, methods: { }, @@ -46221,11 +47671,11 @@ const music_MelodyPlayable__C2019859_VT = mkVTable({ "set/melody": null, }, }); -const music_Melody__C2019569_VT = mkVTable({ +const music_Melody__C43420_VT = mkVTable({ name: "Melody", numFields: 2, - classNo: 61, - lastSubtypeNo: 61, + classNo: 63, + lastSubtypeNo: 63, maxBgInstances: null, methods: { }, @@ -46234,15 +47684,15 @@ const music_Melody__C2019569_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P2019578, + "toString": music_Melody_toString__P43429, }, - toStringMethod: music_Melody_toString__P2019578, + toStringMethod: music_Melody_toString__P43429, }); -const MovingSprite__C2020468_VT = mkVTable({ +const MovingSprite__C44319_VT = mkVTable({ name: "MovingSprite", numFields: 7, - classNo: 62, - lastSubtypeNo: 62, + classNo: 64, + lastSubtypeNo: 64, maxBgInstances: null, methods: { }, @@ -46263,11 +47713,11 @@ const MovingSprite__C2020468_VT = mkVTable({ "set/yStep": null, }, }); -const tiles_Location__C2020636_VT = mkVTable({ +const tiles_Location__C44487_VT = mkVTable({ name: "Location", numFields: 2, - classNo: 63, - lastSubtypeNo: 63, + classNo: 65, + lastSubtypeNo: 65, maxBgInstances: null, methods: { }, @@ -46276,21 +47726,21 @@ const tiles_Location__C2020636_VT = mkVTable({ "set/_row": null, "_col": null, "set/_col": null, - "tileMap": tiles_Location_tileMap__P2020638, - "column": tiles_Location_column__P2020639, - "row": tiles_Location_row__P2020640, - "x": tiles_Location_x__P2020641, - "y": tiles_Location_y__P2020642, - "left": tiles_Location_left__P2020643, - "top": tiles_Location_top__P2020644, - "tileSet": tiles_Location_tileSet__P2020647, + "tileMap": tiles_Location_tileMap__P44489, + "column": tiles_Location_column__P44490, + "row": tiles_Location_row__P44491, + "x": tiles_Location_x__P44492, + "y": tiles_Location_y__P44493, + "left": tiles_Location_left__P44494, + "top": tiles_Location_top__P44495, + "tileSet": tiles_Location_tileSet__P44498, }, }); -const sprites_StaticObstacle__C2020441_VT = mkVTable({ +const sprites_StaticObstacle__C44292_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 64, - lastSubtypeNo: 64, + classNo: 66, + lastSubtypeNo: 66, maxBgInstances: null, methods: { }, @@ -46305,22 +47755,22 @@ const sprites_StaticObstacle__C2020441_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P2020448, - "y": sprites_StaticObstacle_y__P2020449, - "height": sprites_StaticObstacle_height__P2020450, - "width": sprites_StaticObstacle_width__P2020451, + "x": sprites_StaticObstacle_x__P44299, + "y": sprites_StaticObstacle_y__P44300, + "height": sprites_StaticObstacle_height__P44301, + "width": sprites_StaticObstacle_width__P44302, }, }); -const sprites_BaseSpriteSayRenderer__C2020202_VT = mkVTable({ +const sprites_BaseSpriteSayRenderer__C44053_VT = mkVTable({ name: "BaseSpriteSayRenderer", numFields: 3, - classNo: 65, - lastSubtypeNo: 65, + classNo: 67, + lastSubtypeNo: 67, maxBgInstances: null, methods: { - "draw": sprites_BaseSpriteSayRenderer_draw__P2020204, - "update": sprites_BaseSpriteSayRenderer_update__P2020205, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2020206, + "draw": sprites_BaseSpriteSayRenderer_draw__P44055, + "update": sprites_BaseSpriteSayRenderer_update__P44056, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P44057, }, iface: { "text": null, @@ -46329,13 +47779,13 @@ const sprites_BaseSpriteSayRenderer__C2020202_VT = mkVTable({ "set/fgColor": null, "bgColor": null, "set/bgColor": null, - "draw": sprites_BaseSpriteSayRenderer_draw__P2020204, - "update": sprites_BaseSpriteSayRenderer_update__P2020205, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P2020206, + "draw": sprites_BaseSpriteSayRenderer_draw__P44055, + "update": sprites_BaseSpriteSayRenderer_update__P44056, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P44057, }, }); -const breakpoints = setupDebugger(1, ["a___2022340","r___2022341","b___2022342","allPassed___2022338"]) +const breakpoints = setupDebugger(1, ["d___114813","allPassed___114761"]) -return _main___P2055608 +return _main___P115248 }) diff --git a/assets/version.txt b/assets/version.txt index 341cf11..afaf360 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.2.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 1d5edc8..4a1e15b 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "pxt-typed-arrays", - "version": "0.2.0", + "version": "1.0.0", "description": "", "dependencies": { "device": "*"