From 196cd07c3ee0380001371f009fe6855983b919e7 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Tue, 24 Nov 2020 17:43:16 -0800 Subject: [PATCH] 0.0.4 --- assets/js/binary.js | 24452 +++++++++++++++++++++--------------------- assets/version.txt | 2 +- pxt.json | 2 +- 3 files changed, 12237 insertions(+), 12219 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index 750636f..48e6075 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.3.15/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.3","target":"arcade","targetVersion":"1.3.15","repo":"eanders-ms/arcade-webcam"} -// total=1150326 new=6.66% cached=87.75% other=5.58% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.3.15/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.4","target":"arcade","targetVersion":"1.3.15","repo":"eanders-ms/arcade-webcam"} +// total=1150580 new=6.79% cached=87.64% other=5.57% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -382,7 +382,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P32137(s) { +function _main___P65218(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -392,232 +392,232 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___19636 = (undefined); - globals._pollEventQueue___19645 = (undefined); - globals.minPriority___16482 = (1); + globals._intervals___51843 = (undefined); + globals._pollEventQueue___51852 = (undefined); + globals.minPriority___48689 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P19648); - globals.listeners___19649 = (s.tmp_0); - globals.globalVolume___19702 = (null); - globals.playToneID___19709 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C17716_VT); + r0 = pxsim_Array__push(s.tmp_0, inline__P51855); + globals.listeners___51856 = (s.tmp_0); + globals.globalVolume___51909 = (null); + globals.playToneID___51916 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C49923_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P17719_mk(s); + s.tmp_1 = music_Melody_constructor__P49926_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 = 1; return s.tmp_1; case 1: r0 = s.retval; - globals.wawawawaa___17733 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C17716_VT); + globals.wawawawaa___49940 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C49923_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P17719_mk(s); + s.tmp_1 = music_Melody_constructor__P49926_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 = 2; return s.tmp_1; case 2: r0 = s.retval; - globals.powerUp___17736 = (s.tmp_0); - globals.brightness___17842 = (100); + globals.powerUp___49943 = (s.tmp_0); + globals.brightness___50049 = (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", _hex23917); - globals.font8___17863 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex56149); + globals.font8___50070 = (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", _hex23919); - globals.font12___17864 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex56151); + globals.font12___50071 = (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", _hex25390); - globals.font5___17868 = (s.tmp_0); - globals.__updated___19746 = (false); - r0 = pxsim.control.runInParallel(inline__P19749); - r0 = pxsim_pxtcore.setPalette(_hex19760); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex57622); + globals.font5___50075 = (s.tmp_0); + globals.__updated___51953 = (false); + r0 = pxsim.control.runInParallel(inline__P51956); + r0 = pxsim_pxtcore.setPalette(_hex51967); r0 = pxsim.image.create(160, 120); - globals.screen___17920 = (r0); - s.tmp_0 = control___screen_setupUpdate__P17882_mk(s); - s.tmp_0.arg0 = inline__P19767; + globals.screen___50127 = (r0); + s.tmp_0 = control___screen_setupUpdate__P50089_mk(s); + s.tmp_0.arg0 = inline__P51974; s.callLocIdx = 4; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___16505 = (inline__P19772); - globals.RUN_KEY___19777 = ("#run"); - globals.SCOPE_KEY___19778 = ("#scope"); - s.tmp_0 = settings_initScopes__P19789_mk(s); + globals.control_EventContext_onStats___48712 = (inline__P51979); + globals.RUN_KEY___51984 = ("#run"); + globals.SCOPE_KEY___51985 = ("#scope"); + s.tmp_0 = settings_initScopes__P51996_mk(s); s.callLocIdx = 5; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.A___17995 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.A___50202 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; s.callLocIdx = 7; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - globals.B___17996 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.B___50203 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; s.callLocIdx = 8; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - globals.left___17997 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.left___50204 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; s.callLocIdx = 9; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - globals.up___17998 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.up___50205 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; s.callLocIdx = 10; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - globals.right___17999 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.right___50206 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; s.callLocIdx = 11; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - globals.down___18000 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); + globals.down___50207 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; s.callLocIdx = 12; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - globals.menu___18001 = (s.tmp_0); - globals._userEventsEnabled___19816 = (true); - globals.defaultRepeatDelay___19818 = (500); - globals.defaultRepeatInterval___19820 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C19826_VT); + globals.menu___50208 = (s.tmp_0); + globals._userEventsEnabled___52023 = (true); + globals.defaultRepeatDelay___52025 = (500); + globals.defaultRepeatInterval___52027 = (30); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C52033_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P18027_mk(s); + s.tmp_1 = controller_Button_constructor__P50234_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; s.callLocIdx = 13; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - globals.anyButton___18075 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P18249_mk(s); + globals.anyButton___50282 = (s.tmp_0); + s.tmp_0 = SpriteKind_create__P50456_mk(s); s.callLocIdx = 14; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals.Player___18250 = (r0); - s.tmp_0 = SpriteKind_create__P18249_mk(s); + globals.Player___50457 = (r0); + s.tmp_0 = SpriteKind_create__P50456_mk(s); s.callLocIdx = 15; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - globals.Food___18252 = (r0); - s.tmp_0 = SpriteKind_create__P18249_mk(s); + globals.Food___50459 = (r0); + s.tmp_0 = SpriteKind_create__P50456_mk(s); s.callLocIdx = 16; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.Enemy___18253 = (r0); + globals.Enemy___50460 = (r0); r0 = (100 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MAX_TIME_STEP___18290 = (r0); + globals.MAX_TIME_STEP___50497 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___18293 = (r0); - globals.infoState___19877 = (undefined); - s.tmp_0 = game_addScenePushHandler__P18665_mk(s); - s.tmp_0.arg0 = inline__P19881; + globals.MIN_MOVE_GAP___50500 = (r0); + globals.infoState___52084 = (undefined); + s.tmp_0 = game_addScenePushHandler__P50872_mk(s); + s.tmp_0.arg0 = inline__P52088; s.callLocIdx = 19; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P18667_mk(s); - s.tmp_0.arg0 = inline__P19896; + s.tmp_0 = game_addScenePopHandler__P50874_mk(s); + s.tmp_0.arg0 = inline__P52103; s.callLocIdx = 23; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___18555 = (r0); - globals.debug___18644 = (false); - globals.stats___18645 = (false); - globals.winEffect___18646 = (undefined); - globals.loseEffect___18647 = (undefined); - globals.loseSound___19991 = (undefined); - globals.winSound___19993 = (undefined); - s.tmp_0 = scene_systemMenu_initVolume__P20260_mk(s); + globals.scene_Scene_initializers___50762 = (r0); + globals.debug___50851 = (false); + globals.stats___50852 = (false); + globals.winEffect___50853 = (undefined); + globals.loseEffect___50854 = (undefined); + globals.loseSound___52198 = (undefined); + globals.winSound___52200 = (undefined); + s.tmp_0 = scene_systemMenu_initVolume__P52467_mk(s); s.callLocIdx = 24; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P20261_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P52468_mk(s); s.callLocIdx = 25; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___18555, scene_systemMenu_register__P18749); - r0 = pxsim.image.ofBuffer(_hex20268); - globals.CARD_NORMAL___18754 = (r0); - r0 = pxsim.image.ofBuffer(_hex20270); - globals.CARD_SELECTED___18755 = (r0); - r0 = pxsim.image.ofBuffer(_hex20272); - globals.CARD_ACTIVE___18756 = (r0); - r0 = pxsim.image.ofBuffer(_hex20274); - globals.VOLUME_UP_ICON___18757 = (r0); - r0 = pxsim.image.ofBuffer(_hex20276); - globals.BRIGHTNESS_DOWN_ICON___18758 = (r0); - r0 = pxsim.image.ofBuffer(_hex20278); - globals.CLOSE_MENU_ICON___18759 = (r0); - r0 = pxsim.image.ofBuffer(_hex20280); - globals.VOLUME_DOWN_ICON___18760 = (r0); - r0 = pxsim.image.ofBuffer(_hex20282); - globals.SLEEP_ICON___18761 = (r0); - r0 = pxsim.image.ofBuffer(_hex20284); - globals.CONSOLE_ICON___18762 = (r0); - r0 = pxsim.image.ofBuffer(_hex20286); - globals.BRIGHTNESS_UP_ICON___18763 = (r0); - r0 = pxsim.image.ofBuffer(_hex20288); - globals.STATS_ICON___18764 = (r0); - globals.consoleColor___20291 = (1); - globals.tabSize___20294 = (8); - globals.consoleFont___20300 = (globals.font5___17868); - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___50762, scene_systemMenu_register__P50956); + r0 = pxsim.image.ofBuffer(_hex52475); + globals.CARD_NORMAL___50961 = (r0); + r0 = pxsim.image.ofBuffer(_hex52477); + globals.CARD_SELECTED___50962 = (r0); + r0 = pxsim.image.ofBuffer(_hex52479); + globals.CARD_ACTIVE___50963 = (r0); + r0 = pxsim.image.ofBuffer(_hex52481); + globals.VOLUME_UP_ICON___50964 = (r0); + r0 = pxsim.image.ofBuffer(_hex52483); + globals.BRIGHTNESS_DOWN_ICON___50965 = (r0); + r0 = pxsim.image.ofBuffer(_hex52485); + globals.CLOSE_MENU_ICON___50966 = (r0); + r0 = pxsim.image.ofBuffer(_hex52487); + globals.VOLUME_DOWN_ICON___50967 = (r0); + r0 = pxsim.image.ofBuffer(_hex52489); + globals.SLEEP_ICON___50968 = (r0); + r0 = pxsim.image.ofBuffer(_hex52491); + globals.CONSOLE_ICON___50969 = (r0); + r0 = pxsim.image.ofBuffer(_hex52493); + globals.BRIGHTNESS_UP_ICON___50970 = (r0); + r0 = pxsim.image.ofBuffer(_hex52495); + globals.STATS_ICON___50971 = (r0); + globals.consoleColor___52498 = (1); + globals.tabSize___52501 = (8); + globals.consoleFont___52507 = (globals.font5___50075); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___20300; + s.tmp_5.arg0 = globals.consoleFont___52507; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -636,13 +636,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___20305 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___17920); + globals.consoleLines___52512 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___50127); 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___20300; + s.tmp_4.arg0 = globals.consoleFont___52507; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -657,22 +657,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___20315 = (r0); - s.tmp_0 = console_addListener__P16490_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P20327; + globals.consoleColumns___52522 = (r0); + s.tmp_0 = console_addListener__P48697_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P52534; s.callLocIdx = 28; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = inline__P20331; + s.tmp_0.argL = inline__P52538; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 30; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - globals.MAX_SOURCES___20329 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C18834_VT); + globals.MAX_SOURCES___52536 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C51041_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P18835_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P51042_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -680,95 +680,100 @@ switch (step) { s.callLocIdx = 31; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - globals.defaultFactory___18814 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C18702_VT); + globals.defaultFactory___51021 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C50909_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P18704_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P50911_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 32; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - globals.galois___20364 = (s.tmp_0); - globals.angleSlice___20372 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C18909_VT); + globals.galois___52571 = (s.tmp_0); + globals.angleSlice___52579 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C51116_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P18910_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P51117_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 = inline__P21949; + s.tmp_1.arg4 = inline__P54181; s.callLocIdx = 38; s.pc = 26; return s.tmp_1; case 26: r0 = s.retval; - globals.confetti___18917 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C18932_VT); + globals.confetti___51124 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C51139_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P18933_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P51140_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P26162; + s.tmp_1.arg2 = inline__P58394; s.callLocIdx = 44; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.dissolve___18937 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C18932_VT); + globals.dissolve___51144 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C51139_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P18933_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P51140_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P21841; + s.tmp_1.arg2 = inline__P54073; s.callLocIdx = 47; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.melt___18938 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C18947_VT); + globals.melt___51145 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C51154_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P18949_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P51156_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P20423; + s.tmp_1.arg1 = inline__P52630; s.callLocIdx = 48; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; - globals.shake___18950 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C18947_VT); + globals.shake___51157 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C51154_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P18949_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P51156_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P20436; + s.tmp_1.arg1 = inline__P52643; s.callLocIdx = 58; s.pc = 30; return s.tmp_1; case 30: r0 = s.retval; - globals.wave___18951 = (s.tmp_0); - s.tmp_0 = game_setWaitAnyButton__P18649_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P18071; + globals.wave___51158 = (s.tmp_0); + s.tmp_0 = game_setWaitAnyButton__P50856_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P50278; s.callLocIdx = 59; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.tmp_0 = game_eventContext__P18651_mk(s); + s.tmp_0 = game_eventContext__P50858_mk(s); s.callLocIdx = 60; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - globals.CHANNEL___32072 = ("webcam"); - globals.initialized___32079 = (false); - globals.currentFrame___32081 = (undefined); - s.tmp_0 = webcam_onFrameReceived__P32082_mk(s); - s.tmp_0.arg0 = inline__P32107; - s.callLocIdx = 66; s.pc = 33; return s.tmp_0; + globals.CHANNEL___65158 = ("webcam"); + globals.initialized___65165 = (false); + globals.currentFrame___65167 = (undefined); + s.tmp_0 = webcam_onFrameReceived__P65168_mk(s); + s.tmp_0.arg0 = inline__P65185; + s.callLocIdx = 65; s.pc = 33; return s.tmp_0; case 33: + r0 = s.retval; + s.tmp_0 = game_onUpdate__P50866_mk(s); + s.tmp_0.arg0 = inline__P65190; + s.callLocIdx = 68; s.pc = 34; return s.tmp_0; + case 34: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P32137.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} -_main___P32137.continuations = [ ] +_main___P65218.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} +_main___P65218.continuations = [ ] -function _main___P32137_mk(s) { +function _main___P65218_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P32137, depth: s.depth + 1, + parent: s, fn: _main___P65218, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -778,26 +783,26 @@ function _main___P32137_mk(s) { tmp_5: undefined, } } -const _hex23917 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex23919 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex25390 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex19760 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex20268 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex20270 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex20272 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex20274 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20276 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20278 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20280 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20282 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20284 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20286 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex20288 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex56149 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex56151 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex57622 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex51967 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex52475 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex52477 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex52479 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex52481 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52483 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52485 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52487 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52489 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52491 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52493 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52495 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function inline__P19749(s) { +function inline__P51956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -810,23 +815,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___19746 = (false); - s.tmp_0 = pause__P16520_mk(s); + globals.__updated___51953 = (false); + s.tmp_0 = pause__P48727_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___19746); + r0 = pxsim_numops_toBoolDecr(globals.__updated___51953); 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__P17881_mk(s); + s.tmp_2 = control___screen_update__P50088_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___19746 = (true); + globals.__updated___51953 = (true); case 2: case 3: { step = 1; continue; } @@ -835,12 +840,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19749.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +inline__P51956.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P19749_mk(s) { +function inline__P51956_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19749, depth: s.depth + 1, + parent: s, fn: inline__P51956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -851,7 +856,7 @@ function inline__P19749_mk(s) { -function inline__P19767(s) { +function inline__P51974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -861,17 +866,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___17920); + r0 = pxsim_pxtcore.updateScreen(globals.screen___50127); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P19767.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +inline__P51974.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P19767_mk(s) { +function inline__P51974_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19767, depth: s.depth + 1, + parent: s, fn: inline__P51974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -879,7 +884,7 @@ function inline__P19767_mk(s) { -function inline__P19772(s) { +function inline__P51979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -898,12 +903,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19772.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +inline__P51979.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} -function inline__P19772_mk(s) { +function inline__P51979_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19772, depth: s.depth + 1, + parent: s, fn: inline__P51979, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -912,7 +917,7 @@ function inline__P19772_mk(s) { -function inline__P19881(s) { +function inline__P52088(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -926,36 +931,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___19877); + r0 = pxsim_numops_toBoolDecr(globals.infoState___52084); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___19879); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___52086); 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___19879 = (r0); + globals.infoStateStack___52086 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___19877); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___52084); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___19879, s.tmp_0); - globals.infoState___19877 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___52086, s.tmp_0); + globals.infoState___52084 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P19881.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +inline__P52088.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function inline__P19881_mk(s) { +function inline__P52088_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19881, depth: s.depth + 1, + parent: s, fn: inline__P52088, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -966,7 +971,7 @@ function inline__P19881_mk(s) { -function inline__P19896(s) { +function inline__P52103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -976,30 +981,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___19897 = undefined; - s.nextState___19906 = undefined; - s.tmp_0 = game_currentScene__P18648_mk(s); + s.scene___52104 = undefined; + s.nextState___52113 = undefined; + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 20; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___19897 = (r0); - globals.infoState___19877 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___19879; + s.scene___52104 = (r0); + globals.infoState___52084 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___52086; 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___19879); + r0 = pxsim_Array__length(globals.infoStateStack___52086); 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___19879); - s.nextState___19906 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___52086); + s.nextState___52113 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___19906; + s.tmp_2.arg0 = s.nextState___52113; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1011,12 +1016,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___19897); + r0 = (s.tmp_1 == s.scene___52104); 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___19906; + s.tmp_3.arg0 = s.nextState___52113; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1027,10 +1032,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___19877 = (r0); + globals.infoState___52084 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___19879, s.nextState___19906); + r0 = pxsim_Array__push(globals.infoStateStack___52086, s.nextState___52113); case 4: case 5: case 6: @@ -1038,26 +1043,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19896.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +inline__P52103.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P19896_mk(s) { +function inline__P52103_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19896, depth: s.depth + 1, + parent: s, fn: inline__P52103, depth: s.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___19897: undefined, - nextState___19906: undefined, + scene___52104: undefined, + nextState___52113: undefined, } } -function inline__P20331(s) { +function inline__P52538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1067,13 +1072,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___20332 = undefined; - s.tmp_0 = control_ramSize__P16453_mk(s); + s.sz___52539 = undefined; + s.tmp_0 = control_ramSize__P48660_mk(s); s.callLocIdx = 29; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___20332 = (r0); - r0 = (s.sz___20332 <= 102400); + s.sz___52539 = (r0); + r0 = (s.sz___52539 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -1081,7 +1086,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___20332 <= 204800); + r0 = (s.sz___52539 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -1098,23 +1103,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P20331.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +inline__P52538.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function inline__P20331_mk(s) { +function inline__P52538_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P20331, depth: s.depth + 1, + parent: s, fn: inline__P52538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___20332: undefined, + sz___52539: undefined, } } -function inline__P20423(s) { +function inline__P52630(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1144,12 +1149,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P20423.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} +inline__P52630.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} -function inline__P20423_mk(s) { +function inline__P52630_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P20423, depth: s.depth + 1, + parent: s, fn: inline__P52630, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1164,7 +1169,7 @@ function inline__P20423_mk(s) { -function inline__P20436(s) { +function inline__P52643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1193,7 +1198,7 @@ switch (step) { r0 = (s.tmp_4 * 2); s.tmp_3 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "yOffset", s.tmp_3); - s.tmp_7 = Math_sign__P16242_mk(s); + s.tmp_7 = Math_sign__P48449_mk(s); r0 = pxsim.Math_.sin(s.arg0); s.tmp_7.arg0 = r0; s.callLocIdx = 49; s.pc = 7; return s.tmp_7; @@ -1258,7 +1263,7 @@ switch (step) { } case 9: r0 = s.retval; - s.tmp_2 = Math_abs__P16241_mk(s); + s.tmp_2 = Math_abs__P48448_mk(s); s.tmp_3 = if_yOffset_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -1330,12 +1335,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P20436.info = {"start":1127,"length":417,"line":42,"column":39,"endLine":55,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["index","state"]} +inline__P52643.info = {"start":1127,"length":417,"line":42,"column":39,"endLine":55,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["index","state"]} -function inline__P20436_mk(s) { +function inline__P52643_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P20436, depth: s.depth + 1, + parent: s, fn: inline__P52643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1355,7 +1360,7 @@ function inline__P20436_mk(s) { -function inline__P32107(s) { +function inline__P65185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1365,37 +1370,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.frame___32108 = undefined; - s.frame___32108 = (globals.currentFrame___32081); - r0 = pxsim_numops_toBoolDecr(s.frame___32108); + s.frame___65186 = undefined; + s.frame___65186 = (globals.currentFrame___65167); + r0 = pxsim_numops_toBoolDecr(s.frame___65186); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_setBackgroundImage__P18575_mk(s); - s.tmp_0.arg0 = s.frame___32108; - s.callLocIdx = 65; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P32107.info = {"start":1005,"length":108,"line":38,"column":23,"endLine":42,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P65185.info = {"start":1009,"length":118,"line":38,"column":23,"endLine":43,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P32107_mk(s) { +function inline__P65185_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P32107, depth: s.depth + 1, + parent: s, fn: inline__P65185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - frame___32108: undefined, + frame___65186: undefined, } } -function scene_setBackgroundImage__P18575(s) { +function inline__P65190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1405,81 +1404,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___21775 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 810; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___21775 = (r0); - s.tmp_0 = scene_Background_image__P18395_mk(s); - r0 = s.scene___21775.fields["background"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 811; s.pc = 2; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + 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); + r0 = pxsim_Array__push(s.tmp_0, 8); + r0 = pxsim_Array__push(s.tmp_0, 9); + r0 = pxsim_Array__push(s.tmp_0, 10); + r0 = pxsim_Array__push(s.tmp_0, 11); + r0 = pxsim_Array__push(s.tmp_0, 12); + r0 = pxsim_Array__push(s.tmp_0, 13); + r0 = pxsim_Array__push(s.tmp_0, 14); + s.tmp_1 = scene_setBackgroundColor__P50780_mk(s); + s.tmp_2 = Math_pickRandom__P50908_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.callLocIdx = 66; s.pc = 2; return s.tmp_2; case 2: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.callLocIdx = 67; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P18575.info = {"start":1938,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +inline__P65190.info = {"start":1144,"length":101,"line":45,"column":14,"endLine":48,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function scene_setBackgroundImage__P18575_mk(s) { +function inline__P65190_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P18575, depth: s.depth + 1, + parent: s, fn: inline__P65190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___21775: undefined, - arg0: undefined, -} } - - - - - -function scene_Background_image__P18395(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__C18388_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Background_image__P18395.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 scene_Background_image__P18395_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Background_image__P18395, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function scene_Background_image__P18394(s) { +function Math_pickRandom__P50908(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1493,37 +1464,45 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C18388_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); - 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); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_Array__length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 == 0); case 2: - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = undefined; + { step = 5; continue; } + case 3: + case 4: + s.tmp_4 = r0 = s.arg0; + r0 = pxsim_Array__length(s.arg0); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.tmp_6 = r0; + r0 = pxsim.Math_.randomRange(0, s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + case 5: + return leave(s, r0) default: oops() } } } -scene_Background_image__P18394.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__P18394.isGetter = true; +Math_pickRandom__P50908.info = {"start":773,"length":188,"line":24,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["list"]} -function scene_Background_image__P18394_mk(s) { +function Math_pickRandom__P50908_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P18394, depth: s.depth + 1, + parent: s, fn: Math_pickRandom__P50908, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1532,6 +1511,7 @@ function scene_Background_image__P18394_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, arg0: undefined, } } @@ -1539,7 +1519,7 @@ function scene_Background_image__P18394_mk(s) { -function webcam_onFrameReceived__P32082(s) { +function scene_setBackgroundColor__P50780(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1549,38 +1529,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___53883 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = webcam_init__P32085_mk(s); - s.callLocIdx = 61; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 810; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P32089); + s.scene___53883 = (r0); + r0 = s.scene___53883.fields["background"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P16498_mk(s); - s.tmp_1.arg0 = 4567; - s.tmp_1.arg1 = 1; - s.tmp_1.arg2 = s.tmp_0; - s.tmp_1.arg3 = 16; - s.callLocIdx = 63; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; + r0 = (s.tmp_0).fields["color"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -webcam_onFrameReceived__P32082.info = {"start":417,"length":198,"line":17,"column":4,"endLine":23,"endColumn":5,"fileName":"main.ts","functionName":"onFrameReceived","argumentNames":["handler"]} +scene_setBackgroundColor__P50780.info = {"start":1207,"length":140,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundColor","argumentNames":["color"]} -function webcam_onFrameReceived__P32082_mk(s) { +function scene_setBackgroundColor__P50780_mk(s) { checkStack(s.depth); return { - parent: s, fn: webcam_onFrameReceived__P32082, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundColor__P50780, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + scene___53883: undefined, arg0: undefined, } } @@ -1588,7 +1562,7 @@ function webcam_onFrameReceived__P32082_mk(s) { -function inline__P32089(s) { +function game_onUpdate__P50866(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1598,35 +1572,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(s.caps[0]); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 62; s.pc = 3; return s.tmp_0; - case 3: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_init__P52209_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 830; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: case 2: + s.tmp_2 = control_EventContext_registerFrameHandler__P48717_mk(s); + s.tmp_3 = game_eventContext__P50858_mk(s); + s.callLocIdx = 831; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 20; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 832; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P32089.info = {"start":534,"length":74,"line":19,"column":47,"endLine":22,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +game_onUpdate__P50866.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} -function inline__P32089_mk(s) { +function game_onUpdate__P50866_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P32089, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P50866, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, } } -function control_onEvent__P16498(s) { +function game_init__P52209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1636,63 +1634,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___21694 = 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__P16515_mk(s); - s.callLocIdx = 39; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.ctx___21694 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___21694); + r0 = pxsim_numops_toBoolDecr(globals._scene___52201); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_0 = control_EventContext_registerHandler__P16512_mk(s); - s.tmp_0.arg0 = s.ctx___21694; - 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; + 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__C50742_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P50763_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P48723_mk(s); + s.callLocIdx = 815; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___52201; + s.callLocIdx = 816; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + globals._scene___52201 = (s.tmp_3); + case 3: case 4: + s.tmp_0 = scene_Scene_init__P50764_mk(s); + s.tmp_0.arg0 = globals._scene___52201; + s.callLocIdx = 817; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - case 2: + r0 = pxsim_numops_toBoolDecr(globals.winEffect___50853); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + globals.winEffect___50853 = (globals.confetti___51124); + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___50854); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + globals.loseEffect___50854 = (globals.melt___51145); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals.winSound___52200); + 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 = 9; continue; } + globals.winSound___52200 = (globals.powerUp___49943); + case 9: + case 10: + r0 = pxsim_numops_toBoolDecr(globals.loseSound___52198); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.loseSound___52198 = (globals.wawawawaa___49940); + case 11: + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -control_onEvent__P16498.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"]} +game_init__P52209.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function control_onEvent__P16498_mk(s) { +function game_init__P52209_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P16498, depth: s.depth + 1, + parent: s, fn: game_init__P52209, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___21694: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function control_eventContext__P16515(s) { +function inline__P54073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1702,42 +1744,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___19671); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___19671; - r0 = pxsim_Array__length(globals.eventContexts___19671); + s.rounds___54076 = undefined; + s.j___54084 = undefined; + s.x___54089 = undefined; + s.y___54095 = undefined; + s.c___54101 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 5); + s.rounds___54076 = (r0); + s.j___54084 = (0); + case 1: + r0 = (s.j___54084 < s.rounds___54076); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P50913_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_2 - 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 45; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___54089 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P50913_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } - case 1: - r0 = undefined; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + s.callLocIdx = 46; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___54095 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___54089, s.y___54095); + s.c___54101 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___54089; + r0 = (s.y___54095 + 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___54101); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___54089; + r0 = (s.y___54095 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___54101); + r0 = (s.j___54084 + 1); + s.j___54084 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = undefined; return leave(s, r0) default: oops() } } } -control_eventContext__P16515.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +inline__P54073.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 control_eventContext__P16515_mk(s) { +function inline__P54073_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P16515, depth: s.depth + 1, + parent: s, fn: inline__P54073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + rounds___54076: undefined, + j___54084: undefined, + x___54089: undefined, + y___54095: undefined, + c___54101: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_registerHandler__P16512(s) { +function Math_FastRandom_randomRange__P50913(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1747,90 +1843,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___21717 = undefined; - s.unnamed134___U1 = undefined; - s.unnamed135___U2 = undefined; - s.hn___21740 = 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__C16502_VT)) failedCast(r0); - s.h___21717 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed134___U1 = (r0); - s.unnamed135___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed135___U2; - r0 = pxsim_Array__length(s.unnamed134___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed134___U1, s.unnamed135___U2); - s.h___21717 = (r0); - r0 = s.h___21717.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; } - case 2: - r0 = s.h___21717.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); + if (!checkSubtype(r0, Math_FastRandom__C50909_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__P50912_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 841; s.pc = 3; return s.tmp_2; case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg2 - s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 % s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: // jmp value (already in r0) s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 4; continue; } - r0 = (s.h___21717).fields["flags"] = (s.arg4); - r0 = (s.h___21717).fields["handler"] = (s.arg3); - { step = 7; continue; } - case 4: - case 5: - r0 = (s.unnamed135___U2 + 1); - s.unnamed135___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed134___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C19663_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P19666_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 = 52; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.hn___21740 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___21740); - s.tmp_0 = control_EventHandler_register__P19664_mk(s); - s.tmp_0.arg0 = s.hn___21740; - s.callLocIdx = 53; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: - r0 = undefined; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P16512.info = {"start":5573,"length":525,"line":169,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} +Math_FastRandom_randomRange__P50913.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 control_EventContext_registerHandler__P16512_mk(s) { +function Math_FastRandom_randomRange__P50913_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P16512, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P50913, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1838,22 +1889,16 @@ function control_EventContext_registerHandler__P16512_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - h___21717: undefined, - unnamed134___U1: undefined, - unnamed135___U2: undefined, - hn___21740: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P19666(s) { +function Math_FastRandom_next__P50912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1865,41 +1910,53 @@ 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__C19663_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; + if (!checkSubtype(r0, Math_FastRandom__C50909_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lfsr"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["lfsr"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 & 1); + s.tmp_6 = r0; + r0 = (0 - s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_5 & 46080); + s.tmp_4 = r0; + r0 = (s.tmp_2 ^ s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P19666.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"]} +Math_FastRandom_next__P50912.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function control_EventHandler_constructor__P19666_mk(s) { +function Math_FastRandom_next__P50912_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P19666, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P50912, depth: s.depth + 1, pc: 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, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_register__P19664(s) { +function effects_ImageEffect_constructor__P51140(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1911,43 +1968,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C19663_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P21761); + if (!checkSubtype(r0, effects_ImageEffect__C51139_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C50909_VT); 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); + s.tmp_1 = Math_FastRandom_constructor__P50911_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1134; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); + r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); + r0 = (s.arg0).fields["times"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P19664.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +effects_ImageEffect_constructor__P51140.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 control_EventHandler_register__P19664_mk(s) { +function effects_ImageEffect_constructor__P51140_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P19664, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P51140, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P21761(s) { +function inline__P54181(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1957,45 +2018,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; + s.factory___54184 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C51068_VT); 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; + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); } else { - s.tmp_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.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 33; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_width_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 34; s.pc = 4; return s.tmp_3; } + } + case 4: + r0 = s.retval; + { step = 2; continue; } case 1: + r0 = 16; case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = particles_ConfettiFactory_constructor__P51069_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 35; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___54184 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P51045_mk(s); + s.tmp_0.arg0 = s.factory___54184; + s.tmp_0.arg1 = 30; + s.callLocIdx = 36; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C51001_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P51006_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___54184; + s.callLocIdx = 37; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -inline__P21761.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P54181.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 inline__P21761_mk(s) { +function inline__P54181_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21761, depth: s.depth + 1, + parent: s, fn: inline__P54181, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___54184: undefined, + arg0: undefined, + arg1: undefined, } } -function webcam_init__P32085(s) { +function particles_ParticleSource_constructor__P51006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2005,38 +2119,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.initialized___32079); + s.sources___54205 = undefined; + s.removedSource___54214 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P50185_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1010; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = particles_init__P52559_mk(s); + s.callLocIdx = 1011; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1012; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.sources___54205 = (r0); + r0 = pxsim_Array__length(s.sources___54205); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= globals.MAX_SOURCES___52536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_2 = particles_sortSources__P52562_mk(s); + s.tmp_2.arg0 = s.sources___54205; + s.callLocIdx = 1013; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.sources___54205, 0); + s.removedSource___54214 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P51016_mk(s); + s.tmp_0.arg0 = s.removedSource___54214; + s.callLocIdx = 1015; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_destroy__P51015_mk(s); + s.tmp_0.arg0 = s.removedSource___54214; + s.callLocIdx = 1016; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; case 1: case 2: - globals.initialized___32079 = (true); - s.tmp_0 = control_simmessages_onReceived__P16539_mk(s); - s.tmp_0.arg0 = globals.CHANNEL___32072; - s.tmp_0.arg1 = inline__P32096; - s.callLocIdx = 64; s.pc = 4; return s.tmp_0; - case 4: + r0 = (s.arg0).fields["pFlags"] = (0); + s.tmp_0 = particles_ParticleSource_setRate__P51018_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1017; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAcceleration__P51010_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 1018; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAnchor__P51017_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1019; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; + r0 = (s.arg0).fields["lifespan"] = (undefined); + r0 = (s.arg0).fields["_dt"] = (0); + r0 = (s.arg0).fields["priority"] = (0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: + r0 = globals.defaultFactory___51021; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = particles_ParticleSource_setFactory__P51020_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1020; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.sources___54205, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P51014_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1021; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -webcam_init__P32085.info = {"start":621,"length":321,"line":25,"column":4,"endLine":34,"endColumn":5,"fileName":"main.ts","functionName":"init","argumentNames":[]} +particles_ParticleSource_constructor__P51006.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function webcam_init__P32085_mk(s) { +function particles_ParticleSource_constructor__P51006_mk(s) { checkStack(s.depth); return { - parent: s, fn: webcam_init__P32085, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P51006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + sources___54205: undefined, + removedSource___54214: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function inline__P32096(s) { +function particles_particleSources__P52565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2046,32 +2252,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 = pxsim.image.ofBuffer(s.arg0); - globals.currentFrame___32081 = (r0); - r0 = pxsim.control.raiseEvent(4567, 1); - r0 = undefined; + s.sources___54642 = undefined; + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 1072; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["particleSources"]; + s.sources___54642 = (r0); + r0 = s.sources___54642; return leave(s, r0) default: oops() } } } -inline__P32096.info = {"start":757,"length":178,"line":29,"column":48,"endLine":33,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":["msg"]} +particles_particleSources__P52565.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function inline__P32096_mk(s) { +function particles_particleSources__P52565_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P32096, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P52565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + sources___54642: undefined, } } -function control_simmessages_onReceived__P16539(s) { +function particles_sortSources__P52562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2083,62 +2290,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } + s.tmp_0 = helpers_arraySort__P48426_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = inline__P54512; + s.callLocIdx = 1059; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(globals.handlers___19677); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtrt.mkMap(); - globals.handlers___19677 = (r0); - case 3: - case 4: - r0 = pxsim_pxtrt.mapSetGeneric(globals.handlers___19677, s.arg0, s.arg1); - s.tmp_0 = control_onEvent__P16498_mk(s); - s.tmp_0.arg0 = 2999; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = control_simmessages_consumeMessages__P19678; - s.tmp_0.arg3 = 16; - s.callLocIdx = 60; s.pc = 6; return s.tmp_0; - case 6: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -control_simmessages_onReceived__P16539.info = {"start":1063,"length":293,"line":32,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/base/controlmessage.ts","functionName":"onReceived","argumentNames":["channel","handler"]} +particles_sortSources__P52562.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function control_simmessages_onReceived__P16539_mk(s) { +function particles_sortSources__P52562_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_simmessages_onReceived__P16539, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P52562, depth: s.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_simmessages_consumeMessages__P19678(s) { +function inline__P54512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2148,72 +2327,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.channel___21674 = undefined; - s.msg___21679 = undefined; - s.handler___21682 = undefined; - case 1: - r0 = pxsim_numops_toBoolDecr(true); - if (!r0) { step = 8; continue; } - r0 = pxsim_pxtcore.peekMessageChannel(); - s.channel___21674 = (r0); - r0 = pxsim_numops_toBoolDecr(s.channel___21674); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["priority"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg1.fields["priority"]; + 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; } - { step = 8; continue; } - case 2: - case 3: - r0 = pxsim_pxtcore.readMessageData(); - s.msg___21679 = (r0); - s.tmp_0 = r0 = globals.handlers___19677; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 5; continue; } - case 4: - r0 = pxsim_pxtrt.mapGetGeneric(globals.handlers___19677, s.channel___21674); - case 5: + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_3 = r0; + r0 = s.arg1.fields["id"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + case 2: // jmp value (already in r0) - s.tmp_1 = r0; - s.handler___21682 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.handler___21682); - if (!r0) { step = 6; continue; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.handler___21682; - s.tmp_0.arg0 = s.msg___21679; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 59; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 6: - case 7: - { step = 1; continue; } - case 8: - r0 = undefined; + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -control_simmessages_consumeMessages__P19678.info = {"start":564,"length":414,"line":15,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/base/controlmessage.ts","functionName":"consumeMessages","argumentNames":[]} +inline__P54512.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} -function control_simmessages_consumeMessages__P19678_mk(s) { +function inline__P54512_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_simmessages_consumeMessages__P19678, depth: s.depth + 1, + parent: s, fn: inline__P54512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - channel___21674: undefined, - msg___21679: undefined, - handler___21682: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, + arg1: undefined, } } -function game_eventContext__P18651(s) { +function helpers_arraySort__P48426(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2223,30 +2386,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P20002_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 813; s.pc = 1; return s.tmp_0; + 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); + 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 = (inline__P54535); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P51803_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 = globals._scene___19994.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P18651.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +helpers_arraySort__P48426.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 game_eventContext__P18651_mk(s) { +function helpers_arraySort__P48426_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P18651, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P48426, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function game_init__P20002(s) { +function inline__P54535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2256,92 +2449,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.aIsUndef___54538 = undefined; + s.bIsUndef___54542 = undefined; + s.aIsNull___54553 = undefined; + s.bIsNull___54557 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___19994); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; + r0 = (s.arg0 === undefined); + s.aIsUndef___54538 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___54542 = (r0); + s.tmp_0 = r0 = s.aIsUndef___54538; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0; + r0 = s.bIsUndef___54542; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C18535_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P18556_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P16516_mk(s); - s.callLocIdx = 814; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___19994; - s.callLocIdx = 815; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - globals._scene___19994 = (s.tmp_3); + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } case 3: + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___54538); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } case 4: - s.tmp_0 = scene_Scene_init__P18557_mk(s); - s.tmp_0.arg0 = globals._scene___19994; - s.callLocIdx = 816; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___18646); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___54542); if (!r0) { step = 5; continue; } - globals.winEffect___18646 = (globals.confetti___18917); + r0 = -1; + { step = 17; continue; } case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___18647); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - globals.loseEffect___18647 = (globals.melt___18938); case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___19993); - 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 = 9; continue; } - globals.winSound___19993 = (globals.powerUp___17736); + r0 = (s.arg0 === null); + s.aIsNull___54553 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___54557 = (r0); + s.tmp_0 = r0 = s.aIsNull___54553; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } case 9: + r0 = s.bIsNull___54557; case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___19991); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 11; continue; } - globals.loseSound___19991 = (globals.wawawawaa___17733); + r0 = 0; + { step = 17; continue; } + { step = 16; continue; } case 11: + r0 = pxsim_numops_toBoolDecr(s.aIsNull___54553); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } case 12: - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.bIsNull___54557); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: + case 14: + case 15: + case 16: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 19: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: return leave(s, r0) default: oops() } } } -game_init__P20002.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +inline__P54535.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 game_init__P20002_mk(s) { +function inline__P54535_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P20002, depth: s.depth + 1, + parent: s, fn: inline__P54535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2349,14 +2570,21 @@ function game_init__P20002_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + aIsUndef___54538: undefined, + bIsUndef___54542: undefined, + aIsNull___54553: undefined, + bIsNull___54557: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P21841(s) { +function helpers_sortHelper__P51803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2366,87 +2594,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___21844 = undefined; - s.j___21852 = undefined; - s.x___21857 = undefined; - s.y___21863 = undefined; - s.c___21869 = undefined; + s.len___54592 = undefined; + s.i___54595 = undefined; + s.j___54601 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); + r0 = pxsim_Array__length(s.arg0); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.rounds___21844 = (r0); - s.j___21852 = (0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = (s.j___21852 < s.rounds___21844); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P18706_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg2 = r0; - s.callLocIdx = 45; s.pc = 3; return s.tmp_1; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.arg0; + { step = 11; continue; } case 3: - r0 = s.retval; - s.x___21857 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P18706_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - s.callLocIdx = 46; s.pc = 4; return s.tmp_0; case 4: - r0 = s.retval; - s.y___21863 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___21857, s.y___21863); - s.c___21869 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___21857; - r0 = (s.y___21863 + 1); + r0 = pxsim_Array__length(s.arg0); + s.len___54592 = (r0); + s.i___54595 = (0); + case 5: + s.tmp_1 = r0 = s.i___54595; + r0 = (s.len___54592 - 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___21869); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___21857; - r0 = (s.y___21863 + 2); + 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___54595 + 1); + s.j___54601 = (r0); + case 6: + r0 = (s.j___54601 < s.len___54592); + 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___54595); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___54601); + 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 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___21869); - r0 = (s.j___21852 + 1); - s.j___21852 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; + 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__P51802_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___54595; + s.tmp_4.arg2 = s.j___54601; + s.callLocIdx = 1; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = (s.j___54601 + 1); + s.j___54601 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___54595 + 1); + s.i___54595 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -inline__P21841.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +helpers_sortHelper__P51803.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 inline__P21841_mk(s) { +function helpers_sortHelper__P51803_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21841, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P51803, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___21844: undefined, - j___21852: undefined, - x___21857: undefined, - y___21863: undefined, - c___21869: undefined, + tmp_3: undefined, + tmp_4: undefined, + len___54592: undefined, + i___54595: undefined, + j___54601: undefined, arg0: undefined, arg1: undefined, } } @@ -2455,7 +2701,7 @@ function inline__P21841_mk(s) { -function Math_FastRandom_randomRange__P18706(s) { +function helpers_swap__P51802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2465,52 +2711,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___54630 = 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, Math_FastRandom__C18702_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__P18705_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 840; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg2 - s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 % s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___54630 = (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___54630); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P18706.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"]} +helpers_swap__P51802.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_FastRandom_randomRange__P18706_mk(s) { +function helpers_swap__P51802_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P18706, depth: s.depth + 1, + parent: s, fn: helpers_swap__P51802, depth: s.depth + 1, pc: 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, + temp___54630: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -2520,7 +2750,7 @@ function Math_FastRandom_randomRange__P18706_mk(s) { -function Math_FastRandom_next__P18705(s) { +function particles_init__P52559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2530,55 +2760,59 @@ 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, Math_FastRandom__C18702_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + s.scene___54647 = undefined; + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 1049; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.scene___54647 = (r0); + r0 = s.scene___54647.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___54647; + r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 & 1); - s.tmp_6 = r0; - r0 = (0 - s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_5 & 46080); - s.tmp_4 = r0; - r0 = (s.tmp_2 ^ s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); - r0 = s.tmp_1; + r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); + r0 = pxsim.control.millis(); + globals.lastUpdate___52554 = (r0); + s.tmp_0 = game_onUpdate__P50866_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P52560; + s.callLocIdx = 1050; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P50867_mk(s); + s.tmp_0.arg0 = 250; + s.tmp_0.arg1 = particles_pruneParticles__P52561; + s.callLocIdx = 1051; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P18705.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +particles_init__P52559.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function Math_FastRandom_next__P18705_mk(s) { +function particles_init__P52559_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P18705, depth: s.depth + 1, + parent: s, fn: particles_init__P52559, depth: s.depth + 1, pc: 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, + scene___54647: undefined, } } -function effects_ImageEffect_constructor__P18933(s) { +function particles_pruneParticles__P52561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2588,49 +2822,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C18932_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C18702_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P18704_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1133; s.pc = 1; return s.tmp_1; - case 1: + s.sources___54662 = undefined; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1055; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); - r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); - r0 = (s.arg0).fields["times"] = (undefined); + s.sources___54662 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___54662); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1 = helpers_arraySlice__P48436_mk(s); + s.tmp_1.arg0 = s.sources___54662; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___54662); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1056; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P54671; + s.callLocIdx = 1058; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P18933.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"]} +particles_pruneParticles__P52561.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function effects_ImageEffect_constructor__P18933_mk(s) { +function particles_pruneParticles__P52561_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P18933, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P52561, 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, + sources___54662: undefined, } } -function inline__P21949(s) { +function inline__P54671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2640,98 +2876,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___21952 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C18861_VT); - s.tmp_0 = r0; - s.tmp_2 = if_width_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 33; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 34; s.pc = 4; return s.tmp_3; } - } - case 4: - r0 = s.retval; - { step = 2; continue; } + s.tmp_0 = particles_ParticleSource__prune__P51009_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1057; s.pc = 1; return s.tmp_0; case 1: - r0 = 16; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P18862_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 35; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.factory___21952 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P18838_mk(s); - s.tmp_0.arg0 = s.factory___21952; - s.tmp_0.arg1 = 30; - s.callLocIdx = 36; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C18794_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P18799_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___21952; - s.callLocIdx = 37; s.pc = 7; return s.tmp_1; - case 7: r0 = s.retval; - r0 = s.tmp_0; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21949.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +inline__P54671.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P21949_mk(s) { +function inline__P54671_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21949, depth: s.depth + 1, + parent: s, fn: inline__P54671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - factory___21952: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_constructor__P18799(s) { +function particles_ParticleSource__prune__P51009(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2741,130 +2914,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___21973 = undefined; - s.removedSource___21982 = undefined; + s.scene___54459 = undefined; + s.sources___54467 = undefined; + s.current___54481 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P17978_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1009; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = particles_init__P20352_mk(s); - s.callLocIdx = 1010; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1011; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.sources___21973 = (r0); - r0 = pxsim_Array__length(s.sources___21973); - s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___20329); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P20355_mk(s); - s.tmp_2.arg0 = s.sources___21973; - s.callLocIdx = 1012; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___21973, 0); - s.removedSource___21982 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P18809_mk(s); - s.tmp_0.arg0 = s.removedSource___21982; - s.callLocIdx = 1014; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P18808_mk(s); - s.tmp_0.arg0 = s.removedSource___21982; - s.callLocIdx = 1015; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); case 1: - case 2: - r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P18811_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1016; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P18803_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.callLocIdx = 1017; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P18810_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1018; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = (s.arg0).fields["lifespan"] = (undefined); - r0 = (s.arg0).fields["_dt"] = (0); - r0 = (s.arg0).fields["priority"] = (0); - s.tmp_0 = r0 = s.arg3; + r0 = s.arg0.fields["head"]; + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } + if (r0) { step = 2; continue; } r0 = s.tmp_0; - { step = 4; continue; } + { 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: - r0 = globals.defaultFactory___18814; + // 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: + r0 = s.arg0.fields["pFlags"]; + 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__P50855_mk(s); + s.callLocIdx = 1030; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + s.scene___54459 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___54459); + if (!r0) { step = 7; continue; } + r0 = s.scene___54459.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + case 7: + case 8: + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1031; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.sources___54467 = (r0); + s.tmp_0 = r0 = s.sources___54467; + 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___54467); + case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P18813_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1019; s.pc = 14; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + r0 = pxsim_Array_.removeElement(s.sources___54467, 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.retval; - r0 = pxsim_Array__push(s.sources___21973, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P18807_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1020; s.pc = 15; return s.tmp_0; + r0 = s.arg0.fields["head"]; + s.current___54481 = (r0); case 15: - r0 = s.retval; + s.tmp_0 = r0 = s.current___54481; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___54481.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___54481.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___54481.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___54481).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___54481.fields["next"]; + s.current___54481 = (r0); + case 19: + { step = 15; continue; } + case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P18799.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +particles_ParticleSource__prune__P51009.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function particles_ParticleSource_constructor__P18799_mk(s) { +function particles_ParticleSource__prune__P51009_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P18799, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P51009, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___21973: undefined, - removedSource___21982: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___54459: undefined, + sources___54467: undefined, + current___54481: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_particleSources__P20358(s) { +function helpers_arraySlice__P48436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2874,33 +3072,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___22410 = undefined; - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 1071; s.pc = 1; return s.tmp_0; + s.res___54678 = undefined; + s.len___54680 = undefined; + s.i___54714 = 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___54678 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___54680 = (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; } 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__P48450_mk(s); + r0 = (s.len___54680 + 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; - r0 = r0.fields["particleSources"]; - s.sources___22410 = (r0); - r0 = s.sources___22410; + s.arg1 = (r0); + case 2: + case 3: + case 4: + r0 = (s.arg1 > s.len___54680); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___54678; + { 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___54680); + { 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___54680 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___54680); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___54680); + case 11: + case 12: + s.i___54714 = (s.arg1); + case 13: + r0 = (s.i___54714 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___54678; + r0 = pxsim_Array__getAt(s.arg0, s.i___54714); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___54714 + 1); + s.i___54714 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___54678; + case 15: return leave(s, r0) default: oops() } } } -particles_particleSources__P20358.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +helpers_arraySlice__P48436.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 particles_particleSources__P20358_mk(s) { +function helpers_arraySlice__P48436_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P20358, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P48436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___22410: undefined, + tmp_1: undefined, + tmp_2: undefined, + res___54678: undefined, + len___54680: undefined, + i___54714: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function particles_sortSources__P20355(s) { +function Math_max__P48450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2912,34 +3191,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P16219_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P22280; - s.callLocIdx = 1058; s.pc = 1; return s.tmp_0; + 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: - r0 = s.retval; - r0 = undefined; + case 2: + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -particles_sortSources__P20355.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +Math_max__P48450.info = {"start":16099,"length":105,"line":542,"column":4,"endLine":545,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function particles_sortSources__P20355_mk(s) { +function Math_max__P48450_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P20355, depth: s.depth + 1, + parent: s, fn: Math_max__P48450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P22280(s) { +function helpers_arrayForEach__P48430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2949,47 +3233,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___54738 = undefined; + s.i___54741 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["priority"]; - s.tmp_1 = r0; - r0 = s.arg1.fields["priority"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__length(s.arg0); + s.len___54738 = (r0); + s.i___54741 = (0); case 1: - r0 = s.arg0.fields["id"]; - s.tmp_3 = r0; - r0 = s.arg1.fields["id"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + r0 = (s.i___54741 < s.len___54738); + 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___54741); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___54741; + 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___54741 + 1); + s.i___54741 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22280.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +helpers_arrayForEach__P48430.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 inline__P22280_mk(s) { +function helpers_arrayForEach__P48430_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22280, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P48430, depth: s.depth + 1, pc: 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, + len___54738: undefined, + i___54741: undefined, arg0: undefined, arg1: undefined, } } @@ -2998,7 +3284,7 @@ function inline__P22280_mk(s) { -function helpers_arraySort__P16219(s) { +function particles_updateParticles__P52560(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3008,60 +3294,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 = pxsim_numops_toBoolDecr(s.arg1); + s.sources___55140 = undefined; + s.time___55147 = undefined; + s.dt___55150 = undefined; + s.i___55156 = undefined; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1052; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sources___55140 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___55140); 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; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; 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 = (inline__P22303); + s.tmp_2 = particles_sortSources__P52562_mk(s); + s.tmp_2.arg0 = s.sources___55140; + s.callLocIdx = 1053; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.time___55147 = (r0); + r0 = (s.time___55147 - globals.lastUpdate___52554); + s.dt___55150 = (r0); + globals.lastUpdate___52554 = (s.time___55147); + s.i___55156 = (0); case 3: + s.tmp_1 = r0 = s.i___55156; + r0 = pxsim_Array__length(s.sources___55140); + 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__P51008_mk(s); + r0 = pxsim_Array__getAt(s.sources___55140, s.i___55156); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.dt___55150; + s.callLocIdx = 1054; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___55156 + 1); + s.i___55156 = (r0); + { step = 3; continue; } case 4: - s.tmp_0 = helpers_sortHelper__P19596_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() } } } -helpers_arraySort__P16219.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"]} +particles_updateParticles__P52560.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function helpers_arraySort__P16219_mk(s) { +function particles_updateParticles__P52560_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P16219, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P52560, depth: s.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, + sources___55140: undefined, + time___55147: undefined, + dt___55150: undefined, + i___55156: undefined, } } -function inline__P22303(s) { +function particles_ParticleSource__update__P51008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3071,120 +3378,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___22306 = undefined; - s.bIsUndef___22310 = undefined; - s.aIsNull___22321 = undefined; - s.bIsNull___22325 = undefined; + s.p___55219 = undefined; + s.current___55238 = undefined; + s.fixedDt___55246 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 === undefined); - s.aIsUndef___22306 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___22310 = (r0); - s.tmp_0 = r0 = s.aIsUndef___22306; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.bIsUndef___22310; - 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; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timer"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["lifespan"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = particles_ParticleSource_destroy__P51015_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1025; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + case 1: + case 2: + { step = 10; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___22306); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___22310); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } + s.tmp_2 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1026; s.pc = 29; return s.tmp_2; } + } + case 29: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 6; continue; } + r0 = s.tmp_3; + { step = 7; continue; } case 6: + s.tmp_5 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1027; s.pc = 30; return s.tmp_5; } + } + case 30: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 2); case 7: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 8; continue; } + r0 = (s.arg0).fields["lifespan"] = (750); case 8: - r0 = (s.arg0 === null); - s.aIsNull___22321 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___22325 = (r0); - s.tmp_0 = r0 = s.aIsNull___22321; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } case 9: - r0 = s.bIsNull___22325; 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___22321); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } + r0 = s.arg0.fields["timer"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 12; continue; } + r0 = s.tmp_0; + { step = 13; continue; } case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___22325); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } + s.tmp_2 = particles_ParticleSource_enabled__P51013_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1028; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; case 13: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 16; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.tmp_4.fields["timer"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["period"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); + s.tmp_0 = particles_ParticleFactory__C51037_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__C51037_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___55219 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___55219); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + { step = 11; continue; } case 14: case 15: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = (s.p___55219).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___55219); + { step = 11; continue; } case 16: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + { step = 27; continue; } + case 17: case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + r0 = s.arg0.fields["head"]; + s.current___55238 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["_dt"]; 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) + ""; } + r0 = (s.tmp_2 + s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); + r0 = s.arg0.fields["_dt"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.fixedDt___55246 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___55246); + if (!r0) { step = 23; continue; } case 19: + r0 = s.current___55238.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___55238; + 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__C51001_v4_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.current___55238; + s.tmp_0.arg2 = s.fixedDt___55246; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C51001_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; - 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: + case 20: + case 21: + r0 = s.current___55238.fields["next"]; + s.tmp_0 = r0; + s.current___55238 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + { step = 19; continue; } + case 22: + r0 = (s.arg0).fields["_dt"] = (0); + { step = 26; continue; } + case 23: + case 24: + s.tmp_0 = r0 = s.current___55238; + 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___55238.fields["next"]; + s.tmp_0 = r0; + s.current___55238 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + { step = 24; continue; } + case 25: + case 26: + case 27: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22303.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"]} +particles_ParticleSource__update__P51008.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function inline__P22303_mk(s) { +function particles_ParticleSource__update__P51008_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22303, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P51008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3194,10 +3626,9 @@ function inline__P22303_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___22306: undefined, - bIsUndef___22310: undefined, - aIsNull___22321: undefined, - bIsNull___22325: undefined, + p___55219: undefined, + current___55238: undefined, + fixedDt___55246: undefined, arg0: undefined, arg1: undefined, } } @@ -3206,7 +3637,7 @@ function inline__P22303_mk(s) { -function helpers_sortHelper__P19596(s) { +function particles_ParticleSource_updateParticle__P52556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3216,114 +3647,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___22360 = undefined; - s.i___22363 = undefined; - s.j___22369 = 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.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + r0 = (s.arg2 >> 10); + s.arg2 = (r0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vx"]; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) + r0 = s.arg0.fields["ax"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___22360 = (r0); - s.i___22363 = (0); - case 5: - s.tmp_1 = r0 = s.i___22363; - r0 = (s.len___22360 - 1); + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vy"]; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = (s.i___22363 + 1); - s.j___22369 = (r0); - case 6: - r0 = (s.j___22369 < s.len___22360); - 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___22363); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___22369); - 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["ay"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); + r0 = s.arg1.fields["vx"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P19595_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___22363; - s.tmp_4.arg2 = s.j___22369; - s.callLocIdx = 1; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = (s.j___22369 + 1); - s.j___22369 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___22363 + 1); - s.i___22363 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vy"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_sortHelper__P19596.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"]} +particles_ParticleSource_updateParticle__P52556.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} -function helpers_sortHelper__P19596_mk(s) { +function particles_ParticleSource_updateParticle__P52556_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P19596, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P52556, depth: s.depth + 1, pc: 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___22360: undefined, - i___22363: undefined, - j___22369: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function helpers_swap__P19595(s) { +function Fx_rightShift__P48489(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3333,46 +3741,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___22398 = 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___22398 = (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___22398); - r0 = undefined; + r0 = (s.arg0 >> s.arg1); return leave(s, r0) default: oops() } } } -helpers_swap__P19595.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"]} +Fx_rightShift__P48489.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} -function helpers_swap__P19595_mk(s) { +function Fx_rightShift__P48489_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P19595, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P48489, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - temp___22398: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function particles_init__P20352(s) { +function Fx_mul__P48480(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3382,59 +3775,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___22415 = undefined; - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 1048; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.scene___22415 = (r0); - r0 = s.scene___22415.fields["particleSources"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim.Math_.imul(s.arg0, s.arg1); 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___22415; - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); - r0 = pxsim.control.millis(); - globals.lastUpdate___20347 = (r0); - s.tmp_0 = game_onUpdate__P18659_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P20353; - s.callLocIdx = 1049; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P18660_mk(s); - s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P20354; - s.callLocIdx = 1050; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: - r0 = undefined; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -particles_init__P20352.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +Fx_mul__P48480.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 particles_init__P20352_mk(s) { +function Fx_mul__P48480_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P20352, depth: s.depth + 1, + parent: s, fn: Fx_mul__P48480, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - scene___22415: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_pruneParticles__P20354(s) { +function Fx_add__P48477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3444,51 +3812,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___22430 = undefined; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1054; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___22430 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___22430); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1 = helpers_arraySlice__P16229_mk(s); - s.tmp_1.arg0 = s.sources___22430; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___22430); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1055; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P22439; - s.callLocIdx = 1057; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -particles_pruneParticles__P20354.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +Fx_add__P48477.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 particles_pruneParticles__P20354_mk(s) { +function Fx_add__P48477_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P20354, depth: s.depth + 1, + parent: s, fn: Fx_add__P48477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - sources___22430: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P22439(s) { +function particles_ParticleFactory_createParticle__P51039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3498,35 +3846,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___55343 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P18802_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1056; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleFactory__C51037_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C50982_VT); + s.p___55343 = (r0); + s.tmp_0 = r0 = s.p___55343; + s.tmp_3 = if_x_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1079; s.pc = 1; return s.tmp_3; } + } case 1: r0 = s.retval; - r0 = 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["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___55343; + s.tmp_3 = if_y_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1081; s.pc = 2; return s.tmp_3; } + } + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.p___55343).fields["vx"] = (0); + r0 = (s.p___55343).fields["vy"] = (0); + r0 = (s.p___55343).fields["lifespan"] = (500); + r0 = s.p___55343; return leave(s, r0) default: oops() } } } -inline__P22439.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_ParticleFactory_createParticle__P51039.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 inline__P22439_mk(s) { +function particles_ParticleFactory_createParticle__P51039_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22439, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P51039, depth: s.depth + 1, pc: 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___55343: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource__prune__P18802(s) { +function game_onUpdateInterval__P50867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3536,155 +3932,79 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___22227 = undefined; - s.sources___22235 = undefined; - s.current___22249 = undefined; + s.timer___54762 = 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__C18794_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; + s.tmp_0 = game_init__P52209_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 833; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = (s.arg0 < 0); 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) 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; } + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: case 4: - r0 = s.arg0.fields["pFlags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = pxsim_pxtrt.mklocRef(); + s.timer___54762 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___54762, 0); + r0 = pxsim_pxtcore_mkAction(3, inline__P54766); 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__P18648_mk(s); - s.callLocIdx = 1029; s.pc = 21; return s.tmp_5; - case 21: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___54762); + 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__P48717_mk(s); + s.tmp_2 = game_eventContext__P50858_mk(s); + s.callLocIdx = 834; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; - s.scene___22227 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___22227); - if (!r0) { step = 7; continue; } - r0 = s.scene___22227.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 19; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 838; s.pc = 7; return s.tmp_1; case 7: - case 8: - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1030; s.pc = 22; return s.tmp_0; - case 22: r0 = s.retval; - s.sources___22235 = (r0); - s.tmp_0 = r0 = s.sources___22235; - 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___22235); - 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___22235, 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___22249 = (r0); - case 15: - s.tmp_0 = r0 = s.current___22249; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___22249.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___22249.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___22249.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___22249).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___22249.fields["next"]; - s.current___22249 = (r0); - case 19: - { step = 15; continue; } - case 20: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P18802.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +game_onUpdateInterval__P50867.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function particles_ParticleSource__prune__P18802_mk(s) { +function game_onUpdateInterval__P50867_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P18802, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P50867, depth: s.depth + 1, pc: 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___22227: undefined, - sources___22235: undefined, - current___22249: undefined, + timer___54762: undefined, arg0: undefined, + arg1: undefined, } } -function helpers_arraySlice__P16229(s) { +function inline__P54766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3694,114 +4014,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___22446 = undefined; - s.len___22448 = undefined; - s.i___22482 = 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___22446 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___22448 = (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; } - 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__P16243_mk(s); - r0 = (s.len___22448 + 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: + s.time___54767 = undefined; + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 835; s.pc = 3; return s.tmp_1; case 3: - case 4: - r0 = (s.arg1 > s.len___22448); + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___22446; - { step = 15; continue; } - case 5: - case 6: - r0 = (s.arg2 === undefined); + r0 = s.tmp_0.fields["_millis"]; + s.time___54767 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___22448); - { 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___22448 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___22448); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___22448); - case 11: - case 12: - s.i___22482 = (s.arg1); - case 13: - r0 = (s.i___22482 < s.arg2); + r0 = (s.tmp_1 <= s.time___54767); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___22446; - r0 = pxsim_Array__getAt(s.arg0, s.i___22482); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___22482 + 1); - s.i___22482 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___22446; - case 15: + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.caps[0]; + r0 = (s.time___54767 + s.caps[1]); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.caps[2]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 837; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySlice__P16229.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"]} +inline__P54766.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function helpers_arraySlice__P16229_mk(s) { +function inline__P54766_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P16229, depth: s.depth + 1, + parent: s, fn: inline__P54766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___22446: undefined, - len___22448: undefined, - i___22482: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_3: undefined, + time___54767: undefined, } } -function Math_max__P16243(s) { +function scene_Scene_millis__P50766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3813,39 +4074,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; } - case 1: - case 2: - r0 = s.arg1; - case 3: + if (!checkSubtype(r0, scene_Scene__C50742_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -Math_max__P16243.info = {"start":16099,"length":105,"line":542,"column":4,"endLine":545,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} +scene_Scene_millis__P50766.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function Math_max__P16243_mk(s) { +function scene_Scene_millis__P50766_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P16243, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P50766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arrayForEach__P16223(s) { +function particles_SprayFactory_constructor__P51042(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3855,58 +4106,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___22506 = undefined; - s.i___22509 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.len___22506 = (r0); - s.i___22509 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C51041_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P52580_mk(s); + s.callLocIdx = 1086; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___22509 < s.len___22506); - 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___22509); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___22509; - 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___22509 + 1); - s.i___22509 = (r0); - { step = 1; continue; } + s.tmp_0 = particles_SprayFactory_setSpeed__P51045_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1087; s.pc = 2; return s.tmp_0; case 2: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setDirection__P51046_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 1088; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P16223.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"]} +particles_SprayFactory_constructor__P51042.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 helpers_arrayForEach__P16223_mk(s) { +function particles_SprayFactory_constructor__P51042_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P16223, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P51042, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - len___22506: undefined, - i___22509: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function particles_updateParticles__P20353(s) { +function particles_initTrig__P52580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3916,81 +4165,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___22908 = undefined; - s.time___22915 = undefined; - s.dt___22918 = undefined; - s.i___22924 = undefined; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1051; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sources___22908 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___22908); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___52566); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.tmp_2 = particles_sortSources__P20355_mk(s); - s.tmp_2.arg0 = s.sources___22908; - s.callLocIdx = 1052; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim.control.millis(); - s.time___22915 = (r0); - r0 = (s.time___22915 - globals.lastUpdate___20347); - s.dt___22918 = (r0); - globals.lastUpdate___20347 = (s.time___22915); - s.i___22924 = (0); + s.tmp_2 = particles_cacheSin__P51035_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1074; s.pc = 3; return s.tmp_2; case 3: - s.tmp_1 = r0 = s.i___22924; - r0 = pxsim_Array__length(s.sources___22908); - 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__P18801_mk(s); - r0 = pxsim_Array__getAt(s.sources___22908, s.i___22924); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___22918; - s.callLocIdx = 1053; s.pc = 8; return s.tmp_3; - case 8: r0 = s.retval; - r0 = (s.i___22924 + 1); - s.i___22924 = (r0); - { step = 3; continue; } + globals.cachedSin___52566 = (r0); + s.tmp_0 = particles_cacheCos__P51036_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1075; s.pc = 4; return s.tmp_0; case 4: - case 5: + r0 = s.retval; + globals.cachedCos___52567 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_updateParticles__P20353.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_initTrig__P52580.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function particles_updateParticles__P20353_mk(s) { +function particles_initTrig__P52580_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P20353, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P52580, depth: s.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___22908: undefined, - time___22915: undefined, - dt___22918: undefined, - i___22924: undefined, } } -function particles_ParticleSource__update__P18801(s) { +function particles_cacheCos__P51036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4000,245 +4215,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22987 = undefined; - s.current___23006 = undefined; - s.fixedDt___23014 = undefined; + s.cos___54337 = undefined; + s.anglePerSlice___54339 = undefined; + s.i___54345 = 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__C18794_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timer"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = pxsim_Array__mk(); + s.cos___54337 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___54339 = (r0); + s.i___54345 = (0); + case 1: + r0 = (s.i___54345 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["lifespan"]; + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___54337; + r0 = (s.i___54345 * s.anglePerSlice___54339); s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); + r0 = pxsim.Math_.cos(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + r0 = (s.tmp_3 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___54345 + 1); + s.i___54345 = (r0); + { step = 1; continue; } + case 2: + r0 = s.cos___54337; + return leave(s, r0) + default: oops() +} } } +particles_cacheCos__P51036.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__P51036_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_cacheCos__P51036, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + cos___54337: undefined, + anglePerSlice___54339: undefined, + i___54345: undefined, + arg0: undefined, +} } + + + + + +function particles_cacheSin__P51035(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.sin___54363 = undefined; + s.anglePerSlice___54365 = undefined; + s.i___54371 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.sin___54363 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___54365 = (r0); + s.i___54371 = (0); + case 1: + r0 = (s.i___54371 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P18808_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1024; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 1: + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___54363; + r0 = (s.i___54371 * s.anglePerSlice___54365); + s.tmp_4 = r0; + r0 = pxsim.Math_.sin(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___54371 + 1); + s.i___54371 = (r0); + { step = 1; continue; } case 2: - { step = 10; continue; } - case 3: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - s.tmp_2 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1025; s.pc = 29; return s.tmp_2; } - } - case 29: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 6; continue; } - r0 = s.tmp_3; - { step = 7; continue; } - case 6: - s.tmp_5 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1026; s.pc = 30; return s.tmp_5; } - } - case 30: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 2); - case 7: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 8; continue; } - r0 = (s.arg0).fields["lifespan"] = (750); - case 8: - case 9: - case 10: - case 11: - r0 = s.arg0.fields["timer"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 12; continue; } - r0 = s.tmp_0; - { step = 13; continue; } - case 12: - s.tmp_2 = particles_ParticleSource_enabled__P18806_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1027; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; - case 13: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 16; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.tmp_4.fields["timer"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["period"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C18830_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__C18830_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___22987 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___22987); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - { step = 11; continue; } - case 14: - case 15: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = (s.p___22987).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___22987); - { step = 11; continue; } - case 16: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - { step = 27; continue; } - case 17: - case 18: - r0 = s.arg0.fields["head"]; - s.current___23006 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["_dt"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); - r0 = s.arg0.fields["_dt"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.fixedDt___23014 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___23014); - if (!r0) { step = 23; continue; } - case 19: - r0 = s.current___23006.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___23006; - 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__C18794_v4_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___23006; - s.tmp_0.arg2 = s.fixedDt___23014; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C18794_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___23006.fields["next"]; - s.tmp_0 = r0; - s.current___23006 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - { step = 19; continue; } - case 22: - r0 = (s.arg0).fields["_dt"] = (0); - { step = 26; continue; } - case 23: - case 24: - s.tmp_0 = r0 = s.current___23006; - 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___23006.fields["next"]; - s.tmp_0 = r0; - s.current___23006 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - { step = 24; continue; } - case 25: - case 26: - case 27: - r0 = undefined; + r0 = s.sin___54363; return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P18801.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +particles_cacheSin__P51035.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_ParticleSource__update__P18801_mk(s) { +function particles_cacheSin__P51035_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P18801, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P51035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4246,20 +4331,17 @@ function particles_ParticleSource__update__P18801_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - p___22987: undefined, - current___23006: undefined, - fixedDt___23014: undefined, + sin___54363: undefined, + anglePerSlice___54365: undefined, + i___54371: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_updateParticle__P20349(s) { +function particles_SprayFactory_setDirection__P51046(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4276,67 +4358,45 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - r0 = (s.arg2 >> 10); - s.arg2 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vx"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ax"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + if (!checkSubtype(r0, particles_SprayFactory__C51041_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P52585_mk(s); + s.tmp_5 = r0 = s.arg1; + r0 = (s.arg2 >> 1); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4.arg0 = r0; + s.callLocIdx = 1096; s.pc = 1; return s.tmp_4; + case 1: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vy"]; + r0 = (s.tmp_3 / globals.angleSlice___52579); s.tmp_2 = r0; - r0 = s.arg0.fields["ay"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vx"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P52585_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1097; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; + r0 = (s.tmp_3 / globals.angleSlice___52579); s.tmp_2 = r0; - r0 = s.arg1.fields["vy"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P20349.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +particles_SprayFactory_setDirection__P51046.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_ParticleSource_updateParticle__P20349_mk(s) { +function particles_SprayFactory_setDirection__P51046_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P20349, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P51046, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4344,6 +4404,7 @@ function particles_ParticleSource_updateParticle__P20349_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -4353,7 +4414,7 @@ function particles_ParticleSource_updateParticle__P20349_mk(s) { -function Fx_rightShift__P16282(s) { +function particles_toRadians__P52585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4365,29 +4426,50 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 >> s.arg1); + r0 = (s.arg0 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = Math_abs__P48448_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1078; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 % 360); + s.tmp_1 = r0; + r0 = (360 - s.tmp_1); + s.arg0 = (r0); + { step = 2; continue; } + case 1: + r0 = (s.arg0 % 360); + s.arg0 = (r0); + case 2: + r0 = (s.arg0 * 0.017453292519943295); return leave(s, r0) default: oops() } } } -Fx_rightShift__P16282.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +particles_toRadians__P52585.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function Fx_rightShift__P16282_mk(s) { +function particles_toRadians__P52585_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P16282, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P52585, depth: s.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 Fx_mul__P16273(s) { +function particles_ParticleFactory_constructor__P51038(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4399,32 +4481,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - 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, particles_ParticleFactory__C51037_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P16273.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +particles_ParticleFactory_constructor__P51038.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function Fx_mul__P16273_mk(s) { +function particles_ParticleFactory_constructor__P51038_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P16273, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P51038, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function Fx_add__P16270(s) { +function particles_ParticleSource_setFactory__P51020(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4439,16 +4518,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 + s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_factory"] = (s.arg1); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_add__P16270.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +particles_ParticleSource_setFactory__P51020.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function Fx_add__P16270_mk(s) { +function particles_ParticleSource_setFactory__P51020_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P16270, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P51020, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -4458,7 +4544,7 @@ function Fx_add__P16270_mk(s) { -function particles_ParticleFactory_createParticle__P18832(s) { +function particles_ParticleSource_setRate__P51018(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4468,74 +4554,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___23111 = 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__C18830_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C18775_VT); - s.p___23111 = (r0); - s.tmp_0 = r0 = s.p___23111; - s.tmp_3 = if_x_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1078; s.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___23111; - s.tmp_3 = if_y_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1080; s.pc = 2; return s.tmp_3; } - } - case 2: - r0 = s.retval; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = pxsim.Math_.ceil(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___23111).fields["vx"] = (0); - r0 = (s.p___23111).fields["vy"] = (0); - r0 = (s.p___23111).fields["lifespan"] = (500); - r0 = s.p___23111; + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P18832.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_ParticleSource_setRate__P51018.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function particles_ParticleFactory_createParticle__P18832_mk(s) { +function particles_ParticleSource_setRate__P51018_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P18832, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P51018, depth: s.depth + 1, pc: 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___23111: undefined, arg0: undefined, arg1: undefined, } } @@ -4544,7 +4590,7 @@ function particles_ParticleFactory_createParticle__P18832_mk(s) { -function game_onUpdateInterval__P18660(s) { +function particles_ParticleSource_setAnchor__P51017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4554,70 +4600,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___22530 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P20002_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 832; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg0 < 0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_pxtrt.mklocRef(); - s.timer___22530 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___22530, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P22534); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___22530); - 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__P16510_mk(s); - s.tmp_2 = game_eventContext__P18651_mk(s); - s.callLocIdx = 833; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 19; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 837; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - case 5: + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P18660.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +particles_ParticleSource_setAnchor__P51017.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function game_onUpdateInterval__P18660_mk(s) { +function particles_ParticleSource_setAnchor__P51017_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P18660, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P51017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - timer___22530: undefined, arg0: undefined, arg1: undefined, } } @@ -4626,7 +4627,7 @@ function game_onUpdateInterval__P18660_mk(s) { -function inline__P22534(s) { +function particles_ParticleSource_clear__P51016(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4636,55 +4637,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___22535 = undefined; - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 834; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___22535 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___22535); - 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___22535 + s.caps[1]); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.caps[2]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 836; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 1: - case 2: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22534.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_clear__P51016.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function inline__P22534_mk(s) { +function particles_ParticleSource_clear__P51016_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22534, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P51016, depth: s.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___22535: undefined, + arg0: undefined, } } -function scene_Scene_millis__P18559(s) { +function particles_ParticleSource_destroy__P51015(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4699,18 +4677,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P51014_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1035; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_0 = particles_ParticleSource__prune__P51009_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1036; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_millis__P18559.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +particles_ParticleSource_destroy__P51015.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function scene_Scene_millis__P18559_mk(s) { +function particles_ParticleSource_destroy__P51015_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P18559, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P51015, 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, } } @@ -4718,7 +4716,7 @@ function scene_Scene_millis__P18559_mk(s) { -function control_EventContext_registerFrameHandler__P16510(s) { +function particles_ParticleSource_enabled__P51014(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4728,84 +4726,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___22562 = undefined; - s.i___22571 = 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, control_EventContext__C16502_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P51013_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1034; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 !== s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = s.arg0.fields["pFlags"]; s.tmp_4 = r0; - r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P19669_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 51; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + 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: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C16499_VT); - s.fn___22562 = (r0); - r0 = (s.fn___22562).fields["order"] = (s.arg1); - r0 = (s.fn___22562).fields["handler"] = (s.arg2); - s.i___22571 = (0); - case 3: - s.tmp_1 = r0 = s.i___22571; - 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"]; + // jmp value (already in r0) s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___22571); - 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___22571, s.fn___22562); - r0 = s.fn___22562; - { step = 7; continue; } + r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); + r0 = (s.arg0).fields["timer"] = (0); + case 3: case 4: - case 5: - r0 = (s.i___22571 + 1); - s.i___22571 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___22562); - r0 = s.fn___22562; - case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P16510.info = {"start":4675,"length":643,"line":143,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} +particles_ParticleSource_enabled__P51014.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} -function control_EventContext_registerFrameHandler__P16510_mk(s) { +function particles_ParticleSource_enabled__P51014_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P16510, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P51014, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4814,19 +4779,15 @@ function control_EventContext_registerFrameHandler__P16510_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - fn___22562: undefined, - i___22571: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_EventContext_registerFrameCallbacks__P19669(s) { +function particles_ParticleSource_enabled__P51013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4836,47 +4797,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___22605 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C16502_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; + if (!checkSubtype(r0, particles_ParticleSource__C51001_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_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_Boolean__bang(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___22605 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P22611); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___22605); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 3: - r0 = undefined; - return leave(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P19669.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +particles_ParticleSource_enabled__P51013.info = {"start":6605,"length":76,"line":215,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} +particles_ParticleSource_enabled__P51013.isGetter = true; -function control_EventContext_registerFrameCallbacks__P19669_mk(s) { +function particles_ParticleSource_enabled__P51013_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P19669, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P51013, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___22605: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -4884,7 +4837,7 @@ function control_EventContext_registerFrameCallbacks__P19669_mk(s) { -function inline__P22611(s) { +function particles_ParticleSource_setAcceleration__P51010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4894,73 +4847,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___22641 = 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, inline__P22617); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C51001_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 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P16474_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 45; 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(); + r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["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__P19668_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 46; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___22641 = (r0); - s.tmp_0 = pause__P16520_mk(s); - s.tmp_0.arg0 = s.delay___22641; - s.callLocIdx = 47; 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 = (s.tmp_0).fields["ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22611.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_setAcceleration__P51010.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function inline__P22611_mk(s) { +function particles_ParticleSource_setAcceleration__P51010_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22611, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P51010, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___22641: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P22617(s) { +function sprites_BaseSprite_constructor__P50185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4970,30 +4900,51 @@ 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); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P50188_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; + s.tmp_0 = scene_Scene_addSprite__P50767_mk(s); + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 129; 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 = 130; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22617.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +sprites_BaseSprite_constructor__P50185.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 inline__P22617_mk(s) { +function sprites_BaseSprite_constructor__P50185_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22617, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P50185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_runCallbacks__P19668(s) { +function scene_Scene_addSprite__P50767(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5003,264 +4954,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___22650 = undefined; - s.f___22663 = undefined; - s.unnamed128___U2 = undefined; - s.unnamed129___U3 = undefined; - s.runtime___22668 = undefined; - s.fps___22688 = undefined; - s.delay___22750 = 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__C16502_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___22650 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___22650 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___22650); - s.f___22663 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed128___U2 = (r0); - s.unnamed129___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed129___U3; - r0 = pxsim_Array__length(s.unnamed128___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed128___U2, s.unnamed129___U3); - s.f___22663 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___22663; - 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 = 13; 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 = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 13; return s.tmp_2;; } - else { s.callLocIdx = 42; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - r0 = (s.unnamed129___U3 + 1); - s.unnamed129___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed128___U2 = (undefined); - r0 = pxsim.control.millis(); + if (!checkSubtype(r0, scene_Scene__C50742_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___22650); - s.runtime___22668 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___22668); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); + r0 = pxsim_Array__push(s.tmp_0, s.arg1); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["framesInSample"]; + r0 = s.tmp_0.fields["spriteNextId"]; 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 = 11; continue; } - r0 = s.arg0.fields["framesInSample"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 / 1000); - s.tmp_5 = r0; - r0 = (s.tmp_4 / s.tmp_5); - s.fps___22688 = (r0); - r0 = pxsim.Math_.round(s.fps___22688); - s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 14: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___16504 = (r0); - r0 = (s.fps___22688 < 99); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___16504) && (globals.control_EventContext_lastStats___16504).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___16504); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___16504) + ""; } - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.fps___22688 * 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, 16); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 16: - 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, 17); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 17: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___16504 = (r0); - case 5: - case 6: - s.tmp_2 = control_ramSize__P16453_mk(s); - s.callLocIdx = 43; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 2000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = pxsim.control.profilingEnabled(); - case 8: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_8 = r0; - r0 = (s.fps___22688 * 100); - s.tmp_11 = r0; - r0 = (s.tmp_11 | 0); - s.tmp_10 = r0; - if ((s.tmp_10) && (s.tmp_10).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.tmp_10); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_10) + ""; } - case 19: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); - s.tmp_6 = r0; - r0 = s.arg0.fields["framesInSample"]; - s.tmp_13 = r0; - if ((s.tmp_13) && (s.tmp_13).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.tmp_13); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_13) + ""; } - case 20: - r0 = s.retval; - s.tmp_12 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, " frames"); - s.tmp_4 = r0; - r0 = pxsim.control.dmesg(s.tmp_4); - r0 = pxsim.control.gc(); - r0 = pxsim_pxtcore.dumpPerfCounters(); - case 9: - case 10: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 11: - case 12: - s.tmp_0 = Math_max__P16243_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___22668); - s.tmp_0.arg1 = r0; - s.callLocIdx = 44; s.pc = 21; return s.tmp_0; - case 21: + 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 = 801; s.pc = 1; return s.tmp_3; } + } + case 1: r0 = s.retval; - s.delay___22750 = (r0); - r0 = s.delay___22750; + r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P19668.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +scene_Scene_addSprite__P50767.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function control_EventContext_runCallbacks__P19668_mk(s) { +function scene_Scene_addSprite__P50767_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P19668, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P50767, depth: s.depth + 1, pc: 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, - loopStart___22650: undefined, - f___22663: undefined, - unnamed128___U2: undefined, - unnamed129___U3: undefined, - runtime___22668: undefined, - fps___22688: undefined, - delay___22750: undefined, arg0: undefined, + arg1: undefined, } } -function pauseUntil__P16474(s) { +function sprites_BaseSprite_z__P50188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5275,63 +5021,42 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 !== s.arg1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(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; } + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 131; s.pc = 3; return s.tmp_1; 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__P16473_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: + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 1); + s.tmp_2 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -pauseUntil__P16474.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +sprites_BaseSprite_z__P50188.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 pauseUntil__P16474_mk(s) { +function sprites_BaseSprite_z__P50188_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P16474, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P50188, depth: s.depth + 1, pc: 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, } } @@ -5340,7 +5065,7 @@ function pauseUntil__P16474_mk(s) { -function control___queuePollEvent__P16473(s) { +function sprites_BaseSprite_z__P50187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5350,97 +5075,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___22772 = 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__C19642_VT); - s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P19643_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 1; - 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___22772 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___19645); - 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___22772); - globals._pollEventQueue___19645 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P19646); - { step = 2; continue; } - case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___19645, s.ev___22772); - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P16498_mk(s); - r0 = s.ev___22772.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___22772.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___22772.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___22772.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) + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) default: oops() } } } -control___queuePollEvent__P16473.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} +sprites_BaseSprite_z__P50187.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__P50187.isGetter = true; -function control___queuePollEvent__P16473_mk(s) { +function sprites_BaseSprite_z__P50187_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P16473, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P50187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - ev___22772: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function control_pollEvents__P19646(s) { +function helpers_arrayShift__P48423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5450,139 +5110,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___22814 = undefined; - s.i___22817 = undefined; - s.ev___22823 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___19645); - 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___22814 = (r0); - s.i___22817 = (0); - case 2: - s.tmp_1 = r0 = s.i___22817; - r0 = pxsim_Array__length(globals._pollEventQueue___19645); - 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___19645, s.i___22817); - s.ev___22823 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___22823; - 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___22823.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___22823.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___22814 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___22823.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___22823.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___22823.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___22823.fields["once"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P16214_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___19645; - s.tmp_1.arg1 = s.i___22817; - s.tmp_1.arg2 = 1; - s.callLocIdx = 25; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___22817 - 1); - s.i___22817 = (r0); - case 7: - case 8: - case 9: - case 10: - r0 = (s.i___22817 + 1); - s.i___22817 = (r0); - { step = 2; continue; } - case 11: - s.tmp_0 = pause__P16520_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___19645 = (undefined); - r0 = undefined; + r0 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -control_pollEvents__P19646.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +helpers_arrayShift__P48423.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 control_pollEvents__P19646_mk(s) { +function helpers_arrayShift__P48423_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P19646, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P48423, depth: s.depth + 1, pc: 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___22814: undefined, - i___22817: undefined, - ev___22823: undefined, + arg0: undefined, } } -function helpers_arraySplice__P16214(s) { +function particles_SprayFactory_setSpeed__P51045(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5592,55 +5142,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___22871 = 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; } - case 1: - case 2: - s.i___22871 = (0); - case 3: - r0 = (s.i___22871 < 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___22871 + 1); - s.i___22871 = (r0); - { step = 3; continue; } - case 4: - case 5: + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C51041_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySplice__P16214.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"]} +particles_SprayFactory_setSpeed__P51045.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 helpers_arraySplice__P16214_mk(s) { +function particles_SprayFactory_setSpeed__P51045_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P16214, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P51045, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___22871: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_PollEvent_constructor__P19643(s) { +function particles_ConfettiFactory_constructor__P51069(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5650,49 +5187,99 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.confetti___55422 = undefined; + s.i___55438 = 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, control_PollEvent__C19642_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); + if (!checkSubtype(r0, particles_ConfettiFactory__C51068_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim.image.ofBuffer(_hex55425); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex55427); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex55429); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex55431); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = pxsim.image.ofBuffer(_hex55433); + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); + s.confetti___55422 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P51064_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___55422, 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1120; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.i___55438 = (1); + case 1: + s.tmp_1 = r0 = s.i___55438; + r0 = pxsim_Array__length(s.confetti___55422); + 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__P51065_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.confetti___55422, s.i___55438); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1121; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + r0 = (s.i___55438 + 1); + s.i___55438 = (r0); + { step = 1; continue; } + case 2: + r0 = (s.arg0).fields["minLifespan"] = (1000); + r0 = (s.arg0).fields["maxLifespan"] = (4500); r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P19643.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"]} +particles_ConfettiFactory_constructor__P51069.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 control_PollEvent_constructor__P19643_mk(s) { +function particles_ConfettiFactory_constructor__P51069_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P19643, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P51069, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + confetti___55422: undefined, + i___55438: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } +const _hex55425 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex55427 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex55429 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex55431 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex55433 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function game_onUpdate__P18659(s) { +function particles_ShapeFactory_addShape__P51065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5704,57 +5291,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P20002_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 829; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ShapeFactory__C51063_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = s.arg0.fields["sources"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P16510_mk(s); - s.tmp_3 = game_eventContext__P18651_mk(s); - s.callLocIdx = 830; s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 20; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 831; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdate__P18659.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} +particles_ShapeFactory_addShape__P51065.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 game_onUpdate__P18659_mk(s) { +function particles_ShapeFactory_addShape__P51065_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P18659, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P51065, depth: s.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 particles_SprayFactory_constructor__P18835(s) { +function particles_ShapeFactory_constructor__P51064(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5772,37 +5341,56 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C18834_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P20373_mk(s); - s.callLocIdx = 1085; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P18838_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C51063_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P51052_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1086; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P18839_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1087; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 1110; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg3); + r0 = (s.arg0).fields["sources"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P18835.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_ShapeFactory_constructor__P51064.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_SprayFactory_constructor__P18835_mk(s) { +function particles_ShapeFactory_constructor__P51064_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P18835, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P51064, depth: s.depth + 1, pc: 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, @@ -5813,57 +5401,7 @@ function particles_SprayFactory_constructor__P18835_mk(s) { -function particles_initTrig__P20373(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___20359); - 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__P18828_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1073; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___20359 = (r0); - s.tmp_0 = particles_cacheCos__P18829_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1074; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___20360 = (r0); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_initTrig__P20373.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__P20373_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_initTrig__P20373, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function particles_cacheCos__P18829(s) { +function particles_AreaFactory_constructor__P51052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5873,65 +5411,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___22105 = undefined; - s.anglePerSlice___22107 = undefined; - s.i___22113 = 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_Array__mk(); - s.cos___22105 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___22107 = (r0); - s.i___22113 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_AreaFactory__C51047_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P51042_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 40; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 90; + s.callLocIdx = 1098; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = (s.arg0).fields["xRange"] = (s.arg1); + r0 = (s.arg0).fields["yRange"] = (s.arg2); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 1; continue; } + r0 = s.arg3; + { step = 2; continue; } case 1: - r0 = (s.i___22113 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___22105; - r0 = (s.i___22113 * s.anglePerSlice___22107); - s.tmp_4 = r0; - r0 = pxsim.Math_.cos(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___22113 + 1); - s.i___22113 = (r0); - { step = 1; continue; } + r0 = 150; case 2: - r0 = s.cos___22105; + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + r0 = s.arg4; + { step = 4; continue; } + case 3: + r0 = 850; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C50909_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P50911_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1099; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheCos__P18829.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_AreaFactory_constructor__P51052.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_cacheCos__P18829_mk(s) { +function particles_AreaFactory_constructor__P51052_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P18829, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P51052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - cos___22105: undefined, - anglePerSlice___22107: undefined, - i___22113: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_cacheSin__P18828(s) { +function effects_ScreenEffect_constructor__P51117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5941,65 +5494,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___22131 = undefined; - s.anglePerSlice___22133 = undefined; - s.i___22139 = 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_Array__mk(); - s.sin___22131 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___22133 = (r0); - s.i___22139 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ScreenEffect__C51116_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P51113_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = s.arg4; + s.callLocIdx = 1127; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___22139 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___22131; - r0 = (s.i___22139 * s.anglePerSlice___22133); - s.tmp_4 = r0; - r0 = pxsim.Math_.sin(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___22139 + 1); - s.i___22139 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___22131; + r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheSin__P18828.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +effects_ScreenEffect_constructor__P51117.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 particles_cacheSin__P18828_mk(s) { +function effects_ScreenEffect_constructor__P51117_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P18828, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P51117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - sin___22131: undefined, - anglePerSlice___22133: undefined, - i___22139: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_SprayFactory_setDirection__P18839(s) { +function effects_ParticleEffect_constructor__P51113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6013,66 +5550,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C18834_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P20378_mk(s); - s.tmp_5 = r0 = s.arg1; - r0 = (s.arg2 >> 1); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4.arg0 = r0; - s.callLocIdx = 1095; s.pc = 1; return s.tmp_4; - case 1: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___20372); - 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__P20378_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1096; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___20372); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); + if (!checkSubtype(r0, effects_ParticleEffect__C51112_VT)) failedCast(r0); + r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); + r0 = (s.arg0).fields["defaultRate"] = (s.arg1); + r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P18839.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"]} +effects_ParticleEffect_constructor__P51113.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 particles_SprayFactory_setDirection__P18839_mk(s) { +function effects_ParticleEffect_constructor__P51113_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P18839, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P51113, depth: s.depth + 1, pc: 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, } } -function particles_toRadians__P20378(s) { +function scene_Scene_init__P50764(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6086,74 +5593,118 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C50742_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P16241_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1077; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); - s.tmp_1 = r0; - r0 = (360 - s.tmp_1); - s.arg0 = (r0); - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = (s.arg0 % 360); - s.arg0 = (r0); case 2: - r0 = (s.arg0 * 0.017453292519943295); + s.tmp_1 = power_poke__P50030_mk(s); + s.callLocIdx = 781; 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, inline__P55557); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P48717_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 = 784; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P48717_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P50247; + s.callLocIdx = 785; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P55580); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P48717_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 = 787; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P55593); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P48717_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 = 791; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P55614); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P48717_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 = 793; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P55622); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P48717_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 = 797; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P48717_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P50088; + s.callLocIdx = 798; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P55651); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___50762; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 800; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_toRadians__P20378.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +scene_Scene_init__P50764.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function particles_toRadians__P20378_mk(s) { +function scene_Scene_init__P50764_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P20378, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P50764, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, -} } - - - - - -function particles_ParticleFactory_constructor__P18831(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_ParticleFactory__C18830_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleFactory_constructor__P18831.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__P18831_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleFactory_constructor__P18831, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -6161,7 +5712,7 @@ function particles_ParticleFactory_constructor__P18831_mk(s) { -function particles_ParticleSource_setFactory__P18813(s) { +function inline__P55557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6171,38 +5722,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, particles_ParticleSource__C18794_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_factory"] = (s.arg1); + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; + s.tmp_2 = r0; + r0 = s.caps[0].fields["eventContext"]; + r0 = r0.fields["deltaTimeMillis"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P50275_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 = 783; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P18813.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +inline__P55557.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_setFactory__P18813_mk(s) { +function inline__P55557_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P18813, depth: s.depth + 1, + parent: s, fn: inline__P55557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function particles_ParticleSource_setRate__P18811(s) { +function inline__P55580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6212,43 +5772,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); - s.tmp_2 = r0; - r0 = pxsim.Math_.ceil(s.tmp_2); + s.tmp_0 = PhysicsEngine__C50488_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_0).fields["period"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (0); + 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__C50488_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P18811.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +inline__P55580.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_setRate__P18811_mk(s) { +function inline__P55580_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P18811, depth: s.depth + 1, + parent: s, fn: inline__P55580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_setAnchor__P18810(s) { +function inline__P55593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6258,34 +5816,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.dt___55594 = undefined; + s.s___55602 = undefined; + s.unnamed314___U2 = undefined; + s.unnamed315___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["deltaTimeMillis"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 / 1000); + s.dt___55594 = (r0); + s.tmp_0 = scene_Camera_update__P50699_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 789; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___55602 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed314___U2 = (r0); + s.unnamed315___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed315___U3; + r0 = pxsim_Array__length(s.unnamed314___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed314___U2, s.unnamed315___U3); + s.s___55602 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___55602; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___55594; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 790; 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 = 790; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 790; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 790; s.pc = 4; return s.tmp_2; } } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); + case 4: + r0 = s.retval; + r0 = (s.unnamed315___U3 + 1); + s.unnamed315___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed314___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P18810.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +inline__P55593.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_setAnchor__P18810_mk(s) { +function inline__P55593_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P18810, depth: s.depth + 1, + parent: s, fn: inline__P55593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + dt___55594: undefined, + s___55602: undefined, + unnamed314___U2: undefined, + unnamed315___U3: undefined, } } -function particles_ParticleSource_clear__P18809(s) { +function inline__P55614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6295,32 +5899,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 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); + s.tmp_0 = scene_Scene_render__P50769_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 792; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P18809.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +inline__P55614.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_clear__P18809_mk(s) { +function inline__P55614_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P18809, depth: s.depth + 1, + parent: s, fn: inline__P55614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, } } -function particles_ParticleSource_destroy__P18808(s) { +function inline__P55622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6330,51 +5932,108 @@ 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, particles_ParticleSource__C18794_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P18807_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1034; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = globals.stats___50852; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P18802_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1035; s.pc = 2; return s.tmp_0; + r0 = globals.control_EventContext_onStats___48712; 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___48712; + if ((globals.control_EventContext_lastStats___48711) && (globals.control_EventContext_lastStats___48711).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___48711); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___48711) + ""; } + case 8: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_destroy__P18808.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} - -function particles_ParticleSource_destroy__P18808_mk(s) { - checkStack(s.depth); + 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 = 794; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___50851); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C50488_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C50488_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__P50977_mk(s); + s.callLocIdx = 795; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P50031_mk(s); + s.callLocIdx = 796; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P55622.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} + +function inline__P55622_mk(s) { + checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P18808, depth: s.depth + 1, + parent: s, fn: inline__P55622, 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, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function particles_ParticleSource_enabled__P18807(s) { +function inline__P55651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6386,66 +6045,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P18806_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1033; 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 = 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; } + 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 = 799; s.pc = 1; return s.tmp_0; 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 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P18807.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +inline__P55651.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function particles_ParticleSource_enabled__P18807_mk(s) { +function inline__P55651_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P18807, depth: s.depth + 1, + parent: s, fn: inline__P55651, depth: s.depth + 1, pc: 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__P18806(s) { +function game_consoleOverlay_draw__P50977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6455,47 +6083,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; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; + s.height___55700 = undefined; + s.top___55705 = undefined; + s.i___55711 = undefined; + s.t___55724 = undefined; + s.tOff___55731 = undefined; + s.tab___55733 = undefined; + s.unnamed318___U6 = undefined; + s.unnamed319___U7 = undefined; + s.padding___55735 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); + 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___52453); s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); + r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + 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___52507; + 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 = 1003; s.pc = 14; return s.tmp_7; } + } + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___55700 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___50852); + if (!r0) { step = 5; continue; } + r0 = s.height___55700; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = (2 + s.tmp_0); + s.top___55705 = (r0); + s.i___55711 = (0); + case 7: + s.tmp_1 = r0 = s.i___55711; + r0 = pxsim_Array__length(globals.consoleStrings___52499); + 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___52499, s.i___55711); + 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__P48442_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___52499, s.i___55711); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1004; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___55724 = (r0); + s.tOff___55731 = (0); + s.tab___55733 = (undefined); + s.unnamed318___U6 = (s.t___55724); + s.unnamed319___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed319___U7; + r0 = pxsim_Array__length(s.unnamed318___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed318___U6, s.unnamed319___U7); + s.tab___55733 = (r0); + s.tmp_2 = r0 = globals.tabSize___52501; + s.tmp_5 = r0 = s.tOff___55731; + r0 = pxsim_String_.length(s.tab___55733); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___52501); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___55735 = (r0); + s.tmp_0 = helpers_imagePrint__P50085_mk(s); + s.tmp_0.arg0 = globals.screen___50127; + s.tmp_0.arg1 = s.tab___55733; + s.tmp_2 = r0 = s.tOff___55731; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___52507; + 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 = 1005; 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___55705; + r0 = (s.i___55711 * s.height___55700); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___52498; + s.tmp_0.arg5 = globals.consoleFont___52507; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1006; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___55731; + r0 = pxsim_String_.length(s.tab___55733); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___55735); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___55731 = (r0); + r0 = (s.unnamed319___U7 + 1); + s.unnamed319___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed318___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P50085_mk(s); + s.tmp_0.arg0 = globals.screen___50127; + r0 = pxsim_Array__getAt(globals.consoleStrings___52499, s.i___55711); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___55705; + r0 = (s.i___55711 * s.height___55700); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___52498; + s.tmp_0.arg5 = globals.consoleFont___52507; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1007; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___55711 + 1); + s.i___55711 = (r0); + { step = 7; continue; } + case 12: + case 13: + r0 = undefined; + return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P18806.info = {"start":6605,"length":76,"line":215,"column":8,"endLine":217,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} -particles_ParticleSource_enabled__P18806.isGetter = true; +game_consoleOverlay_draw__P50977.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function particles_ParticleSource_enabled__P18806_mk(s) { +function game_consoleOverlay_draw__P50977_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P18806, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P50977, depth: s.depth + 1, pc: 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, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___55700: undefined, + top___55705: undefined, + i___55711: undefined, + t___55724: undefined, + tOff___55731: undefined, + tab___55733: undefined, + unnamed318___U6: undefined, + unnamed319___U7: undefined, + padding___55735: undefined, } } -function particles_ParticleSource_setAcceleration__P18803(s) { +function scene_systemMenu_isVisible__P50958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6505,50 +6302,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_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); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); + r0 = pxsim_numops_toBoolDecr(globals.instance___52453); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (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() } } } -particles_ParticleSource_setAcceleration__P18803.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} +scene_systemMenu_isVisible__P50958.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function particles_ParticleSource_setAcceleration__P18803_mk(s) { +function scene_systemMenu_isVisible__P50958_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P18803, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P50958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function sprites_BaseSprite_constructor__P17978(s) { +function helpers_imagePrint__P50085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6558,172 +6338,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___55807 = undefined; + s.cp___55809 = undefined; + s.mult___55810 = undefined; + s.dataW___55815 = undefined; + s.dataH___55821 = undefined; + s.byteHeight___55827 = undefined; + s.charSize___55833 = undefined; + s.dataSize___55837 = undefined; + s.fontdata___55841 = undefined; + s.lastchar___55844 = undefined; + s.imgBuf___55851 = undefined; + s.xOffset___55875 = undefined; + s.yOffset___55876 = undefined; + s.ch___55891 = undefined; + s.l___55910 = undefined; + s.r___55911 = undefined; + s.off___55913 = undefined; + s.guess___55914 = undefined; + s.m___55933 = undefined; + s.v___55942 = undefined; + s.i___55998 = undefined; + s.j___56003 = undefined; + s.mask___56004 = undefined; + s.c___56005 = undefined; + s.n___56022 = 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, sprites_BaseSprite__C17976_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P17981_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.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__P50072_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 98; s.pc = 39; return s.tmp_2; + case 39: r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P18560_mk(s); - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 129; s.pc = 3; return s.tmp_1; + 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___55807 = (s.arg2); + s.cp___55809 = (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 = 99; s.pc = 40; return s.tmp_1; } + } + case 40: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 130; s.pc = 2; return s.tmp_0; - case 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 = 100; s.pc = 41; return s.tmp_2; } + } + case 41: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -sprites_BaseSprite_constructor__P17978.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} - -function sprites_BaseSprite_constructor__P17978_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_constructor__P17978, 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__P18560(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; + { step = 6; continue; } + case 5: + r0 = 1; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.mult___55810 = (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 = 101; s.pc = 42; return s.tmp_1; } } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + case 42: + r0 = s.retval; 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); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___55810); + s.dataW___55815 = (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_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 = 801; s.pc = 1; return s.tmp_3; } + 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 = 102; s.pc = 43; return s.tmp_1; } } - case 1: + case 43: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_addSprite__P18560.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} - -function scene_Scene_addSprite__P18560_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_addSprite__P18560, depth: s.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__P17981(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___55810); + s.dataH___55821 = (r0); + r0 = (s.dataH___55821 + 7); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 3); + s.byteHeight___55827 = (r0); + r0 = (s.byteHeight___55827 * s.dataW___55815); + s.charSize___55833 = (r0); + r0 = (2 + s.charSize___55833); + s.dataSize___55837 = (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 = 103; s.pc = 44; return s.tmp_0; } } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + case 44: + r0 = s.retval; + s.fontdata___55841 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___55841); s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___55837); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.lastchar___55844 = (r0); + r0 = (s.mult___55810 == 1); 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__P18648_mk(s); - s.callLocIdx = 131; s.pc = 3; return s.tmp_1; - case 3: + if (!r0) { step = 7; continue; } + r0 = (8 + s.charSize___55833); + s.tmp_1 = r0; + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___55851 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55851, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55851, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55851, 2, s.dataW___55815); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55851, 4, s.dataH___55821); + case 7: + case 8: + case 9: + s.tmp_1 = r0 = s.cp___55809; + 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___55875 = (0); + s.yOffset___55876 = (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___55809; + 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___55809); + 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 = 104; s.pc = 45; return s.tmp_4; } + } + case 45: + r0 = s.retval; + s.xOffset___55875 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___55809); + 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 = 105; s.pc = 46; return s.tmp_0; } + } + case 46: r0 = s.retval; + s.yOffset___55876 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___55809; + r0 = (s.tmp_0 + 1); + s.cp___55809 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___55891 = (r0); + r0 = (s.ch___55891 == 10); s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; + 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 = 106; s.pc = 47; return s.tmp_4; } + } + case 47: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); + r0 = (s.tmp_3 + 2); s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); - case 1: - case 2: + r0 = (s.tmp_1 + s.tmp_2); + s.arg3 = (r0); + s.arg2 = (s.x0___55807); + case 14: + case 15: + r0 = (s.ch___55891 < 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___55910 = (0); + s.r___55911 = (s.lastchar___55844); + s.off___55913 = (0); + r0 = (s.ch___55891 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___55837); + s.guess___55914 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___55841, 4, s.guess___55914); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.ch___55891); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___55913 = (s.guess___55914); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___55910 <= s.r___55911); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___55910; + r0 = (s.r___55911 - s.l___55910); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.m___55933 = (r0); + s.tmp_0 = r0 = s.fontdata___55841; + r0 = (s.m___55933 * s.dataSize___55837); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___55942 = (r0); + r0 = (s.v___55942 == s.ch___55891); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___55933 * s.dataSize___55837); + s.off___55913 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___55942 < s.ch___55891); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___55933 + 1); + s.l___55910 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___55933 - 1); + s.r___55911 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___55810 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___55851; + s.tmp_3 = r0 = s.fontdata___55841; + r0 = (s.off___55913 + 2); + s.tmp_4 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___55833); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P50052_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___55851; + r0 = (s.arg2 + s.xOffset___55875); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___55876); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 107; 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 = 108; 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___55913 + 2); + s.off___55913 = (r0); + s.i___55998 = (0); + case 27: + r0 = (s.i___55998 < s.dataW___55815); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___56003 = (0); + s.mask___56004 = (1); + s.tmp_0 = r0 = s.off___55913; + r0 = (s.tmp_0 + 1); + s.off___55913 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___55841, s.tmp_0); + s.c___56005 = (r0); + case 28: + r0 = (s.j___56003 < s.dataH___55821); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___56004 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___55913; + r0 = (s.tmp_2 + 1); + s.off___55913 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___55841, s.tmp_2); + s.c___56005 = (r0); + s.mask___56004 = (1); + case 29: + case 30: + s.n___56022 = (0); + case 31: + r0 = (s.c___56005 & s.mask___56004); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___56022 + 1); + s.n___56022 = (r0); + r0 = (s.mask___56004 << 1); + s.mask___56004 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___56022); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P50053_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___55875 * s.mult___55810); + 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___56003 + s.yOffset___55876); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___55810); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___55810; + r0 = (s.mult___55810 * s.n___56022); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 109; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + r0 = (s.j___56003 + s.n___56022); + s.j___56003 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___56004 << 1); + s.mask___56004 = (r0); + r0 = (s.j___56003 + 1); + s.j___56003 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___55810); + s.arg2 = (r0); + r0 = (s.i___55998 + 1); + s.i___55998 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P17981.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +helpers_imagePrint__P50085.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 sprites_BaseSprite_z__P17981_mk(s) { +function helpers_imagePrint__P50085_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P17981, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P50085, depth: s.depth + 1, pc: 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___55807: undefined, + cp___55809: undefined, + mult___55810: undefined, + dataW___55815: undefined, + dataH___55821: undefined, + byteHeight___55827: undefined, + charSize___55833: undefined, + dataSize___55837: undefined, + fontdata___55841: undefined, + lastchar___55844: undefined, + imgBuf___55851: undefined, + xOffset___55875: undefined, + yOffset___55876: undefined, + ch___55891: undefined, + l___55910: undefined, + r___55911: undefined, + off___55913: undefined, + guess___55914: undefined, + m___55933: undefined, + v___55942: undefined, + i___55998: undefined, + j___56003: undefined, + mask___56004: undefined, + c___56005: undefined, + n___56022: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function sprites_BaseSprite_z__P17980(s) { +function image_getFontForText__P50072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6733,24 +6847,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___56132 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) + s.i___56132 = (0); + case 1: + s.tmp_1 = r0 = s.i___56132; + 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___56132); + s.tmp_4 = r0; + r0 = (s.tmp_4 > 8192); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 2; continue; } + r0 = globals.font12___50071; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___56132 + 1); + s.i___56132 = (r0); + { step = 1; continue; } + case 4: + r0 = globals.font8___50070; + case 5: + return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P17980.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__P17980.isGetter = true; +image_getFontForText__P50072.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function sprites_BaseSprite_z__P17980_mk(s) { +function image_getFontForText__P50072_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P17980, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P50072, depth: s.depth + 1, pc: 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___56132: undefined, arg0: undefined, } } @@ -6758,7 +6900,7 @@ function sprites_BaseSprite_z__P17980_mk(s) { -function helpers_arrayShift__P16216(s) { +function helpers_imageFillRect__P50053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6770,27 +6912,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = pxsim_Array_.removeAt(s.arg0, 0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P51946_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 80; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P51946_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 81; s.pc = 2; return s.tmp_4; + case 2: + 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() } } } -helpers_arrayShift__P16216.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_imageFillRect__P50053.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_arrayShift__P16216_mk(s) { +function helpers_imageFillRect__P50053_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P16216, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P50053, depth: s.depth + 1, pc: 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 particles_SprayFactory_setSpeed__P18838(s) { +function helpers_pack__P51946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6805,28 +6978,45 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C18834_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_2 = Math_clamp__P48447_mk(s); + s.tmp_2.arg0 = -30000; + s.tmp_2.arg1 = 30000; + r0 = (s.arg0 | 0); + s.tmp_2.arg2 = r0; + s.callLocIdx = 77; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_1 & 65535); + s.tmp_0 = r0; + s.tmp_5 = Math_clamp__P48447_mk(s); + s.tmp_5.arg0 = -30000; + s.tmp_5.arg1 = 30000; + r0 = (s.arg1 | 0); + s.tmp_5.arg2 = r0; + s.callLocIdx = 78; s.pc = 2; return s.tmp_5; + 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); return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P18838.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +helpers_pack__P51946.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function particles_SprayFactory_setSpeed__P18838_mk(s) { +function helpers_pack__P51946_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P18838, depth: s.depth + 1, + parent: s, fn: helpers_pack__P51946, depth: s.depth + 1, pc: 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, } } @@ -6835,7 +7025,7 @@ function particles_SprayFactory_setSpeed__P18838_mk(s) { -function particles_ConfettiFactory_constructor__P18862(s) { +function Math_clamp__P48447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6845,99 +7035,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___23190 = undefined; - s.i___23206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C18861_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex23193); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex23195); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex23197); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex23199); - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex23201); - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___23190 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P18857_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___23190, 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1119; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_0 = Math_min__P48451_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_1 = Math_max__P48450_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.i___23206 = (1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 15; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___23206; - r0 = pxsim_Array__length(s.confetti___23190); - 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__P18858_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___23190, s.i___23206); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1120; s.pc = 4; return s.tmp_3; - case 4: r0 = s.retval; - r0 = (s.i___23206 + 1); - s.i___23206 = (r0); - { step = 1; continue; } - case 2: - r0 = (s.arg0).fields["minLifespan"] = (1000); - r0 = (s.arg0).fields["maxLifespan"] = (4500); - r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P18862.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"]} +Math_clamp__P48447.info = {"start":15178,"length":130,"line":514,"column":4,"endLine":516,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function particles_ConfettiFactory_constructor__P18862_mk(s) { +function Math_clamp__P48447_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P18862, depth: s.depth + 1, + parent: s, fn: Math_clamp__P48447, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - confetti___23190: undefined, - i___23206: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex23193 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex23195 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex23197 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex23199 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex23201 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P18858(s) { +function Math_min__P48451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6952,25 +7089,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C18856_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["sources"]; + r0 = (s.arg0 <= s.arg1); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 3; continue; } case 1: case 2: - r0 = undefined; + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P18858.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +Math_min__P48451.info = {"start":16314,"length":105,"line":551,"column":4,"endLine":554,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function particles_ShapeFactory_addShape__P18858_mk(s) { +function Math_min__P48451_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P18858, depth: s.depth + 1, + parent: s, fn: Math_min__P48451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6981,7 +7118,7 @@ function particles_ShapeFactory_addShape__P18858_mk(s) { -function particles_ShapeFactory_constructor__P18857(s) { +function helpers_imageDrawIcon__P50052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6996,70 +7133,46 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C18856_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P18845_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.tmp_0.arg4 = undefined; - s.callLocIdx = 1109; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P51946_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 79; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg3); - r0 = (s.arg0).fields["sources"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); + r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P18857.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"]} +helpers_imageDrawIcon__P50052.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function particles_ShapeFactory_constructor__P18857_mk(s) { +function helpers_imageDrawIcon__P50052_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P18857, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P50052, depth: s.depth + 1, pc: 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 particles_AreaFactory_constructor__P18845(s) { +function helpers_stringSplit__P48442(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7069,80 +7182,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___56155 = undefined; + s.lim___56157 = undefined; + s.s___56173 = undefined; + s.p___56176 = undefined; + s.R___56177 = undefined; + s.z___56191 = undefined; + s.T___56204 = undefined; + s.q___56205 = undefined; + s.e___56211 = 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, particles_AreaFactory__C18840_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P18835_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 40; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 90; - s.callLocIdx = 1097; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = (s.arg0).fields["xRange"] = (s.arg1); - r0 = (s.arg0).fields["yRange"] = (s.arg2); - r0 = pxsim_numops_toBoolDecr(s.arg3); + r0 = pxsim_Array__mk(); + s.A___56155 = (r0); + s.lim___56157 = (0); + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg3; - { step = 2; continue; } + r0 = (536870912 - 1); + s.lim___56157 = (r0); + { step = 4; continue; } case 1: - r0 = 150; - case 2: - // jmp value (already in r0) + r0 = (s.arg2 < 0); s.tmp_0 = r0; - r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - r0 = s.arg4; - { step = 4; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.lim___56157 = (0); + { step = 3; continue; } + case 2: + r0 = (s.arg2 | 0); + s.lim___56157 = (r0); case 3: - r0 = 850; case 4: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C18702_VT); + r0 = pxsim_String_.length(s.arg0); + s.s___56173 = (r0); + s.p___56176 = (0); + s.R___56177 = (s.arg1); + r0 = (s.lim___56157 == 0); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P18704_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1098; s.pc = 6; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___56155; + { 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___56155, 0, s.arg0); + r0 = s.A___56155; + { step = 21; continue; } + case 7: + case 8: + r0 = (s.s___56173 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P51805_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___56177; + s.callLocIdx = 10; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - r0 = undefined; + s.z___56191 = (r0); + r0 = (s.z___56191 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___56155; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___56155, 0, s.arg0); + r0 = s.A___56155; + { step = 21; continue; } + case 11: + case 12: + s.q___56205 = (s.p___56176); + case 13: + r0 = (s.q___56205 != s.s___56173); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P51805_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___56205; + s.tmp_1.arg2 = s.R___56177; + s.callLocIdx = 11; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.e___56211 = (r0); + r0 = (s.e___56211 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___56205 + 1); + s.q___56205 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___56211 == s.p___56176); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___56205 + 1); + s.q___56205 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P48440_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___56176; + s.tmp_0.arg2 = s.q___56205; + s.callLocIdx = 12; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.T___56204 = (r0); + r0 = pxsim_Array__push(s.A___56155, s.T___56204); + r0 = pxsim_Array__length(s.A___56155); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___56157); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___56155; + { step = 21; continue; } + case 16: + case 17: + s.p___56176 = (s.e___56211); + s.q___56205 = (s.p___56176); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P48440_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___56176; + s.tmp_0.arg2 = s.q___56205; + s.callLocIdx = 13; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.T___56204 = (r0); + r0 = pxsim_Array__push(s.A___56155, s.T___56204); + r0 = s.A___56155; + case 21: return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P18845.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} +helpers_stringSplit__P48442.info = {"start":12454,"length":1319,"line":420,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function particles_AreaFactory_constructor__P18845_mk(s) { +function helpers_stringSplit__P48442_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P18845, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P48442, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + A___56155: undefined, + lim___56157: undefined, + s___56173: undefined, + p___56176: undefined, + R___56177: undefined, + z___56191: undefined, + T___56204: undefined, + q___56205: undefined, + e___56211: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function effects_ScreenEffect_constructor__P18910(s) { +function helpers_splitMatch__P51805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7152,49 +7371,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___56291 = undefined; + s.s___56294 = undefined; + s.i___56304 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C18909_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P18906_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = s.arg4; - s.callLocIdx = 1126; s.pc = 1; return s.tmp_0; + r0 = pxsim_String_.length(s.arg2); + s.r___56291 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___56294 = (r0); + r0 = (s.arg1 + s.r___56291); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.s___56294); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = -1; + { step = 7; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); - r0 = undefined; + case 2: + s.i___56304 = (0); + case 3: + r0 = (s.i___56304 < s.r___56291); + 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___56304); + 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___56304); + 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___56304 + 1); + s.i___56304 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___56291); + case 7: return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P18910.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"]} +helpers_splitMatch__P51805.info = {"start":13779,"length":289,"line":466,"column":4,"endLine":475,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function effects_ScreenEffect_constructor__P18910_mk(s) { +function helpers_splitMatch__P51805_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P18910, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P51805, depth: s.depth + 1, pc: 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___56291: undefined, + s___56294: undefined, + i___56304: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function effects_ParticleEffect_constructor__P18906(s) { +function helpers_stringSlice__P48440(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7204,173 +7459,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___56256 = 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, effects_ParticleEffect__C18905_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -effects_ParticleEffect_constructor__P18906.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__P18906_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: effects_ParticleEffect_constructor__P18906, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function scene_Scene_init__P18557(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + r0 = pxsim_String_.length(s.arg0); + s.len___56256 = (r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_1 = power_poke__P17823_mk(s); - s.callLocIdx = 781; s.pc = 4; return s.tmp_1; - case 4: + s.tmp_1 = Math_max__P48450_mk(s); + r0 = (s.len___56256 + 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.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, inline__P23325); + s.arg1 = (r0); + case 1: + case 2: + r0 = (s.arg2 === undefined); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P16510_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 = 784; s.pc = 5; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___56256); + { 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: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P16510_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P18040; - s.callLocIdx = 785; s.pc = 6; return s.tmp_0; case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P23348); + r0 = (s.arg2 < 0); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P16510_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 = 787; s.pc = 7; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.len___56256 + s.arg2); + s.arg2 = (r0); case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P23361); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P16510_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 = 791; s.pc = 8; return s.tmp_1; case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P23382); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P16510_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 = 793; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P23390); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P16510_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 = 797; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P16510_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P17881; - s.callLocIdx = 798; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P23419); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___18555; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 800; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 3: - r0 = undefined; + 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() } } } -scene_Scene_init__P18557.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +helpers_stringSlice__P48440.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 scene_Scene_init__P18557_mk(s) { +function helpers_stringSlice__P48440_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P18557, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P48440, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + len___56256: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P23325(s) { +function scene_Scene_render__P50769(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7380,91 +7543,147 @@ 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.s___56388 = undefined; + s.unnamed316___U1 = undefined; + s.unnamed317___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C50742_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P18068_mk(s); - r0 = s.caps[0].fields["eventContext"]; + 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.fields["deltaTimeMillis"]; + 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 = (s.tmp_2 / 1000); - s.tmp_0.arg0 = r0; - s.callLocIdx = 783; s.pc = 1; return s.tmp_0; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = scene_Scene_render__P50769_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 802; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P23325.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P23325_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P23325, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, -} } - - - - - -function inline__P23348(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 = PhysicsEngine__C18281_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P50604_mk(s); + r0 = s.arg0.fields["background"]; s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; + s.callLocIdx = 803; 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.fields["deltaTimeMillis"]; + 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__P48426_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = inline__P56365; + s.callLocIdx = 808; 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 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C18281_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; - case 1: + r0 = (s.tmp_2 & -2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 7: + case 8: + s.s___56388 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed316___U1 = (r0); + s.unnamed317___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed317___U2; + r0 = pxsim_Array__length(s.unnamed316___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed316___U1, s.unnamed317___U2); + s.s___56388 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___56388; + 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 = 809; 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 = 809; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 809; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 809; s.pc = 15; return s.tmp_2; } + } + case 15: r0 = s.retval; + r0 = (s.unnamed317___U2 + 1); + s.unnamed317___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed316___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() } } } -inline__P23348.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_render__P50769.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function inline__P23348_mk(s) { +function scene_Scene_render__P50769_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23348, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P50769, depth: s.depth + 1, pc: 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___56388: undefined, + unnamed316___U1: undefined, + unnamed317___U2: undefined, + arg0: undefined, } } -function inline__P23361(s) { +function inline__P56365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7474,113 +7693,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___23362 = undefined; - s.s___23370 = undefined; - s.unnamed154___U2 = undefined; - s.unnamed155___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; + 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 = 804; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___23362 = (r0); - s.tmp_0 = scene_Camera_update__P18492_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 789; s.pc = 3; return s.tmp_0; - case 3: + 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 = 805; s.pc = 4; return s.tmp_4; } + } + case 4: r0 = s.retval; - s.s___23370 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed154___U2 = (r0); - s.unnamed155___U3 = (0); + 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_0 = r0 = s.unnamed155___U3; - r0 = pxsim_Array__length(s.unnamed154___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed154___U2, s.unnamed155___U3); - s.s___23370 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___23370; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___23362; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 790; s.pc = 4; return s.tmp_2; + 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_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 = 790; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 790; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 790; s.pc = 4; return s.tmp_2; } + 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 = 806; s.pc = 5; return s.tmp_6; } } - case 4: + case 5: r0 = s.retval; - r0 = (s.unnamed155___U3 + 1); - s.unnamed155___U3 = (r0); - { step = 1; continue; } + 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 = 807; 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: - s.unnamed154___U2 = (undefined); - r0 = undefined; + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -inline__P23361.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +inline__P56365.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P23361_mk(s) { +function inline__P56365_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23361, depth: s.depth + 1, + parent: s, fn: inline__P56365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dt___23362: undefined, - s___23370: undefined, - unnamed154___U2: undefined, - unnamed155___U3: undefined, -} } - - - - - -function inline__P23382(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = scene_Scene_render__P18562_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 792; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P23382.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P23382_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P23382, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P23390(s) { +function scene_Background_draw__P50604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7590,108 +7800,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___18645; - 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; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C50595_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___50127, 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___50127, s.tmp_1, 0, 0); case 1: - r0 = globals.control_EventContext_onStats___16505; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0.fields["_layers"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = globals.control_EventContext_onStats___16505; - if ((globals.control_EventContext_lastStats___16504) && (globals.control_EventContext_lastStats___16504).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___16504); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___16504) + ""; } - 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); + r0 = pxsim_pxtcore_mkAction(1, inline__P56420); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P48430_mk(s); + r0 = s.arg0.fields["_layers"]; s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 794; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 679; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; case 3: case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___18644); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C18281_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C18281_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__P18770_mk(s); - s.callLocIdx = 795; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P17824_mk(s); - s.callLocIdx = 796; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P23390.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Background_draw__P50604.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function inline__P23390_mk(s) { +function scene_Background_draw__P50604_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23390, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P50604, depth: s.depth + 1, pc: 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 inline__P23419(s) { +function inline__P56420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7701,29 +7865,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ox___56422 = undefined; + s.oy___56433 = undefined; if (s.lambdaArgs) { 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 = 799; s.pc = 1; return s.tmp_0; + 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___56422 = (r0); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.oy___56433 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P50613_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___56422; + s.tmp_0.arg2 = s.oy___56433; + s.callLocIdx = 678; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P23419.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +inline__P56420.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function inline__P23419_mk(s) { +function inline__P56420_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23419, depth: s.depth + 1, + parent: s, fn: inline__P56420, depth: s.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___56422: undefined, + oy___56433: undefined, arg0: undefined, } } @@ -7731,7 +7924,7 @@ function inline__P23419_mk(s) { -function game_consoleOverlay_draw__P18770(s) { +function scene_BackgroundLayer_draw__P50613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7741,16 +7934,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___23468 = undefined; - s.top___23473 = undefined; - s.i___23479 = undefined; - s.t___23492 = undefined; - s.tOff___23499 = undefined; - s.tab___23501 = undefined; - s.unnamed158___U6 = undefined; - s.unnamed159___U7 = undefined; - s.padding___23503 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + s.w___56451 = undefined; + s.h___56454 = undefined; + s.pw___56457 = undefined; + s.ph___56461 = undefined; + s.rx___56470 = undefined; + s.ry___56473 = undefined; + s.y___56542 = undefined; + s.py___56543 = undefined; + s.dh___56552 = undefined; + s.x___56560 = undefined; + s.rxl___56561 = undefined; + s.px___56567 = undefined; + s.dw___56571 = 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__C50605_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___50127); + s.w___56451 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___50127); + s.h___56454 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___56457 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___56461 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___56457); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -7759,234 +7976,209 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___20246); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.ph___56461); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - { step = 13; continue; } + { step = 23; continue; } case 3: case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___20300; - 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 = 1002; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___23468 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___18645); - if (!r0) { step = 5; continue; } - r0 = s.height___23468; - { step = 6; continue; } + r0 = (0 - s.arg1); + s.rx___56470 = (r0); + r0 = (0 - s.arg2); + s.ry___56473 = (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: - r0 = 0; + s.tmp_1 = r0 = s.rx___56470; + r0 = (s.w___56451 + s.pw___56457); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___56470 = (r0); + { step = 7; continue; } case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___23473 = (r0); - s.i___23479 = (0); - case 7: - s.tmp_1 = r0 = s.i___23479; - r0 = pxsim_Array__length(globals.consoleStrings___20292); + s.tmp_0 = r0 = s.rx___56470; + r0 = (s.w___56451 + s.pw___56457); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___56470 = (r0); + case 7: + r0 = s.arg0.fields["alignY"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim_Array__getAt(globals.consoleStrings___20292, s.i___23479); - 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__P16235_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___20292, s.i___23479); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1003; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___23492 = (r0); - s.tOff___23499 = (0); - s.tab___23501 = (undefined); - s.unnamed158___U6 = (s.t___23492); - s.unnamed159___U7 = (0); + 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_0 = r0 = s.unnamed159___U7; - r0 = pxsim_Array__length(s.unnamed158___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed158___U6, s.unnamed159___U7); - s.tab___23501 = (r0); - s.tmp_2 = r0 = globals.tabSize___20294; - s.tmp_5 = r0 = s.tOff___23499; - r0 = pxsim_String_.length(s.tab___23501); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___20294); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___23503 = (r0); - s.tmp_0 = helpers_imagePrint__P17878_mk(s); - s.tmp_0.arg0 = globals.screen___17920; - s.tmp_0.arg1 = s.tab___23501; - s.tmp_2 = r0 = s.tOff___23499; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___20300; - 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 = 1004; 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___23473; - r0 = (s.i___23479 * s.height___23468); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___20291; - s.tmp_0.arg5 = globals.consoleFont___20300; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1005; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___23499; - r0 = pxsim_String_.length(s.tab___23501); + s.tmp_1 = r0 = s.ry___56473; + r0 = (s.h___56454 + s.ph___56461); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___23503); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___23499 = (r0); - r0 = (s.unnamed159___U7 + 1); - s.unnamed159___U7 = (r0); - { step = 8; continue; } + r0 = (s.tmp_1 - s.tmp_2); + s.ry___56473 = (r0); + { step = 10; continue; } case 9: - s.unnamed158___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P17878_mk(s); - s.tmp_0.arg0 = globals.screen___17920; - r0 = pxsim_Array__getAt(globals.consoleStrings___20292, s.i___23479); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___23473; - r0 = (s.i___23479 * s.height___23468); + s.tmp_0 = r0 = s.ry___56473; + r0 = (s.h___56454 + s.ph___56461); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___20291; - s.tmp_0.arg5 = globals.consoleFont___20300; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1006; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___56473 = (r0); + case 10: + r0 = (s.rx___56470 % s.w___56451); + s.rx___56470 = (r0); + r0 = (s.rx___56470 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___56470 + s.w___56451); + s.rx___56470 = (r0); case 11: - r0 = (s.i___23479 + 1); - s.i___23479 = (r0); - { step = 7; continue; } case 12: + r0 = (s.ry___56473 % s.h___56454); + s.ry___56473 = (r0); + r0 = (s.ry___56473 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___56473 + s.h___56454); + s.ry___56473 = (r0); case 13: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_consoleOverlay_draw__P18770.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} - -function game_consoleOverlay_draw__P18770_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_consoleOverlay_draw__P18770, depth: s.depth + 1, - pc: 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___23468: undefined, - top___23473: undefined, - i___23479: undefined, - t___23492: undefined, - tOff___23499: undefined, - tab___23501: undefined, - unnamed158___U6: undefined, - unnamed159___U7: undefined, - padding___23503: undefined, -} } - - - - - -function scene_systemMenu_isVisible__P18751(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.instance___20246); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + case 14: + r0 = pxsim.Math_.floor(s.rx___56470); + s.rx___56470 = (r0); + r0 = pxsim.Math_.floor(s.ry___56473); + s.ry___56473 = (r0); + s.y___56542 = (0); + s.py___56543 = (0); + case 15: + r0 = (s.y___56542 < s.h___56454); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___56542 % s.ph___56461); + s.py___56543 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); + r0 = (s.ph___56461 - s.py___56543); + s.tmp_0.arg0 = r0; + r0 = (s.h___56454 - s.ry___56473); + s.tmp_0.arg1 = r0; + s.callLocIdx = 681; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___56552 = (r0); + s.x___56560 = (0); + s.rxl___56561 = (s.rx___56470); + case 16: + r0 = (s.x___56560 < s.w___56451); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___56560 % s.pw___56457); + s.px___56567 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); + r0 = (s.pw___56457 - s.px___56567); + s.tmp_0.arg0 = r0; + r0 = (s.w___56451 - s.rxl___56561); + s.tmp_0.arg1 = r0; + s.callLocIdx = 682; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.dw___56571 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___50127, s.tmp_0, s.rxl___56561, s.ry___56473); + r0 = (s.rxl___56561 + s.dw___56571); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___56451); + s.rxl___56561 = (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___56571; + { step = 18; continue; } + case 17: + r0 = s.w___56451; + case 18: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.x___56560 + s.tmp_1); + s.x___56560 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___56473 + s.dh___56552); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_0 % s.h___56454); + s.ry___56473 = (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___56552; + { step = 21; continue; } + case 20: + r0 = s.h___56454; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___56542 + s.tmp_1); + s.y___56542 = (r0); + { step = 15; continue; } + case 22: + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P18751.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +scene_BackgroundLayer_draw__P50613.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 scene_systemMenu_isVisible__P18751_mk(s) { +function scene_BackgroundLayer_draw__P50613_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P18751, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P50613, depth: s.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___56451: undefined, + h___56454: undefined, + pw___56457: undefined, + ph___56461: undefined, + rx___56470: undefined, + ry___56473: undefined, + y___56542: undefined, + py___56543: undefined, + dh___56552: undefined, + x___56560: undefined, + rxl___56561: undefined, + px___56567: undefined, + dw___56571: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function helpers_imagePrint__P17878(s) { +function scene_Camera_update__P50699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7996,506 +8188,445 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___23575 = undefined; - s.cp___23577 = undefined; - s.mult___23578 = undefined; - s.dataW___23583 = undefined; - s.dataH___23589 = undefined; - s.byteHeight___23595 = undefined; - s.charSize___23601 = undefined; - s.dataSize___23605 = undefined; - s.fontdata___23609 = undefined; - s.lastchar___23612 = undefined; - s.imgBuf___23619 = undefined; - s.xOffset___23643 = undefined; - s.yOffset___23644 = undefined; - s.ch___23659 = undefined; - s.l___23678 = undefined; - s.r___23679 = undefined; - s.off___23681 = undefined; - s.guess___23682 = undefined; - s.m___23701 = undefined; - s.v___23710 = undefined; - s.i___23766 = undefined; - s.j___23771 = undefined; - s.mask___23772 = undefined; - s.c___23773 = undefined; - s.n___23790 = undefined; + s.elapsed___56652 = undefined; + s.percentComplete___56666 = undefined; + s.damp___56673 = undefined; + s.f___56682 = undefined; + s.x___56688 = undefined; + s.y___56695 = 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); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P17865_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 98; s.pc = 39; return s.tmp_2; - case 39: + s.tmp_1 = scene_Camera_offsetX__P50689_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_3 = Sprite_x__P50354_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 763; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___50127); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg1 = r0; + s.callLocIdx = 764; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P50691_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P50356_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 765; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___50127); + 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 = 766; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.arg5 = (r0); case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_0 = scene_Camera_offsetX__P50689_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + r0 = s.tmp_1.fields["_offsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_0.arg1 = r0; + s.callLocIdx = 768; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P50691_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + r0 = s.tmp_1.fields["_offsetY"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_0.arg1 = r0; + s.callLocIdx = 770; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetX"]; 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___23575 = (s.arg2); - s.cp___23577 = (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 = 99; s.pc = 40; return s.tmp_1; } - } - case 40: - r0 = s.retval; + 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 = 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 = 100; 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) + if (!r0) { step = 7; continue; } + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = s.arg0.fields["shakeStartTime"]; s.tmp_3 = r0; - s.mult___23578 = (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 = 101; s.pc = 42; return s.tmp_1; } - } - case 42: - r0 = s.retval; + r0 = (s.tmp_2 - s.tmp_3); + s.elapsed___56652 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___56652 >= s.tmp_1); s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___23578); - s.dataW___23583 = (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 = 102; s.pc = 43; return s.tmp_1; } - } - case 43: - r0 = s.retval; + 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 = pxsim.Math_.idiv(s.tmp_0, s.mult___23578); - s.dataH___23589 = (r0); - r0 = (s.dataH___23589 + 7); + r0 = (s.elapsed___56652 / s.tmp_0); + s.percentComplete___56666 = (r0); + s.damp___56673 = (1); + r0 = (s.percentComplete___56666 >= 0.75); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___23595 = (r0); - r0 = (s.byteHeight___23595 * s.dataW___23583); - s.charSize___23601 = (r0); - r0 = (2 + s.charSize___23601); - s.dataSize___23605 = (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 = 103; s.pc = 44; return s.tmp_0; } - } - case 44: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P48450_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___56666); + s.tmp_1.arg1 = r0; + s.callLocIdx = 773; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; - s.fontdata___23609 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___23609); + s.damp___56673 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___56673); + s.f___56682 = (r0); + r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___23605); + r0 = (s.tmp_1 * s.f___56682); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___23612 = (r0); - r0 = (s.mult___23578 == 1); + r0 = (s.tmp_0 >> 0); + s.x___56688 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___56682); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___23601); + r0 = (s.tmp_0 >> 0); + s.y___56695 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___56688); s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___23619 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___23619, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___23619, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___23619, 2, s.dataW___23583); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___23619, 4, s.dataH___23589); + 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___56695); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + case 6: case 7: case 8: - case 9: - s.tmp_1 = r0 = s.cp___23577; - r0 = pxsim_String_.length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Camera_update__P50699.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} + +function scene_Camera_update__P50699_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_update__P50699, depth: s.depth + 1, + pc: 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, + elapsed___56652: undefined, + percentComplete___56666: undefined, + damp___56673: undefined, + f___56682: undefined, + x___56688: undefined, + y___56695: undefined, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetY__P50691(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___56730 = 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__C50683_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 760; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___56730 = (r0); + r0 = s.scene___56730.fields["tileMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - s.xOffset___23643 = (0); - s.yOffset___23644 = (0); - s.tmp_0 = r0 = s.arg6; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 11; continue; } - case 10: - s.tmp_1 = r0 = s.cp___23577; - r0 = pxsim_Array__length(s.arg6); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 11: - // jmp value (already in r0) + { step = 2; continue; } + case 1: + r0 = s.scene___56730.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); - if (!r0) { step = 12; continue; } - s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___23577); - 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 = 104; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___23643 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___23577); - 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 = 105; s.pc = 46; return s.tmp_0; } - } - case 46: + 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_9 = tiles_TileMap_offsetY__P50652_mk(s); + r0 = s.scene___56730.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 762; s.pc = 6; return s.tmp_9; + case 6: r0 = s.retval; - s.yOffset___23644 = (r0); - case 12: - case 13: - s.tmp_0 = r0 = s.cp___23577; - r0 = (s.tmp_0 + 1); - s.cp___23577 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___23659 = (r0); - r0 = (s.ch___23659 == 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 = 106; s.pc = 47; return s.tmp_4; } + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_offsetY"] = (s.arg1); + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Camera_offsetY__P50691.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} + +function scene_Camera_offsetY__P50691_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetY__P50691, depth: s.depth + 1, + pc: 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, + scene___56730: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function tiles_TileMap_enabled__P50657(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 47: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___23575); - case 14: - case 15: - r0 = (s.ch___23659 < 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___23678 = (0); - s.r___23679 = (s.lastchar___23612); - s.off___23681 = (0); - r0 = (s.ch___23659 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___23605); - s.guess___23682 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___23609, 4, s.guess___23682); + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___23659); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___23681 = (s.guess___23682); - { step = 25; continue; } - case 18: - case 19: - r0 = (s.l___23678 <= s.r___23679); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___23678; - r0 = (s.r___23679 - s.l___23678); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_enabled__P50657.info = {"start":7107,"length":66,"line":261,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} +tiles_TileMap_enabled__P50657.isGetter = true; + +function tiles_TileMap_enabled__P50657_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_enabled__P50657, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function tiles_TileMap_offsetY__P50652(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, tiles_TileMap__C50647_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P48447_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P48450_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P50654_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 699; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___23701 = (r0); - s.tmp_0 = r0 = s.fontdata___23609; - r0 = (s.m___23701 * s.dataSize___23605); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___23710 = (r0); - r0 = (s.v___23710 == s.ch___23659); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___23701 * s.dataSize___23605); - s.off___23681 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___23710 < s.ch___23659); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.m___23701 + 1); - s.l___23678 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___23701 - 1); - s.r___23679 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___23578 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___23619; - s.tmp_3 = r0 = s.fontdata___23609; - r0 = (s.off___23681 + 2); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___23601); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P17845_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___23619; - r0 = (s.arg2 + s.xOffset___23643); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___23644); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 107; s.pc = 48; return s.tmp_0; - case 48: + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 700; s.pc = 2; return s.tmp_1; + case 2: 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 = 108; s.pc = 49; return s.tmp_2; } - } - case 49: + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 701; s.pc = 1; return s.tmp_0; + case 1: 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___23681 + 2); - s.off___23681 = (r0); - s.i___23766 = (0); - case 27: - r0 = (s.i___23766 < s.dataW___23583); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___23771 = (0); - s.mask___23772 = (1); - s.tmp_0 = r0 = s.off___23681; - r0 = (s.tmp_0 + 1); - s.off___23681 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___23609, s.tmp_0); - s.c___23773 = (r0); - case 28: - r0 = (s.j___23771 < s.dataH___23589); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___23772 == 256); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___23681; - r0 = (s.tmp_2 + 1); - s.off___23681 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___23609, s.tmp_2); - s.c___23773 = (r0); - s.mask___23772 = (1); - case 29: - case 30: - s.n___23790 = (0); - case 31: - r0 = (s.c___23773 & s.mask___23772); + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_offsetY__P50652.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} + +function tiles_TileMap_offsetY__P50652_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_offsetY__P50652, depth: s.depth + 1, + pc: 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__P50654(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___23790 + 1); - s.n___23790 = (r0); - r0 = (s.mask___23772 << 1); - s.mask___23772 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___23790); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P17846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___23643 * s.mult___23578); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; 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___23771 + s.yOffset___23644); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___23578); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___23578; - r0 = (s.mult___23578 * s.n___23790); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 109; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - r0 = (s.j___23771 + s.n___23790); - s.j___23771 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___23772 << 1); - s.mask___23772 = (r0); - r0 = (s.j___23771 + 1); - s.j___23771 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___23578); - s.arg2 = (r0); - r0 = (s.i___23766 + 1); - s.i___23766 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: - r0 = undefined; + 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; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -helpers_imagePrint__P17878.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"]} +tiles_TileMap_areaHeight__P50654.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function helpers_imagePrint__P17878_mk(s) { +function tiles_TileMap_areaHeight__P50654_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P17878, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P50654, depth: s.depth + 1, pc: 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___23575: undefined, - cp___23577: undefined, - mult___23578: undefined, - dataW___23583: undefined, - dataH___23589: undefined, - byteHeight___23595: undefined, - charSize___23601: undefined, - dataSize___23605: undefined, - fontdata___23609: undefined, - lastchar___23612: undefined, - imgBuf___23619: undefined, - xOffset___23643: undefined, - yOffset___23644: undefined, - ch___23659: undefined, - l___23678: undefined, - r___23679: undefined, - off___23681: undefined, - guess___23682: undefined, - m___23701: undefined, - v___23710: undefined, - i___23766: undefined, - j___23771: undefined, - mask___23772: undefined, - c___23773: undefined, - n___23790: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function image_getFontForText__P17865(s) { +function tiles_TileMap_scale__P50649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8505,60 +8636,192 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___23900 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___23900 = (0); - case 1: - s.tmp_1 = r0 = s.i___23900; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_scale__P50649.info = {"start":6125,"length":55,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMap_scale__P50649.isGetter = true; + +function tiles_TileMap_scale__P50649_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_scale__P50649, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_TileMapData_height__P50637(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMapData_height__P50637.info = {"start":3734,"length":65,"line":139,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} +tiles_TileMapData_height__P50637.isGetter = true; + +function tiles_TileMapData_height__P50637_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMapData_height__P50637, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetY__P50690(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_offsetY__P50690.info = {"start":966,"length":59,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} +scene_Camera_offsetY__P50690.isGetter = true; + +function scene_Camera_offsetY__P50690_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetY__P50690, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetX__P50689(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___56797 = 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__C50683_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 757; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___56797 = (r0); + r0 = s.scene___56797.fields["tileMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___23900); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___56797.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 = (s.tmp_4 > 8192); + r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 2; continue; } - r0 = globals.font12___17864; - { step = 5; continue; } + 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_9 = tiles_TileMap_offsetX__P50651_mk(s); + r0 = s.scene___56797.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 759; s.pc = 6; return s.tmp_9; + case 6: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); + { step = 4; continue; } case 3: - r0 = (s.i___23900 + 1); - s.i___23900 = (r0); - { step = 1; continue; } + r0 = (s.arg0).fields["_offsetX"] = (s.arg1); case 4: - r0 = globals.font8___17863; - case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -image_getFontForText__P17865.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +scene_Camera_offsetX__P50689.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} -function image_getFontForText__P17865_mk(s) { +function scene_Camera_offsetX__P50689_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P17865, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P50689, depth: s.depth + 1, pc: 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___23900: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + scene___56797: undefined, arg0: undefined, + arg1: undefined, } } -function helpers_imageFillRect__P17846(s) { +function tiles_TileMap_offsetX__P50651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8571,38 +8834,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P19739_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 80; s.pc = 1; return s.tmp_2; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P48447_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P48450_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P50653_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 696; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P19739_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 81; s.pc = 2; return s.tmp_4; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___50127); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 697; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); - r0 = undefined; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 698; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P17846.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +tiles_TileMap_offsetX__P50651.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function helpers_imageFillRect__P17846_mk(s) { +function tiles_TileMap_offsetX__P50651_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P17846, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P50651, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8611,17 +8877,13 @@ function helpers_imageFillRect__P17846_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function helpers_pack__P19739(s) { +function tiles_TileMap_areaWidth__P50653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8633,57 +8895,86 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P16240_mk(s); - s.tmp_2.arg0 = -30000; - s.tmp_2.arg1 = 30000; - r0 = (s.arg0 | 0); - s.tmp_2.arg2 = r0; - s.callLocIdx = 77; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 65535); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P16240_mk(s); - s.tmp_5.arg0 = -30000; - s.tmp_5.arg1 = 30000; - r0 = (s.arg1 | 0); - s.tmp_5.arg2 = r0; - s.callLocIdx = 78; s.pc = 2; return s.tmp_5; + 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; } + case 1: + r0 = 0; case 2: - r0 = s.retval; + // jmp value (already in r0) s.tmp_4 = r0; - r0 = (s.tmp_4 << 16); - s.tmp_3 = r0; - r0 = (s.tmp_0 | s.tmp_3); + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -helpers_pack__P19739.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +tiles_TileMap_areaWidth__P50653.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function helpers_pack__P19739_mk(s) { +function tiles_TileMap_areaWidth__P50653_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P19739, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P50653, depth: s.depth + 1, pc: 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__P16240(s) { +function tiles_TileMapData_width__P50636(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMapData_width__P50636.info = {"start":3661,"length":63,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} +tiles_TileMapData_width__P50636.isGetter = true; + +function tiles_TileMapData_width__P50636_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMapData_width__P50636, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_offsetX__P50688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8695,44 +8986,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P16244_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P16243_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) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -Math_clamp__P16240.info = {"start":15178,"length":130,"line":514,"column":4,"endLine":516,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +scene_Camera_offsetX__P50688.info = {"start":622,"length":59,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} +scene_Camera_offsetX__P50688.isGetter = true; -function Math_clamp__P16240_mk(s) { +function scene_Camera_offsetX__P50688_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P16240, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P50688, 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 Math_min__P16244(s) { +function Sprite_y__P50356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8744,39 +9021,45 @@ 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; } - case 1: - case 2: - r0 = s.arg1; - case 3: - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 / 256); + s.tmp_0 = r0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -Math_min__P16244.info = {"start":16314,"length":105,"line":551,"column":4,"endLine":554,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} +Sprite_y__P50356.info = {"start":2028,"length":85,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P50356.isGetter = true; -function Math_min__P16244_mk(s) { +function Sprite_y__P50356_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P16244, depth: s.depth + 1, + parent: s, fn: Sprite_y__P50356, depth: s.depth + 1, pc: 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 helpers_imageDrawIcon__P17845(s) { +function Fx_toFloat__P48491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8788,49 +9071,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.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P19739_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 79; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); - r0 = undefined; + r0 = (s.arg0 / 256); return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P17845.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +Fx_toFloat__P48491.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function helpers_imageDrawIcon__P17845_mk(s) { +function Fx_toFloat__P48491_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P17845, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P48491, depth: s.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 helpers_stringSplit__P16235(s) { +function Sprite_x__P50354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8840,186 +9101,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___23923 = undefined; - s.lim___23925 = undefined; - s.s___23941 = undefined; - s.p___23944 = undefined; - s.R___23945 = undefined; - s.z___23959 = undefined; - s.T___23972 = undefined; - s.q___23973 = undefined; - s.e___23979 = 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___23923 = (r0); - s.lim___23925 = (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___23925 = (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___23925 = (0); - { step = 3; continue; } - case 2: - r0 = (s.arg2 | 0); - s.lim___23925 = (r0); - case 3: - case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___23941 = (r0); - s.p___23944 = (0); - s.R___23945 = (s.arg1); - r0 = (s.lim___23925 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___23923; - { 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___23923, 0, s.arg0); - r0 = s.A___23923; - { step = 21; continue; } - case 7: - case 8: - r0 = (s.s___23941 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P19598_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___23945; - s.callLocIdx = 10; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.z___23959 = (r0); - r0 = (s.z___23959 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___23923; - { step = 21; continue; } - case 9: - case 10: - r0 = pxsim_Array_.setAt(s.A___23923, 0, s.arg0); - r0 = s.A___23923; - { step = 21; continue; } - case 11: - case 12: - s.q___23973 = (s.p___23944); - case 13: - r0 = (s.q___23973 != s.s___23941); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P19598_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___23973; - s.tmp_1.arg2 = s.R___23945; - s.callLocIdx = 11; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - s.e___23979 = (r0); - r0 = (s.e___23979 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___23973 + 1); - s.q___23973 = (r0); - { step = 19; continue; } - case 14: - r0 = (s.e___23979 == s.p___23944); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___23973 + 1); - s.q___23973 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P16233_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___23944; - s.tmp_0.arg2 = s.q___23973; - s.callLocIdx = 12; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.T___23972 = (r0); - r0 = pxsim_Array__push(s.A___23923, s.T___23972); - r0 = pxsim_Array__length(s.A___23923); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___23925); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___23923; - { step = 21; continue; } - case 16: - case 17: - s.p___23944 = (s.e___23979); - s.q___23973 = (s.p___23944); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P16233_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___23944; - s.tmp_0.arg2 = s.q___23973; - s.callLocIdx = 13; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.T___23972 = (r0); - r0 = pxsim_Array__push(s.A___23923, s.T___23972); - r0 = s.A___23923; - case 21: - return leave(s, r0) + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -helpers_stringSplit__P16235.info = {"start":12454,"length":1319,"line":420,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +Sprite_x__P50354.info = {"start":1680,"length":84,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P50354.isGetter = true; -function helpers_stringSplit__P16235_mk(s) { +function Sprite_x__P50354_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P16235, depth: s.depth + 1, + parent: s, fn: Sprite_x__P50354, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___23923: undefined, - lim___23925: undefined, - s___23941: undefined, - p___23944: undefined, - R___23945: undefined, - z___23959: undefined, - T___23972: undefined, - q___23973: undefined, - e___23979: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_splitMatch__P19598(s) { +function PhysicsEngine_move__P50494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9029,85 +9151,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___24059 = undefined; - s.s___24062 = undefined; - s.i___24072 = 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___24059 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___24062 = (r0); - r0 = (s.arg1 + s.r___24059); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___24062); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = -1; - { step = 7; continue; } - case 1: - case 2: - s.i___24072 = (0); - case 3: - r0 = (s.i___24072 < s.r___24059); - 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___24072); - 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___24072); - 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___24072 + 1); - s.i___24072 = (r0); - { step = 3; continue; } - case 6: - r0 = (s.arg1 + s.r___24059); - case 7: + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_splitMatch__P19598.info = {"start":13779,"length":289,"line":466,"column":4,"endLine":475,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +PhysicsEngine_move__P50494.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 helpers_splitMatch__P19598_mk(s) { +function PhysicsEngine_move__P50494_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P19598, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P50494, depth: s.depth + 1, pc: 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___24059: undefined, - s___24062: undefined, - i___24072: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_stringSlice__P16233(s) { +function PhysicsEngine_draw__P50493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9117,81 +9187,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___24024 = 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___24024 = (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__P16243_mk(s); - r0 = (s.len___24024 + 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___24024); - { 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___24024 + 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.arg0; + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_stringSlice__P16233.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"]} +PhysicsEngine_draw__P50493.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function helpers_stringSlice__P16233_mk(s) { +function PhysicsEngine_draw__P50493_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P16233, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P50493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - len___24024: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P18562(s) { +function controller___update__P50275(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9201,139 +9221,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___24156 = undefined; - s.unnamed156___U1 = undefined; - s.unnamed157___U2 = undefined; + s.dtms___57201 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_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); + r0 = (s.arg0 * 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["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__P18562_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 802; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P18397_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 803; 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); + r0 = (s.tmp_0 | 0); + s.dtms___57201 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P57208); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P16219_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P24133; - s.callLocIdx = 808; s.pc = 14; return s.tmp_2; - case 14: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___57201); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_2 = controller_players__P50243_mk(s); + s.callLocIdx = 191; s.pc = 2; return s.tmp_2; + case 2: 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___24156 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed156___U1 = (r0); - s.unnamed157___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed157___U2; - r0 = pxsim_Array__length(s.unnamed156___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed156___U1, s.unnamed157___U2); - s.s___24156 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___24156; - 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 = 809; 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 = 809; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 809; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 809; s.pc = 15; return s.tmp_2; } - } - case 15: + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 193; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - r0 = (s.unnamed157___U2 + 1); - s.unnamed157___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed156___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__P18562.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +controller___update__P50275.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function scene_Scene_render__P18562_mk(s) { +function controller___update__P50275_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P18562, depth: s.depth + 1, + parent: s, fn: controller___update__P50275, depth: s.depth + 1, pc: 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___24156: undefined, - unnamed156___U1: undefined, - unnamed157___U2: undefined, + dtms___57201: undefined, arg0: undefined, } } @@ -9341,7 +9265,7 @@ function scene_Scene_render__P18562_mk(s) { -function inline__P24133(s) { +function inline__P57208(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9353,102 +9277,34 @@ 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 = 804; 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 = 805; 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 = controller_Controller___update__P50273_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 192; 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 = 806; 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 = 807; 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() } } } -inline__P24133.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +inline__P57208.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P24133_mk(s) { +function inline__P57208_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24133, depth: s.depth + 1, + parent: s, fn: inline__P57208, depth: s.depth + 1, pc: 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__P18397(s) { +function controller_Controller___update__P50273(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9460,60 +9316,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C18388_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___17920, s.tmp_0); - r0 = s.arg0.fields["_image"]; + 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, inline__P57221); 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___17920, s.tmp_1, 0, 0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 190; s.pc = 1; return s.tmp_1; 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, inline__P24188); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P16223_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 679; s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw__P18397.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +controller_Controller___update__P50273.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function scene_Background_draw__P18397_mk(s) { +function controller_Controller___update__P50273_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P18397, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P50273, depth: s.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 inline__P24188(s) { +function inline__P57221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9523,58 +9374,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___24190 = undefined; - s.oy___24201 = 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___24190 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___24201 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P18406_mk(s); + s.tmp_0 = controller_Button___update__P50240_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___24190; - s.tmp_0.arg2 = s.oy___24201; - s.callLocIdx = 678; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 189; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P24188.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +inline__P57221.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function inline__P24188_mk(s) { +function inline__P57221_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24188, depth: s.depth + 1, + parent: s, fn: inline__P57221, depth: s.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___24190: undefined, - oy___24201: undefined, arg0: undefined, } } @@ -9582,7 +9404,7 @@ function inline__P24188_mk(s) { -function scene_BackgroundLayer_draw__P18406(s) { +function controller_Button___update__P50240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9592,251 +9414,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___24219 = undefined; - s.h___24222 = undefined; - s.pw___24225 = undefined; - s.ph___24229 = undefined; - s.rx___24238 = undefined; - s.ry___24241 = undefined; - s.y___24310 = undefined; - s.py___24311 = undefined; - s.dh___24320 = undefined; - s.x___24328 = undefined; - s.rxl___24329 = undefined; - s.px___24335 = undefined; - s.dw___24339 = undefined; + s.delay___57237 = undefined; + s.interval___57246 = undefined; + s.count___57259 = 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__C18398_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___17920); - s.w___24219 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___17920); - s.h___24222 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___24225 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___24229 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___24225); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 11; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___24229); - 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); + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - { step = 23; continue; } + r0 = globals.defaultRepeatDelay___52025; + { step = 4; continue; } case 3: + r0 = s.arg0.fields["repeatDelay"]; case 4: - r0 = (0 - s.arg1); - s.rx___24238 = (r0); - r0 = (0 - s.arg2); - s.ry___24241 = (r0); - r0 = s.arg0.fields["alignX"]; + // jmp value (already in r0) + s.tmp_2 = r0; + s.delay___57237 = (s.tmp_2); + r0 = s.arg0.fields["repeatInterval"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); 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; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = globals.defaultRepeatInterval___52027; + { step = 6; continue; } case 5: - s.tmp_1 = r0 = s.rx___24238; - r0 = (s.w___24219 + s.pw___24225); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___24238 = (r0); - { step = 7; continue; } + r0 = s.arg0.fields["repeatInterval"]; case 6: - s.tmp_0 = r0 = s.rx___24238; - r0 = (s.w___24219 + s.pw___24225); + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + s.interval___57246 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___24238 = (r0); - case 7: - r0 = s.arg0.fields["alignY"]; + r0 = (s.tmp_1 < s.delay___57237); 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; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 11; continue; } + case 7: case 8: - s.tmp_1 = r0 = s.ry___24241; - r0 = (s.h___24222 + s.ph___24229); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___24241 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___24241; - r0 = (s.h___24222 + s.ph___24229); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___57237); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___57246); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___57246); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___57259 = (r0); + r0 = s.arg0.fields["_repeatCount"]; s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___24241 = (r0); - case 10: - r0 = (s.rx___24238 % s.w___24219); - s.rx___24238 = (r0); - r0 = (s.rx___24238 < 0); + r0 = (s.count___57259 != s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___24238 + s.w___24219); - s.rx___24238 = (r0); - case 11: + if (!r0) { step = 9; continue; } + s.tmp_2 = controller_Button_raiseButtonRepeat__P52032_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 147; s.pc = 12; return s.tmp_2; case 12: - r0 = (s.ry___24241 % s.h___24222); - s.ry___24241 = (r0); - r0 = (s.ry___24241 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___24241 + s.h___24222); - s.ry___24241 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___24238); - s.rx___24238 = (r0); - r0 = pxsim.Math_.floor(s.ry___24241); - s.ry___24241 = (r0); - s.y___24310 = (0); - s.py___24311 = (0); - case 15: - r0 = (s.y___24310 < s.h___24222); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___24310 % s.ph___24229); - s.py___24311 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); - r0 = (s.ph___24229 - s.py___24311); - s.tmp_0.arg0 = r0; - r0 = (s.h___24222 - s.ry___24241); - s.tmp_0.arg1 = r0; - s.callLocIdx = 681; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___24320 = (r0); - s.x___24328 = (0); - s.rxl___24329 = (s.rx___24238); - case 16: - r0 = (s.x___24328 < s.w___24219); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___24328 % s.pw___24225); - s.px___24335 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); - r0 = (s.pw___24225 - s.px___24335); - s.tmp_0.arg0 = r0; - r0 = (s.w___24219 - s.rxl___24329); - s.tmp_0.arg1 = r0; - s.callLocIdx = 682; s.pc = 25; return s.tmp_0; - case 25: r0 = s.retval; - s.dw___24339 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___17920, s.tmp_0, s.rxl___24329, s.ry___24241); - r0 = (s.rxl___24329 + s.dw___24339); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___24219); - s.rxl___24329 = (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___24339; - { step = 18; continue; } - case 17: - r0 = s.w___24219; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___24328 + s.tmp_1); - s.x___24328 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___24241 + s.dh___24320); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___24222); - s.ry___24241 = (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___24320; - { step = 21; continue; } - case 20: - r0 = s.h___24222; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.y___24310 + s.tmp_1); - s.y___24310 = (r0); - { step = 15; continue; } - case 22: - case 23: + r0 = (s.arg0).fields["_repeatCount"] = (s.count___57259); + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P18406.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"]} +controller_Button___update__P50240.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function scene_BackgroundLayer_draw__P18406_mk(s) { +function controller_Button___update__P50240_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P18406, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P50240, depth: s.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___24219: undefined, - h___24222: undefined, - pw___24225: undefined, - ph___24229: undefined, - rx___24238: undefined, - ry___24241: undefined, - y___24310: undefined, - py___24311: undefined, - dh___24320: undefined, - x___24328: undefined, - rxl___24329: undefined, - px___24335: undefined, - dw___24339: undefined, + tmp_4: undefined, + tmp_5: undefined, + delay___57237: undefined, + interval___57246: undefined, + count___57259: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Camera_update__P18492(s) { +function controller_Button_raiseButtonRepeat__P52032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9846,182 +9541,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___24420 = undefined; - s.percentComplete___24434 = undefined; - s.damp___24441 = undefined; - s.f___24450 = undefined; - s.x___24456 = undefined; - s.y___24463 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___52023); if (!r0) { step = 1; continue; } - s.tmp_1 = scene_Camera_offsetX__P18482_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P18147_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 763; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg1 = r0; - s.callLocIdx = 764; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P18484_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P18149_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 765; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); - 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 = 766; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = scene_Camera_offsetX__P18482_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - r0 = s.tmp_1.fields["_offsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0.arg1 = r0; - s.callLocIdx = 768; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P18484_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - r0 = s.tmp_1.fields["_offsetY"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0.arg1 = r0; - s.callLocIdx = 770; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - 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___24420 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___24420 >= 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___24420 / s.tmp_0); - s.percentComplete___24434 = (r0); - s.damp___24441 = (1); - r0 = (s.percentComplete___24434 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P16243_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___24434); - s.tmp_1.arg1 = r0; - s.callLocIdx = 773; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___24441 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___24441); - s.f___24450 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___24450); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___24456 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___24450); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___24463 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___24456); - 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___24463); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: + 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_update__P18492.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +controller_Button_raiseButtonRepeat__P52032.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function scene_Camera_update__P18492_mk(s) { +function controller_Button_raiseButtonRepeat__P52032_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P18492, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P52032, depth: s.depth + 1, pc: 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, - elapsed___24420: undefined, - percentComplete___24434: undefined, - damp___24441: undefined, - f___24450: undefined, - x___24456: undefined, - y___24463: undefined, arg0: undefined, } } @@ -10029,7 +9577,7 @@ function scene_Camera_update__P18492_mk(s) { -function scene_Camera_offsetY__P18484(s) { +function controller_players__P50243(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10039,87 +9587,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___24498 = 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__C18476_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 760; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___24498 = (r0); - r0 = s.scene___24498.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.tmp_0 = controller__player1__P50242_mk(s); + s.callLocIdx = 150; s.pc = 1; return s.tmp_0; case 1: - r0 = s.scene___24498.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.retval; + s.tmp_0 = helpers_arrayFilter__P48431_mk(s); + s.tmp_0.arg0 = globals._players___52036; + s.tmp_0.arg1 = inline__P57078; + s.callLocIdx = 151; s.pc = 2; return s.tmp_0; 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_9 = tiles_TileMap_offsetY__P18445_mk(s); - r0 = s.scene___24498.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 762; s.pc = 6; return s.tmp_9; - case 6: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_offsetY"] = (s.arg1); - case 4: - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P18484.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +controller_players__P50243.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function scene_Camera_offsetY__P18484_mk(s) { +function controller_players__P50243_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P18484, depth: s.depth + 1, + parent: s, fn: controller_players__P50243, depth: s.depth + 1, pc: 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, - scene___24498: undefined, - arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_enabled__P18450(s) { +function inline__P57078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10133,32 +9628,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P18450.info = {"start":7107,"length":66,"line":261,"column":8,"endLine":263,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_TileMap_enabled__P18450.isGetter = true; +inline__P57078.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function tiles_TileMap_enabled__P18450_mk(s) { +function inline__P57078_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P18450, depth: s.depth + 1, + parent: s, fn: inline__P57078, depth: s.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, } } @@ -10166,7 +9655,7 @@ function tiles_TileMap_enabled__P18450_mk(s) { -function tiles_TileMap_offsetY__P18445(s) { +function controller__player1__P50242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10176,59 +9665,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P16240_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P16243_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P18447_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 699; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._players___52036); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals._players___52036, 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 700; s.pc = 2; return s.tmp_1; + 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__C50248_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___50204); + r0 = pxsim_Array__push(s.tmp_6, globals.up___50205); + r0 = pxsim_Array__push(s.tmp_6, globals.right___50206); + r0 = pxsim_Array__push(s.tmp_6, globals.down___50207); + r0 = pxsim_Array__push(s.tmp_6, globals.A___50202); + r0 = pxsim_Array__push(s.tmp_6, globals.B___50203); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___50208); + s.tmp_7 = controller_Controller_constructor__P50252_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 149; s.pc = 5; return s.tmp_7; + case 5: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 701; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___52036, 0); return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P18445.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +controller__player1__P50242.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function tiles_TileMap_offsetY__P18445_mk(s) { +function controller__player1__P50242_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P18445, depth: s.depth + 1, + parent: s, fn: controller__player1__P50242, depth: s.depth + 1, pc: 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, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, } } -function tiles_TileMap_areaHeight__P18447(s) { +function controller_Controller_constructor__P50252(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10238,53 +9739,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.leftId___57143 = undefined; + s.i___57151 = undefined; + s.i___57169 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, controller_Controller__C50248_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["_map"]; + 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.fields["_height"]; + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; + r0 = (s.tmp_1 * 7); + s.tmp_0 = r0; + r0 = (1 + s.tmp_0); + s.leftId___57143 = (r0); + s.i___57151 = (0); + case 2: + r0 = (s.i___57151 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C50228_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P50234_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___57143 + s.i___57151); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 155; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = s.arg0.fields["buttons"]; s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); + r0 = pxsim_Array__push(s.tmp_3, s.tmp_1); + r0 = (s.i___57151 + 1); + s.i___57151 = (r0); { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + case 3: + case 4: + s.i___57169 = (0); + case 5: + s.tmp_1 = r0 = s.i___57169; + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___57169); s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___57169 + 1); + s.i___57169 = (r0); + { step = 5; continue; } + case 6: + s.tmp_0 = controller_addController__P52037_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 156; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P18447.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +controller_Controller_constructor__P50252.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} -function tiles_TileMap_areaHeight__P18447_mk(s) { +function controller_Controller_constructor__P50252_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P18447, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P50252, depth: s.depth + 1, pc: 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___57143: undefined, + i___57151: undefined, + i___57169: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function tiles_TileMap_scale__P18442(s) { +function controller_addController__P52037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10298,20 +9866,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(globals._players___52036); + 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___52036 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___52036; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P18442.info = {"start":6125,"length":55,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMap_scale__P18442.isGetter = true; +controller_addController__P52037.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function tiles_TileMap_scale__P18442_mk(s) { +function controller_addController__P52037_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P18442, depth: s.depth + 1, + parent: s, fn: controller_addController__P52037, 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, } } @@ -10319,7 +9903,7 @@ function tiles_TileMap_scale__P18442_mk(s) { -function tiles_TileMapData_height__P18430(s) { +function helpers_arrayFilter__P48431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10329,32 +9913,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___56997 = undefined; + s.len___56999 = undefined; + s.i___57002 = undefined; + s.v___57007 = 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__C18427_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + r0 = pxsim_Array__mk(); + s.res___56997 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___56999 = (r0); + s.i___57002 = (0); + case 1: + r0 = (s.i___57002 < s.len___56999); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___57002); + s.v___57007 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___57007; + s.tmp_1.arg1 = s.i___57002; + 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___56997, s.v___57007); + case 2: + case 3: + r0 = (s.i___57002 + 1); + s.i___57002 = (r0); + { step = 1; continue; } + case 4: + r0 = s.res___56997; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_height__P18430.info = {"start":3734,"length":65,"line":139,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} -tiles_TileMapData_height__P18430.isGetter = true; +helpers_arrayFilter__P48431.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 tiles_TileMapData_height__P18430_mk(s) { +function helpers_arrayFilter__P48431_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P18430, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P48431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + res___56997: undefined, + len___56999: undefined, + i___57002: undefined, + v___57007: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Camera_offsetY__P18483(s) { +function controller__moveSprites__P50247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10364,32 +9987,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1 = controller_players__P50243_mk(s); + s.callLocIdx = 152; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P56847; + s.callLocIdx = 154; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P18483.info = {"start":966,"length":59,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} -scene_Camera_offsetY__P18483.isGetter = true; +controller__moveSprites__P50247.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function scene_Camera_offsetY__P18483_mk(s) { +function controller__moveSprites__P50247_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P18483, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P50247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function scene_Camera_offsetX__P18482(s) { +function inline__P56847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10399,87 +10026,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___24565 = 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__C18476_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 757; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___24565 = (r0); - r0 = s.scene___24565.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.tmp_0 = controller_Controller___preUpdate__P50272_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 153; s.pc = 1; return s.tmp_0; case 1: - r0 = s.scene___24565.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_9 = tiles_TileMap_offsetX__P18444_mk(s); - r0 = s.scene___24565.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 759; s.pc = 6; return s.tmp_9; - case 6: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_offsetX"] = (s.arg1); - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P18482.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +inline__P56847.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function scene_Camera_offsetX__P18482_mk(s) { +function inline__P56847_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P18482, depth: s.depth + 1, + parent: s, fn: inline__P56847, depth: s.depth + 1, pc: 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, - scene___24565: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_offsetX__P18444(s) { +function controller_Controller___preUpdate__P50272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10489,59 +10064,334 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.deadSprites___56854 = undefined; + s.svx___56855 = undefined; + s.svy___56856 = undefined; + s.svxInCricle___56891 = undefined; + s.svyInCircle___56893 = undefined; + s.sq___56895 = undefined; + s.scale___56910 = 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__C18440_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P16240_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P16243_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P18446_mk(s); + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P50253_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 164; 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___56854 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___56854, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___56855 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___56855, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___56856 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___56856, 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___56855; + s.tmp_5 = controller_Button_pressureLevel__P50238_mk(s); + s.tmp_6 = controller_Controller_right__P50258_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 165; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 166; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P50238_mk(s); + s.tmp_9 = controller_Controller_left__P50257_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 167; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 168; 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___56856; + s.tmp_4 = controller_Button_pressureLevel__P50238_mk(s); + s.tmp_5 = controller_Controller_down__P50260_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 169; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 170; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P50238_mk(s); + s.tmp_8 = controller_Controller_up__P50259_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 171; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 172; 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__C50228_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P50258_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 173; 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__C50228_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__C50228_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P50257_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 174; 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__C50228_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___56855; + 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__C50228_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P50260_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 175; 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__C50228_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__C50228_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P50259_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 176; 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__C50228_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___56856; + 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___56891 = (r0); + s.tmp_0 = r0 = s.svxInCricle___56891; + r0 = pxsim_pxtrt_ldlocRef(s.svx___56855); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___56893 = (r0); + s.tmp_0 = r0 = s.svyInCircle___56893; + r0 = pxsim_pxtrt_ldlocRef(s.svy___56856); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___56855); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___56855); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___56856); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___56856); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___56895 = (r0); + r0 = (s.sq___56895 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___56895); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___56910 = (r0); + s.tmp_0 = r0 = s.svxInCricle___56891; + s.tmp_3 = r0 = s.scale___56910; + r0 = pxsim_pxtrt_ldlocRef(s.svx___56855); + 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___56893; + s.tmp_3 = r0 = s.scale___56910; + r0 = pxsim_pxtrt_ldlocRef(s.svy___56856); + 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, inline__P56928); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___56854); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___56855); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___56856); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___56891); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___56893); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P50253_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 177; 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 = 185; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___56854); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P50254_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P48431_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P50253_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 696; s.pc = 3; return s.tmp_3; - case 3: + s.callLocIdx = 186; s.pc = 39; return s.tmp_3; + case 39: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 697; s.pc = 2; return s.tmp_1; - case 2: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = inline__P56985; + s.callLocIdx = 187; s.pc = 38; return s.tmp_2; + case 38: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 698; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_1.arg1 = r0; + s.callLocIdx = 188; 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() } } } -tiles_TileMap_offsetX__P18444.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +controller_Controller___preUpdate__P50272.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function tiles_TileMap_offsetX__P18444_mk(s) { +function controller_Controller___preUpdate__P50272_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P18444, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P50272, depth: s.depth + 1, pc: 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___56854: undefined, + svx___56855: undefined, + svy___56856: undefined, + svxInCricle___56891: undefined, + svyInCircle___56893: undefined, + sq___56895: undefined, + scale___56910: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_areaWidth__P18446(s) { +function inline__P56928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10551,165 +10401,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___56931 = undefined; + s.vx___56932 = undefined; + s.vy___56933 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + 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 = 178; s.pc = 22; return s.tmp_0; } + } + case 22: + r0 = s.retval; + s.s___56931 = (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 = 179; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___56932 = (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 = 180; s.pc = 24; return s.tmp_3; } + } + case 24: + r0 = s.retval; + s.vy___56933 = (r0); + r0 = s.s___56931.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 = 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; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } case 1: - r0 = 0; 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___56932); + if (!r0) { step = 3; continue; } + r0 = (s.s___56931).fields["_vx"] = (0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___56933); + if (!r0) { step = 5; continue; } + r0 = (s.s___56931).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_4 = r0; - r0 = s.tmp_4; - return leave(s, r0) - default: oops() -} } } -tiles_TileMap_areaWidth__P18446.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} - -function tiles_TileMap_areaWidth__P18446_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_areaWidth__P18446, depth: s.depth + 1, - pc: 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_TileMapData_width__P18429(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMapData_width__P18429.info = {"start":3661,"length":63,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} -tiles_TileMapData_width__P18429.isGetter = true; - -function tiles_TileMapData_width__P18429_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_width__P18429, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_Camera_offsetX__P18481(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_offsetX__P18481.info = {"start":622,"length":59,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} -scene_Camera_offsetX__P18481.isGetter = true; - -function scene_Camera_offsetX__P18481_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_offsetX__P18481, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Sprite_y__P18149(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__C18138_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); - s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___56932; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___56933; + case 12: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 13; continue; } + s.tmp_4 = r0 = s.s___56931; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___56932); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___56931; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___56933); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___56932); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___56931; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___56932); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.vy___56933); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___56931; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___56933); + 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() } } } -Sprite_y__P18149.info = {"start":2028,"length":85,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P18149.isGetter = true; +inline__P56928.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function Sprite_y__P18149_mk(s) { +function inline__P56928_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P18149, depth: s.depth + 1, + parent: s, fn: inline__P56928, depth: s.depth + 1, pc: 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___56931: undefined, + vx___56932: undefined, + vy___56933: undefined, arg0: undefined, } } @@ -10717,7 +10569,7 @@ function Sprite_y__P18149_mk(s) { -function Fx_toFloat__P16284(s) { +function inline__P56985(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10731,17 +10583,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 / 256); + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -Fx_toFloat__P16284.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +inline__P56985.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function Fx_toFloat__P16284_mk(s) { +function inline__P56985_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P16284, depth: s.depth + 1, + parent: s, fn: inline__P56985, 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, } } @@ -10749,7 +10611,7 @@ function Fx_toFloat__P16284_mk(s) { -function Sprite_x__P18147(s) { +function controller_Controller_down__P50260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10764,34 +10626,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + r0 = (4 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -Sprite_x__P18147.info = {"start":1680,"length":84,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P18147.isGetter = true; +controller_Controller_down__P50260.info = {"start":9528,"length":77,"line":312,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} +controller_Controller_down__P50260.isGetter = true; -function Sprite_x__P18147_mk(s) { +function controller_Controller_down__P50260_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P18147, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P50260, depth: s.depth + 1, pc: 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, } } @@ -10799,7 +10652,7 @@ function Sprite_x__P18147_mk(s) { -function PhysicsEngine_move__P18287(s) { +function controller_Controller_button__P52038(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10815,18 +10668,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); - r0 = undefined; + if (!checkSubtype(r0, controller_Controller__C50248_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) default: oops() } } } -PhysicsEngine_move__P18287.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +controller_Controller_button__P52038.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function PhysicsEngine_move__P18287_mk(s) { +function controller_Controller_button__P52038_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P18287, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P52038, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -10835,7 +10694,7 @@ function PhysicsEngine_move__P18287_mk(s) { -function PhysicsEngine_draw__P18286(s) { +function controller_Controller_up__P50259(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10850,18 +10709,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -PhysicsEngine_draw__P18286.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +controller_Controller_up__P50259.info = {"start":9376,"length":73,"line":304,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} +controller_Controller_up__P50259.isGetter = true; -function PhysicsEngine_draw__P18286_mk(s) { +function controller_Controller_up__P50259_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P18286, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P50259, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -10869,7 +10735,7 @@ function PhysicsEngine_draw__P18286_mk(s) { -function controller___update__P18068(s) { +function controller_Controller_right__P50258(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10879,43 +10745,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___24969 = 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___24969 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P24976); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___24969); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_2 = controller_players__P18036_mk(s); - s.callLocIdx = 191; 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 = 193; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -controller___update__P18068.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +controller_Controller_right__P50258.info = {"start":9220,"length":79,"line":296,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} +controller_Controller_right__P50258.isGetter = true; -function controller___update__P18068_mk(s) { +function controller_Controller_right__P50258_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P18068, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P50258, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - dtms___24969: undefined, arg0: undefined, } } @@ -10923,7 +10776,7 @@ function controller___update__P18068_mk(s) { -function inline__P24976(s) { +function controller_Controller_left__P50257(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10937,24 +10790,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P18066_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 192; 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__C50248_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() } } } -inline__P24976.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +controller_Controller_left__P50257.info = {"start":9063,"length":77,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} +controller_Controller_left__P50257.isGetter = true; -function inline__P24976_mk(s) { +function controller_Controller_left__P50257_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24976, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P50257, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -10962,7 +10817,7 @@ function inline__P24976_mk(s) { -function controller_Controller___update__P18066(s) { +function controller_Controller__controlledSprites__P50254(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10978,42 +10833,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_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, inline__P24989); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 190; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 158; 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; return leave(s, r0) default: oops() } } } -controller_Controller___update__P18066.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Controller__controlledSprites__P50254.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function controller_Controller___update__P18066_mk(s) { +function controller_Controller__controlledSprites__P50254_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P18066, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P50254, depth: s.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, } } @@ -11022,7 +10865,7 @@ function controller_Controller___update__P18066_mk(s) { -function inline__P24989(s) { +function controller_Controller__controlledSprites__P50253(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11036,25 +10879,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P18033_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 189; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 157; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -inline__P24989.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +controller_Controller__controlledSprites__P50253.info = {"start":8555,"length":132,"line":268,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} +controller_Controller__controlledSprites__P50253.isGetter = true; -function inline__P24989_mk(s) { +function controller_Controller__controlledSprites__P50253_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24989, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P50253, 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, } } @@ -11062,7 +10911,7 @@ function inline__P24989_mk(s) { -function controller_Button___update__P18033(s) { +function controller_Button_pressureLevel__P50238(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11072,105 +10921,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___25005 = undefined; - s.interval___25014 = undefined; - s.count___25027 = 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__C18021_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + 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__C50228_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C50228_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; } - { step = 11; continue; } + r0 = 512; + { step = 2; continue; } case 1: + r0 = 0; case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); + // jmp value (already in r0) s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___19818; + r0 = s.tmp_4; + { step = 5; continue; } { step = 4; continue; } case 3: - r0 = s.arg0.fields["repeatDelay"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___25005 = (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___19820; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___25014 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___25005); - 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"]; + r0 = s.arg0.fields["id"]; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___25005); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___25014); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___25014); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___25027 = (r0); - r0 = s.arg0.fields["_repeatCount"]; - s.tmp_1 = r0; - r0 = (s.count___25027 != 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__P19825_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 147; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___25027); - case 9: - case 10: - case 11: + 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___update__P18033.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Button_pressureLevel__P50238.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} -function controller_Button___update__P18033_mk(s) { +function controller_Button_pressureLevel__P50238_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P18033, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P50238, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11178,18 +10977,14 @@ function controller_Button___update__P18033_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - delay___25005: undefined, - interval___25014: undefined, - count___25027: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_raiseButtonRepeat__P19825(s) { +function controller_Button_isPressed__P50237(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11204,30 +10999,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___19816); - 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; + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P19825.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +controller_Button_isPressed__P50237.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_Button_raiseButtonRepeat__P19825_mk(s) { +function controller_Button_isPressed__P50237_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P19825, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P50237, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -11235,7 +11018,7 @@ function controller_Button_raiseButtonRepeat__P19825_mk(s) { -function controller_players__P18036(s) { +function Fx_imul__P48481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11245,34 +11028,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P18035_mk(s); - s.callLocIdx = 150; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P16224_mk(s); - s.tmp_0.arg0 = globals._players___19829; - s.tmp_0.arg1 = inline__P24846; - s.callLocIdx = 151; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim.Math_.imul(s.arg0, s.arg1); return leave(s, r0) default: oops() } } } -controller_players__P18036.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +Fx_imul__P48481.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 controller_players__P18036_mk(s) { +function Fx_imul__P48481_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P18036, depth: s.depth + 1, + parent: s, fn: Fx_imul__P48481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P24846(s) { +function power_checkDeepSleep__P50031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11282,38 +11062,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); + s.p___55655 = undefined; + s.to___55658 = undefined; + s.tmp_0 = power_init__P51937_mk(s); + s.callLocIdx = 76; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = r0 = globals._poked___51935; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.p___55655 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___51936; + 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___55658 = (s.tmp_1); + r0 = (s.to___55658 > 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 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 - s.p___55655); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_1 > s.to___55658); + 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() } } } -inline__P24846.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +power_checkDeepSleep__P50031.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function inline__P24846_mk(s) { +function power_checkDeepSleep__P50031_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24846, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P50031, 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, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + p___55655: undefined, + to___55658: undefined, } } -function controller__player1__P18035(s) { +function power_init__P51937(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11323,71 +11159,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___19829); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (globals._timeout___51936 !== undefined); 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 = pxsim_Array__getAt(globals._players___19829, 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__C18041_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___17997); - r0 = pxsim_Array__push(s.tmp_6, globals.up___17998); - r0 = pxsim_Array__push(s.tmp_6, globals.right___17999); - r0 = pxsim_Array__push(s.tmp_6, globals.down___18000); - r0 = pxsim_Array__push(s.tmp_6, globals.A___17995); - r0 = pxsim_Array__push(s.tmp_6, globals.B___17996); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___18001); - s.tmp_7 = controller_Controller_constructor__P18045_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 149; s.pc = 5; return s.tmp_7; - case 5: - r0 = s.retval; + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___51936 = (r0); + r0 = (globals._timeout___51936 > 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___51936 < 300000); case 4: - r0 = pxsim_Array__getAt(globals._players___19829, 0); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + globals._timeout___51936 = (300000); + case 5: + case 6: + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P18035.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +power_init__P51937.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function controller__player1__P18035_mk(s) { +function power_init__P51937_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P18035, depth: s.depth + 1, + parent: s, fn: power_init__P51937, depth: s.depth + 1, pc: 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, } } -function controller_Controller_constructor__P18045(s) { +function power_poke__P50030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11397,120 +11216,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___24911 = undefined; - s.i___24919 = undefined; - s.i___24937 = 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__C18041_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } + s.tmp_0 = power_init__P51937_mk(s); + s.callLocIdx = 75; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); - s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___24911 = (r0); - s.i___24919 = (0); - case 2: - r0 = (s.i___24919 < 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C18021_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P18027_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___24911 + s.i___24919); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 155; 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___24919 + 1); - s.i___24919 = (r0); - { step = 2; continue; } - case 3: - case 4: - s.i___24937 = (0); - case 5: - s.tmp_1 = r0 = s.i___24937; - r0 = s.arg0.fields["buttons"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___24937); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___24937 + 1); - s.i___24937 = (r0); - { step = 5; continue; } - case 6: - s.tmp_0 = controller_addController__P19830_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 8; return s.tmp_0; - case 8: r0 = s.retval; + r0 = pxsim.control.millis(); + globals._poked___51935 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P18045.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} +power_poke__P50030.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function controller_Controller_constructor__P18045_mk(s) { +function power_poke__P50030_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P18045, depth: s.depth + 1, + parent: s, fn: power_poke__P50030, depth: s.depth + 1, pc: 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___24911: undefined, - i___24919: undefined, - i___24937: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function controller_addController__P19830(s) { +function control_EventContext_deltaTime__P48714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11524,36 +11254,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___19829); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C48709_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._players___19829 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals._players___19829; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -controller_addController__P19830.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +control_EventContext_deltaTime__P48714.info = {"start":2097,"length":75,"line":70,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} +control_EventContext_deltaTime__P48714.isGetter = true; -function controller_addController__P19830_mk(s) { +function control_EventContext_deltaTime__P48714_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P19830, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P48714, 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, } } @@ -11561,7 +11278,7 @@ function controller_addController__P19830_mk(s) { -function helpers_arrayFilter__P16224(s) { +function scene_Scene_constructor__P50763(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11571,71 +11288,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___24765 = undefined; - s.len___24767 = undefined; - s.i___24770 = undefined; - s.v___24775 = 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___24765 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___24767 = (r0); - s.i___24770 = (0); - case 1: - r0 = (s.i___24770 < s.len___24767); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C50742_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__C50503_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___24770); - s.v___24775 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___24775; - s.tmp_1.arg1 = s.i___24770; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 5; return s.tmp_1; - case 5: + s.tmp_1 = ArcadePhysicsEngine_constructor__P50504_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 = 778; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C50683_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___24765, s.v___24775); + s.tmp_1 = scene_Camera_constructor__P50687_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 779; 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__C50595_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P50599_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 780; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.i___24770 + 1); - s.i___24770 = (r0); - { step = 1; continue; } - case 4: - r0 = s.res___24765; + 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(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["controlledSprites"] = (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() } } } -helpers_arrayFilter__P16224.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"]} +scene_Scene_constructor__P50763.info = {"start":3365,"length":793,"line":102,"column":8,"endLine":120,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function helpers_arrayFilter__P16224_mk(s) { +function scene_Scene_constructor__P50763_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P16224, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P50763, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___24765: undefined, - len___24767: undefined, - i___24770: undefined, - v___24775: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function controller__moveSprites__P18040(s) { +function scene_Camera_constructor__P50687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11645,36 +11405,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1 = controller_players__P18036_mk(s); - s.callLocIdx = 152; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P24615; - s.callLocIdx = 154; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C50683_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() } } } -controller__moveSprites__P18040.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +scene_Camera_constructor__P50687.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function controller__moveSprites__P18040_mk(s) { +function scene_Camera_constructor__P50687_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P18040, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P50687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function inline__P24615(s) { +function scene_Background_constructor__P50599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11686,33 +11445,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P18065_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 153; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C50595_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P24615.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_Background_constructor__P50599.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 inline__P24615_mk(s) { +function scene_Background_constructor__P50599_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24615, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P50599, 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___preUpdate__P18065(s) { +function ArcadePhysicsEngine_constructor__P50504(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11722,334 +11487,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___24622 = undefined; - s.svx___24623 = undefined; - s.svy___24624 = undefined; - s.svxInCricle___24659 = undefined; - s.svyInCircle___24661 = undefined; - s.sq___24663 = undefined; - s.scale___24678 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P18046_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 164; s.pc = 18; return s.tmp_3; - case 18: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C50423_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 17; continue; } + s.tmp_1 = sprites_SpriteMap_constructor__P50424_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 437; s.pc = 1; return s.tmp_1; case 1: - case 2: - r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___24622 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___24622, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___24623 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___24623, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___24624 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___24624, 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___24623; - s.tmp_5 = controller_Button_pressureLevel__P18031_mk(s); - s.tmp_6 = controller_Controller_right__P18051_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 165; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 166; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P18031_mk(s); - s.tmp_9 = controller_Controller_left__P18050_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 167; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 168; 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___24624; - s.tmp_4 = controller_Button_pressureLevel__P18031_mk(s); - s.tmp_5 = controller_Controller_down__P18053_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 169; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 170; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P18031_mk(s); - s.tmp_8 = controller_Controller_up__P18052_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 171; s.pc = 26; return s.tmp_8; - case 26: r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 172; s.pc = 25; return s.tmp_7; - case 25: + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P50506_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 438; s.pc = 2; return s.tmp_0; + case 2: 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; } + s.tmp_0 = ArcadePhysicsEngine_maxStep__P50510_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 439; s.pc = 3; return s.tmp_0; case 3: - s.tmp_1 = controller_Button__C18021_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P18051_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 173; 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__C18021_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; } + s.tmp_0 = ArcadePhysicsEngine_minStep__P50508_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 440; s.pc = 4; return s.tmp_0; case 4: - r0 = 0; - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C18021_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P18050_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 174; 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__C18021_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___24623; - 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__C18021_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P18053_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 175; 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__C18021_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__C18021_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P18052_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 176; 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__C18021_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___24624; - 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___24659 = (r0); - s.tmp_0 = r0 = s.svxInCricle___24659; - r0 = pxsim_pxtrt_ldlocRef(s.svx___24623); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___24661 = (r0); - s.tmp_0 = r0 = s.svyInCircle___24661; - r0 = pxsim_pxtrt_ldlocRef(s.svy___24624); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___24623); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___24623); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___24624); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___24624); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___24663 = (r0); - r0 = (s.sq___24663 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___24663); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___24678 = (r0); - s.tmp_0 = r0 = s.svxInCricle___24659; - s.tmp_3 = r0 = s.scale___24678; - r0 = pxsim_pxtrt_ldlocRef(s.svx___24623); - 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___24661; - s.tmp_3 = r0 = s.scale___24678; - r0 = pxsim_pxtrt_ldlocRef(s.svy___24624); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_constructor__P50504.info = {"start":1451,"length":277,"line":56,"column":4,"endLine":63,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} + +function ArcadePhysicsEngine_constructor__P50504_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_constructor__P50504, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxStep__P50510(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_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 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 13: - case 14: - r0 = pxsim_pxtcore_mkAction(5, inline__P24696); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___24622); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___24623); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___24624); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___24659); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___24661); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P18046_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 177; 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 = 185; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___24622); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P18047_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P16224_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P18046_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 186; s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P24753; - s.callLocIdx = 187; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 188; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - case 15: - case 16: - case 17: + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P18065.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P50510.info = {"start":2179,"length":67,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function controller_Controller___preUpdate__P18065_mk(s) { +function ArcadePhysicsEngine_maxStep__P50510_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P18065, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P50510, depth: s.depth + 1, pc: 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___24622: undefined, - svx___24623: undefined, - svy___24624: undefined, - svxInCricle___24659: undefined, - svyInCircle___24661: undefined, - sq___24663: undefined, - scale___24678: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P24696(s) { +function ArcadePhysicsEngine_maxStep__P50509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12059,175 +11605,118 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___24699 = undefined; - s.vx___24700 = undefined; - s.vy___24701 = 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 = 178; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___24699 = (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 = 179; s.pc = 23; return s.tmp_2; } - } - case 23: - r0 = s.retval; - s.vx___24700 = (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 = 180; s.pc = 24; return s.tmp_3; } - } - case 24: - r0 = s.retval; - s.vy___24701 = (r0); - r0 = s.s___24699.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___24700); - if (!r0) { step = 3; continue; } - r0 = (s.s___24699).fields["_vx"] = (0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___24701); - if (!r0) { step = 5; continue; } - r0 = (s.s___24699).fields["_vy"] = (0); - case 5: - case 6: - case 7: - case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; 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___24700; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___24701; - 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___24699; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___24700); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___24699; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24701); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___24700); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___24699; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___24700); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___24701); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___24699; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_maxStep__P50509.info = {"start":2099,"length":74,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P50509.isGetter = true; + +function ArcadePhysicsEngine_maxStep__P50509_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxStep__P50509, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function Fx_toInt__P48490(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 + 128); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 8); + return leave(s, r0) + default: oops() +} } } +Fx_toInt__P48490.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} + +function Fx_toInt__P48490_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_toInt__P48490, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_minStep__P50508(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24701); + r0 = (s.tmp_2 | 0); 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["minSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P24696.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +ArcadePhysicsEngine_minStep__P50508.info = {"start":2026,"length":67,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function inline__P24696_mk(s) { +function ArcadePhysicsEngine_minStep__P50508_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24696, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P50508, depth: s.depth + 1, pc: 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___24699: undefined, - vx___24700: undefined, - vy___24701: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P24753(s) { +function ArcadePhysicsEngine_minStep__P50507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12241,27 +11730,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -inline__P24753.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +ArcadePhysicsEngine_minStep__P50507.info = {"start":1946,"length":74,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P50507.isGetter = true; -function inline__P24753_mk(s) { +function ArcadePhysicsEngine_minStep__P50507_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24753, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P50507, 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, } } @@ -12269,7 +11757,7 @@ function inline__P24753_mk(s) { -function controller_Controller_down__P18053(s) { +function ArcadePhysicsEngine_maxSpeed__P50506(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12281,36 +11769,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (4 - 1); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_down__P18053.info = {"start":9528,"length":77,"line":312,"column":8,"endLine":314,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} -controller_Controller_down__P18053.isGetter = true; +ArcadePhysicsEngine_maxSpeed__P50506.info = {"start":1813,"length":127,"line":69,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function controller_Controller_down__P18053_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P50506_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P18053, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P50506, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller_button__P19831(s) { +function Fx_neg__P48475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12322,37 +11820,27 @@ 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__C18041_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); + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -controller_Controller_button__P19831.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +Fx_neg__P48475.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function controller_Controller_button__P19831_mk(s) { +function Fx_neg__P48475_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P19831, depth: s.depth + 1, + parent: s, fn: Fx_neg__P48475, 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__P18052(s) { +function ArcadePhysicsEngine_maxSpeed__P50505(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12367,22 +11855,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; s.tmp_0 = r0; - r0 = (2 - 1); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = (s.tmp_1 >> 8); return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_up__P18052.info = {"start":9376,"length":73,"line":304,"column":8,"endLine":306,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} -controller_Controller_up__P18052.isGetter = true; +ArcadePhysicsEngine_maxSpeed__P50505.info = {"start":1734,"length":73,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P50505.isGetter = true; -function controller_Controller_up__P18052_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P50505_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P18052, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P50505, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12393,7 +11881,7 @@ function controller_Controller_up__P18052_mk(s) { -function controller_Controller_right__P18051(s) { +function PhysicsEngine_constructor__P50489(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12408,25 +11896,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_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) + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_right__P18051.info = {"start":9220,"length":79,"line":296,"column":8,"endLine":298,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} -controller_Controller_right__P18051.isGetter = true; +PhysicsEngine_constructor__P50489.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function controller_Controller_right__P18051_mk(s) { +function PhysicsEngine_constructor__P50489_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P18051, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P50489, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -12434,7 +11915,7 @@ function controller_Controller_right__P18051_mk(s) { -function controller_Controller_left__P18050(s) { +function sprites_SpriteMap_constructor__P50424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12449,22 +11930,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (1 - 1); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_left__P18050.info = {"start":9063,"length":77,"line":288,"column":8,"endLine":290,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} -controller_Controller_left__P18050.isGetter = true; +sprites_SpriteMap_constructor__P50424.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function controller_Controller_left__P18050_mk(s) { +function sprites_SpriteMap_constructor__P50424_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P18050, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P50424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12475,7 +11955,7 @@ function controller_Controller_left__P18050_mk(s) { -function controller_Controller__controlledSprites__P18047(s) { +function music_Melody_constructor__P49926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12491,30 +11971,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 158; 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); + if (!checkSubtype(r0, music_Melody__C49923_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P18047.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +music_Melody_constructor__P49926.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} -function controller_Controller__controlledSprites__P18047_mk(s) { +function music_Melody_constructor__P49926_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P18047, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P49926, 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, } } @@ -12523,7 +11992,7 @@ function controller_Controller__controlledSprites__P18047_mk(s) { -function controller_Controller__controlledSprites__P18046(s) { +function control_pushEventContext__P48723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12533,43 +12002,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 157; s.pc = 1; return s.tmp_1; + s.ctx___57300 = undefined; + s.n___57306 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___51878); + 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___51878 = (r0); case 1: + case 2: + s.tmp_0 = control_eventContext__P48722_mk(s); + s.callLocIdx = 54; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + s.ctx___57300 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___57300); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P48716_mk(s); + s.tmp_0.arg0 = s.ctx___57300; + s.callLocIdx = 55; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C48709_VT); 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) + s.tmp_1 = control_EventContext_constructor__P48713_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 56; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___57306 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___51878, s.n___57306); + r0 = s.n___57306; + return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P18046.info = {"start":8555,"length":132,"line":268,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} -controller_Controller__controlledSprites__P18046.isGetter = true; +control_pushEventContext__P48723.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function controller_Controller__controlledSprites__P18046_mk(s) { +function control_pushEventContext__P48723_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P18046, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P48723, 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, + ctx___57300: undefined, + n___57306: undefined, } } -function controller_Button_pressureLevel__P18031(s) { +function control_eventContext__P48722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12579,70 +12068,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); - s.tmp_1 = r0; - 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__C18021_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C18021_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); + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___51878); if (!r0) { step = 1; continue; } - r0 = 512; + s.tmp_0 = r0 = globals.eventContexts___51878; + r0 = pxsim_Array__length(globals.eventContexts___51878); + 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; } case 1: - r0 = 0; + r0 = undefined; 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: + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P18031.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} +control_eventContext__P48722.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function controller_Button_pressureLevel__P18031_mk(s) { +function control_eventContext__P48722_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P18031, depth: s.depth + 1, + parent: s, fn: control_eventContext__P48722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, } } -function controller_Button_isPressed__P18030(s) { +function control_EventContext_unregister__P48716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12652,23 +12113,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___57335 = undefined; + s.unnamed292___U1 = undefined; + s.unnamed293___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + if (!checkSubtype(r0, control_EventContext__C48709_VT)) failedCast(r0); + s.h___57335 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed292___U1 = (r0); + s.unnamed293___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed293___U2; + r0 = pxsim_Array__length(s.unnamed292___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed292___U1, s.unnamed293___U2); + s.h___57335 = (r0); + s.tmp_2 = control_EventHandler_unregister__P51872_mk(s); + s.tmp_2.arg0 = s.h___57335; + s.callLocIdx = 50; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed293___U2 + 1); + s.unnamed293___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed292___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P18030.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +control_EventContext_unregister__P48716.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function controller_Button_isPressed__P18030_mk(s) { +function control_EventContext_unregister__P48716_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P18030, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P48716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___57335: undefined, + unnamed292___U1: undefined, + unnamed293___U2: undefined, arg0: undefined, } } @@ -12676,7 +12174,7 @@ function controller_Button_isPressed__P18030_mk(s) { -function Fx_imul__P16274(s) { +function control_EventHandler_unregister__P51872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12688,29 +12186,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C51870_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__P51874, s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_imul__P16274.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +control_EventHandler_unregister__P51872.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function Fx_imul__P16274_mk(s) { +function control_EventHandler_unregister__P51872_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P16274, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P51872, 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 power_checkDeepSleep__P17824(s) { +function control_doNothing__P51874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12720,94 +12228,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___23423 = undefined; - s.to___23426 = undefined; - s.tmp_0 = power_init__P19730_mk(s); - s.callLocIdx = 76; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___19728; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.p___23423 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___19729; - 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___23426 = (s.tmp_1); - r0 = (s.to___23426 > 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___23423); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___23426); - 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() } } } -power_checkDeepSleep__P17824.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +control_doNothing__P51874.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function power_checkDeepSleep__P17824_mk(s) { +function control_doNothing__P51874_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P17824, depth: s.depth + 1, + parent: s, fn: control_doNothing__P51874, depth: s.depth + 1, pc: 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___23423: undefined, - to___23426: undefined, } } -function power_init__P19730(s) { +function control_EventContext_constructor__P48713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12817,54 +12255,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___19729 !== 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); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C48709_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___19729 = (r0); - r0 = (globals._timeout___19729 > 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___19729 < 300000); - case 4: - // jmp value (already in 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___48711); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - globals._timeout___19729 = (300000); - case 5: - case 6: - case 7: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.mkEmpty(); + globals.control_EventContext_lastStats___48711 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -power_init__P19730.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +control_EventContext_constructor__P48713.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function power_init__P19730_mk(s) { +function control_EventContext_constructor__P48713_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P19730, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P48713, 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__P17823(s) { +function control_EventContext_registerFrameHandler__P48717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12874,31 +12310,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P19730_mk(s); - s.callLocIdx = 75; s.pc = 1; return s.tmp_0; - case 1: + s.fn___54794 = undefined; + s.i___54803 = 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, control_EventContext__C48709_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; } + 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__P51876_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 51; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___19728 = (r0); - r0 = undefined; + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C48706_VT); + s.fn___54794 = (r0); + r0 = (s.fn___54794).fields["order"] = (s.arg1); + r0 = (s.fn___54794).fields["handler"] = (s.arg2); + s.i___54803 = (0); + case 3: + s.tmp_1 = r0 = s.i___54803; + 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___54803); + 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___54803, s.fn___54794); + r0 = s.fn___54794; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___54803 + 1); + s.i___54803 = (r0); + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.fn___54794); + r0 = s.fn___54794; + case 7: return leave(s, r0) default: oops() } } } -power_poke__P17823.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +control_EventContext_registerFrameHandler__P48717.info = {"start":4675,"length":643,"line":143,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function power_poke__P17823_mk(s) { +function control_EventContext_registerFrameHandler__P48717_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P17823, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P48717, depth: s.depth + 1, pc: 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___54794: undefined, + i___54803: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function control_EventContext_deltaTime__P16507(s) { +function control_EventContext_registerFrameCallbacks__P51876(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12908,27 +12418,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worker___54837 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C16502_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; + if (!checkSubtype(r0, control_EventContext__C48709_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 = (s.tmp_0 / 1000); - return leaveAccessor(s, 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___54837 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P54843); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___54837); + r0 = pxsim.control.runInParallel(s.tmp_0); + case 3: + r0 = undefined; + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P16507.info = {"start":2097,"length":75,"line":70,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} -control_EventContext_deltaTime__P16507.isGetter = true; +control_EventContext_registerFrameCallbacks__P51876.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function control_EventContext_deltaTime__P16507_mk(s) { +function control_EventContext_registerFrameCallbacks__P51876_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P16507, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P51876, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + worker___54837: undefined, arg0: undefined, } } @@ -12936,7 +12466,7 @@ function control_EventContext_deltaTime__P16507_mk(s) { -function scene_Scene_constructor__P18556(s) { +function inline__P54843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12946,114 +12476,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_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__C18296_VT); + s.delay___54873 = undefined; + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P18297_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 = 778; s.pc = 1; return s.tmp_1; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P54849); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P48681_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 45; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C18476_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P18480_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 779; s.pc = 2; return s.tmp_1; + case 1: case 2: - r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C18388_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P18392_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 780; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["background"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["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.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["controlledSprites"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + case 3: + r0 = s.caps[0].fields["frameWorker"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); - r0 = (s.arg0).fields["_millis"] = (0); + 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__P51875_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 46; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.delay___54873 = (r0); + s.tmp_0 = pause__P48727_mk(s); + s.tmp_0.arg0 = s.delay___54873; + s.callLocIdx = 47; 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() } } } -scene_Scene_constructor__P18556.info = {"start":3365,"length":793,"line":102,"column":8,"endLine":120,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +inline__P54843.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function scene_Scene_constructor__P18556_mk(s) { +function inline__P54843_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P18556, depth: s.depth + 1, + parent: s, fn: inline__P54843, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_2: undefined, + delay___54873: undefined, } } -function scene_Camera_constructor__P18480(s) { +function inline__P54849(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13063,35 +12552,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 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_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; + 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) default: oops() } } } -scene_Camera_constructor__P18480.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +inline__P54849.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function scene_Camera_constructor__P18480_mk(s) { +function inline__P54849_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P18480, depth: s.depth + 1, + parent: s, fn: inline__P54849, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function scene_Background_constructor__P18392(s) { +function control_EventContext_runCallbacks__P51875(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13101,41 +12585,264 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.loopStart___54882 = undefined; + s.f___54895 = undefined; + s.unnamed288___U2 = undefined; + s.unnamed289___U3 = undefined; + s.runtime___54900 = undefined; + s.fps___54920 = undefined; + s.delay___54982 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C18388_VT)) failedCast(r0); - r0 = (s.arg0).fields["color"] = (0); - r0 = (s.arg0).fields["camera"] = (s.arg1); + if (!checkSubtype(r0, control_EventContext__C48709_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___54882 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.loopStart___54882 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___54882); + s.f___54895 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed288___U2 = (r0); + s.unnamed289___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed289___U3; + r0 = pxsim_Array__length(s.unnamed288___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed288___U2, s.unnamed289___U3); + s.f___54895 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___54895; + 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 = 13; 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 = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 42; s.pc = 13; return s.tmp_2; } + } + case 13: + r0 = s.retval; + r0 = (s.unnamed289___U3 + 1); + s.unnamed289___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed288___U2 = (undefined); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.loopStart___54882); + s.runtime___54900 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___54900); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); - r0 = undefined; + 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 = 11; continue; } + r0 = s.arg0.fields["framesInSample"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 / 1000); + s.tmp_5 = r0; + r0 = (s.tmp_4 / s.tmp_5); + s.fps___54920 = (r0); + r0 = pxsim.Math_.round(s.fps___54920); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 14: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat("fps:", s.tmp_0); + globals.control_EventContext_lastStats___48711 = (r0); + r0 = (s.fps___54920 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___48711) && (globals.control_EventContext_lastStats___48711).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(globals.control_EventContext_lastStats___48711); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___48711) + ""; } + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___54920 * 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, 16); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 16: + 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, 17); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 17: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + globals.control_EventContext_lastStats___48711 = (r0); + case 5: + case 6: + s.tmp_2 = control_ramSize__P48660_mk(s); + s.callLocIdx = 43; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 2000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = pxsim.control.profilingEnabled(); + case 8: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_8 = r0; + r0 = (s.fps___54920 * 100); + s.tmp_11 = r0; + r0 = (s.tmp_11 | 0); + s.tmp_10 = r0; + if ((s.tmp_10) && (s.tmp_10).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.tmp_10); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_10) + ""; } + case 19: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); + s.tmp_6 = r0; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_13 = r0; + if ((s.tmp_13) && (s.tmp_13).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.tmp_13); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_13) + ""; } + case 20: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, " frames"); + s.tmp_4 = r0; + r0 = pxsim.control.dmesg(s.tmp_4); + r0 = pxsim.control.gc(); + r0 = pxsim_pxtcore.dumpPerfCounters(); + case 9: + case 10: + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); + case 11: + case 12: + s.tmp_0 = Math_max__P48450_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___54900); + s.tmp_0.arg1 = r0; + s.callLocIdx = 44; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.delay___54982 = (r0); + r0 = s.delay___54982; return leave(s, r0) default: oops() } } } -scene_Background_constructor__P18392.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +control_EventContext_runCallbacks__P51875.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function scene_Background_constructor__P18392_mk(s) { +function control_EventContext_runCallbacks__P51875_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P18392, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P51875, depth: s.depth + 1, pc: 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, + loopStart___54882: undefined, + f___54895: undefined, + unnamed288___U2: undefined, + unnamed289___U3: undefined, + runtime___54900: undefined, + fps___54920: undefined, + delay___54982: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_constructor__P18297(s) { +function pauseUntil__P48681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13148,67 +12855,74 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C18216_VT); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P18217_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 437; 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: + 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).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P18299_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 438; s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P18303_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 439; s.pc = 3; return s.tmp_0; + // 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: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P18301_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 440; s.pc = 4; return s.tmp_0; 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__P48680_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() } } } -ArcadePhysicsEngine_constructor__P18297.info = {"start":1451,"length":277,"line":56,"column":4,"endLine":63,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +pauseUntil__P48681.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} -function ArcadePhysicsEngine_constructor__P18297_mk(s) { +function pauseUntil__P48681_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P18297, depth: s.depth + 1, + parent: s, fn: pauseUntil__P48681, depth: s.depth + 1, pc: 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 ArcadePhysicsEngine_maxStep__P18303(s) { +function control___queuePollEvent__P48680(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13218,42 +12932,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ev___55004 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C51849_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P51850_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = 1; + 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 = (s.tmp_2 | 0); + 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___55004 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___51852); + 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___55004); + globals._pollEventQueue___51852 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P51853); + { step = 2; continue; } + case 1: + r0 = pxsim_Array__push(globals._pollEventQueue___51852, s.ev___55004); + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_onEvent__P48705_mk(s); + r0 = s.ev___55004.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___55004.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___55004.fields["eid"]; + s.tmp_0 = r0; + r0 = s.ev___55004.fields["vid"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + 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() } } } -ArcadePhysicsEngine_maxStep__P18303.info = {"start":2179,"length":67,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +control___queuePollEvent__P48680.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} -function ArcadePhysicsEngine_maxStep__P18303_mk(s) { +function control___queuePollEvent__P48680_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P18303, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P48680, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + ev___55004: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_maxStep__P18302(s) { +function control_pollEvents__P51853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13263,38 +13032,139 @@ 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.now___55046 = undefined; + s.i___55049 = undefined; + s.ev___55055 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___51852); + 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___55046 = (r0); + s.i___55049 = (0); + case 2: + s.tmp_1 = r0 = s.i___55049; + r0 = pxsim_Array__length(globals._pollEventQueue___51852); + 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___51852, s.i___55049); + s.ev___55055 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___55055; + 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 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; + case 13: + r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, 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___55055.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___55055.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___55046 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___55055.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___55055.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___55055.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___55055.fields["once"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P48421_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___51852; + s.tmp_1.arg1 = s.i___55049; + s.tmp_1.arg2 = 1; + s.callLocIdx = 25; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___55049 - 1); + s.i___55049 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___55049 + 1); + s.i___55049 = (r0); + { step = 2; continue; } + case 11: + s.tmp_0 = pause__P48727_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___51852 = (undefined); + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P18302.info = {"start":2099,"length":74,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P18302.isGetter = true; +control_pollEvents__P51853.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function ArcadePhysicsEngine_maxStep__P18302_mk(s) { +function control_pollEvents__P51853_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P18302, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P51853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + now___55046: undefined, + i___55049: undefined, + ev___55055: undefined, } } -function Fx_toInt__P16283(s) { +function helpers_arraySplice__P48421(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13304,32 +13174,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___55103 = 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 + 128); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + s.i___55103 = (0); + case 3: + r0 = (s.i___55103 < 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___55103 + 1); + s.i___55103 = (r0); + { step = 3; continue; } + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toInt__P16283.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +helpers_arraySplice__P48421.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 Fx_toInt__P16283_mk(s) { +function helpers_arraySplice__P48421_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P16283, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P48421, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + i___55103: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_minStep__P18301(s) { +function control_PollEvent_constructor__P51850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13342,39 +13235,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + if (!checkSubtype(r0, control_PollEvent__C51849_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() } } } -ArcadePhysicsEngine_minStep__P18301.info = {"start":2026,"length":67,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +control_PollEvent_constructor__P51850.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 ArcadePhysicsEngine_minStep__P18301_mk(s) { +function control_PollEvent_constructor__P51850_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P18301, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P51850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function ArcadePhysicsEngine_minStep__P18300(s) { +function control_onEvent__P48705(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13384,38 +13284,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ctx___53953 = 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__C18296_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + s.tmp_0 = control_eventContext__P48722_mk(s); + s.callLocIdx = 39; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___53953 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___53953); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, 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; } + case 1: + s.tmp_0 = control_EventContext_registerHandler__P48719_mk(s); + s.tmp_0.arg0 = s.ctx___53953; + 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() } } } -ArcadePhysicsEngine_minStep__P18300.info = {"start":1946,"length":74,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P18300.isGetter = true; +control_onEvent__P48705.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 ArcadePhysicsEngine_minStep__P18300_mk(s) { +function control_onEvent__P48705_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P18300, depth: s.depth + 1, + parent: s, fn: control_onEvent__P48705, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + ctx___53953: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P18299(s) { +function control_EventContext_registerHandler__P48719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13425,48 +13350,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___53976 = undefined; + s.unnamed294___U1 = undefined; + s.unnamed295___U2 = undefined; + s.hn___53999 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_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, control_EventContext__C48709_VT)) failedCast(r0); + s.h___53976 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed294___U1 = (r0); + s.unnamed295___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed295___U2; + r0 = pxsim_Array__length(s.unnamed294___U1); 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_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed294___U1, s.unnamed295___U2); + s.h___53976 = (r0); + r0 = s.h___53976.fields["src"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == s.arg1); 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_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } + case 2: + r0 = s.h___53976.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); + if (!r0) { step = 4; continue; } + r0 = (s.h___53976).fields["flags"] = (s.arg4); + r0 = (s.h___53976).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed295___U2 + 1); + s.unnamed295___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed294___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C51870_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P51873_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 = 52; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.hn___53999 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___53999); + s.tmp_0 = control_EventHandler_register__P51871_mk(s); + s.tmp_0.arg0 = s.hn___53999; + s.callLocIdx = 53; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P18299.info = {"start":1813,"length":127,"line":69,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +control_EventContext_registerHandler__P48719.info = {"start":5573,"length":525,"line":169,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function ArcadePhysicsEngine_maxSpeed__P18299_mk(s) { +function control_EventContext_registerHandler__P48719_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P18299, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P48719, depth: s.depth + 1, pc: 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___53976: undefined, + unnamed294___U1: undefined, + unnamed295___U2: undefined, + hn___53999: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function Fx_neg__P16268(s) { +function control_EventHandler_constructor__P51873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13478,27 +13468,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 = (0 - s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C51870_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() } } } -Fx_neg__P16268.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +control_EventHandler_constructor__P51873.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 Fx_neg__P16268_mk(s) { +function control_EventHandler_constructor__P51873_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P16268, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P51873, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P18298(s) { +function control_EventHandler_register__P51871(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13513,25 +13517,32 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; + if (!checkSubtype(r0, control_EventHandler__C51870_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P54020); s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, 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; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P18298.info = {"start":1734,"length":73,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P18298.isGetter = true; +control_EventHandler_register__P51871.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function ArcadePhysicsEngine_maxSpeed__P18298_mk(s) { +function control_EventHandler_register__P51871_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P18298, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P51871, depth: s.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, } } @@ -13539,7 +13550,7 @@ function ArcadePhysicsEngine_maxSpeed__P18298_mk(s) { -function PhysicsEngine_constructor__P18282(s) { +function inline__P54020(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13549,31 +13560,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.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; } } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); + case 3: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P18282.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +inline__P54020.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function PhysicsEngine_constructor__P18282_mk(s) { +function inline__P54020_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P18282, depth: s.depth + 1, + parent: s, fn: inline__P54020, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function sprites_SpriteMap_constructor__P18217(s) { +function webcam_onFrameReceived__P65168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13587,22 +13612,31 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_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); + s.tmp_0 = webcam_init__P65171_mk(s); + s.callLocIdx = 61; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P65175); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P48705_mk(s); + s.tmp_1.arg0 = 4567; + s.tmp_1.arg1 = 1; + s.tmp_1.arg2 = s.tmp_0; + s.tmp_1.arg3 = 16; + s.callLocIdx = 63; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P18217.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +webcam_onFrameReceived__P65168.info = {"start":417,"length":198,"line":17,"column":4,"endLine":23,"endColumn":5,"fileName":"main.ts","functionName":"onFrameReceived","argumentNames":["handler"]} -function sprites_SpriteMap_constructor__P18217_mk(s) { +function webcam_onFrameReceived__P65168_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P18217, depth: s.depth + 1, + parent: s, fn: webcam_onFrameReceived__P65168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13613,7 +13647,7 @@ function sprites_SpriteMap_constructor__P18217_mk(s) { -function music_Melody_constructor__P17719(s) { +function inline__P65175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13623,34 +13657,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C17716_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = pxsim_numops_toBoolDecr(s.caps[0]); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 62; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P17719.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +inline__P65175.info = {"start":534,"length":74,"line":19,"column":47,"endLine":22,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function music_Melody_constructor__P17719_mk(s) { +function inline__P65175_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P17719, depth: s.depth + 1, + parent: s, fn: inline__P65175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, } } -function control_pushEventContext__P16516(s) { +function webcam_init__P65171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13660,63 +13695,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___25068 = undefined; - s.n___25074 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___19671); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.initialized___65165); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.eventContexts___19671 = (r0); + { step = 3; continue; } case 1: case 2: - s.tmp_0 = control_eventContext__P16515_mk(s); - s.callLocIdx = 54; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___25068 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___25068); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P16509_mk(s); - s.tmp_0.arg0 = s.ctx___25068; - s.callLocIdx = 55; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: + globals.initialized___65165 = (true); + s.tmp_0 = control_simmessages_onReceived__P48746_mk(s); + s.tmp_0.arg0 = globals.CHANNEL___65158; + s.tmp_0.arg1 = inline__P65182; + s.callLocIdx = 64; s.pc = 4; return s.tmp_0; case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C16502_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P16506_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 56; s.pc = 7; return s.tmp_1; - case 7: r0 = s.retval; - s.n___25074 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___19671, s.n___25074); - r0 = s.n___25074; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P16516.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +webcam_init__P65171.info = {"start":621,"length":325,"line":25,"column":4,"endLine":34,"endColumn":5,"fileName":"main.ts","functionName":"init","argumentNames":[]} -function control_pushEventContext__P16516_mk(s) { +function webcam_init__P65171_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P16516, depth: s.depth + 1, + parent: s, fn: webcam_init__P65171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - ctx___25068: undefined, - n___25074: undefined, } } -function control_EventContext_unregister__P16509(s) { +function inline__P65182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13726,60 +13736,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___25103 = undefined; - s.unnamed132___U1 = undefined; - s.unnamed133___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C16502_VT)) failedCast(r0); - s.h___25103 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed132___U1 = (r0); - s.unnamed133___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed133___U2; - r0 = pxsim_Array__length(s.unnamed132___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed132___U1, s.unnamed133___U2); - s.h___25103 = (r0); - s.tmp_2 = control_EventHandler_unregister__P19665_mk(s); - s.tmp_2.arg0 = s.h___25103; - s.callLocIdx = 50; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed133___U2 + 1); - s.unnamed133___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed132___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["frameWorker"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P16509.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +inline__P65182.info = {"start":757,"length":182,"line":29,"column":48,"endLine":33,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":["msg"]} -function control_EventContext_unregister__P16509_mk(s) { +function inline__P65182_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P16509, depth: s.depth + 1, + parent: s, fn: inline__P65182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___25103: undefined, - unnamed132___U1: undefined, - unnamed133___U2: undefined, arg0: undefined, } } @@ -13787,7 +13758,7 @@ function control_EventContext_unregister__P16509_mk(s) { -function control_EventHandler_unregister__P19665(s) { +function control_simmessages_onReceived__P48746(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13799,39 +13770,62 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C19663_VT)) failedCast(r0); - r0 = s.arg0.fields["src"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["value"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = s.arg0.fields["flags"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(globals.handlers___51884); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P19667, s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtrt.mkMap(); + globals.handlers___51884 = (r0); + case 3: + case 4: + r0 = pxsim_pxtrt.mapSetGeneric(globals.handlers___51884, s.arg0, s.arg1); + s.tmp_0 = control_onEvent__P48705_mk(s); + s.tmp_0.arg0 = 2999; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = control_simmessages_consumeMessages__P51885; + s.tmp_0.arg3 = 16; + s.callLocIdx = 60; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P19665.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +control_simmessages_onReceived__P48746.info = {"start":1063,"length":293,"line":32,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/base/controlmessage.ts","functionName":"onReceived","argumentNames":["channel","handler"]} -function control_EventHandler_unregister__P19665_mk(s) { +function control_simmessages_onReceived__P48746_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P19665, depth: s.depth + 1, + parent: s, fn: control_simmessages_onReceived__P48746, depth: s.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_doNothing__P19667(s) { +function control_simmessages_consumeMessages__P51885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13841,24 +13835,72 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.channel___53933 = undefined; + s.msg___53938 = undefined; + s.handler___53941 = undefined; + case 1: + r0 = pxsim_numops_toBoolDecr(true); + if (!r0) { step = 8; continue; } + r0 = pxsim_pxtcore.peekMessageChannel(); + s.channel___53933 = (r0); + r0 = pxsim_numops_toBoolDecr(s.channel___53933); + 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; } + { step = 8; continue; } + case 2: + case 3: + r0 = pxsim_pxtcore.readMessageData(); + s.msg___53938 = (r0); + s.tmp_0 = r0 = globals.handlers___51884; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = pxsim_pxtrt.mapGetGeneric(globals.handlers___51884, s.channel___53933); + case 5: + // jmp value (already in r0) + s.tmp_1 = r0; + s.handler___53941 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.handler___53941); + if (!r0) { step = 6; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.handler___53941; + s.tmp_0.arg0 = s.msg___53938; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 59; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 6: + case 7: + { step = 1; continue; } + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P19667.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +control_simmessages_consumeMessages__P51885.info = {"start":564,"length":414,"line":15,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/base/controlmessage.ts","functionName":"consumeMessages","argumentNames":[]} -function control_doNothing__P19667_mk(s) { +function control_simmessages_consumeMessages__P51885_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P19667, depth: s.depth + 1, + parent: s, fn: control_simmessages_consumeMessages__P51885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + channel___53933: undefined, + msg___53938: undefined, + handler___53941: undefined, } } -function control_EventContext_constructor__P16506(s) { +function game_eventContext__P50858(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13868,52 +13910,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 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C16502_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___16504); - 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___16504 = (r0); + s.tmp_0 = game_init__P52209_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 814; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; + r0 = globals._scene___52201.fields["eventContext"]; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P16506.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +game_eventContext__P50858.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function control_EventContext_constructor__P16506_mk(s) { +function game_eventContext__P50858_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P16506, depth: s.depth + 1, + parent: s, fn: game_eventContext__P50858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function controller_pauseUntilAnyButtonIsPressed__P18071(s) { +function controller_pauseUntilAnyButtonIsPressed__P50278(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13933,12 +13953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P18071.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P50278.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} -function controller_pauseUntilAnyButtonIsPressed__P18071_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P50278_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P18071, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P50278, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -13946,7 +13966,7 @@ function controller_pauseUntilAnyButtonIsPressed__P18071_mk(s) { -function game_setWaitAnyButton__P18649(s) { +function game_setWaitAnyButton__P50856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13960,17 +13980,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___19998 = (s.arg0); + globals.__waitAnyButton___52205 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P18649.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +game_setWaitAnyButton__P50856.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} -function game_setWaitAnyButton__P18649_mk(s) { +function game_setWaitAnyButton__P50856_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P18649, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P50856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -13979,7 +13999,7 @@ function game_setWaitAnyButton__P18649_mk(s) { -function Math_abs__P16241(s) { +function Math_abs__P48448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14008,12 +14028,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_abs__P16241.info = {"start":15630,"length":77,"line":524,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +Math_abs__P48448.info = {"start":15630,"length":77,"line":524,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function Math_abs__P16241_mk(s) { +function Math_abs__P48448_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P16241, depth: s.depth + 1, + parent: s, fn: Math_abs__P48448, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14024,7 +14044,7 @@ function Math_abs__P16241_mk(s) { -function Math_sign__P16242(s) { +function Math_sign__P48449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14059,12 +14079,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P16242.info = {"start":15865,"length":125,"line":532,"column":4,"endLine":536,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +Math_sign__P48449.info = {"start":15865,"length":125,"line":532,"column":4,"endLine":536,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function Math_sign__P16242_mk(s) { +function Math_sign__P48449_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P16242, depth: s.depth + 1, + parent: s, fn: Math_sign__P48449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14075,7 +14095,7 @@ function Math_sign__P16242_mk(s) { -function texteffects_TextEffect_constructor__P18949(s) { +function texteffects_TextEffect_constructor__P51156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14091,18 +14111,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, texteffects_TextEffect__C18947_VT)) failedCast(r0); + if (!checkSubtype(r0, texteffects_TextEffect__C51154_VT)) failedCast(r0); r0 = (s.arg0).fields["getState"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P18949.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]} +texteffects_TextEffect_constructor__P51156.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]} -function texteffects_TextEffect_constructor__P18949_mk(s) { +function texteffects_TextEffect_constructor__P51156_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P18949, depth: s.depth + 1, + parent: s, fn: texteffects_TextEffect_constructor__P51156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -14112,7 +14132,7 @@ function texteffects_TextEffect_constructor__P18949_mk(s) { -function Math_FastRandom_constructor__P18704(s) { +function Math_FastRandom_constructor__P50911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14128,7 +14148,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C18702_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C50909_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -14143,12 +14163,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P18704.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__P50911.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__P18704_mk(s) { +function Math_FastRandom_constructor__P50911_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P18704, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P50911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -14159,7 +14179,7 @@ function Math_FastRandom_constructor__P18704_mk(s) { -function control_ramSize__P16453(s) { +function control_ramSize__P48660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14184,12 +14204,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P16453.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P48660.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} -function control_ramSize__P16453_mk(s) { +function control_ramSize__P48660_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P16453, depth: s.depth + 1, + parent: s, fn: control_ramSize__P48660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14199,7 +14219,7 @@ function control_ramSize__P16453_mk(s) { -function control__ramSize__P19634(s) { +function control__ramSize__P51841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14213,12 +14233,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P19634.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P51841.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} -function control__ramSize__P19634_mk(s) { +function control__ramSize__P51841_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P19634, depth: s.depth + 1, + parent: s, fn: control__ramSize__P51841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -14226,7 +14246,7 @@ function control__ramSize__P19634_mk(s) { -function game_consoleOverlay_listener__P20327(s) { +function game_consoleOverlay_listener__P52534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14241,7 +14261,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -14261,39 +14281,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P16223_mk(s); - s.tmp_5 = helpers_arrayFilter__P16224_mk(s); - s.tmp_6 = helpers_stringSplit__P16235_mk(s); + s.tmp_4 = helpers_arrayForEach__P48430_mk(s); + s.tmp_5 = helpers_arrayFilter__P48431_mk(s); + s.tmp_6 = helpers_stringSplit__P48442_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 996; s.pc = 10; return s.tmp_6; + s.callLocIdx = 997; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P25330; - s.callLocIdx = 997; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = inline__P57562; + s.callLocIdx = 998; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P25335; - s.callLocIdx = 999; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = inline__P57567; + s.callLocIdx = 1000; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___20292); + r0 = pxsim_Array__length(globals.consoleStrings___52499); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___20305); + r0 = (s.tmp_1 > globals.consoleLines___52512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P16214_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___20292; + s.tmp_2 = helpers_arraySplice__P48421_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___52499; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___20292); + r0 = pxsim_Array__length(globals.consoleStrings___52499); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___20305); + r0 = (s.tmp_3 - globals.consoleLines___52512); s.tmp_2.arg2 = r0; - s.callLocIdx = 1000; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1001; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -14303,12 +14323,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P20327.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__P52534.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__P20327_mk(s) { +function game_consoleOverlay_listener__P52534_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P20327, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P52534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14325,7 +14345,7 @@ function game_consoleOverlay_listener__P20327_mk(s) { -function inline__P25330(s) { +function inline__P57562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14349,12 +14369,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P25330.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P57562.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function inline__P25330_mk(s) { +function inline__P57562_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25330, depth: s.depth + 1, + parent: s, fn: inline__P57562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14366,7 +14386,7 @@ function inline__P25330_mk(s) { -function inline__P25335(s) { +function inline__P57567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14376,45 +14396,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___25337 = undefined; + s.j___57569 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___25337 = (0); + s.j___57569 = (0); case 1: - s.tmp_1 = r0 = s.j___25337; + s.tmp_1 = r0 = s.j___57569; 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___20292; - s.tmp_5 = helpers_stringSlice__P16233_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___52499; + s.tmp_5 = helpers_stringSlice__P48440_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___25337; - r0 = (s.j___25337 + globals.consoleColumns___20315); + s.tmp_5.arg1 = s.j___57569; + r0 = (s.j___57569 + globals.consoleColumns___52522); s.tmp_5.arg2 = r0; - s.callLocIdx = 998; s.pc = 3; return s.tmp_5; + s.callLocIdx = 999; 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___25337 + globals.consoleColumns___20315); - s.j___25337 = (r0); + r0 = (s.j___57569 + globals.consoleColumns___52522); + s.j___57569 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25335.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P57567.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function inline__P25335_mk(s) { +function inline__P57567_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25335, depth: s.depth + 1, + parent: s, fn: inline__P57567, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14422,7 +14442,7 @@ function inline__P25335_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___25337: undefined, + j___57569: undefined, arg0: undefined, } } @@ -14430,7 +14450,7 @@ function inline__P25335_mk(s) { -function console_addListener__P16490(s) { +function console_addListener__P48697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14453,7 +14473,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___19649, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___51856, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -14464,18 +14484,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___19649, s.arg0); + r0 = pxsim_Array__push(globals.listeners___51856, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P16490.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__P48697.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__P16490_mk(s) { +function console_addListener__P48697_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P16490, depth: s.depth + 1, + parent: s, fn: console_addListener__P48697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14488,7 +14508,7 @@ function console_addListener__P16490_mk(s) { -function inline__P19648(s) { +function inline__P51855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14508,12 +14528,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19648.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +inline__P51855.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 inline__P19648_mk(s) { +function inline__P51855_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19648, depth: s.depth + 1, + parent: s, fn: inline__P51855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -14523,7 +14543,7 @@ function inline__P19648_mk(s) { -function scene_systemMenu_register__P18749(s) { +function scene_systemMenu_register__P50956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14533,16 +14553,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___20246); + r0 = pxsim_numops_toBoolDecr(globals.instance___52453); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P18028_mk(s); - s.tmp_0.arg0 = globals.menu___18001; + s.tmp_0 = controller_Button_onEvent__P50235_mk(s); + s.tmp_0.arg0 = globals.menu___50208; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P18750; - s.callLocIdx = 983; s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P50957; + s.callLocIdx = 984; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -14550,12 +14570,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P18749.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__P50956.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__P18749_mk(s) { +function scene_systemMenu_register__P50956_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P18749, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P50956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -14564,7 +14584,7 @@ function scene_systemMenu_register__P18749_mk(s) { -function scene_systemMenu_showSystemMenu__P18750(s) { +function scene_systemMenu_showSystemMenu__P50957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14574,28 +14594,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___20246); + r0 = pxsim_numops_toBoolDecr(globals.instance___52453); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P18652_mk(s); - s.callLocIdx = 984; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P50859_mk(s); + s.callLocIdx = 985; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C18738_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C50945_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P18739_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P50946_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P18746; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P50953; s.tmp_1.arg2 = undefined; - s.callLocIdx = 985; s.pc = 5; return s.tmp_1; + s.callLocIdx = 986; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___20246 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P18740_mk(s); - s.tmp_0.arg0 = globals.instance___20246; - s.callLocIdx = 986; s.pc = 6; return s.tmp_0; + globals.instance___52453 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P50947_mk(s); + s.tmp_0.arg0 = globals.instance___52453; + s.callLocIdx = 987; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -14603,12 +14623,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P18750.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__P50957.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__P18750_mk(s) { +function scene_systemMenu_showSystemMenu__P50957_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P18750, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P50957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14618,7 +14638,7 @@ function scene_systemMenu_showSystemMenu__P18750_mk(s) { -function scene_systemMenu_buildOptionList__P18746(s) { +function scene_systemMenu_buildOptionList__P50953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14628,136 +14648,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___26968 = undefined; + s.options___59200 = undefined; r0 = pxsim_Array__mk(); - s.options___26968 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + s.options___59200 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___18760; - s.tmp_1.arg2 = inline__P26976; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P20252; - s.callLocIdx = 966; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___50967; + s.tmp_1.arg2 = inline__P59208; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P52459; + s.callLocIdx = 967; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___18757; - s.tmp_1.arg2 = inline__P26990; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P20251; - s.callLocIdx = 968; s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___50964; + s.tmp_1.arg2 = inline__P59222; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P52458; + s.callLocIdx = 969; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); + r0 = pxsim_Array__push(s.options___59200, 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__C18730_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___18758; - s.tmp_2.arg2 = inline__P27005; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P20254; - s.callLocIdx = 971; s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___50965; + s.tmp_2.arg2 = inline__P59237; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P52461; + s.callLocIdx = 972; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_Array__push(s.options___59200, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___18763; - s.tmp_1.arg2 = inline__P27020; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P20253; - s.callLocIdx = 973; s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___50970; + s.tmp_1.arg2 = inline__P59252; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P52460; + s.callLocIdx = 974; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___18764; - s.tmp_1.arg2 = inline__P27035; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P20256; - s.callLocIdx = 974; s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___50971; + s.tmp_1.arg2 = inline__P59267; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P52463; + s.callLocIdx = 975; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___18762; - s.tmp_1.arg2 = inline__P27044; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P20257; - s.callLocIdx = 976; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___50969; + s.tmp_1.arg2 = inline__P59276; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P52464; + s.callLocIdx = 977; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___18761; - s.tmp_1.arg2 = inline__P27053; - s.tmp_1.arg3 = scene_systemMenu_sleep__P20258; - s.callLocIdx = 977; s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___50968; + s.tmp_1.arg2 = inline__P59285; + s.tmp_1.arg3 = scene_systemMenu_sleep__P52465; + s.callLocIdx = 978; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___20247); + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___52454); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P16227_mk(s); - s.tmp_0.arg0 = s.options___26968; - s.tmp_0.arg1 = globals.customMenuOptions___20247; - s.callLocIdx = 978; s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P48434_mk(s); + s.tmp_0.arg0 = s.options___59200; + s.tmp_0.arg1 = globals.customMenuOptions___52454; + s.callLocIdx = 979; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___26968 = (r0); + s.options___59200 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C18730_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C50937_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P18731_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P50938_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___18759; - s.tmp_1.arg2 = inline__P27066; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P18745; - s.callLocIdx = 979; s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___50966; + s.tmp_1.arg2 = inline__P59298; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P50952; + s.callLocIdx = 980; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26968, s.tmp_0); - r0 = s.options___26968; + r0 = pxsim_Array__push(s.options___59200, s.tmp_0); + r0 = s.options___59200; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P18746.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__P50953.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__P18746_mk(s) { +function scene_systemMenu_buildOptionList__P50953_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P18746, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P50953, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___26968: undefined, + options___59200: undefined, } } -function inline__P26976(s) { +function inline__P59208(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14767,8 +14787,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P17711_mk(s); - s.callLocIdx = 965; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P49918_mk(s); + s.callLocIdx = 966; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -14787,12 +14807,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26976.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59208.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26976_mk(s) { +function inline__P59208_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26976, depth: s.depth + 1, + parent: s, fn: inline__P59208, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14804,7 +14824,7 @@ function inline__P26976_mk(s) { -function inline__P26990(s) { +function inline__P59222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14814,8 +14834,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P17711_mk(s); - s.callLocIdx = 967; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P49918_mk(s); + s.callLocIdx = 968; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -14834,12 +14854,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26990.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59222.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26990_mk(s) { +function inline__P59222_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26990, depth: s.depth + 1, + parent: s, fn: inline__P59222, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14851,7 +14871,7 @@ function inline__P26990_mk(s) { -function inline__P27005(s) { +function inline__P59237(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14861,7 +14881,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___17842; + r0 = globals.brightness___50049; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -14878,12 +14898,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27005.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59237.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27005_mk(s) { +function inline__P59237_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27005, depth: s.depth + 1, + parent: s, fn: inline__P59237, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14894,7 +14914,7 @@ function inline__P27005_mk(s) { -function inline__P27020(s) { +function inline__P59252(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14904,7 +14924,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___17842; + r0 = globals.brightness___50049; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -14921,12 +14941,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27020.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59252.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27020_mk(s) { +function inline__P59252_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27020, depth: s.depth + 1, + parent: s, fn: inline__P59252, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14937,7 +14957,7 @@ function inline__P27020_mk(s) { -function inline__P27035(s) { +function inline__P59267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14947,7 +14967,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___18645); + r0 = pxsim_numops_toBoolDecr(globals.stats___50852); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -14960,12 +14980,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27035.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59267.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27035_mk(s) { +function inline__P59267_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27035, depth: s.depth + 1, + parent: s, fn: inline__P59267, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -14974,7 +14994,7 @@ function inline__P27035_mk(s) { -function inline__P27044(s) { +function inline__P59276(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14984,7 +15004,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -15005,12 +15025,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27044.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59276.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27044_mk(s) { +function inline__P59276_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27044, depth: s.depth + 1, + parent: s, fn: inline__P59276, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15023,7 +15043,7 @@ function inline__P27044_mk(s) { -function inline__P27053(s) { +function inline__P59285(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15037,12 +15057,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27053.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59285.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27053_mk(s) { +function inline__P59285_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27053, depth: s.depth + 1, + parent: s, fn: inline__P59285, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -15050,7 +15070,7 @@ function inline__P27053_mk(s) { -function inline__P27066(s) { +function inline__P59298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15064,12 +15084,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27066.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P59298.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P27066_mk(s) { +function inline__P59298_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27066, depth: s.depth + 1, + parent: s, fn: inline__P59298, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -15077,7 +15097,7 @@ function inline__P27066_mk(s) { -function scene_systemMenu_setScreenBrightnessSupported__P20259(s) { +function scene_systemMenu_setScreenBrightnessSupported__P52466(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15091,12 +15111,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P20259.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__P52466.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__P20259_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P52466_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P20259, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P52466, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -15104,7 +15124,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P20259_mk(s) { -function scene_systemMenu_sleep__P20258(s) { +function scene_systemMenu_sleep__P52465(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15119,12 +15139,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P20258.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__P52465.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__P20258_mk(s) { +function scene_systemMenu_sleep__P52465_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P20258, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P52465, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -15132,7 +15152,7 @@ function scene_systemMenu_sleep__P20258_mk(s) { -function scene_systemMenu_toggleConsole__P20257(s) { +function scene_systemMenu_toggleConsole__P52464(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15142,7 +15162,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -15152,23 +15172,23 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = game_consoleOverlay_setVisible__P18769_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P50976_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.callLocIdx = 959; s.pc = 3; return s.tmp_4; + s.callLocIdx = 960; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P18769_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P50976_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.callLocIdx = 960; s.pc = 4; return s.tmp_0; + s.callLocIdx = 961; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P16487_mk(s); + s.tmp_0 = console_log__P48694_mk(s); s.tmp_0.arg0 = "console"; - s.callLocIdx = 961; s.pc = 5; return s.tmp_0; + s.callLocIdx = 962; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -15176,12 +15196,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P20257.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__P52464.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__P20257_mk(s) { +function scene_systemMenu_toggleConsole__P52464_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P20257, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P52464, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15194,7 +15214,7 @@ function scene_systemMenu_toggleConsole__P20257_mk(s) { -function game_consoleOverlay_setVisible__P18769(s) { +function game_consoleOverlay_setVisible__P50976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15210,7 +15230,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -15231,26 +15251,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___20292 = (s.tmp_6); + globals.consoleStrings___52499 = (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___20291 = (s.arg1); + globals.consoleColor___52498 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P18769.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__P50976.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__P18769_mk(s) { +function game_consoleOverlay_setVisible__P50976_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P18769, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P50976, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15267,7 +15287,7 @@ function game_consoleOverlay_setVisible__P18769_mk(s) { -function console_log__P16487(s) { +function console_log__P48694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15281,7 +15301,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P16483_mk(s); + s.tmp_0 = console_add__P48690_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 33; s.pc = 1; return s.tmp_0; @@ -15291,12 +15311,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_log__P16487.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__P48694.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__P16487_mk(s) { +function console_log__P48694_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P16487, depth: s.depth + 1, + parent: s, fn: console_log__P48694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15306,7 +15326,7 @@ function console_log__P16487_mk(s) { -function console_add__P16483(s) { +function console_add__P48690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15316,58 +15336,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___27105 = undefined; - s.i___27114 = undefined; + s.text___59337 = undefined; + s.i___59346 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___16482); + r0 = (s.arg0 < globals.minPriority___48689); 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__P16489_mk(s); + s.tmp_1 = console_inspect__P48696_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___27105 = (r0); - if ((s.text___27105) && (s.text___27105).vtable) { + s.text___59337 = (r0); + if ((s.text___59337) && (s.text___59337).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___27105); + pxsim_String__stringConv(s.text___59337); checkResumeConsumed(); return; - } else { s.retval = (s.text___27105) + ""; } + } else { s.retval = (s.text___59337) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___27105 = (r0); - s.i___27114 = (0); + s.text___59337 = (r0); + s.i___59346 = (0); case 3: - s.tmp_1 = r0 = s.i___27114; - r0 = pxsim_Array__length(globals.listeners___19649); + s.tmp_1 = r0 = s.i___59346; + r0 = pxsim_Array__length(globals.listeners___51856); 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___19649, s.i___27114); + r0 = pxsim_Array__getAt(globals.listeners___51856, s.i___59346); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___27105; + s.tmp_3.arg1 = s.text___59337; 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___27114 + 1); - s.i___27114 = (r0); + r0 = (s.i___59346 + 1); + s.i___59346 = (r0); { step = 3; continue; } case 4: case 5: @@ -15375,19 +15395,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P16483.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__P48690.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__P16483_mk(s) { +function console_add__P48690_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P16483, depth: s.depth + 1, + parent: s, fn: console_add__P48690, depth: s.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___27105: undefined, - i___27114: undefined, + text___59337: undefined, + i___59346: undefined, arg0: undefined, arg1: undefined, } } @@ -15396,7 +15416,7 @@ function console_add__P16483_mk(s) { -function console_inspect__P16489(s) { +function console_inspect__P48696(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15406,10 +15426,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___27145 = undefined; - s.asString___27163 = undefined; - s.keys___27175 = undefined; - s.snipped___27179 = undefined; + s.asArr___59377 = undefined; + s.asString___59395 = undefined; + s.keys___59407 = undefined; + s.snipped___59411 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -15450,15 +15470,15 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___27145 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___27145); + s.asArr___59377 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___59377); 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__P16217_mk(s); - s.tmp_2.arg0 = s.asArr___27145; + s.tmp_2 = helpers_arrayJoin__P48424_mk(s); + s.tmp_2.arg0 = s.asArr___59377; s.tmp_2.arg1 = ","; s.callLocIdx = 34; s.pc = 19; return s.tmp_2; case 19: @@ -15468,9 +15488,9 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P16217_mk(s); - s.tmp_8 = helpers_arraySlice__P16229_mk(s); - s.tmp_8.arg0 = s.asArr___27145; + s.tmp_7 = helpers_arrayJoin__P48424_mk(s); + s.tmp_8 = helpers_arraySlice__P48436_mk(s); + s.tmp_8.arg0 = s.asArr___59377; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; s.callLocIdx = 35; s.pc = 21; return s.tmp_8; @@ -15510,46 +15530,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___27163 = (r0); - r0 = (s.asString___27163 != "[object Object]"); + s.asString___59395 = (r0); + r0 = (s.asString___59395 != "[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___27163 != "[Object]"); + r0 = (s.asString___59395 != "[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___27163; + r0 = s.asString___59395; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___27175 = (r0); - r0 = pxsim_Array__length(s.keys___27175); + s.keys___59407 = (r0); + r0 = pxsim_Array__length(s.keys___59407); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___27179 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___27179); + s.snipped___59411 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___59411); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P16229_mk(s); - s.tmp_0.arg0 = s.keys___27175; + s.tmp_0 = helpers_arraySlice__P48436_mk(s); + s.tmp_0.arg0 = s.keys___59407; 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___27175 = (r0); + s.keys___59407 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P27196); + r0 = pxsim_pxtcore_mkAction(1, inline__P59428); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___27179); + r0 = pxsim_numops_toBoolDecr(s.snipped___59411); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -15558,8 +15578,8 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P16226_mk(s); - s.tmp_7.arg0 = s.keys___27175; + s.tmp_7 = helpers_arrayReduce__P48433_mk(s); + s.tmp_7.arg0 = s.keys___59407; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; @@ -15608,12 +15628,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P16489.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +console_inspect__P48696.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 console_inspect__P16489_mk(s) { +function console_inspect__P48696_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P16489, depth: s.depth + 1, + parent: s, fn: console_inspect__P48696, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15626,10 +15646,10 @@ function console_inspect__P16489_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___27145: undefined, - asString___27163: undefined, - keys___27175: undefined, - snipped___27179: undefined, + asArr___59377: undefined, + asString___59395: undefined, + keys___59407: undefined, + snipped___59411: undefined, arg0: undefined, arg1: undefined, } } @@ -15638,7 +15658,7 @@ function console_inspect__P16489_mk(s) { -function inline__P27196(s) { +function inline__P59428(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15701,12 +15721,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27196.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +inline__P59428.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 inline__P27196_mk(s) { +function inline__P59428_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27196, depth: s.depth + 1, + parent: s, fn: inline__P59428, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15724,7 +15744,7 @@ function inline__P27196_mk(s) { -function helpers_arrayReduce__P16226(s) { +function helpers_arrayReduce__P48433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15734,8 +15754,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___27223 = undefined; - s.i___27226 = undefined; + s.len___59455 = undefined; + s.i___59458 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -15743,43 +15763,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___27223 = (r0); - s.i___27226 = (0); + s.len___59455 = (r0); + s.i___59458 = (0); case 1: - r0 = (s.i___27226 < s.len___27223); + r0 = (s.i___59458 < s.len___59455); 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___27226); + r0 = pxsim_Array__getAt(s.arg0, s.i___59458); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___27226; + s.tmp_1.arg2 = s.i___59458; 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___27226 + 1); - s.i___27226 = (r0); + r0 = (s.i___59458 + 1); + s.i___59458 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P16226.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"]} +helpers_arrayReduce__P48433.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 helpers_arrayReduce__P16226_mk(s) { +function helpers_arrayReduce__P48433_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P16226, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P48433, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___27223: undefined, - i___27226: undefined, + len___59455: undefined, + i___59458: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -15789,7 +15809,7 @@ function helpers_arrayReduce__P16226_mk(s) { -function helpers_arrayJoin__P16217(s) { +function helpers_arrayJoin__P48424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15799,9 +15819,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___27251 = undefined; - s.len___27252 = undefined; - s.i___27255 = undefined; + s.r___59483 = undefined; + s.len___59484 = undefined; + s.i___59487 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -15824,16 +15844,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___27251 = (r0); + s.r___59483 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___27252 = (r0); - s.i___27255 = (0); + s.len___59484 = (r0); + s.i___59487 = (0); case 5: - r0 = (s.i___27255 < s.len___27252); + r0 = (s.i___59487 < s.len___59484); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___27255 > 0); + r0 = (s.i___59487 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -15846,12 +15866,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___27251) && (s.r___27251).vtable) { + if ((s.r___59483) && (s.r___59483).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___27251); + pxsim_String__stringConv(s.r___59483); checkResumeConsumed(); return; - } else { s.retval = (s.r___27251) + ""; } + } else { s.retval = (s.r___59483) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -15865,10 +15885,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___27251 = (r0); + s.r___59483 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___27255); + r0 = pxsim_Array__getAt(s.arg0, s.i___59487); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -15877,7 +15897,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___27255); + r0 = pxsim_Array__getAt(s.arg0, s.i___59487); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -15888,16 +15908,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___27255); + r0 = pxsim_Array__getAt(s.arg0, s.i___59487); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___27251) && (s.r___27251).vtable) { + if ((s.r___59483) && (s.r___59483).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___27251); + pxsim_String__stringConv(s.r___59483); checkResumeConsumed(); return; - } else { s.retval = (s.r___27251) + ""; } + } else { s.retval = (s.r___59483) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -15911,21 +15931,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___27251 = (r0); - r0 = (s.i___27255 + 1); - s.i___27255 = (r0); + s.r___59483 = (r0); + r0 = (s.i___59487 + 1); + s.i___59487 = (r0); { step = 5; continue; } case 14: - r0 = s.r___27251; + r0 = s.r___59483; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P16217.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"]} +helpers_arrayJoin__P48424.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 helpers_arrayJoin__P16217_mk(s) { +function helpers_arrayJoin__P48424_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P16217, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P48424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15934,9 +15954,9 @@ function helpers_arrayJoin__P16217_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___27251: undefined, - len___27252: undefined, - i___27255: undefined, + r___59483: undefined, + len___59484: undefined, + i___59487: undefined, arg0: undefined, arg1: undefined, } } @@ -15945,7 +15965,7 @@ function helpers_arrayJoin__P16217_mk(s) { -function scene_systemMenu_toggleStats__P20256(s) { +function scene_systemMenu_toggleStats__P52463(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15955,11 +15975,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___18645); + r0 = pxsim_numops_toBoolDecr(globals.stats___50852); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___18645 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___18645); + globals.stats___50852 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___50852); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -15968,18 +15988,18 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___16505; + r0 = globals.control_EventContext_onStats___48712; 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___16505; + s.tmp_3.argL = globals.control_EventContext_onStats___48712; r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 957; s.pc = 5; return s.tmp_3; + s.callLocIdx = 958; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; case 3: @@ -15988,12 +16008,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P20256.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__P52463.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__P20256_mk(s) { +function scene_systemMenu_toggleStats__P52463_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P20256, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P52463, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16005,7 +16025,7 @@ function scene_systemMenu_toggleStats__P20256_mk(s) { -function scene_systemMenu_brightnessDown__P20254(s) { +function scene_systemMenu_brightnessDown__P52461(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16015,24 +16035,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P20255_mk(s); - r0 = globals.brightness___17842; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P52462_mk(s); + r0 = globals.brightness___50049; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 953; s.pc = 1; return s.tmp_0; + s.callLocIdx = 954; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P20254.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__P52461.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__P20254_mk(s) { +function scene_systemMenu_brightnessDown__P52461_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P20254, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P52461, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16042,7 +16062,7 @@ function scene_systemMenu_brightnessDown__P20254_mk(s) { -function scene_systemMenu_setScreenBrightness__P20255(s) { +function scene_systemMenu_setScreenBrightness__P52462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16056,29 +16076,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P17853_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.tmp_0 = helpers_setScreenBrightness__P50060_mk(s); + s.tmp_0.arg0 = globals.screen___50127; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 954; s.pc = 1; return s.tmp_0; + s.callLocIdx = 955; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P17947_mk(s); + s.tmp_0 = settings_writeNumber__P50154_mk(s); s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___17842; + r0 = globals.brightness___50049; s.tmp_0.arg1 = r0; - s.callLocIdx = 956; s.pc = 2; return s.tmp_0; + s.callLocIdx = 957; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P20255.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__P52462.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__P20255_mk(s) { +function scene_systemMenu_setScreenBrightness__P52462_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P20255, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P52462, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16088,7 +16108,7 @@ function scene_systemMenu_setScreenBrightness__P20255_mk(s) { -function settings_writeNumber__P17947(s) { +function settings_writeNumber__P50154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16106,9 +16126,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__P17945_mk(s); + s.tmp_1 = settings_writeBuffer__P50152_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P16295_mk(s); + s.tmp_2 = msgpack_packNumberArray__P48502_mk(s); s.tmp_2.arg0 = s.tmp_0; s.callLocIdx = 123; s.pc = 2; return s.tmp_2; case 2: @@ -16121,12 +16141,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeNumber__P17947.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +settings_writeNumber__P50154.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} -function settings_writeNumber__P17947_mk(s) { +function settings_writeNumber__P50154_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P17947, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P50154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16139,7 +16159,7 @@ function settings_writeNumber__P17947_mk(s) { -function settings_writeBuffer__P17945(s) { +function settings_writeBuffer__P50152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16166,12 +16186,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P17945.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__P50152.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__P17945_mk(s) { +function settings_writeBuffer__P50152_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P17945, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P50152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16182,7 +16202,7 @@ function settings_writeBuffer__P17945_mk(s) { -function msgpack_packNumberArray__P16295(s) { +function msgpack_packNumberArray__P48502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16192,100 +16212,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___27341 = undefined; - s.n___27343 = undefined; - s.unnamed124___U2 = undefined; - s.unnamed125___U3 = undefined; - s.buf___27353 = undefined; - s.n___27359 = undefined; - s.unnamed126___U6 = undefined; - s.unnamed127___U7 = undefined; + s.off___59573 = undefined; + s.n___59575 = undefined; + s.unnamed284___U2 = undefined; + s.unnamed285___U3 = undefined; + s.buf___59585 = undefined; + s.n___59591 = undefined; + s.unnamed286___U6 = undefined; + s.unnamed287___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___27341 = (0); - s.n___27343 = (undefined); - s.unnamed124___U2 = (s.arg0); - s.unnamed125___U3 = (0); + s.off___59573 = (0); + s.n___59575 = (undefined); + s.unnamed284___U2 = (s.arg0); + s.unnamed285___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed125___U3; - r0 = pxsim_Array__length(s.unnamed124___U2); + s.tmp_0 = r0 = s.unnamed285___U3; + r0 = pxsim_Array__length(s.unnamed284___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed124___U2, s.unnamed125___U3); - s.n___27343 = (r0); - s.tmp_2 = r0 = s.off___27341; - s.tmp_4 = msgpack_packNumberCore__P19612_mk(s); + r0 = pxsim_Array__getAt(s.unnamed284___U2, s.unnamed285___U3); + s.n___59575 = (r0); + s.tmp_2 = r0 = s.off___59573; + s.tmp_4 = msgpack_packNumberCore__P51819_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___27341; - s.tmp_4.arg2 = s.n___27343; + s.tmp_4.arg1 = s.off___59573; + s.tmp_4.arg2 = s.n___59575; 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___27341 = (r0); - r0 = (s.unnamed125___U3 + 1); - s.unnamed125___U3 = (r0); + s.off___59573 = (r0); + r0 = (s.unnamed285___U3 + 1); + s.unnamed285___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed124___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___27341); - s.buf___27353 = (r0); - s.off___27341 = (0); - s.n___27359 = (undefined); - s.unnamed126___U6 = (s.arg0); - s.unnamed127___U7 = (0); + s.unnamed284___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___59573); + s.buf___59585 = (r0); + s.off___59573 = (0); + s.n___59591 = (undefined); + s.unnamed286___U6 = (s.arg0); + s.unnamed287___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed127___U7; - r0 = pxsim_Array__length(s.unnamed126___U6); + s.tmp_0 = r0 = s.unnamed287___U7; + r0 = pxsim_Array__length(s.unnamed286___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed126___U6, s.unnamed127___U7); - s.n___27359 = (r0); - s.tmp_2 = r0 = s.off___27341; - s.tmp_4 = msgpack_packNumberCore__P19612_mk(s); - s.tmp_4.arg0 = s.buf___27353; - s.tmp_4.arg1 = s.off___27341; - s.tmp_4.arg2 = s.n___27359; + r0 = pxsim_Array__getAt(s.unnamed286___U6, s.unnamed287___U7); + s.n___59591 = (r0); + s.tmp_2 = r0 = s.off___59573; + s.tmp_4 = msgpack_packNumberCore__P51819_mk(s); + s.tmp_4.arg0 = s.buf___59585; + s.tmp_4.arg1 = s.off___59573; + s.tmp_4.arg2 = s.n___59591; 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___27341 = (r0); - r0 = (s.unnamed127___U7 + 1); - s.unnamed127___U7 = (r0); + s.off___59573 = (r0); + r0 = (s.unnamed287___U7 + 1); + s.unnamed287___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed126___U6 = (undefined); - r0 = s.buf___27353; + s.unnamed286___U6 = (undefined); + r0 = s.buf___59585; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P16295.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__P48502.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__P16295_mk(s) { +function msgpack_packNumberArray__P48502_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P16295, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P48502, depth: s.depth + 1, pc: 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___27341: undefined, - n___27343: undefined, - unnamed124___U2: undefined, - unnamed125___U3: undefined, - buf___27353: undefined, - n___27359: undefined, - unnamed126___U6: undefined, - unnamed127___U7: undefined, + off___59573: undefined, + n___59575: undefined, + unnamed284___U2: undefined, + unnamed285___U3: undefined, + buf___59585: undefined, + n___59591: undefined, + unnamed286___U6: undefined, + unnamed287___U7: undefined, arg0: undefined, } } @@ -16293,7 +16313,7 @@ function msgpack_packNumberArray__P16295_mk(s) { -function msgpack_packNumberCore__P19612(s) { +function msgpack_packNumberCore__P51819(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16303,15 +16323,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___27373 = undefined; - s.fmt___27416 = undefined; + s.tag___59605 = undefined; + s.fmt___59648 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___27373 = (203); + s.tag___59605 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -16361,17 +16381,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___27373 = (204); + s.tag___59605 = (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___27373 = (205); + s.tag___59605 = (205); { step = 10; continue; } case 9: - s.tag___27373 = (206); + s.tag___59605 = (206); case 10: case 11: { step = 17; continue; } @@ -16380,41 +16400,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___27373 = (208); + s.tag___59605 = (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___27373 = (209); + s.tag___59605 = (209); { step = 15; continue; } case 14: - s.tag___27373 = (210); + s.tag___59605 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P19611_mk(s); - s.tmp_0.arg0 = s.tag___27373; + s.tmp_0 = msgpack_tagFormat__P51818_mk(s); + s.tmp_0.arg0 = s.tag___59605; s.callLocIdx = 17; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___27416 = (r0); + s.fmt___59648 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___27373); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___59605); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___27416; + s.tmp_1 = r0 = s.fmt___59648; 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__P16286_mk(s); - s.tmp_1.arg0 = s.fmt___27416; + s.tmp_1 = pins_sizeOf__P48493_mk(s); + s.tmp_1.arg0 = s.fmt___59648; s.callLocIdx = 18; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -16424,12 +16444,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P19612.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__P51819.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__P19612_mk(s) { +function msgpack_packNumberCore__P51819_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P19612, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P51819, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16439,8 +16459,8 @@ function msgpack_packNumberCore__P19612_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___27373: undefined, - fmt___27416: undefined, + tag___59605: undefined, + fmt___59648: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -16450,7 +16470,7 @@ function msgpack_packNumberCore__P19612_mk(s) { -function msgpack_tagFormat__P19611(s) { +function msgpack_tagFormat__P51818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16510,12 +16530,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P19611.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__P51818.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__P19611_mk(s) { +function msgpack_tagFormat__P51818_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P19611, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P51818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16525,7 +16545,7 @@ function msgpack_tagFormat__P19611_mk(s) { -function pins_sizeOf__P16286(s) { +function pins_sizeOf__P48493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16539,7 +16559,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P16322_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P48529_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 16; s.pc = 1; return s.tmp_0; case 1: @@ -16547,12 +16567,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pins_sizeOf__P16286.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__P48493.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__P16286_mk(s) { +function pins_sizeOf__P48493_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P16286, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P48493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16562,7 +16582,7 @@ function pins_sizeOf__P16286_mk(s) { -function Buffer_sizeOfNumberFormat__P16322(s) { +function Buffer_sizeOfNumberFormat__P48529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16641,12 +16661,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P16322.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +Buffer_sizeOfNumberFormat__P48529.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} -function Buffer_sizeOfNumberFormat__P16322_mk(s) { +function Buffer_sizeOfNumberFormat__P48529_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P16322, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P48529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16656,7 +16676,7 @@ function Buffer_sizeOfNumberFormat__P16322_mk(s) { -function helpers_setScreenBrightness__P17853(s) { +function helpers_setScreenBrightness__P50060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16671,7 +16691,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P16240_mk(s); + s.tmp_0 = Math_clamp__P48447_mk(s); s.tmp_0.arg0 = 10; s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); @@ -16680,18 +16700,18 @@ switch (step) { case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___17842 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___17842); + globals.brightness___50049 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___50049); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P17853.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +helpers_setScreenBrightness__P50060.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function helpers_setScreenBrightness__P17853_mk(s) { +function helpers_setScreenBrightness__P50060_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P17853, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P50060, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16702,7 +16722,7 @@ function helpers_setScreenBrightness__P17853_mk(s) { -function scene_systemMenu_brightnessUp__P20253(s) { +function scene_systemMenu_brightnessUp__P52460(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16712,24 +16732,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P20255_mk(s); - r0 = globals.brightness___17842; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P52462_mk(s); + r0 = globals.brightness___50049; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 951; s.pc = 1; return s.tmp_0; + s.callLocIdx = 952; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P20253.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__P52460.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__P20253_mk(s) { +function scene_systemMenu_brightnessUp__P52460_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P20253, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P52460, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16739,7 +16759,7 @@ function scene_systemMenu_brightnessUp__P20253_mk(s) { -function scene_systemMenu_volumeDown__P20252(s) { +function scene_systemMenu_volumeDown__P52459(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16749,54 +16769,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___27689 = undefined; - s.remainder___27692 = undefined; - s.newVolume___27695 = undefined; - s.tmp_0 = music_volume__P17711_mk(s); - s.callLocIdx = 948; s.pc = 3; return s.tmp_0; + s.v___59921 = undefined; + s.remainder___59924 = undefined; + s.newVolume___59927 = undefined; + s.tmp_0 = music_volume__P49918_mk(s); + s.callLocIdx = 949; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___27689 = (r0); - r0 = (s.v___27689 % 32); - s.remainder___27692 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___27692); + s.v___59921 = (r0); + r0 = (s.v___59921 % 32); + s.remainder___59924 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___59924); if (!r0) { step = 1; continue; } - r0 = s.remainder___27692; + r0 = s.remainder___59924; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___27689 - s.tmp_0); - s.newVolume___27695 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P20250_mk(s); - s.tmp_0.arg0 = s.newVolume___27695; - s.callLocIdx = 949; s.pc = 4; return s.tmp_0; + r0 = (s.v___59921 - s.tmp_0); + s.newVolume___59927 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P52457_mk(s); + s.tmp_0.arg0 = s.newVolume___59927; + s.callLocIdx = 950; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P20252.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__P52459.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__P20252_mk(s) { +function scene_systemMenu_volumeDown__P52459_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P20252, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P52459, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___27689: undefined, - remainder___27692: undefined, - newVolume___27695: undefined, + v___59921: undefined, + remainder___59924: undefined, + newVolume___59927: undefined, } } -function scene_systemMenu_setVolume__P20250(s) { +function scene_systemMenu_setVolume__P52457(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16810,33 +16830,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P17710_mk(s); + s.tmp_0 = music_setVolume__P49917_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 943; s.pc = 1; return s.tmp_0; + s.callLocIdx = 944; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P17712_mk(s); + s.tmp_0 = music_playTone__P49919_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 944; s.pc = 2; return s.tmp_0; + s.callLocIdx = 945; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P17947_mk(s); + s.tmp_0 = settings_writeNumber__P50154_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 945; s.pc = 3; return s.tmp_0; + s.callLocIdx = 946; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P20250.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__P52457.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__P20250_mk(s) { +function scene_systemMenu_setVolume__P52457_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P20250, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P52457, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16846,7 +16866,7 @@ function scene_systemMenu_setVolume__P20250_mk(s) { -function music_playTone__P17712(s) { +function music_playTone__P49919(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16856,7 +16876,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___27530 = undefined; + s.id___59762 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -16881,7 +16901,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P19707_mk(s); + s.tmp_2 = music_playNoteCore__P51914_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); @@ -16889,7 +16909,7 @@ switch (step) { s.callLocIdx = 67; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P16520_mk(s); + s.tmp_0 = pause__P48727_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; s.callLocIdx = 68; s.pc = 6; return s.tmp_0; @@ -16897,13 +16917,13 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___19709 + 1); + r0 = (globals.playToneID___51916 + 1); s.tmp_0 = r0; - globals.playToneID___19709 = (r0); - s.id___27530 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P27536); + globals.playToneID___51916 = (r0); + s.id___59762 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, inline__P59768); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___27530); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___59762); 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); @@ -16912,17 +16932,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P17712.info = {"start":2591,"length":831,"line":83,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} +music_playTone__P49919.info = {"start":2591,"length":831,"line":83,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} -function music_playTone__P17712_mk(s) { +function music_playTone__P49919_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P17712, depth: s.depth + 1, + parent: s, fn: music_playTone__P49919, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___27530: undefined, + id___59762: undefined, arg0: undefined, arg1: undefined, } } @@ -16931,7 +16951,7 @@ function music_playTone__P17712_mk(s) { -function inline__P27536(s) { +function inline__P59768(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16941,14 +16961,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___27537 = undefined; - s.now___27547 = undefined; - s.d___27550 = undefined; - s.t___27554 = undefined; + s.pos___59769 = undefined; + s.now___59779 = undefined; + s.d___59782 = undefined; + s.t___59786 = undefined; r0 = pxsim.control.millis(); - s.pos___27537 = (r0); + s.pos___59769 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___19709); + r0 = (s.caps[0] == globals.playToneID___51916); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -16964,30 +16984,30 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___27547 = (r0); - r0 = (s.pos___27537 - s.now___27547); - s.d___27550 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); + s.now___59779 = (r0); + r0 = (s.pos___59769 - s.now___59779); + s.d___59782 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; s.callLocIdx = 69; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___27554 = (r0); + s.t___59786 = (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___27554); + r0 = (s.tmp_2 - s.t___59786); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___27537 + s.t___27554); - s.pos___27537 = (r0); - s.tmp_0 = music_playNoteCore__P19707_mk(s); - r0 = (s.d___27550 - 1); + r0 = (s.pos___59769 + s.t___59786); + s.pos___59769 = (r0); + s.tmp_0 = music_playNoteCore__P51914_mk(s); + r0 = (s.d___59782 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___27554; + s.tmp_0.arg2 = s.t___59786; s.callLocIdx = 70; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; @@ -16997,16 +17017,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P16520_mk(s); - r0 = (s.d___27550 + s.t___27554); + s.tmp_2 = pause__P48727_mk(s); + r0 = (s.d___59782 + s.t___59786); s.tmp_2.arg0 = r0; s.callLocIdx = 71; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P16520_mk(s); - r0 = (s.d___27550 + s.t___27554); + s.tmp_0 = pause__P48727_mk(s); + r0 = (s.d___59782 + s.t___59786); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; @@ -17020,27 +17040,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27536.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P59768.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P27536_mk(s) { +function inline__P59768_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27536, depth: s.depth + 1, + parent: s, fn: inline__P59768, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___27537: undefined, - now___27547: undefined, - d___27550: undefined, - t___27554: undefined, + pos___59769: undefined, + now___59779: undefined, + d___59782: undefined, + t___59786: undefined, } } -function music_playNoteCore__P19707(s) { +function music_playNoteCore__P51914(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17050,7 +17070,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___27584 = undefined; + s.buf___59816 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -17058,16 +17078,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___27584 = (r0); - s.tmp_0 = music_addNote__P19714_mk(s); - s.tmp_0.arg0 = s.buf___27584; + s.buf___59816 = (r0); + s.tmp_0 = music_addNote__P51921_mk(s); + s.tmp_0.arg0 = s.buf___59816; 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__P17711_mk(s); + s.tmp_1 = music_volume__P49918_mk(s); s.callLocIdx = 65; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -17076,21 +17096,21 @@ switch (step) { s.callLocIdx = 66; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___27584); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___59816); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P19707.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__P51914.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__P19707_mk(s) { +function music_playNoteCore__P51914_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P19707, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P51914, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___27584: undefined, + buf___59816: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -17100,7 +17120,7 @@ function music_playNoteCore__P19707_mk(s) { -function music_addNote__P19714(s) { +function music_addNote__P51921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17168,12 +17188,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P19714.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +music_addNote__P51921.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function music_addNote__P19714_mk(s) { +function music_addNote__P51921_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P19714, depth: s.depth + 1, + parent: s, fn: music_addNote__P51921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17194,7 +17214,7 @@ function music_addNote__P19714_mk(s) { -function music_setVolume__P17710(s) { +function music_setVolume__P49917(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17208,7 +17228,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P16240_mk(s); + s.tmp_0 = Math_clamp__P48447_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); @@ -17216,8 +17236,8 @@ switch (step) { s.callLocIdx = 62; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___19702 = (r0); - r0 = (globals.globalVolume___19702 > 0); + globals.globalVolume___51909 = (r0); + r0 = (globals.globalVolume___51909 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -17233,12 +17253,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P17710.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__P49917.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__P17710_mk(s) { +function music_setVolume__P49917_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P17710, depth: s.depth + 1, + parent: s, fn: music_setVolume__P49917, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17249,7 +17269,7 @@ function music_setVolume__P17710_mk(s) { -function music_enableAmp__P19705(s) { +function music_enableAmp__P51912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17267,12 +17287,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P19705.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__P51912.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__P19705_mk(s) { +function music_enableAmp__P51912_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P19705, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P51912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -17281,7 +17301,7 @@ function music_enableAmp__P19705_mk(s) { -function scene_systemMenu_volumeUp__P20251(s) { +function scene_systemMenu_volumeUp__P52458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17291,47 +17311,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___27498 = undefined; - s.remainder___27501 = undefined; - s.newVolume___27504 = undefined; - s.tmp_0 = music_volume__P17711_mk(s); - s.callLocIdx = 946; s.pc = 1; return s.tmp_0; + s.v___59730 = undefined; + s.remainder___59733 = undefined; + s.newVolume___59736 = undefined; + s.tmp_0 = music_volume__P49918_mk(s); + s.callLocIdx = 947; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___27498 = (r0); - r0 = (s.v___27498 % 32); - s.remainder___27501 = (r0); - r0 = (s.v___27498 + 32); + s.v___59730 = (r0); + r0 = (s.v___59730 % 32); + s.remainder___59733 = (r0); + r0 = (s.v___59730 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___27501); - s.newVolume___27504 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P20250_mk(s); - s.tmp_0.arg0 = s.newVolume___27504; - s.callLocIdx = 947; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___59733); + s.newVolume___59736 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P52457_mk(s); + s.tmp_0.arg0 = s.newVolume___59736; + s.callLocIdx = 948; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P20251.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__P52458.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__P20251_mk(s) { +function scene_systemMenu_volumeUp__P52458_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P20251, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P52458, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___27498: undefined, - remainder___27501: undefined, - newVolume___27504: undefined, + v___59730: undefined, + remainder___59733: undefined, + newVolume___59736: undefined, } } -function game_consoleOverlay_isVisible__P18767(s) { +function game_consoleOverlay_isVisible__P50974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17341,7 +17361,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___20292); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___52499); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -17351,12 +17371,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P18767.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__P50974.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__P18767_mk(s) { +function game_consoleOverlay_isVisible__P50974_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P18767, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P50974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17367,7 +17387,7 @@ function game_consoleOverlay_isVisible__P18767_mk(s) { -function scene_systemMenu_closeMenu__P18745(s) { +function scene_systemMenu_closeMenu__P50952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17377,21 +17397,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___20246); + r0 = pxsim_numops_toBoolDecr(globals.instance___52453); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P18744_mk(s); - s.tmp_0.arg0 = globals.instance___20246; - s.callLocIdx = 962; s.pc = 3; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P50951_mk(s); + s.tmp_0.arg0 = globals.instance___52453; + s.callLocIdx = 963; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___20246 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P18072_mk(s); + globals.instance___52453 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P50279_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 963; s.pc = 4; return s.tmp_0; + s.callLocIdx = 964; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P18653_mk(s); - s.callLocIdx = 964; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_popScene__P50860_mk(s); + s.callLocIdx = 965; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -17400,12 +17420,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P18745.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__P50952.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__P18745_mk(s) { +function scene_systemMenu_closeMenu__P50952_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P18745, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P50952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -17414,7 +17434,7 @@ function scene_systemMenu_closeMenu__P18745_mk(s) { -function scene_systemMenu_PauseMenu_dispose__P18744(s) { +function scene_systemMenu_PauseMenu_dispose__P50951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17429,16 +17449,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_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__P16223_mk(s); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P26010; - s.callLocIdx = 939; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = inline__P58242; + s.callLocIdx = 940; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["options"] = (undefined); @@ -17448,12 +17468,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P18744.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__P50951.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__P18744_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P50951_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P18744, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P50951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17464,7 +17484,7 @@ function scene_systemMenu_PauseMenu_dispose__P18744_mk(s) { -function inline__P26010(s) { +function inline__P58242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17478,21 +17498,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P18737_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P50944_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 938; s.pc = 1; return s.tmp_0; + s.callLocIdx = 939; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26010.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +inline__P58242.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} -function inline__P26010_mk(s) { +function inline__P58242_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26010, depth: s.depth + 1, + parent: s, fn: inline__P58242, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17502,7 +17522,7 @@ function inline__P26010_mk(s) { -function scene_systemMenu_MenuOption_dispose__P18737(s) { +function scene_systemMenu_MenuOption_dispose__P50944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17517,25 +17537,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_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__P18209_mk(s); + s.tmp_1 = Sprite_destroy__P50416_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 858; s.pc = 3; return s.tmp_1; + s.callLocIdx = 859; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_destroy__P18209_mk(s); + s.tmp_0 = Sprite_destroy__P50416_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 859; s.pc = 4; return s.tmp_0; + s.callLocIdx = 860; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["card"] = (undefined); @@ -17546,12 +17566,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P18737.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__P50944.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__P18737_mk(s) { +function scene_systemMenu_MenuOption_dispose__P50944_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P18737, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P50944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17562,7 +17582,7 @@ function scene_systemMenu_MenuOption_dispose__P18737_mk(s) { -function Sprite_destroy__P18209(s) { +function Sprite_destroy__P50416(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17579,7 +17599,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -17597,7 +17617,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__P18908_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P51115_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg2; @@ -17607,7 +17627,7 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P18210_mk(s); + s.tmp_0 = Sprite__destroyCore__P50417_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 370; s.pc = 7; return s.tmp_0; case 7: @@ -17618,12 +17638,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P18209.info = {"start":28605,"length":293,"line":862,"column":4,"endLine":871,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +Sprite_destroy__P50416.info = {"start":28605,"length":293,"line":862,"column":4,"endLine":871,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function Sprite_destroy__P18209_mk(s) { +function Sprite_destroy__P50416_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P18209, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P50416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17639,7 +17659,7 @@ function Sprite_destroy__P18209_mk(s) { -function effects_ParticleEffect_destroy__P18908(s) { +function effects_ParticleEffect_destroy__P51115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17657,15 +17677,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C18905_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P18201_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C51112_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P50408_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 3072; s.tmp_0.arg2 = true; - s.callLocIdx = 1123; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1124; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P18907_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P51114_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -17682,7 +17702,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg4 = r0; - s.callLocIdx = 1124; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1125; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -17697,22 +17717,22 @@ 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__P18934_mk(s); - s.tmp_0.arg0 = globals.dissolve___18937; + s.tmp_0 = effects_ImageEffect_applyTo__P51141_mk(s); + s.tmp_0.arg0 = globals.dissolve___51144; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1125; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1126; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P18908.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__P51115.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__P18908_mk(s) { +function effects_ParticleEffect_destroy__P51115_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P18908, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P51115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17730,7 +17750,7 @@ function effects_ParticleEffect_destroy__P18908_mk(s) { -function inline__P26162(s) { +function inline__P58394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17740,11 +17760,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___26165 = undefined; - s.x___26176 = undefined; - s.y___26182 = undefined; - s.w___26188 = undefined; - s.h___26192 = undefined; + s.i___58397 = undefined; + s.x___58408 = undefined; + s.y___58414 = undefined; + s.w___58420 = undefined; + s.h___58424 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -17757,13 +17777,13 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___26165 = (r0); + s.i___58397 = (r0); case 1: - r0 = (s.i___26165 > 0); + r0 = (s.i___58397 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P18706_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P50913_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -17771,8 +17791,8 @@ switch (step) { s.callLocIdx = 39; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___26176 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P18706_mk(s); + s.x___58408 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P50913_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -17780,56 +17800,56 @@ switch (step) { s.callLocIdx = 40; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___26182 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P18706_mk(s); + s.y___58414 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P50913_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 41; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.w___26188 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P18706_mk(s); + s.w___58420 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P50913_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 42; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.h___26192 = (r0); - s.tmp_0 = helpers_imageDrawRect__P17849_mk(s); + s.h___58424 = (r0); + s.tmp_0 = helpers_imageDrawRect__P50056_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___26176; - s.tmp_0.arg2 = s.y___26182; - s.tmp_0.arg3 = s.w___26188; - s.tmp_0.arg4 = s.h___26192; + s.tmp_0.arg1 = s.x___58408; + s.tmp_0.arg2 = s.y___58414; + s.tmp_0.arg3 = s.w___58420; + s.tmp_0.arg4 = s.h___58424; s.tmp_0.arg5 = 0; s.callLocIdx = 43; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___26165 - 1); - s.i___26165 = (r0); + r0 = (s.i___58397 - 1); + s.i___58397 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26162.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +inline__P58394.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 inline__P26162_mk(s) { +function inline__P58394_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26162, depth: s.depth + 1, + parent: s, fn: inline__P58394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___26165: undefined, - x___26176: undefined, - y___26182: undefined, - w___26188: undefined, - h___26192: undefined, + i___58397: undefined, + x___58408: undefined, + y___58414: undefined, + w___58420: undefined, + h___58424: undefined, arg0: undefined, arg1: undefined, } } @@ -17838,7 +17858,7 @@ function inline__P26162_mk(s) { -function helpers_imageDrawRect__P17849(s) { +function helpers_imageDrawRect__P50056(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17877,7 +17897,7 @@ switch (step) { s.arg3 = (r0); r0 = (s.arg4 - 1); s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_0 = helpers_imageDrawLine__P50055_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -17888,7 +17908,7 @@ switch (step) { s.callLocIdx = 84; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_0 = helpers_imageDrawLine__P50055_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -17899,7 +17919,7 @@ switch (step) { s.callLocIdx = 85; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_0 = helpers_imageDrawLine__P50055_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -17912,7 +17932,7 @@ switch (step) { s.callLocIdx = 86; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_0 = helpers_imageDrawLine__P50055_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -17930,12 +17950,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P17849.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawRect__P50056.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawRect__P17849_mk(s) { +function helpers_imageDrawRect__P50056_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P17849, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P50056, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17951,7 +17971,7 @@ function helpers_imageDrawRect__P17849_mk(s) { -function helpers_imageDrawLine__P17848(s) { +function helpers_imageDrawLine__P50055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17971,14 +17991,14 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P19739_mk(s); + s.tmp_2 = helpers_pack__P51946_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; s.callLocIdx = 82; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P19739_mk(s); + s.tmp_4 = helpers_pack__P51946_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; s.callLocIdx = 83; s.pc = 2; return s.tmp_4; @@ -17990,12 +18010,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P17848.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawLine__P50055.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawLine__P17848_mk(s) { +function helpers_imageDrawLine__P50055_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P17848, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P50055, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18014,7 +18034,7 @@ function helpers_imageDrawLine__P17848_mk(s) { -function effects_ImageEffect_applyTo__P18934(s) { +function effects_ImageEffect_applyTo__P51141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18024,14 +18044,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___26288 = undefined; + s.clonedImage___58520 = 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__C18932_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C51139_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -18057,17 +18077,17 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___26288 = (r0); - s.tmp_0 = effects_ImageEffect_change__P18935_mk(s); + s.clonedImage___58520 = (r0); + s.tmp_0 = effects_ImageEffect_change__P51142_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___26288; - s.callLocIdx = 1136; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___58520; + s.callLocIdx = 1137; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P18178_mk(s); + s.tmp_0 = Sprite_setImage__P50385_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___26288; - s.callLocIdx = 1137; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___58520; + s.callLocIdx = 1138; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 5: @@ -18075,12 +18095,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P18934.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__P51141.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__P18934_mk(s) { +function effects_ImageEffect_applyTo__P51141_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P18934, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P51141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18088,7 +18108,7 @@ function effects_ImageEffect_applyTo__P18934_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___26288: undefined, + clonedImage___58520: undefined, arg0: undefined, arg1: undefined, } } @@ -18097,7 +18117,7 @@ function effects_ImageEffect_applyTo__P18934_mk(s) { -function effects_ImageEffect_change__P18935(s) { +function effects_ImageEffect_change__P51142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18113,7 +18133,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C18932_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C51139_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -18121,12 +18141,12 @@ switch (step) { s.tmp_0.arg2 = r0; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3); - s.callLocIdx = 1138; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1139; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["effect"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["effect"], 3); s.callLocIdx = 1138; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1138; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1138; s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["effect"], 3); s.callLocIdx = 1139; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1139; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1139; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -18134,12 +18154,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P18935.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__P51142.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__P18935_mk(s) { +function effects_ImageEffect_change__P51142_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P18935, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P51142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18150,7 +18170,7 @@ function effects_ImageEffect_change__P18935_mk(s) { -function Sprite_setImage__P18178(s) { +function Sprite_setImage__P50385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18166,7 +18186,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -18177,7 +18197,7 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite_setHitbox__P18179_mk(s); + s.tmp_0 = Sprite_setHitbox__P50386_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 248; s.pc = 4; return s.tmp_0; case 4: @@ -18187,12 +18207,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setImage__P18178.info = {"start":7004,"length":133,"line":256,"column":4,"endLine":260,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +Sprite_setImage__P50385.info = {"start":7004,"length":133,"line":256,"column":4,"endLine":260,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function Sprite_setImage__P18178_mk(s) { +function Sprite_setImage__P50385_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P18178, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P50385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18204,7 +18224,7 @@ function Sprite_setImage__P18178_mk(s) { -function Sprite_setHitbox__P18179(s) { +function Sprite_setHitbox__P50386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18214,29 +18234,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___26307 = undefined; - s.oMinX___26315 = undefined; - s.oMinY___26319 = undefined; - s.oMaxX___26323 = undefined; - s.oMaxY___26330 = undefined; - s.nMinX___26337 = undefined; - s.nMinY___26340 = undefined; - s.nMaxX___26343 = undefined; - s.nMaxY___26349 = undefined; - s.xDiff___26355 = undefined; - s.yDiff___26366 = undefined; + s.newHitBox___58539 = undefined; + s.oMinX___58547 = undefined; + s.oMinY___58551 = undefined; + s.oMaxX___58555 = undefined; + s.oMaxY___58562 = undefined; + s.nMinX___58569 = undefined; + s.nMinY___58572 = undefined; + s.nMaxX___58575 = undefined; + s.nMaxY___58581 = undefined; + s.xDiff___58587 = undefined; + s.yDiff___58598 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = game_calculateHitBox__P18088_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = game_calculateHitBox__P50295_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 249; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.newHitBox___26307 = (r0); + s.newHitBox___58539 = (r0); r0 = s.arg0.fields["_hitbox"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -18245,95 +18265,95 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___26307); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___58539); { step = 7; continue; } case 1: case 2: r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["ox"]; - s.oMinX___26315 = (r0); + s.oMinX___58547 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["oy"]; - s.oMinY___26319 = (r0); + s.oMinY___58551 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___26315 + s.tmp_0); - s.oMaxX___26323 = (r0); + r0 = (s.oMinX___58547 + s.tmp_0); + s.oMaxX___58555 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___26319 + s.tmp_0); - s.oMaxY___26330 = (r0); - r0 = s.newHitBox___26307.fields["ox"]; - s.nMinX___26337 = (r0); - r0 = s.newHitBox___26307.fields["oy"]; - s.nMinY___26340 = (r0); - r0 = s.newHitBox___26307.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___26337 + s.tmp_0); - s.nMaxX___26343 = (r0); - r0 = s.newHitBox___26307.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___26340 + s.tmp_0); - s.nMaxY___26349 = (r0); - s.tmp_1 = Fx_abs__P16278_mk(s); - r0 = (s.oMinX___26315 - s.nMinX___26337); + r0 = (s.oMinY___58551 + s.tmp_0); + s.oMaxY___58562 = (r0); + r0 = s.newHitBox___58539.fields["ox"]; + s.nMinX___58569 = (r0); + r0 = s.newHitBox___58539.fields["oy"]; + s.nMinY___58572 = (r0); + r0 = s.newHitBox___58539.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___58569 + s.tmp_0); + s.nMaxX___58575 = (r0); + r0 = s.newHitBox___58539.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___58572 + s.tmp_0); + s.nMaxY___58581 = (r0); + s.tmp_1 = Fx_abs__P48485_mk(s); + r0 = (s.oMinX___58547 - s.nMinX___58569); s.tmp_1.arg0 = r0; s.callLocIdx = 255; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P16278_mk(s); - r0 = (s.oMaxX___26323 - s.nMaxX___26343); + s.tmp_3 = Fx_abs__P48485_mk(s); + r0 = (s.oMaxX___58555 - s.nMaxX___58575); s.tmp_3.arg0 = r0; s.callLocIdx = 257; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___26355 = (r0); - s.tmp_1 = Fx_abs__P16278_mk(s); - r0 = (s.oMinY___26319 - s.nMinY___26340); + s.xDiff___58587 = (r0); + s.tmp_1 = Fx_abs__P48485_mk(s); + r0 = (s.oMinY___58551 - s.nMinY___58572); s.tmp_1.arg0 = r0; s.callLocIdx = 260; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P16278_mk(s); - r0 = (s.oMaxY___26330 - s.nMaxY___26349); + s.tmp_3 = Fx_abs__P48485_mk(s); + r0 = (s.oMaxY___58562 - s.nMaxY___58581); s.tmp_3.arg0 = r0; s.callLocIdx = 262; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___26366 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___26307); - r0 = (s.xDiff___26355 <= 512); + s.yDiff___58598 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___58539); + r0 = (s.xDiff___58587 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["ox"] = (s.oMinX___26315); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___58547); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxX___26323 - s.oMinX___26315); + r0 = (s.oMaxX___58555 - s.oMinX___58547); s.tmp_1 = r0; r0 = (s.tmp_0).fields["width"] = (s.tmp_1); case 3: case 4: - r0 = (s.yDiff___26366 <= 512); + r0 = (s.yDiff___58598 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["oy"] = (s.oMinY___26319); + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___58551); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxY___26330 - s.oMinY___26319); + r0 = (s.oMaxY___58562 - s.oMinY___58551); s.tmp_1 = r0; r0 = (s.tmp_0).fields["height"] = (s.tmp_1); case 5: @@ -18343,28 +18363,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P18179.info = {"start":7143,"length":1296,"line":262,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +Sprite_setHitbox__P50386.info = {"start":7143,"length":1296,"line":262,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Sprite_setHitbox__P18179_mk(s) { +function Sprite_setHitbox__P50386_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P18179, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P50386, depth: s.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___26307: undefined, - oMinX___26315: undefined, - oMinY___26319: undefined, - oMaxX___26323: undefined, - oMaxY___26330: undefined, - nMinX___26337: undefined, - nMinY___26340: undefined, - nMaxX___26343: undefined, - nMaxY___26349: undefined, - xDiff___26355: undefined, - yDiff___26366: undefined, + newHitBox___58539: undefined, + oMinX___58547: undefined, + oMinY___58551: undefined, + oMaxX___58555: undefined, + oMaxY___58562: undefined, + nMinX___58569: undefined, + nMinY___58572: undefined, + nMaxX___58575: undefined, + nMaxY___58581: undefined, + xDiff___58587: undefined, + yDiff___58598: undefined, arg0: undefined, } } @@ -18372,7 +18392,7 @@ function Sprite_setHitbox__P18179_mk(s) { -function game_calculateHitBox__P18088(s) { +function game_calculateHitBox__P50295(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18382,104 +18402,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___26415 = undefined; - s.minX___26418 = undefined; - s.minY___26421 = undefined; - s.maxX___26424 = undefined; - s.maxY___26425 = undefined; - s.c___26426 = undefined; - s.r___26432 = undefined; - s.width___26463 = undefined; - s.height___26469 = undefined; + s.i___58647 = undefined; + s.minX___58650 = undefined; + s.minY___58653 = undefined; + s.maxX___58656 = undefined; + s.maxY___58657 = undefined; + s.c___58658 = undefined; + s.r___58664 = undefined; + s.width___58695 = undefined; + s.height___58701 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0.fields["_image"]; - s.i___26415 = (r0); - r0 = pxsim_ImageMethods.width(s.i___26415); - s.minX___26418 = (r0); - r0 = pxsim_ImageMethods.height(s.i___26415); - s.minY___26421 = (r0); - s.maxX___26424 = (0); - s.maxY___26425 = (0); - s.c___26426 = (0); - case 1: - s.tmp_1 = r0 = s.c___26426; - r0 = pxsim_ImageMethods.width(s.i___26415); + s.i___58647 = (r0); + r0 = pxsim_ImageMethods.width(s.i___58647); + s.minX___58650 = (r0); + r0 = pxsim_ImageMethods.height(s.i___58647); + s.minY___58653 = (r0); + s.maxX___58656 = (0); + s.maxY___58657 = (0); + s.c___58658 = (0); + case 1: + s.tmp_1 = r0 = s.c___58658; + r0 = pxsim_ImageMethods.width(s.i___58647); 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.r___26432 = (0); + s.r___58664 = (0); case 2: - s.tmp_1 = r0 = s.r___26432; - r0 = pxsim_ImageMethods.height(s.i___26415); + s.tmp_1 = r0 = s.r___58664; + r0 = pxsim_ImageMethods.height(s.i___58647); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.getPixel(s.i___26415, s.c___26426, s.r___26432); + r0 = pxsim_ImageMethods.getPixel(s.i___58647, s.c___58658, s.r___58664); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P16244_mk(s); - s.tmp_4.arg0 = s.minX___26418; - s.tmp_4.arg1 = s.c___26426; + s.tmp_4 = Math_min__P48451_mk(s); + s.tmp_4.arg0 = s.minX___58650; + s.tmp_4.arg1 = s.c___58658; s.callLocIdx = 208; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; - s.minX___26418 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); - s.tmp_0.arg0 = s.minY___26421; - s.tmp_0.arg1 = s.r___26432; + s.minX___58650 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); + s.tmp_0.arg0 = s.minY___58653; + s.tmp_0.arg1 = s.r___58664; s.callLocIdx = 209; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.minY___26421 = (r0); - s.tmp_0 = Math_max__P16243_mk(s); - s.tmp_0.arg0 = s.maxX___26424; - s.tmp_0.arg1 = s.c___26426; + s.minY___58653 = (r0); + s.tmp_0 = Math_max__P48450_mk(s); + s.tmp_0.arg0 = s.maxX___58656; + s.tmp_0.arg1 = s.c___58658; s.callLocIdx = 210; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.maxX___26424 = (r0); - s.tmp_0 = Math_max__P16243_mk(s); - s.tmp_0.arg0 = s.maxY___26425; - s.tmp_0.arg1 = s.r___26432; + s.maxX___58656 = (r0); + s.tmp_0 = Math_max__P48450_mk(s); + s.tmp_0.arg0 = s.maxY___58657; + s.tmp_0.arg1 = s.r___58664; s.callLocIdx = 211; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.maxY___26425 = (r0); + s.maxY___58657 = (r0); case 3: case 4: - r0 = (s.r___26432 + 1); - s.r___26432 = (r0); + r0 = (s.r___58664 + 1); + s.r___58664 = (r0); { step = 2; continue; } case 5: - r0 = (s.c___26426 + 1); - s.c___26426 = (r0); + r0 = (s.c___58658 + 1); + s.c___58658 = (r0); { step = 1; continue; } case 6: - r0 = (s.maxX___26424 - s.minX___26418); + r0 = (s.maxX___58656 - s.minX___58650); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.width___26463 = (r0); - r0 = (s.maxY___26425 - s.minY___26421); + s.width___58695 = (r0); + r0 = (s.maxY___58657 - s.minY___58653); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.height___26469 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C18077_VT); + s.height___58701 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C50284_VT); s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P18083_mk(s); + s.tmp_1 = game_Hitbox_constructor__P50290_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___26463; - s.tmp_1.arg3 = s.height___26469; - s.tmp_1.arg4 = s.minX___26418; - s.tmp_1.arg5 = s.minY___26421; + s.tmp_1.arg2 = s.width___58695; + s.tmp_1.arg3 = s.height___58701; + s.tmp_1.arg4 = s.minX___58650; + s.tmp_1.arg5 = s.minY___58653; s.callLocIdx = 212; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; @@ -18487,27 +18507,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_calculateHitBox__P18088.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +game_calculateHitBox__P50295.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} -function game_calculateHitBox__P18088_mk(s) { +function game_calculateHitBox__P50295_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P18088, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P50295, depth: s.depth + 1, pc: 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___26415: undefined, - minX___26418: undefined, - minY___26421: undefined, - maxX___26424: undefined, - maxY___26425: undefined, - c___26426: undefined, - r___26432: undefined, - width___26463: undefined, - height___26469: undefined, + i___58647: undefined, + minX___58650: undefined, + minY___58653: undefined, + maxX___58656: undefined, + maxY___58657: undefined, + c___58658: undefined, + r___58664: undefined, + width___58695: undefined, + height___58701: undefined, arg0: undefined, } } @@ -18515,7 +18535,7 @@ function game_calculateHitBox__P18088_mk(s) { -function game_Hitbox_constructor__P18083(s) { +function game_Hitbox_constructor__P50290(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18535,7 +18555,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C18077_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C50284_VT)) failedCast(r0); r0 = (s.arg0).fields["parent"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = (s.arg2 * 256); @@ -18565,12 +18585,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P18083.info = {"start":151,"length":266,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} +game_Hitbox_constructor__P50290.info = {"start":151,"length":266,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} -function game_Hitbox_constructor__P18083_mk(s) { +function game_Hitbox_constructor__P50290_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P18083, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P50290, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18587,7 +18607,7 @@ function game_Hitbox_constructor__P18083_mk(s) { -function Fx_abs__P16278(s) { +function Fx_abs__P48485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18617,12 +18637,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_abs__P16278.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +Fx_abs__P48485.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function Fx_abs__P16278_mk(s) { +function Fx_abs__P48485_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P16278, depth: s.depth + 1, + parent: s, fn: Fx_abs__P48485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18632,7 +18652,7 @@ function Fx_abs__P16278_mk(s) { -function Fx_sub__P16272(s) { +function Fx_sub__P48479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18651,12 +18671,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_sub__P16272.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +Fx_sub__P48479.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} -function Fx_sub__P16272_mk(s) { +function Fx_sub__P48479_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P16272, depth: s.depth + 1, + parent: s, fn: Fx_sub__P48479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -18666,7 +18686,7 @@ function Fx_sub__P16272_mk(s) { -function Sprite_image__P18177(s) { +function Sprite_image__P50384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18681,18 +18701,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P18177.info = {"start":6728,"length":54,"line":246,"column":4,"endLine":248,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P18177.isGetter = true; +Sprite_image__P50384.info = {"start":6728,"length":54,"line":246,"column":4,"endLine":248,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P50384.isGetter = true; -function Sprite_image__P18177_mk(s) { +function Sprite_image__P50384_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P18177, depth: s.depth + 1, + parent: s, fn: Sprite_image__P50384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -18701,7 +18721,7 @@ function Sprite_image__P18177_mk(s) { -function effects_ParticleEffect_start__P18907(s) { +function effects_ParticleEffect_start__P51114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18711,7 +18731,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___26524 = undefined; + s.src___58756 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -18721,7 +18741,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C18905_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C51112_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -18748,18 +18768,18 @@ switch (step) { s.tmp_4.arg2 = s.tmp_3; if (!s.tmp_4.arg0.vtable.iface) { setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "sourceFactory"), 3); - s.callLocIdx = 1121; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1122; s.pc = 10; return s.tmp_4; } else { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["sourceFactory"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1121; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1121; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1121; s.pc = 10; return s.tmp_4; } + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1122; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1122; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1122; s.pc = 10; return s.tmp_4; } } case 10: r0 = s.retval; - s.src___26524 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P18805_mk(s); - s.tmp_0.arg0 = s.src___26524; + s.src___58756 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P51012_mk(s); + s.tmp_0.arg0 = s.src___58756; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -18768,7 +18788,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 1122; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1123; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -18784,7 +18804,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___26524).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___58756).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -18792,19 +18812,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P18907.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__P51114.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__P18907_mk(s) { +function effects_ParticleEffect_start__P51114_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P18907, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P51114, depth: s.depth + 1, pc: 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___26524: undefined, + src___58756: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18816,7 +18836,7 @@ function effects_ParticleEffect_start__P18907_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P18805(s) { +function particles_ParticleSource_setRelativeToCamera__P51012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18832,7 +18852,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -18858,12 +18878,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P18805.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +particles_ParticleSource_setRelativeToCamera__P51012.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} -function particles_ParticleSource_setRelativeToCamera__P18805_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P51012_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P18805, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P51012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18878,7 +18898,7 @@ function particles_ParticleSource_setRelativeToCamera__P18805_mk(s) { -function Sprite_setFlag__P18201(s) { +function Sprite_setFlag__P50408(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18895,7 +18915,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -18930,7 +18950,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - s.tmp_2 = Sprite_setFlag__P18201_mk(s); + s.tmp_2 = Sprite_setFlag__P50408_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 512; @@ -18944,12 +18964,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setFlag__P18201.info = {"start":24075,"length":292,"line":735,"column":4,"endLine":742,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +Sprite_setFlag__P50408.info = {"start":24075,"length":292,"line":735,"column":4,"endLine":742,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function Sprite_setFlag__P18201_mk(s) { +function Sprite_setFlag__P50408_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P18201, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P50408, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18965,7 +18985,7 @@ function Sprite_setFlag__P18201_mk(s) { -function Sprite__destroyCore__P18210(s) { +function Sprite__destroyCore__P50417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18975,29 +18995,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___26060 = undefined; + s.scene___58292 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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__P18648_mk(s); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 371; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.scene___26060 = (r0); + s.scene___58292 = (r0); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_destroy__P18209_mk(s); + s.tmp_1 = Sprite_destroy__P50416_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; @@ -19007,7 +19027,7 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = s.scene___26060.fields["allSprites"]; + r0 = s.scene___58292.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -19019,7 +19039,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = s.scene___26060.fields["spritesByKind"]; + r0 = s.scene___58292.fields["spritesByKind"]; s.tmp_2 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; @@ -19029,8 +19049,8 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 5; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P18240_mk(s); - r0 = s.scene___26060.fields["spritesByKind"]; + s.tmp_5 = sprites_SpriteSet_remove__P50447_mk(s); + r0 = s.scene___58292.fields["spritesByKind"]; s.tmp_6 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; @@ -19042,11 +19062,11 @@ switch (step) { r0 = s.retval; case 5: case 6: - s.tmp_0 = PhysicsEngine__C18281_v1_2_mk(s); - r0 = s.scene___26060.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C50488_v1_2_mk(s); + r0 = s.scene___58292.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C18281_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C50488_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite; s.pc = 12; return s.tmp_0; case 12: @@ -19070,15 +19090,15 @@ switch (step) { r0 = s.retval; case 7: case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P26097); + r0 = pxsim_pxtcore_mkAction(1, inline__P58329); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P26104); + r0 = pxsim_pxtcore_mkAction(1, inline__P58336); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P16223_mk(s); - s.tmp_3 = helpers_arrayFilter__P16224_mk(s); - r0 = s.scene___26060.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P48430_mk(s); + s.tmp_3 = helpers_arrayFilter__P48431_mk(s); + r0 = s.scene___58292.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 379; s.pc = 15; return s.tmp_3; @@ -19093,12 +19113,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P18210.info = {"start":28904,"length":693,"line":873,"column":4,"endLine":889,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +Sprite__destroyCore__P50417.info = {"start":28904,"length":693,"line":873,"column":4,"endLine":889,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function Sprite__destroyCore__P18210_mk(s) { +function Sprite__destroyCore__P50417_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P18210, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P50417, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19108,7 +19128,7 @@ function Sprite__destroyCore__P18210_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___26060: undefined, + scene___58292: undefined, arg0: undefined, } } @@ -19116,7 +19136,7 @@ function Sprite__destroyCore__P18210_mk(s) { -function inline__P26097(s) { +function inline__P58329(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19138,12 +19158,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26097.info = {"start":29520,"length":26,"line":887,"column":20,"endLine":887,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P58329.info = {"start":29520,"length":26,"line":887,"column":20,"endLine":887,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P26097_mk(s) { +function inline__P58329_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26097, depth: s.depth + 1, + parent: s, fn: inline__P58329, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19154,7 +19174,7 @@ function inline__P26097_mk(s) { -function inline__P26104(s) { +function inline__P58336(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19186,12 +19206,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26104.info = {"start":29569,"length":20,"line":888,"column":21,"endLine":888,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P58336.info = {"start":29569,"length":20,"line":888,"column":21,"endLine":888,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P26104_mk(s) { +function inline__P58336_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26104, depth: s.depth + 1, + parent: s, fn: inline__P58336, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19201,7 +19221,7 @@ function inline__P26104_mk(s) { -function PhysicsEngine_removeSprite__P18284(s) { +function PhysicsEngine_removeSprite__P50491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19217,17 +19237,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P18284.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__P50491.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__P18284_mk(s) { +function PhysicsEngine_removeSprite__P50491_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P18284, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P50491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -19237,7 +19257,7 @@ function PhysicsEngine_removeSprite__P18284_mk(s) { -function sprites_SpriteSet_remove__P18240(s) { +function sprites_SpriteSet_remove__P50447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19247,26 +19267,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___26113 = undefined; + s.i___58345 = 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__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___26113 = (r0); - r0 = (s.i___26113 > -1); + s.i___58345 = (r0); + r0 = (s.i___58345 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P16214_mk(s); + s.tmp_1 = helpers_arraySplice__P48421_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___26113; + s.tmp_1.arg1 = s.i___58345; s.tmp_1.arg2 = 1; s.callLocIdx = 427; s.pc = 4; return s.tmp_1; case 4: @@ -19280,16 +19300,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P18240.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +sprites_SpriteSet_remove__P50447.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} -function sprites_SpriteSet_remove__P18240_mk(s) { +function sprites_SpriteSet_remove__P50447_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P18240, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P50447, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___26113: undefined, + i___58345: undefined, arg0: undefined, arg1: undefined, } } @@ -19298,7 +19318,7 @@ function sprites_SpriteSet_remove__P18240_mk(s) { -function Sprite_kind__P18192(s) { +function Sprite_kind__P50399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19313,17 +19333,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P18192.info = {"start":10783,"length":41,"line":391,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Sprite_kind__P50399.info = {"start":10783,"length":41,"line":391,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function Sprite_kind__P18192_mk(s) { +function Sprite_kind__P50399_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P18192, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P50399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19332,7 +19352,7 @@ function Sprite_kind__P18192_mk(s) { -function game_popScene__P18653(s) { +function game_popScene__P50860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19342,59 +19362,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___25939 = undefined; - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 823; s.pc = 11; return s.tmp_0; + s.oldScene___58171 = undefined; + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 824; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.oldScene___25939 = (r0); - s.tmp_0 = r0 = globals._sceneStack___19995; + s.oldScene___58171 = (r0); + s.tmp_0 = r0 = globals._sceneStack___52202; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array__length(globals._sceneStack___19995); + r0 = pxsim_Array__length(globals._sceneStack___52202); case 2: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___19995); - globals._scene___19994 = (r0); - s.tmp_0 = control_popEventContext__P16517_mk(s); - s.callLocIdx = 824; s.pc = 12; return s.tmp_0; + r0 = pxsim_Array_.pop(globals._sceneStack___52202); + globals._scene___52201 = (r0); + s.tmp_0 = control_popEventContext__P48724_mk(s); + s.callLocIdx = 825; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___19994); + r0 = pxsim_numops_toBoolDecr(globals._scene___52201); if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P16517_mk(s); - s.callLocIdx = 825; s.pc = 13; return s.tmp_0; + s.tmp_0 = control_popEventContext__P48724_mk(s); + s.callLocIdx = 826; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals._scene___19994 = (undefined); + globals._scene___52201 = (undefined); case 4: case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___19994); + r0 = pxsim_numops_toBoolDecr(globals._scene___52201); if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P18826_mk(s); - s.callLocIdx = 826; s.pc = 14; return s.tmp_0; + s.tmp_0 = particles_enableAll__P51033_mk(s); + s.callLocIdx = 827; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___19997); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___52204); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P25960); + r0 = pxsim_pxtcore_mkAction(1, inline__P58192); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___25939); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___19997; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___58171); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___52204; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 828; s.pc = 15; return s.tmp_1; + s.callLocIdx = 829; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; case 9: @@ -19403,23 +19423,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_popScene__P18653.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +game_popScene__P50860.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function game_popScene__P18653_mk(s) { +function game_popScene__P50860_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P18653, depth: s.depth + 1, + parent: s, fn: game_popScene__P50860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___25939: undefined, + oldScene___58171: undefined, } } -function inline__P25960(s) { +function inline__P58192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19437,19 +19457,19 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 827; s.pc = 1; return s.tmp_0; + s.callLocIdx = 828; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25960.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +inline__P58192.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function inline__P25960_mk(s) { +function inline__P58192_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25960, depth: s.depth + 1, + parent: s, fn: inline__P58192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19459,7 +19479,7 @@ function inline__P25960_mk(s) { -function particles_enableAll__P18826(s) { +function particles_enableAll__P51033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19469,22 +19489,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___25964 = undefined; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1067; s.pc = 3; return s.tmp_0; + s.sources___58196 = undefined; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1068; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___25964 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___25964); + s.sources___58196 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___58196); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); - s.tmp_0.arg0 = s.sources___25964; - s.tmp_0.arg1 = inline__P25970; - s.callLocIdx = 1069; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); + s.tmp_0.arg0 = s.sources___58196; + s.tmp_0.arg1 = inline__P58202; + s.callLocIdx = 1070; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P20354_mk(s); - s.callLocIdx = 1070; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P52561_mk(s); + s.callLocIdx = 1071; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -19493,22 +19513,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_enableAll__P18826.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +particles_enableAll__P51033.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function particles_enableAll__P18826_mk(s) { +function particles_enableAll__P51033_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P18826, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P51033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___25964: undefined, + sources___58196: undefined, } } -function inline__P25970(s) { +function inline__P58202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19522,22 +19542,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P18807_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P51014_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1068; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1069; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = true; return leave(s, r0) default: oops() } } } -inline__P25970.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P58202.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P25970_mk(s) { +function inline__P58202_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25970, depth: s.depth + 1, + parent: s, fn: inline__P58202, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19547,7 +19567,7 @@ function inline__P25970_mk(s) { -function control_popEventContext__P16517(s) { +function control_popEventContext__P48724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19557,9 +19577,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___25977 = undefined; - s.context___25985 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___19671); + s.ctx___58209 = undefined; + s.context___58217 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___51878); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -19568,9 +19588,9 @@ switch (step) { { step = 7; continue; } case 1: case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___19671); - s.ctx___25977 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___25977); + r0 = pxsim_Array_.pop(globals.eventContexts___51878); + s.ctx___58209 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___58209); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -19579,53 +19599,53 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_2 = control_EventContext_unregister__P16509_mk(s); - s.tmp_2.arg0 = s.ctx___25977; + s.tmp_2 = control_EventContext_unregister__P48716_mk(s); + s.tmp_2.arg0 = s.ctx___58209; s.callLocIdx = 57; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___19671; - r0 = pxsim_Array__length(globals.eventContexts___19671); + s.tmp_0 = r0 = globals.eventContexts___51878; + r0 = pxsim_Array__length(globals.eventContexts___51878); 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___25985 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___25985); + s.context___58217 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___58217); if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P16508_mk(s); - s.tmp_0.arg0 = s.context___25985; + s.tmp_0 = control_EventContext_register__P48715_mk(s); + s.tmp_0.arg0 = s.context___58217; s.callLocIdx = 58; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; { step = 6; continue; } case 5: - globals.eventContexts___19671 = (undefined); + globals.eventContexts___51878 = (undefined); case 6: case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P16517.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +control_popEventContext__P48724.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function control_popEventContext__P16517_mk(s) { +function control_popEventContext__P48724_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P16517, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P48724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ctx___25977: undefined, - context___25985: undefined, + ctx___58209: undefined, + context___58217: undefined, } } -function control_EventContext_register__P16508(s) { +function control_EventContext_register__P48715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19635,38 +19655,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___25998 = undefined; - s.unnamed130___U1 = undefined; - s.unnamed131___U2 = undefined; + s.h___58230 = undefined; + s.unnamed290___U1 = undefined; + s.unnamed291___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C16502_VT)) failedCast(r0); - s.h___25998 = (undefined); + if (!checkSubtype(r0, control_EventContext__C48709_VT)) failedCast(r0); + s.h___58230 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed130___U1 = (r0); - s.unnamed131___U2 = (0); + s.unnamed290___U1 = (r0); + s.unnamed291___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed131___U2; - r0 = pxsim_Array__length(s.unnamed130___U1); + s.tmp_0 = r0 = s.unnamed291___U2; + r0 = pxsim_Array__length(s.unnamed290___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed130___U1, s.unnamed131___U2); - s.h___25998 = (r0); - s.tmp_2 = control_EventHandler_register__P19664_mk(s); - s.tmp_2.arg0 = s.h___25998; + r0 = pxsim_Array__getAt(s.unnamed290___U1, s.unnamed291___U2); + s.h___58230 = (r0); + s.tmp_2 = control_EventHandler_register__P51871_mk(s); + s.tmp_2.arg0 = s.h___58230; s.callLocIdx = 48; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - r0 = (s.unnamed131___U2 + 1); - s.unnamed131___U2 = (r0); + r0 = (s.unnamed291___U2 + 1); + s.unnamed291___U2 = (r0); { step = 1; continue; } case 2: - s.unnamed130___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P19669_mk(s); + s.unnamed290___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P51876_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 49; s.pc = 4; return s.tmp_0; case 4: @@ -19675,19 +19695,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_register__P16508.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control_EventContext_register__P48715.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function control_EventContext_register__P16508_mk(s) { +function control_EventContext_register__P48715_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P16508, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P48715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___25998: undefined, - unnamed130___U1: undefined, - unnamed131___U2: undefined, + h___58230: undefined, + unnamed290___U1: undefined, + unnamed291___U2: undefined, arg0: undefined, } } @@ -19695,7 +19715,7 @@ function control_EventContext_register__P16508_mk(s) { -function controller__setUserEventsEnabled__P18072(s) { +function controller__setUserEventsEnabled__P50279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19709,17 +19729,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals._userEventsEnabled___19816 = (s.arg0); + globals._userEventsEnabled___52023 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P18072.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +controller__setUserEventsEnabled__P50279.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function controller__setUserEventsEnabled__P18072_mk(s) { +function controller__setUserEventsEnabled__P50279_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P18072, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P50279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19728,7 +19748,7 @@ function controller__setUserEventsEnabled__P18072_mk(s) { -function scene_systemMenu_MenuOption_constructor__P18731(s) { +function scene_systemMenu_MenuOption_constructor__P50938(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19746,7 +19766,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = (s.arg0).fields["iconImage"] = (s.arg1); r0 = (s.arg0).fields["getText"] = (s.arg2); r0 = (s.arg0).fields["action"] = (s.arg3); @@ -19754,12 +19774,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P18731.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__P50938.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__P18731_mk(s) { +function scene_systemMenu_MenuOption_constructor__P50938_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P18731, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P50938, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -19771,7 +19791,7 @@ function scene_systemMenu_MenuOption_constructor__P18731_mk(s) { -function helpers_screenBrightness__P17854(s) { +function helpers_screenBrightness__P50061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19785,16 +19805,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___17842; + r0 = globals.brightness___50049; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P17854.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +helpers_screenBrightness__P50061.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} -function helpers_screenBrightness__P17854_mk(s) { +function helpers_screenBrightness__P50061_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P17854, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P50061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19803,7 +19823,7 @@ function helpers_screenBrightness__P17854_mk(s) { -function music_volume__P17711(s) { +function music_volume__P49918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19813,20 +19833,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P19706_mk(s); + s.tmp_0 = music_initVolume__P51913_mk(s); s.callLocIdx = 64; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___19702; + r0 = globals.globalVolume___51909; return leave(s, r0) default: oops() } } } -music_volume__P17711.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +music_volume__P49918.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__P17711_mk(s) { +function music_volume__P49918_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P17711, depth: s.depth + 1, + parent: s, fn: music_volume__P49918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -19835,7 +19855,7 @@ function music_volume__P17711_mk(s) { -function music_initVolume__P19706(s) { +function music_initVolume__P51913(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19845,12 +19865,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___19702 === null); + r0 = (globals.globalVolume___51909 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___19702 = (0); - s.tmp_0 = music_setVolume__P17710_mk(s); + globals.globalVolume___51909 = (0); + s.tmp_0 = music_setVolume__P49917_mk(s); r0 = pxsim_pxtcore.getConfig(59, 128); s.tmp_0.arg0 = r0; s.callLocIdx = 61; s.pc = 3; return s.tmp_0; @@ -19862,12 +19882,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_initVolume__P19706.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +music_initVolume__P51913.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__P19706_mk(s) { +function music_initVolume__P51913_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P19706, depth: s.depth + 1, + parent: s, fn: music_initVolume__P51913, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -19876,7 +19896,7 @@ function music_initVolume__P19706_mk(s) { -function helpers_arrayConcat__P16227(s) { +function helpers_arrayConcat__P48434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19886,74 +19906,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___27071 = undefined; - s.value___27074 = undefined; - s.unnamed120___U2 = undefined; - s.unnamed121___U3 = undefined; - s.value___27081 = undefined; - s.unnamed122___U5 = undefined; - s.unnamed123___U6 = undefined; + s.out___59303 = undefined; + s.value___59306 = undefined; + s.unnamed280___U2 = undefined; + s.unnamed281___U3 = undefined; + s.value___59313 = undefined; + s.unnamed282___U5 = undefined; + s.unnamed283___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___27071 = (r0); - s.value___27074 = (undefined); - s.unnamed120___U2 = (s.arg0); - s.unnamed121___U3 = (0); + s.out___59303 = (r0); + s.value___59306 = (undefined); + s.unnamed280___U2 = (s.arg0); + s.unnamed281___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed121___U3; - r0 = pxsim_Array__length(s.unnamed120___U2); + s.tmp_0 = r0 = s.unnamed281___U3; + r0 = pxsim_Array__length(s.unnamed280___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed120___U2, s.unnamed121___U3); - s.value___27074 = (r0); - r0 = pxsim_Array__push(s.out___27071, s.value___27074); - r0 = (s.unnamed121___U3 + 1); - s.unnamed121___U3 = (r0); + r0 = pxsim_Array__getAt(s.unnamed280___U2, s.unnamed281___U3); + s.value___59306 = (r0); + r0 = pxsim_Array__push(s.out___59303, s.value___59306); + r0 = (s.unnamed281___U3 + 1); + s.unnamed281___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed120___U2 = (undefined); - s.value___27081 = (undefined); - s.unnamed122___U5 = (s.arg1); - s.unnamed123___U6 = (0); + s.unnamed280___U2 = (undefined); + s.value___59313 = (undefined); + s.unnamed282___U5 = (s.arg1); + s.unnamed283___U6 = (0); case 3: - s.tmp_0 = r0 = s.unnamed123___U6; - r0 = pxsim_Array__length(s.unnamed122___U5); + s.tmp_0 = r0 = s.unnamed283___U6; + r0 = pxsim_Array__length(s.unnamed282___U5); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed122___U5, s.unnamed123___U6); - s.value___27081 = (r0); - r0 = pxsim_Array__push(s.out___27071, s.value___27081); - r0 = (s.unnamed123___U6 + 1); - s.unnamed123___U6 = (r0); + r0 = pxsim_Array__getAt(s.unnamed282___U5, s.unnamed283___U6); + s.value___59313 = (r0); + r0 = pxsim_Array__push(s.out___59303, s.value___59313); + r0 = (s.unnamed283___U6 + 1); + s.unnamed283___U6 = (r0); { step = 3; continue; } case 4: - s.unnamed122___U5 = (undefined); - r0 = s.out___27071; + s.unnamed282___U5 = (undefined); + r0 = s.out___59303; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P16227.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__P48434.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__P16227_mk(s) { +function helpers_arrayConcat__P48434_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P16227, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P48434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___27071: undefined, - value___27074: undefined, - unnamed120___U2: undefined, - unnamed121___U3: undefined, - value___27081: undefined, - unnamed122___U5: undefined, - unnamed123___U6: undefined, + out___59303: undefined, + value___59306: undefined, + unnamed280___U2: undefined, + unnamed281___U3: undefined, + value___59313: undefined, + unnamed282___U5: undefined, + unnamed283___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -19962,7 +19982,7 @@ function helpers_arrayConcat__P16227_mk(s) { -function scene_systemMenu_PauseMenu_show__P18740(s) { +function scene_systemMenu_PauseMenu_show__P50947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19972,34 +19992,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___25415 = undefined; - s.i___25416 = undefined; + s.current___57647 = undefined; + s.i___57648 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; s.tmp_2 = if_generator_1_mk(s); s.tmp_2.arg0 = s.arg0; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); - s.callLocIdx = 871; s.pc = 3; return s.tmp_2; + s.callLocIdx = 872; s.pc = 3; return s.tmp_2; } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["generator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["generator"], 1); s.callLocIdx = 871; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 871; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 871; s.pc = 3; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["generator"], 1); s.callLocIdx = 872; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 872; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 872; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["options"] = (s.tmp_1); r0 = (s.arg0).fields["selection"] = (0); - s.i___25416 = (0); + s.i___57648 = (0); case 1: - s.tmp_1 = r0 = s.i___25416; + s.tmp_1 = r0 = s.i___57648; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -20010,22 +20030,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___25416); - s.current___25415 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P18732_mk(s); - s.tmp_0.arg0 = s.current___25415; - s.callLocIdx = 872; s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___57648); + s.current___57647 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P50939_mk(s); + s.tmp_0.arg0 = s.current___57647; + s.callLocIdx = 873; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P18735_mk(s); - s.tmp_0.arg0 = s.current___25415; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P50942_mk(s); + s.tmp_0.arg0 = s.current___57647; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 873; s.pc = 5; return s.tmp_0; + s.callLocIdx = 874; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P18733_mk(s); - s.tmp_0.arg0 = s.current___25415; + s.tmp_0 = scene_systemMenu_MenuOption_position__P50940_mk(s); + s.tmp_0.arg0 = s.current___57647; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -20035,12 +20055,12 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["padding"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["padding"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 874; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 875; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___25416; + s.tmp_5 = r0 = s.i___57648; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -20050,7 +20070,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardsPerRow"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 875; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 876; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -20066,7 +20086,7 @@ switch (step) { s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["cardWidth"]; if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["cardWidth"]; } else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } - else { s.callLocIdx = 876; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 877; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -20080,7 +20100,7 @@ switch (step) { s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["cardSpacing"]; if (s.tmp_12.fn == null) { s.retval = s.tmp_12.arg0.fields["cardSpacing"]; } else if (!s.tmp_12.fn.isGetter) { s.retval = bind(s.tmp_12); } - else { s.callLocIdx = 877; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 878; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -20100,12 +20120,12 @@ switch (step) { s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["cardsTop"]; if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["cardsTop"]; } else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 878; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 879; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___25416; + s.tmp_17 = r0 = s.i___57648; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -20115,7 +20135,7 @@ switch (step) { s.tmp_19.fn = s.tmp_19.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_19.fn == null) { s.retval = s.tmp_19.arg0.fields["cardsPerRow"]; } else if (!s.tmp_19.fn.isGetter) { s.retval = bind(s.tmp_19); } - else { s.callLocIdx = 879; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 880; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -20131,7 +20151,7 @@ switch (step) { s.tmp_22.fn = s.tmp_22.arg0.vtable.iface["cardWidth"]; if (s.tmp_22.fn == null) { s.retval = s.tmp_22.arg0.fields["cardWidth"]; } else if (!s.tmp_22.fn.isGetter) { s.retval = bind(s.tmp_22); } - else { s.callLocIdx = 880; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 881; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -20145,7 +20165,7 @@ switch (step) { s.tmp_24.fn = s.tmp_24.arg0.vtable.iface["cardSpacing"]; if (s.tmp_24.fn == null) { s.retval = s.tmp_24.arg0.fields["cardSpacing"]; } else if (!s.tmp_24.fn.isGetter) { s.retval = bind(s.tmp_24); } - else { s.callLocIdx = 881; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 882; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -20156,116 +20176,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 882; s.pc = 6; return s.tmp_0; + s.callLocIdx = 883; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___25416 + 1); - s.i___25416 = (r0); + r0 = (s.i___57648 + 1); + s.i___57648 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P18072_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P50279_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 883; s.pc = 15; return s.tmp_0; + s.callLocIdx = 884; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25479); + r0 = pxsim_pxtcore_mkAction(1, inline__P57711); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.A___17995; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.A___50202; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 885; s.pc = 16; return s.tmp_1; + s.callLocIdx = 886; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25499); + r0 = pxsim_pxtcore_mkAction(1, inline__P57731); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.A___17995; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.A___50202; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 887; s.pc = 17; return s.tmp_1; + s.callLocIdx = 888; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P18028_mk(s); - s.tmp_0.arg0 = globals.B___17996; + s.tmp_0 = controller_Button_onEvent__P50235_mk(s); + s.tmp_0.arg0 = globals.B___50203; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P25528; - s.callLocIdx = 889; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = inline__P57760; + s.callLocIdx = 890; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P18028_mk(s); - s.tmp_0.arg0 = globals.menu___18001; + s.tmp_0 = controller_Button_onEvent__P50235_mk(s); + s.tmp_0.arg0 = globals.menu___50208; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P25533; - s.callLocIdx = 891; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = inline__P57765; + s.callLocIdx = 892; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25538); + r0 = pxsim_pxtcore_mkAction(1, inline__P57770); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.up___17998; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.up___50205; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 895; s.pc = 20; return s.tmp_1; + s.callLocIdx = 896; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25550); + r0 = pxsim_pxtcore_mkAction(1, inline__P57782); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.left___17997; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.left___50204; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 898; s.pc = 21; return s.tmp_1; + s.callLocIdx = 899; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25559); + r0 = pxsim_pxtcore_mkAction(1, inline__P57791); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.down___18000; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.down___50207; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 902; s.pc = 22; return s.tmp_1; + s.callLocIdx = 903; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25575); + r0 = pxsim_pxtcore_mkAction(1, inline__P57807); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P18028_mk(s); - s.tmp_1.arg0 = globals.right___17999; + s.tmp_1 = controller_Button_onEvent__P50235_mk(s); + s.tmp_1.arg0 = globals.right___50206; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 905; s.pc = 23; return s.tmp_1; + s.callLocIdx = 906; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P25587); + r0 = pxsim_pxtcore_mkAction(1, inline__P57819); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P18663_mk(s); + s.tmp_1 = game_onShade__P50870_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 908; s.pc = 24; return s.tmp_1; + s.callLocIdx = 909; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P18742_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P50949_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 909; s.pc = 25; return s.tmp_0; + s.callLocIdx = 910; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P18740.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__P50947.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__P18740_mk(s) { +function scene_systemMenu_PauseMenu_show__P50947_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P18740, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P50947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20292,8 +20312,8 @@ function scene_systemMenu_PauseMenu_show__P18740_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___25415: undefined, - i___25416: undefined, + current___57647: undefined, + i___57648: undefined, arg0: undefined, } } @@ -20301,7 +20321,7 @@ function scene_systemMenu_PauseMenu_show__P18740_mk(s) { -function inline__P25479(s) { +function inline__P57711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20339,7 +20359,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P18736_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P50943_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -20347,7 +20367,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 1; - s.callLocIdx = 884; s.pc = 6; return s.tmp_8; + s.callLocIdx = 885; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -20355,12 +20375,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P25479.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57711.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25479_mk(s) { +function inline__P57711_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25479, depth: s.depth + 1, + parent: s, fn: inline__P57711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20379,7 +20399,7 @@ function inline__P25479_mk(s) { -function inline__P25499(s) { +function inline__P57731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20417,7 +20437,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P18736_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P50943_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -20425,7 +20445,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 0; - s.callLocIdx = 886; s.pc = 6; return s.tmp_8; + s.callLocIdx = 887; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -20441,12 +20461,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P25499.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57731.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25499_mk(s) { +function inline__P57731_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25499, depth: s.depth + 1, + parent: s, fn: inline__P57731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20465,7 +20485,7 @@ function inline__P25499_mk(s) { -function inline__P25528(s) { +function inline__P57760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20475,20 +20495,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P18745_mk(s); - s.callLocIdx = 888; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P50952_mk(s); + s.callLocIdx = 889; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25528.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57760.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25528_mk(s) { +function inline__P57760_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25528, depth: s.depth + 1, + parent: s, fn: inline__P57760, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -20497,7 +20517,7 @@ function inline__P25528_mk(s) { -function inline__P25533(s) { +function inline__P57765(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20507,20 +20527,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P18745_mk(s); - s.callLocIdx = 890; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P50952_mk(s); + s.callLocIdx = 891; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25533.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57765.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25533_mk(s) { +function inline__P57765_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25533, depth: s.depth + 1, + parent: s, fn: inline__P57765, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -20529,7 +20549,7 @@ function inline__P25533_mk(s) { -function inline__P25538(s) { +function inline__P57770(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20539,9 +20559,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P18742_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P50949_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P16243_mk(s); + s.tmp_1 = Math_max__P48450_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -20554,30 +20574,30 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["cardsPerRow"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 892; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 893; s.pc = 3; return s.tmp_4; } } case 3: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); s.tmp_1.arg1 = r0; - s.callLocIdx = 893; s.pc = 2; return s.tmp_1; + s.callLocIdx = 894; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 894; s.pc = 1; return s.tmp_0; + s.callLocIdx = 895; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25538.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57770.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25538_mk(s) { +function inline__P57770_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25538, depth: s.depth + 1, + parent: s, fn: inline__P57770, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20590,7 +20610,7 @@ function inline__P25538_mk(s) { -function inline__P25550(s) { +function inline__P57782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20600,31 +20620,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P18742_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P50949_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P16243_mk(s); + s.tmp_1 = Math_max__P48450_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 896; s.pc = 2; return s.tmp_1; + s.callLocIdx = 897; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 897; s.pc = 1; return s.tmp_0; + s.callLocIdx = 898; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25550.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57782.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25550_mk(s) { +function inline__P57782_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25550, depth: s.depth + 1, + parent: s, fn: inline__P57782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20635,7 +20655,7 @@ function inline__P25550_mk(s) { -function inline__P25559(s) { +function inline__P57791(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20645,9 +20665,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P18742_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P50949_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P16244_mk(s); + s.tmp_1 = Math_min__P48451_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -20665,30 +20685,30 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["cardsPerRow"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 899; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 900; s.pc = 3; return s.tmp_6; } } case 3: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_1.arg1 = r0; - s.callLocIdx = 900; s.pc = 2; return s.tmp_1; + s.callLocIdx = 901; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 901; s.pc = 1; return s.tmp_0; + s.callLocIdx = 902; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25559.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57791.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25559_mk(s) { +function inline__P57791_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25559, depth: s.depth + 1, + parent: s, fn: inline__P57791, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20703,7 +20723,7 @@ function inline__P25559_mk(s) { -function inline__P25575(s) { +function inline__P57807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20713,9 +20733,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P18742_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P50949_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P16244_mk(s); + s.tmp_1 = Math_min__P48451_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -20726,23 +20746,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 903; s.pc = 2; return s.tmp_1; + s.callLocIdx = 904; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 904; s.pc = 1; return s.tmp_0; + s.callLocIdx = 905; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25575.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57807.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25575_mk(s) { +function inline__P57807_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25575, depth: s.depth + 1, + parent: s, fn: inline__P57807, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20755,7 +20775,7 @@ function inline__P25575_mk(s) { -function inline__P25587(s) { +function inline__P57819(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20765,26 +20785,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P18741_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P50948_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 906; s.pc = 1; return s.tmp_0; + s.callLocIdx = 907; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P18743_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P50950_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 907; s.pc = 2; return s.tmp_0; + s.callLocIdx = 908; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25587.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P57819.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P25587_mk(s) { +function inline__P57819_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25587, depth: s.depth + 1, + parent: s, fn: inline__P57819, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -20793,7 +20813,7 @@ function inline__P25587_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P18743(s) { +function scene_systemMenu_PauseMenu_drawText__P50950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20808,7 +20828,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -20820,11 +20840,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P17846_mk(s); - s.tmp_3.arg0 = globals.screen___17920; + s.tmp_3 = helpers_imageFillRect__P50053_mk(s); + s.tmp_3.arg0 = globals.screen___50127; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -20835,7 +20855,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardsTop"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardsTop"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 920; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 921; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -20843,11 +20863,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 921; s.pc = 4; return s.tmp_3; + s.callLocIdx = 922; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P17877_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.tmp_0 = helpers_imagePrintCenter__P50084_mk(s); + s.tmp_0.arg0 = globals.screen___50127; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -20857,7 +20877,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["headerText"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["headerText"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 922; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 923; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -20873,16 +20893,16 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["headerFont"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["headerFont"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 923; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 924; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 924; s.pc = 6; return s.tmp_0; + s.callLocIdx = 925; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P17846_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.tmp_0 = helpers_imageFillRect__P50053_mk(s); + s.tmp_0.arg0 = globals.screen___50127; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -20893,16 +20913,16 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 925; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 926; s.pc = 10; return s.tmp_2; } } case 10: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_1 - 3); s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -20913,7 +20933,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoTop"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoTop"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 926; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 927; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -20923,11 +20943,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 927; s.pc = 9; return s.tmp_0; + s.callLocIdx = 928; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P17846_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.tmp_0 = helpers_imageFillRect__P50053_mk(s); + s.tmp_0.arg0 = globals.screen___50127; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -20937,7 +20957,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["padding"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["padding"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 928; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 929; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -20951,12 +20971,12 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 929; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 930; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -20967,7 +20987,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["padding"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["padding"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 930; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 931; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -20986,7 +21006,7 @@ switch (step) { s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["infoFont"]; if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["infoFont"]; } else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 931; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 932; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -20997,7 +21017,7 @@ switch (step) { s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 932; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 933; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -21005,11 +21025,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 933; s.pc = 12; return s.tmp_0; + s.callLocIdx = 934; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P17877_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.tmp_0 = helpers_imagePrintCenter__P50084_mk(s); + s.tmp_0.arg0 = globals.screen___50127; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -21019,12 +21039,12 @@ switch (step) { s.tmp_1.arg0 = r0; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "getText"), 1); - s.callLocIdx = 934; s.pc = 19; return s.tmp_1; + s.callLocIdx = 935; s.pc = 19; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["getText"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["getText"], 1); s.callLocIdx = 934; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 934; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 934; s.pc = 19; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["getText"], 1); s.callLocIdx = 935; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 935; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 935; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -21038,7 +21058,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["infoTop"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["infoTop"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 935; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 936; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -21055,12 +21075,12 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoFont"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoFont"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 936; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 937; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 937; s.pc = 18; return s.tmp_0; + s.callLocIdx = 938; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -21068,12 +21088,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P18743.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__P50950.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__P18743_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P50950_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P18743, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P50950, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21092,7 +21112,7 @@ function scene_systemMenu_PauseMenu_drawText__P18743_mk(s) { -function helpers_imagePrintCenter__P17877(s) { +function helpers_imagePrintCenter__P50084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21102,8 +21122,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___25674 = undefined; - s.x___25680 = undefined; + s.w___57906 = undefined; + s.x___57912 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -21118,7 +21138,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P17865_mk(s); + s.tmp_2 = image_getFontForText__P50072_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 95; s.pc = 3; return s.tmp_2; case 3: @@ -21142,17 +21162,17 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.w___25674 = (r0); + s.w___57906 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___25674); + r0 = (s.tmp_1 - s.w___57906); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___25680 = (r0); - s.tmp_0 = helpers_imagePrint__P17878_mk(s); + s.x___57912 = (r0); + s.tmp_0 = helpers_imagePrint__P50085_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___25680; + s.tmp_0.arg2 = s.x___57912; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; @@ -21164,18 +21184,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P17877.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__P50084.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__P17877_mk(s) { +function helpers_imagePrintCenter__P50084_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P17877, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P50084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___25674: undefined, - x___25680: undefined, + w___57906: undefined, + x___57912: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -21187,7 +21207,7 @@ function helpers_imagePrintCenter__P17877_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P18742(s) { +function scene_systemMenu_PauseMenu_setSelection__P50949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21203,7 +21223,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -21223,7 +21243,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__P18736_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P50943_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -21231,7 +21251,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = 2; - s.callLocIdx = 917; s.pc = 10; return s.tmp_6; + s.callLocIdx = 918; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -21245,9 +21265,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C18021_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___17995; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C18021_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C50228_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___50202; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C50228_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: @@ -21262,7 +21282,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P18736_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P50943_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -21270,14 +21290,14 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 918; s.pc = 12; return s.tmp_6; + s.callLocIdx = 919; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P20249_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P52456_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 919; s.pc = 13; return s.tmp_0; + s.callLocIdx = 920; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -21285,12 +21305,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P18742.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__P50949.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__P18742_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P50949_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P18742, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P50949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21309,7 +21329,7 @@ function scene_systemMenu_PauseMenu_setSelection__P18742_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P20249(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P52456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21319,13 +21339,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___25891 = undefined; + s.row___58123 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -21337,23 +21357,23 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["cardsPerRow"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 940; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 941; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.row___25891 = (r0); + s.row___58123 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___25891 === s.tmp_1); + r0 = (s.row___58123 === 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___25891 - 1); + r0 = (s.row___58123 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -21368,7 +21388,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___25891 > s.tmp_6); + r0 = (s.row___58123 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -21399,7 +21419,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardSpacing"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardSpacing"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 941; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 942; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -21413,7 +21433,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardWidth"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardWidth"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 942; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 943; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -21428,12 +21448,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P20249.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__P52456.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__P20249_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P52456_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P20249, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P52456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21445,7 +21465,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P20249_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___25891: undefined, + row___58123: undefined, arg0: undefined, } } @@ -21453,7 +21473,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P20249_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P18741(s) { +function scene_systemMenu_PauseMenu_onUpdate__P50948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21463,22 +21483,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___25696 = undefined; - s.i___25700 = undefined; - s.dt___25729 = undefined; + s.t___57928 = undefined; + s.i___57932 = undefined; + s.dt___57961 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___25696 = (r0); - s.i___25700 = (0); + s.t___57928 = (r0); + s.i___57932 = (0); case 1: - s.tmp_1 = r0 = s.i___25700; + s.tmp_1 = r0 = s.i___57932; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -21487,13 +21507,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__P18734_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P50941_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___25700); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___57932); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___25696; - s.tmp_11 = r0 = s.i___25700; + s.tmp_8 = r0 = s.t___57928; + s.tmp_11 = r0 = s.i___57932; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -21503,7 +21523,7 @@ switch (step) { s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_13.fn == null) { s.retval = s.tmp_13.arg0.fields["cardsPerRow"]; } else if (!s.tmp_13.fn.isGetter) { s.retval = bind(s.tmp_13); } - else { s.callLocIdx = 910; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 911; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -21518,15 +21538,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 911; s.pc = 10; return s.tmp_4; + s.callLocIdx = 912; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___25700 + 1); - s.i___25700 = (r0); + r0 = (s.i___57932 + 1); + s.i___57932 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 912; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 913; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -21534,7 +21554,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___25729 = (r0); + s.dt___57961 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -21546,7 +21566,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___25729 * 100); + r0 = (s.dt___57961 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -21564,7 +21584,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___25729 * 100); + r0 = (s.dt___57961 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -21574,14 +21594,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P16241_mk(s); + s.tmp_2 = Math_abs__P48448_mk(s); r0 = s.arg0.fields["scrollOffset"]; s.tmp_3 = r0; r0 = s.arg0.fields["scrollTarget"]; s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2.arg0 = r0; - s.callLocIdx = 914; s.pc = 13; return s.tmp_2; + s.callLocIdx = 915; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -21594,16 +21614,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P18484_mk(s); - s.tmp_1 = game_currentScene__P18648_mk(s); - s.callLocIdx = 915; s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P50691_mk(s); + s.tmp_1 = game_currentScene__P50855_mk(s); + s.callLocIdx = 916; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; r0 = r0.fields["camera"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["scrollOffset"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 916; s.pc = 14; return s.tmp_0; + s.callLocIdx = 917; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -21611,12 +21631,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P18741.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__P50948.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__P18741_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P50948_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P18741, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P50948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21632,9 +21652,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P18741_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___25696: undefined, - i___25700: undefined, - dt___25729: undefined, + t___57928: undefined, + i___57932: undefined, + dt___57961: undefined, arg0: undefined, } } @@ -21642,7 +21662,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P18741_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P18734(s) { +function scene_systemMenu_MenuOption_setOffset__P50941(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21658,40 +21678,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P18189_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P50396_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["top"]; s.tmp_1 = r0; r0 = (s.tmp_1 + s.arg1); s.tmp_0.arg1 = r0; - s.callLocIdx = 853; s.pc = 1; return s.tmp_0; + s.callLocIdx = 854; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P18150_mk(s); + s.tmp_0 = Sprite_y__P50357_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P18149_mk(s); + s.tmp_1 = Sprite_y__P50356_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 854; s.pc = 3; return s.tmp_1; + s.callLocIdx = 855; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 855; s.pc = 2; return s.tmp_0; + s.callLocIdx = 856; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P18734.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__P50941.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__P18734_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P50941_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P18734, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P50941, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21703,7 +21723,7 @@ function scene_systemMenu_MenuOption_setOffset__P18734_mk(s) { -function Sprite_top__P18189(s) { +function Sprite_top__P50396(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21713,22 +21733,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___25805 = undefined; + s.physics___58037 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P18648_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 275; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___25805 = (r0); - s.tmp_0 = PhysicsEngine__C18281_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___25805; + s.physics___58037 = (r0); + s.tmp_0 = PhysicsEngine__C50488_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___58037; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -21739,7 +21759,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__C18281_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C50488_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: @@ -21748,18 +21768,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P18189.info = {"start":9912,"length":256,"line":359,"column":4,"endLine":369,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +Sprite_top__P50396.info = {"start":9912,"length":256,"line":359,"column":4,"endLine":369,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function Sprite_top__P18189_mk(s) { +function Sprite_top__P50396_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P18189, depth: s.depth + 1, + parent: s, fn: Sprite_top__P50396, depth: s.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___25805: undefined, + physics___58037: undefined, arg0: undefined, arg1: undefined, } } @@ -21768,7 +21788,7 @@ function Sprite_top__P18189_mk(s) { -function PhysicsEngine_moveSprite__P18285(s) { +function PhysicsEngine_moveSprite__P50492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21786,17 +21806,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P18285.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__P50492.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__P18285_mk(s) { +function PhysicsEngine_moveSprite__P50492_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P18285, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P50492, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -21808,7 +21828,7 @@ function PhysicsEngine_moveSprite__P18285_mk(s) { -function Sprite_top__P18188(s) { +function Sprite_top__P50395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21823,20 +21843,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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__P18188.info = {"start":9769,"length":53,"line":354,"column":4,"endLine":356,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P18188.isGetter = true; +Sprite_top__P50395.info = {"start":9769,"length":53,"line":354,"column":4,"endLine":356,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P50395.isGetter = true; -function Sprite_top__P18188_mk(s) { +function Sprite_top__P50395_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P18188, depth: s.depth + 1, + parent: s, fn: Sprite_top__P50395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21846,7 +21866,7 @@ function Sprite_top__P18188_mk(s) { -function Sprite_y__P18150(s) { +function Sprite_y__P50357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21862,8 +21882,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P18189_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P50396_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -21881,12 +21901,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_y__P18150.info = {"start":2201,"length":72,"line":90,"column":4,"endLine":92,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_y__P50357.info = {"start":2201,"length":72,"line":90,"column":4,"endLine":92,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function Sprite_y__P18150_mk(s) { +function Sprite_y__P50357_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P18150, depth: s.depth + 1, + parent: s, fn: Sprite_y__P50357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21901,7 +21921,7 @@ function Sprite_y__P18150_mk(s) { -function scene_systemMenu_MenuOption_setState__P18736(s) { +function scene_systemMenu_MenuOption_setState__P50943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21917,7 +21937,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === s.arg1); @@ -21928,9 +21948,9 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P20248_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P52455_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 857; s.pc = 4; return s.tmp_0; + s.callLocIdx = 858; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -21938,12 +21958,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P18736.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__P50943.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__P18736_mk(s) { +function scene_systemMenu_MenuOption_setState__P50943_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P18736, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P50943, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21955,7 +21975,7 @@ function scene_systemMenu_MenuOption_setState__P18736_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P20248(s) { +function scene_systemMenu_MenuOption_updateCard__P52455(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21970,7 +21990,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -21993,7 +22013,7 @@ switch (step) { r0 = s.tmp_3; { step = 6; continue; } case 3: - s.tmp_4 = Sprite_setImage__P18178_mk(s); + s.tmp_4 = Sprite_setImage__P50385_mk(s); r0 = s.arg0.fields["card"]; s.tmp_4.arg0 = r0; s.tmp_5 = if_basicCard_1_mk(s); @@ -22005,17 +22025,17 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 860; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 861; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; s.tmp_4.arg1 = r0; - s.callLocIdx = 861; s.pc = 8; return s.tmp_4; + s.callLocIdx = 862; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; { step = 6; continue; } case 4: - s.tmp_0 = Sprite_setImage__P18178_mk(s); + s.tmp_0 = Sprite_setImage__P50385_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_selectedCard_1_mk(s); @@ -22027,17 +22047,17 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 862; s.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 863; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 863; s.pc = 10; return s.tmp_0; + s.callLocIdx = 864; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = Sprite_setImage__P18178_mk(s); + s.tmp_0 = Sprite_setImage__P50385_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_activeCard_1_mk(s); @@ -22049,39 +22069,39 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 864; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 865; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 865; s.pc = 12; return s.tmp_0; + s.callLocIdx = 866; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; case 6: - s.tmp_0 = Sprite_x__P18148_mk(s); + s.tmp_0 = Sprite_x__P50355_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P18147_mk(s); + s.tmp_1 = Sprite_x__P50354_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 866; s.pc = 15; return s.tmp_1; + s.callLocIdx = 867; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 867; s.pc = 14; return s.tmp_0; + s.callLocIdx = 868; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = Sprite_y__P18150_mk(s); + s.tmp_0 = Sprite_y__P50357_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P18149_mk(s); + s.tmp_1 = Sprite_y__P50356_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 868; s.pc = 17; return s.tmp_1; + s.callLocIdx = 869; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 869; s.pc = 16; return s.tmp_0; + s.callLocIdx = 870; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; case 7: @@ -22089,12 +22109,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P20248.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__P52455.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__P20248_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P52455_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P20248, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P52455, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22109,7 +22129,7 @@ function scene_systemMenu_MenuOption_updateCard__P20248_mk(s) { -function Sprite_x__P18148(s) { +function Sprite_x__P50355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22125,8 +22145,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P18185_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P50392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -22144,12 +22164,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_x__P18148.info = {"start":1852,"length":72,"line":79,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_x__P50355.info = {"start":1852,"length":72,"line":79,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function Sprite_x__P18148_mk(s) { +function Sprite_x__P50355_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P18148, depth: s.depth + 1, + parent: s, fn: Sprite_x__P50355, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22164,7 +22184,7 @@ function Sprite_x__P18148_mk(s) { -function Sprite_left__P18185(s) { +function Sprite_left__P50392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22174,22 +22194,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___26655 = undefined; + s.physics___58887 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P18648_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 267; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___26655 = (r0); - s.tmp_0 = PhysicsEngine__C18281_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___26655; + s.physics___58887 = (r0); + s.tmp_0 = PhysicsEngine__C50488_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___58887; s.tmp_0.arg1 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -22200,7 +22220,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__C18281_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C50488_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: @@ -22209,18 +22229,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_left__P18185.info = {"start":9108,"length":257,"line":329,"column":4,"endLine":339,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Sprite_left__P50392.info = {"start":9108,"length":257,"line":329,"column":4,"endLine":339,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function Sprite_left__P18185_mk(s) { +function Sprite_left__P50392_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P18185, depth: s.depth + 1, + parent: s, fn: Sprite_left__P50392, depth: s.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___26655: undefined, + physics___58887: undefined, arg0: undefined, arg1: undefined, } } @@ -22229,7 +22249,7 @@ function Sprite_left__P18185_mk(s) { -function Sprite_left__P18184(s) { +function Sprite_left__P50391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22244,20 +22264,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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__P18184.info = {"start":8964,"length":53,"line":324,"column":4,"endLine":326,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P18184.isGetter = true; +Sprite_left__P50391.info = {"start":8964,"length":53,"line":324,"column":4,"endLine":326,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P50391.isGetter = true; -function Sprite_left__P18184_mk(s) { +function Sprite_left__P50391_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P18184, depth: s.depth + 1, + parent: s, fn: Sprite_left__P50391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22267,7 +22287,7 @@ function Sprite_left__P18184_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P18735(s) { +function scene_systemMenu_MenuOption_setTheme__P50942(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22283,23 +22303,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P20248_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P52455_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 856; s.pc = 1; return s.tmp_0; + s.callLocIdx = 857; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P18735.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__P50942.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__P18735_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P50942_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P18735, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P50942, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22310,7 +22330,7 @@ function scene_systemMenu_MenuOption_setTheme__P18735_mk(s) { -function scene_systemMenu_MenuOption_position__P18733(s) { +function scene_systemMenu_MenuOption_position__P50940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22327,58 +22347,58 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P18185_mk(s); + s.tmp_0 = Sprite_left__P50392_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 847; s.pc = 1; return s.tmp_0; + s.callLocIdx = 848; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_top__P18189_mk(s); + s.tmp_0 = Sprite_top__P50396_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 848; s.pc = 2; return s.tmp_0; + s.callLocIdx = 849; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_x__P18148_mk(s); + s.tmp_0 = Sprite_x__P50355_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P18147_mk(s); + s.tmp_1 = Sprite_x__P50354_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 849; s.pc = 4; return s.tmp_1; + s.callLocIdx = 850; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 850; s.pc = 3; return s.tmp_0; + s.callLocIdx = 851; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P18150_mk(s); + s.tmp_0 = Sprite_y__P50357_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P18149_mk(s); + s.tmp_1 = Sprite_y__P50356_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 851; s.pc = 6; return s.tmp_1; + s.callLocIdx = 852; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 852; s.pc = 5; return s.tmp_0; + s.callLocIdx = 853; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P18733.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__P50940.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__P18733_mk(s) { +function scene_systemMenu_MenuOption_position__P50940_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P18733, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P50940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22391,7 +22411,7 @@ function scene_systemMenu_MenuOption_position__P18733_mk(s) { -function scene_systemMenu_MenuOption_show__P18732(s) { +function scene_systemMenu_MenuOption_show__P50939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22406,7 +22426,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C18730_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C50937_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -22420,21 +22440,21 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 842; s.pc = 3; return s.tmp_1; } + else { s.callLocIdx = 843; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___18754; + r0 = globals.CARD_NORMAL___50961; case 2: // jmp value (already in r0) s.tmp_2 = r0; s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P18092_mk(s); + s.tmp_5 = sprites_create__P50299_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; - s.callLocIdx = 843; s.pc = 4; return s.tmp_5; + s.callLocIdx = 844; s.pc = 4; return s.tmp_5; case 4: r0 = s.retval; s.tmp_4 = r0; @@ -22449,16 +22469,16 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 844; s.pc = 5; return s.tmp_0; } + else { s.callLocIdx = 845; s.pc = 5; return s.tmp_0; } } case 5: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P18092_mk(s); + s.tmp_2 = sprites_create__P50299_mk(s); r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; - s.callLocIdx = 845; s.pc = 6; return s.tmp_2; + s.callLocIdx = 846; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -22473,7 +22493,7 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 846; s.pc = 7; return s.tmp_0; } + else { s.callLocIdx = 847; s.pc = 7; return s.tmp_0; } } case 7: r0 = s.retval; @@ -22482,12 +22502,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P18732.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__P50939.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__P18732_mk(s) { +function scene_systemMenu_MenuOption_show__P50939_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P18732, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P50939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22502,7 +22522,7 @@ function scene_systemMenu_MenuOption_show__P18732_mk(s) { -function sprites_create__P18092(s) { +function sprites_create__P50299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22512,51 +22532,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___26735 = undefined; - s.sprite___26738 = undefined; + s.scene___58967 = undefined; + s.sprite___58970 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P18648_mk(s); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 213; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___26735 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C18138_VT); + s.scene___58967 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C50345_VT); s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P18175_mk(s); + s.tmp_1 = Sprite_constructor__P50382_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 214; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.sprite___26738 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P18193_mk(s); - s.tmp_0.arg0 = s.sprite___26738; + s.sprite___58970 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P50400_mk(s); + s.tmp_0.arg0 = s.sprite___58970; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 215; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C18281_v0_2_mk(s); - r0 = s.scene___26735.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C50488_v0_2_mk(s); + r0 = s.scene___58967.fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___26738; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C18281_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.sprite___58970; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C50488_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, inline__P26753); + r0 = pxsim_pxtcore_mkAction(1, inline__P58985); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P26759); + r0 = pxsim_pxtcore_mkAction(1, inline__P58991); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___26738); - s.tmp_2 = helpers_arrayForEach__P16223_mk(s); - s.tmp_3 = helpers_arrayFilter__P16224_mk(s); - r0 = s.scene___26735.fields["createdHandlers"]; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___58970); + s.tmp_2 = helpers_arrayForEach__P48430_mk(s); + s.tmp_3 = helpers_arrayFilter__P48431_mk(s); + r0 = s.scene___58967.fields["createdHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 216; s.pc = 6; return s.tmp_3; @@ -22567,23 +22587,23 @@ switch (step) { s.callLocIdx = 218; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - r0 = s.sprite___26738; + r0 = s.sprite___58970; return leave(s, r0) default: oops() } } } -sprites_create__P18092.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +sprites_create__P50299.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 sprites_create__P18092_mk(s) { +function sprites_create__P50299_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P18092, depth: s.depth + 1, + parent: s, fn: sprites_create__P50299, depth: s.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___26735: undefined, - sprite___26738: undefined, + scene___58967: undefined, + sprite___58970: undefined, arg0: undefined, arg1: undefined, } } @@ -22592,7 +22612,7 @@ function sprites_create__P18092_mk(s) { -function inline__P26753(s) { +function inline__P58985(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22612,12 +22632,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26753.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +inline__P58985.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function inline__P26753_mk(s) { +function inline__P58985_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26753, depth: s.depth + 1, + parent: s, fn: inline__P58985, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22627,7 +22647,7 @@ function inline__P26753_mk(s) { -function inline__P26759(s) { +function inline__P58991(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22659,12 +22679,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26759.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +inline__P58991.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function inline__P26759_mk(s) { +function inline__P58991_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26759, depth: s.depth + 1, + parent: s, fn: inline__P58991, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22674,7 +22694,7 @@ function inline__P26759_mk(s) { -function PhysicsEngine_addSprite__P18283(s) { +function PhysicsEngine_addSprite__P50490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22690,17 +22710,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C18281_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C50488_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P18283.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +PhysicsEngine_addSprite__P50490.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 PhysicsEngine_addSprite__P18283_mk(s) { +function PhysicsEngine_addSprite__P50490_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P18283, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P50490, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -22710,7 +22730,7 @@ function PhysicsEngine_addSprite__P18283_mk(s) { -function Sprite_setKind__P18193(s) { +function Sprite_setKind__P50400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22720,15 +22740,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___26777 = undefined; - s.overlapMap___26806 = undefined; + s.spritesByKind___59009 = undefined; + s.overlapMap___59038 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = (s.arg1 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -22747,12 +22767,12 @@ switch (step) { { step = 15; continue; } case 3: case 4: - s.tmp_3 = game_currentScene__P18648_mk(s); + s.tmp_3 = game_currentScene__P50855_mk(s); s.callLocIdx = 282; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; r0 = r0.fields["spritesByKind"]; - s.spritesByKind___26777 = (r0); + s.spritesByKind___59009 = (r0); r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; r0 = (s.tmp_1 >= 0); @@ -22764,16 +22784,16 @@ switch (step) { case 5: r0 = s.arg0.fields["_kind"]; s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26777, s.tmp_2); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___59009, 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__P18240_mk(s); + s.tmp_4 = sprites_SpriteSet_remove__P50447_mk(s); r0 = s.arg0.fields["_kind"]; s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26777, s.tmp_5); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___59009, s.tmp_5); s.tmp_4.arg0 = r0; s.tmp_4.arg1 = s.arg0; s.callLocIdx = 283; s.pc = 17; return s.tmp_4; @@ -22785,7 +22805,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26777, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___59009, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -22793,18 +22813,18 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C18233_VT); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C50440_VT); s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P18235_mk(s); + s.tmp_5 = sprites_SpriteSet_constructor__P50442_mk(s); s.tmp_5.arg0 = s.tmp_4; s.callLocIdx = 284; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___26777, s.arg1, s.tmp_4); + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___59009, s.arg1, s.tmp_4); case 9: case 10: - s.tmp_0 = sprites_SpriteSet_add__P18238_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26777, s.arg1); + s.tmp_0 = sprites_SpriteSet_add__P50445_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___59009, s.arg1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 285; s.pc = 19; return s.tmp_0; @@ -22812,13 +22832,13 @@ switch (step) { r0 = s.retval; case 11: case 12: - s.tmp_0 = game_currentScene__P18648_mk(s); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 286; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; r0 = r0.fields["overlapMap"]; - s.overlapMap___26806 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___26806, s.arg1); + s.overlapMap___59038 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___59038, s.arg1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -22826,7 +22846,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___26806; + s.tmp_3 = r0 = s.overlapMap___59038; s.tmp_4 = r0 = s.arg1; r0 = pxsim_Array__mk(); s.tmp_5 = r0; @@ -22834,7 +22854,7 @@ switch (step) { case 13: case 14: s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___26806, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___59038, s.arg1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); r0 = (s.arg0).fields["_kind"] = (s.arg1); @@ -22843,12 +22863,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setKind__P18193.info = {"start":11051,"length":663,"line":402,"column":4,"endLine":422,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +Sprite_setKind__P50400.info = {"start":11051,"length":663,"line":402,"column":4,"endLine":422,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function Sprite_setKind__P18193_mk(s) { +function Sprite_setKind__P50400_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P18193, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P50400, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22856,8 +22876,8 @@ function Sprite_setKind__P18193_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___26777: undefined, - overlapMap___26806: undefined, + spritesByKind___59009: undefined, + overlapMap___59038: undefined, arg0: undefined, arg1: undefined, } } @@ -22866,7 +22886,7 @@ function Sprite_setKind__P18193_mk(s) { -function sprites_SpriteSet_add__P18238(s) { +function sprites_SpriteSet_add__P50445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22882,7 +22902,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -22913,12 +22933,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P18238.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +sprites_SpriteSet_add__P50445.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function sprites_SpriteSet_add__P18238_mk(s) { +function sprites_SpriteSet_add__P50445_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P18238, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P50445, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22934,7 +22954,7 @@ function sprites_SpriteSet_add__P18238_mk(s) { -function sprites_SpriteSet_contains__P18241(s) { +function sprites_SpriteSet_contains__P50448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22950,7 +22970,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); @@ -22959,12 +22979,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P18241.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +sprites_SpriteSet_contains__P50448.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function sprites_SpriteSet_contains__P18241_mk(s) { +function sprites_SpriteSet_contains__P50448_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P18241, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P50448, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22976,7 +22996,7 @@ function sprites_SpriteSet_contains__P18241_mk(s) { -function sprites_SpriteSet_constructor__P18235(s) { +function sprites_SpriteSet_constructor__P50442(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22991,7 +23011,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -23000,12 +23020,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P18235.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +sprites_SpriteSet_constructor__P50442.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function sprites_SpriteSet_constructor__P18235_mk(s) { +function sprites_SpriteSet_constructor__P50442_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P18235, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P50442, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23016,7 +23036,7 @@ function sprites_SpriteSet_constructor__P18235_mk(s) { -function Sprite_constructor__P18175(s) { +function Sprite_constructor__P50382(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23032,15 +23052,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P17978_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P50185_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 237; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_5 = r0; @@ -23054,7 +23074,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_4 = r0; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_5 = r0; @@ -23073,50 +23093,50 @@ switch (step) { r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P18152_mk(s); + s.tmp_0 = Sprite_vx__P50359_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 240; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_vy__P18154_mk(s); + s.tmp_0 = Sprite_vy__P50361_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 241; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_ax__P18156_mk(s); + s.tmp_0 = Sprite_ax__P50363_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 242; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = Sprite_ay__P18158_mk(s); + s.tmp_0 = Sprite_ay__P50365_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 243; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = Sprite_fx__P18160_mk(s); + s.tmp_0 = Sprite_fx__P50367_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 244; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_fy__P18162_mk(s); + s.tmp_0 = Sprite_fy__P50369_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 245; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P18178_mk(s); + s.tmp_0 = Sprite_setImage__P50385_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 246; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P18193_mk(s); + s.tmp_0 = Sprite_setKind__P50400_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = -1; s.callLocIdx = 247; s.pc = 9; return s.tmp_0; @@ -23136,12 +23156,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_constructor__P18175.info = {"start":5357,"length":618,"line":206,"column":4,"endLine":226,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +Sprite_constructor__P50382.info = {"start":5357,"length":618,"line":206,"column":4,"endLine":226,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function Sprite_constructor__P18175_mk(s) { +function Sprite_constructor__P50382_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P18175, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P50382, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23158,7 +23178,7 @@ function Sprite_constructor__P18175_mk(s) { -function Sprite_fy__P18162(s) { +function Sprite_fy__P50369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23174,9 +23194,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P16243_mk(s); + s.tmp_3 = Math_max__P48450_mk(s); s.tmp_3.arg0 = 0; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 235; s.pc = 1; return s.tmp_3; @@ -23192,12 +23212,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_fy__P18162.info = {"start":4236,"length":64,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +Sprite_fy__P50369.info = {"start":4236,"length":64,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function Sprite_fy__P18162_mk(s) { +function Sprite_fy__P50369_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P18162, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P50369, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23212,7 +23232,7 @@ function Sprite_fy__P18162_mk(s) { -function Sprite_fy__P18161(s) { +function Sprite_fy__P50368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23227,20 +23247,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_fy__P18161.info = {"start":4074,"length":60,"line":150,"column":4,"endLine":152,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P18161.isGetter = true; +Sprite_fy__P50368.info = {"start":4074,"length":60,"line":150,"column":4,"endLine":152,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P50368.isGetter = true; -function Sprite_fy__P18161_mk(s) { +function Sprite_fy__P50368_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P18161, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P50368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23250,7 +23270,7 @@ function Sprite_fy__P18161_mk(s) { -function Sprite_fx__P18160(s) { +function Sprite_fx__P50367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23266,9 +23286,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P16243_mk(s); + s.tmp_3 = Math_max__P48450_mk(s); s.tmp_3.arg0 = 0; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 232; s.pc = 1; return s.tmp_3; @@ -23284,12 +23304,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_fx__P18160.info = {"start":3893,"length":64,"line":145,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +Sprite_fx__P50367.info = {"start":3893,"length":64,"line":145,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function Sprite_fx__P18160_mk(s) { +function Sprite_fx__P50367_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P18160, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P50367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23304,7 +23324,7 @@ function Sprite_fx__P18160_mk(s) { -function Sprite_fx__P18159(s) { +function Sprite_fx__P50366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23319,20 +23339,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_fx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_fx__P18159.info = {"start":3731,"length":60,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P18159.isGetter = true; +Sprite_fx__P50366.info = {"start":3731,"length":60,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P50366.isGetter = true; -function Sprite_fx__P18159_mk(s) { +function Sprite_fx__P50366_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P18159, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P50366, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23342,7 +23362,7 @@ function Sprite_fx__P18159_mk(s) { -function Sprite_ay__P18158(s) { +function Sprite_ay__P50365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23358,7 +23378,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -23369,12 +23389,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_ay__P18158.info = {"start":3562,"length":51,"line":134,"column":4,"endLine":136,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +Sprite_ay__P50365.info = {"start":3562,"length":51,"line":134,"column":4,"endLine":136,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} -function Sprite_ay__P18158_mk(s) { +function Sprite_ay__P50365_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P18158, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P50365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23387,7 +23407,7 @@ function Sprite_ay__P18158_mk(s) { -function Sprite_ay__P18157(s) { +function Sprite_ay__P50364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23402,20 +23422,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_ay"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ay__P18157.info = {"start":3396,"length":60,"line":129,"column":4,"endLine":131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P18157.isGetter = true; +Sprite_ay__P50364.info = {"start":3396,"length":60,"line":129,"column":4,"endLine":131,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P50364.isGetter = true; -function Sprite_ay__P18157_mk(s) { +function Sprite_ay__P50364_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P18157, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P50364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23425,7 +23445,7 @@ function Sprite_ay__P18157_mk(s) { -function Sprite_ax__P18156(s) { +function Sprite_ax__P50363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23441,7 +23461,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -23452,12 +23472,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_ax__P18156.info = {"start":3223,"length":51,"line":123,"column":4,"endLine":125,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +Sprite_ax__P50363.info = {"start":3223,"length":51,"line":123,"column":4,"endLine":125,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function Sprite_ax__P18156_mk(s) { +function Sprite_ax__P50363_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P18156, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P50363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23470,7 +23490,7 @@ function Sprite_ax__P18156_mk(s) { -function Sprite_ax__P18155(s) { +function Sprite_ax__P50362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23485,20 +23505,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ax__P18155.info = {"start":3057,"length":60,"line":118,"column":4,"endLine":120,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P18155.isGetter = true; +Sprite_ax__P50362.info = {"start":3057,"length":60,"line":118,"column":4,"endLine":120,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P50362.isGetter = true; -function Sprite_ax__P18155_mk(s) { +function Sprite_ax__P50362_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P18155, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P50362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23508,7 +23528,7 @@ function Sprite_ax__P18155_mk(s) { -function Sprite_vy__P18154(s) { +function Sprite_vy__P50361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23524,7 +23544,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -23535,12 +23555,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vy__P18154.info = {"start":2884,"length":51,"line":112,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +Sprite_vy__P50361.info = {"start":2884,"length":51,"line":112,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function Sprite_vy__P18154_mk(s) { +function Sprite_vy__P50361_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P18154, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P50361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23553,7 +23573,7 @@ function Sprite_vy__P18154_mk(s) { -function Sprite_vy__P18153(s) { +function Sprite_vy__P50360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23568,20 +23588,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_vy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vy__P18153.info = {"start":2722,"length":60,"line":107,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P18153.isGetter = true; +Sprite_vy__P50360.info = {"start":2722,"length":60,"line":107,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P50360.isGetter = true; -function Sprite_vy__P18153_mk(s) { +function Sprite_vy__P50360_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P18153, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P50360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23591,7 +23611,7 @@ function Sprite_vy__P18153_mk(s) { -function Sprite_vx__P18152(s) { +function Sprite_vx__P50359(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23607,7 +23627,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -23618,12 +23638,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vx__P18152.info = {"start":2553,"length":51,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +Sprite_vx__P50359.info = {"start":2553,"length":51,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function Sprite_vx__P18152_mk(s) { +function Sprite_vx__P50359_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P18152, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P50359, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23636,7 +23656,7 @@ function Sprite_vx__P18152_mk(s) { -function Sprite_vx__P18151(s) { +function Sprite_vx__P50358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23651,20 +23671,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_vx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vx__P18151.info = {"start":2391,"length":60,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P18151.isGetter = true; +Sprite_vx__P50358.info = {"start":2391,"length":60,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P50358.isGetter = true; -function Sprite_vx__P18151_mk(s) { +function Sprite_vx__P50358_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P18151, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P50358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23674,7 +23694,7 @@ function Sprite_vx__P18151_mk(s) { -function game_onShade__P18663(s) { +function game_onShade__P50870(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23688,9 +23708,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P20002_mk(s); + s.tmp_0 = game_init__P52209_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 838; s.pc = 4; return s.tmp_0; + s.callLocIdx = 839; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -23702,11 +23722,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P18499_mk(s); + s.tmp_2 = scene_createRenderable__P50706_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 839; s.pc = 5; return s.tmp_2; + s.callLocIdx = 840; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -23714,12 +23734,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P18663.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +game_onShade__P50870.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P18663_mk(s) { +function game_onShade__P50870_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P18663, depth: s.depth + 1, + parent: s, fn: game_onShade__P50870, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23731,7 +23751,7 @@ function game_onShade__P18663_mk(s) { -function scene_createRenderable__P18499(s) { +function scene_createRenderable__P50706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23741,14 +23761,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___25843 = undefined; + s.renderable___58075 = 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__C18494_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C50701_VT); s.tmp_0 = r0; s.tmp_1 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_1); @@ -23756,11 +23776,11 @@ switch (step) { r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = inline__P25849; + r0 = inline__P58081; case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P18495_mk(s); + s.tmp_3 = scene_Renderable_constructor__P50702_mk(s); s.tmp_3.arg0 = s.tmp_0; s.tmp_3.arg1 = s.arg1; s.tmp_3.arg2 = s.tmp_2; @@ -23768,23 +23788,23 @@ switch (step) { s.callLocIdx = 777; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.renderable___25843 = (s.tmp_0); - r0 = s.renderable___25843; + s.renderable___58075 = (s.tmp_0); + r0 = s.renderable___58075; return leave(s, r0) default: oops() } } } -scene_createRenderable__P18499.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__P50706.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__P18499_mk(s) { +function scene_createRenderable__P50706_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P18499, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P50706, depth: s.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___25843: undefined, + renderable___58075: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23794,7 +23814,7 @@ function scene_createRenderable__P18499_mk(s) { -function inline__P25849(s) { +function inline__P58081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23808,12 +23828,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P25849.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +inline__P58081.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function inline__P25849_mk(s) { +function inline__P58081_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25849, depth: s.depth + 1, + parent: s, fn: inline__P58081, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -23821,7 +23841,7 @@ function inline__P25849_mk(s) { -function scene_Renderable_constructor__P18495(s) { +function scene_Renderable_constructor__P50702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23839,10 +23859,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C18494_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C50701_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P17978_mk(s); + s.tmp_0 = sprites_BaseSprite_constructor__P50185_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; s.callLocIdx = 774; s.pc = 1; return s.tmp_0; @@ -23852,12 +23872,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P18495.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__P50702.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__P18495_mk(s) { +function scene_Renderable_constructor__P50702_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P18495, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P50702, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23870,7 +23890,7 @@ function scene_Renderable_constructor__P18495_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P18739(s) { +function scene_systemMenu_PauseMenu_constructor__P50946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23887,7 +23907,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C18738_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C50945_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -23895,13 +23915,13 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P18747_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___18754); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P50954_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___50961); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 870; s.pc = 3; return s.tmp_1; + s.callLocIdx = 871; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -23915,12 +23935,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P18739.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__P50946.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__P18739_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P50946_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P18739, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P50946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23934,7 +23954,7 @@ function scene_systemMenu_PauseMenu_constructor__P18739_mk(s) { -function scene_systemMenu_buildMenuTheme__P18747(s) { +function scene_systemMenu_buildMenuTheme__P50954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23944,7 +23964,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___27734 = undefined; + s.cardsPerRow___59966 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -23952,19 +23972,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); 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___27734 = (r0); + s.cardsPerRow___59966 = (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___17863; + r0 = globals.font8___50070; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -23975,9 +23995,9 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P17866_mk(s); + s.tmp_1 = image_doubledFont__P50073_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 980; s.pc = 5; return s.tmp_1; + s.callLocIdx = 981; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -23988,12 +24008,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___27734); - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___59966); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_3 = r0; - r0 = (s.cardsPerRow___27734 * s.arg0); + r0 = (s.cardsPerRow___59966 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___27734 - 1); + r0 = (s.cardsPerRow___59966 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -24014,7 +24034,7 @@ switch (step) { s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 981; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 982; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -24024,7 +24044,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___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -24034,7 +24054,7 @@ switch (step) { s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } - else { s.callLocIdx = 982; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 983; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -24045,19 +24065,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___18755); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___18756); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___18754); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___50962); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___50963); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___50961); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P18747.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__P50954.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__P18747_mk(s) { +function scene_systemMenu_buildMenuTheme__P50954_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P18747, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P50954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24076,7 +24096,7 @@ function scene_systemMenu_buildMenuTheme__P18747_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___27734: undefined, + cardsPerRow___59966: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -24087,7 +24107,7 @@ function scene_systemMenu_buildMenuTheme__P18747_mk(s) { -function image_doubledFont__P17866(s) { +function image_doubledFont__P50073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24101,7 +24121,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P17867_mk(s); + s.tmp_0 = image_scaledFont__P50074_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 89; s.pc = 1; return s.tmp_0; @@ -24110,12 +24130,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_doubledFont__P17866.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__P50073.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__P17866_mk(s) { +function image_doubledFont__P50073_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P17866, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P50073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24125,7 +24145,7 @@ function image_doubledFont__P17866_mk(s) { -function image_scaledFont__P17867(s) { +function image_scaledFont__P50074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24240,12 +24260,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_scaledFont__P17867.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__P50074.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__P17867_mk(s) { +function image_scaledFont__P50074_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P17867, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P50074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24271,7 +24291,7 @@ function image_scaledFont__P17867_mk(s) { -function game_pushScene__P18652(s) { +function game_pushScene__P50859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24281,45 +24301,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___27813 = undefined; - s.tmp_0 = game_currentScene__P18648_mk(s); - s.callLocIdx = 817; s.pc = 5; return s.tmp_0; + s.oldScene___60045 = undefined; + s.tmp_0 = game_currentScene__P50855_mk(s); + s.callLocIdx = 818; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___27813 = (r0); - s.tmp_0 = particles_clearAll__P18824_mk(s); - s.callLocIdx = 818; s.pc = 6; return s.tmp_0; + s.oldScene___60045 = (r0); + s.tmp_0 = particles_clearAll__P51031_mk(s); + s.callLocIdx = 819; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P18825_mk(s); - s.callLocIdx = 819; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P51032_mk(s); + s.callLocIdx = 820; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___19995); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___52202); 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._sceneStack___19995 = (r0); + globals._sceneStack___52202 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___19995, globals._scene___19994); - s.tmp_0 = game_init__P20002_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___52202, globals._scene___52201); + s.tmp_0 = game_init__P52209_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 820; s.pc = 8; return s.tmp_0; + s.callLocIdx = 821; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___19996); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___52203); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P27830); + r0 = pxsim_pxtcore_mkAction(1, inline__P60062); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___27813); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___19996; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___60045); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___52203; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 822; s.pc = 9; return s.tmp_1; + s.callLocIdx = 823; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -24328,23 +24348,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P18652.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P50859.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function game_pushScene__P18652_mk(s) { +function game_pushScene__P50859_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P18652, depth: s.depth + 1, + parent: s, fn: game_pushScene__P50859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___27813: undefined, + oldScene___60045: undefined, } } -function inline__P27830(s) { +function inline__P60062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24362,19 +24382,19 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 821; s.pc = 1; return s.tmp_0; + s.callLocIdx = 822; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P27830.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +inline__P60062.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function inline__P27830_mk(s) { +function inline__P60062_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27830, depth: s.depth + 1, + parent: s, fn: inline__P60062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24384,7 +24404,7 @@ function inline__P27830_mk(s) { -function particles_disableAll__P18825(s) { +function particles_disableAll__P51032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24394,22 +24414,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___27834 = undefined; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1063; s.pc = 3; return s.tmp_0; + s.sources___60066 = undefined; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1064; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___27834 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___27834); + s.sources___60066 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___60066); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); - s.tmp_0.arg0 = s.sources___27834; - s.tmp_0.arg1 = inline__P27840; - s.callLocIdx = 1065; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); + s.tmp_0.arg0 = s.sources___60066; + s.tmp_0.arg1 = inline__P60072; + s.callLocIdx = 1066; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P20354_mk(s); - s.callLocIdx = 1066; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P52561_mk(s); + s.callLocIdx = 1067; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -24418,22 +24438,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P18825.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_disableAll__P51032.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function particles_disableAll__P18825_mk(s) { +function particles_disableAll__P51032_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P18825, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P51032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___27834: undefined, + sources___60066: undefined, } } -function inline__P27840(s) { +function inline__P60072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24447,22 +24467,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P18807_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P51014_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1064; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1065; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = false; return leave(s, r0) default: oops() } } } -inline__P27840.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P60072.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P27840_mk(s) { +function inline__P60072_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27840, depth: s.depth + 1, + parent: s, fn: inline__P60072, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24472,7 +24492,7 @@ function inline__P27840_mk(s) { -function particles_clearAll__P18824(s) { +function particles_clearAll__P51031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24482,22 +24502,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___27845 = undefined; - s.tmp_0 = particles_particleSources__P20358_mk(s); - s.callLocIdx = 1059; s.pc = 3; return s.tmp_0; + s.sources___60077 = undefined; + s.tmp_0 = particles_particleSources__P52565_mk(s); + s.callLocIdx = 1060; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___27845 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___27845); + s.sources___60077 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___60077); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); - s.tmp_0.arg0 = s.sources___27845; - s.tmp_0.arg1 = inline__P27851; - s.callLocIdx = 1061; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); + s.tmp_0.arg0 = s.sources___60077; + s.tmp_0.arg1 = inline__P60083; + s.callLocIdx = 1062; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P20354_mk(s); - s.callLocIdx = 1062; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P52561_mk(s); + s.callLocIdx = 1063; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -24506,22 +24526,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_clearAll__P18824.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +particles_clearAll__P51031.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function particles_clearAll__P18824_mk(s) { +function particles_clearAll__P51031_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P18824, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P51031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___27845: undefined, + sources___60077: undefined, } } -function inline__P27851(s) { +function inline__P60083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24535,21 +24555,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P18809_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P51016_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1060; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1061; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P27851.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P60083.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P27851_mk(s) { +function inline__P60083_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27851, depth: s.depth + 1, + parent: s, fn: inline__P60083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24559,7 +24579,7 @@ function inline__P27851_mk(s) { -function controller_Button_onEvent__P18028(s) { +function controller_Button_onEvent__P50235(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24576,8 +24596,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P16498_mk(s); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + s.tmp_0 = control_onEvent__P48705_mk(s); s.tmp_0.arg0 = s.arg1; r0 = s.arg0.fields["id"]; s.tmp_0.arg1 = r0; @@ -24590,12 +24610,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P18028.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} +controller_Button_onEvent__P50235.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} -function controller_Button_onEvent__P18028_mk(s) { +function controller_Button_onEvent__P50235_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P18028, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P50235, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24607,7 +24627,7 @@ function controller_Button_onEvent__P18028_mk(s) { -function scene_systemMenu_initScreen__P20261(s) { +function scene_systemMenu_initScreen__P52468(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24617,21 +24637,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___27865 = undefined; - s.tmp_0 = settings_readNumber__P17951_mk(s); + s.brightness___60097 = undefined; + s.tmp_0 = settings_readNumber__P50158_mk(s); s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 989; s.pc = 3; return s.tmp_0; + s.callLocIdx = 990; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___27865 = (r0); - r0 = (s.brightness___27865 !== undefined); + s.brightness___60097 = (r0); + r0 = (s.brightness___60097 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P17853_mk(s); - s.tmp_1.arg0 = globals.screen___17920; - s.tmp_1.arg1 = s.brightness___27865; - s.callLocIdx = 990; s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P50060_mk(s); + s.tmp_1.arg0 = globals.screen___50127; + s.tmp_1.arg1 = s.brightness___60097; + s.callLocIdx = 991; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -24640,23 +24660,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P20261.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__P52468.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__P20261_mk(s) { +function scene_systemMenu_initScreen__P52468_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P20261, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P52468, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___27865: undefined, + brightness___60097: undefined, } } -function settings_readNumber__P17951(s) { +function settings_readNumber__P50158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24666,15 +24686,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___27876 = undefined; - s.nums___27883 = undefined; + s.buf___60108 = undefined; + s.nums___60115 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___27876 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___27876); + s.buf___60108 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___60108); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -24684,20 +24704,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P16294_mk(s); - s.tmp_2.arg0 = s.buf___27876; + s.tmp_2 = msgpack_unpackNumberArray__P48501_mk(s); + s.tmp_2.arg0 = s.buf___60108; s.tmp_2.arg1 = 0; s.callLocIdx = 127; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___27883 = (r0); - s.tmp_0 = r0 = s.nums___27883; + s.nums___60115 = (r0); + s.tmp_0 = r0 = s.nums___60115; 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___27883); + r0 = pxsim_Array__length(s.nums___60115); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -24705,7 +24725,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___27883, 0); + r0 = pxsim_Array__getAt(s.nums___60115, 0); { step = 7; continue; } case 4: case 5: @@ -24717,18 +24737,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P17951.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +settings_readNumber__P50158.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} -function settings_readNumber__P17951_mk(s) { +function settings_readNumber__P50158_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P17951, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P50158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___27876: undefined, - nums___27883: undefined, + buf___60108: undefined, + nums___60115: undefined, arg0: undefined, } } @@ -24736,7 +24756,7 @@ function settings_readNumber__P17951_mk(s) { -function settings_readBuffer__P17949(s) { +function settings_readBuffer__P50156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24754,12 +24774,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P17949.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +settings_readBuffer__P50156.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} -function settings_readBuffer__P17949_mk(s) { +function settings_readBuffer__P50156_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P17949, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P50156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -24768,7 +24788,7 @@ function settings_readBuffer__P17949_mk(s) { -function msgpack_unpackNumberArray__P16294(s) { +function msgpack_unpackNumberArray__P48501(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24778,16 +24798,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___27896 = undefined; - s.fmt___27903 = undefined; - s.v___27912 = undefined; + s.res___60128 = undefined; + s.fmt___60135 = undefined; + s.v___60144 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___27896 = (r0); + s.res___60128 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -24799,14 +24819,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P19611_mk(s); + s.tmp_4 = msgpack_tagFormat__P51818_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___27903 = (r0); - r0 = (s.fmt___27903 === null); + s.fmt___60135 = (r0); + r0 = (s.fmt___60135 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -24814,21 +24834,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___27912 = (r0); - r0 = (-31 <= s.v___27912); + s.v___60144 = (r0); + r0 = (-31 <= s.v___60144); 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___27912 <= 127); + r0 = (s.v___60144 <= 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___27896, s.v___27912); + r0 = pxsim_Array__push(s.res___60128, s.v___60144); { step = 5; continue; } case 4: r0 = null; @@ -24836,13 +24856,13 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___27896; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___27903, s.arg1); + s.tmp_0 = r0 = s.res___60128; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___60135, 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__P16286_mk(s); - s.tmp_2.arg0 = s.fmt___27903; + s.tmp_2 = pins_sizeOf__P48493_mk(s); + s.tmp_2.arg0 = s.fmt___60135; s.callLocIdx = 20; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; @@ -24863,26 +24883,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___27896; + r0 = s.res___60128; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P16294.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__P48501.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__P16294_mk(s) { +function msgpack_unpackNumberArray__P48501_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P16294, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P48501, depth: s.depth + 1, pc: 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___27896: undefined, - fmt___27903: undefined, - v___27912: undefined, + res___60128: undefined, + fmt___60135: undefined, + v___60144: undefined, arg0: undefined, arg1: undefined, } } @@ -24891,7 +24911,7 @@ function msgpack_unpackNumberArray__P16294_mk(s) { -function scene_systemMenu_initVolume__P20260(s) { +function scene_systemMenu_initVolume__P52467(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24901,20 +24921,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___27957 = undefined; - s.tmp_0 = settings_readNumber__P17951_mk(s); + s.vol___60189 = undefined; + s.tmp_0 = settings_readNumber__P50158_mk(s); s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 987; s.pc = 3; return s.tmp_0; + s.callLocIdx = 988; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___27957 = (r0); - r0 = (s.vol___27957 !== undefined); + s.vol___60189 = (r0); + r0 = (s.vol___60189 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P17710_mk(s); - s.tmp_1.arg0 = s.vol___27957; - s.callLocIdx = 988; s.pc = 4; return s.tmp_1; + s.tmp_1 = music_setVolume__P49917_mk(s); + s.tmp_1.arg0 = s.vol___60189; + s.callLocIdx = 989; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -24923,23 +24943,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P20260.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__P52467.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__P20260_mk(s) { +function scene_systemMenu_initVolume__P52467_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P20260, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P52467, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___27957: undefined, + vol___60189: undefined, } } -function game_currentScene__P18648(s) { +function game_currentScene__P50855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24949,21 +24969,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P20002_mk(s); + s.tmp_0 = game_init__P52209_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 812; s.pc = 1; return s.tmp_0; + s.callLocIdx = 813; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___19994; + r0 = globals._scene___52201; return leave(s, r0) default: oops() } } } -game_currentScene__P18648.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P50855.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} -function game_currentScene__P18648_mk(s) { +function game_currentScene__P50855_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P18648, depth: s.depth + 1, + parent: s, fn: game_currentScene__P50855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -24972,7 +24992,7 @@ function game_currentScene__P18648_mk(s) { -function game_addScenePopHandler__P18667(s) { +function game_addScenePopHandler__P50874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24986,35 +25006,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___19997); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___52204); 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___19997 = (r0); + globals._scenePopHandlers___52204 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___19997, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___52204, 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___19997, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___52204, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P18667.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +game_addScenePopHandler__P50874.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P18667_mk(s) { +function game_addScenePopHandler__P50874_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P18667, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P50874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25025,7 +25045,7 @@ function game_addScenePopHandler__P18667_mk(s) { -function game_addScenePushHandler__P18665(s) { +function game_addScenePushHandler__P50872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25039,35 +25059,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___19996); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___52203); 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___19996 = (r0); + globals._scenePushHandlers___52203 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___19996, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___52203, 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___19996, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___52203, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P18665.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +game_addScenePushHandler__P50872.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P18665_mk(s) { +function game_addScenePushHandler__P50872_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P18665, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P50872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25078,7 +25098,7 @@ function game_addScenePushHandler__P18665_mk(s) { -function Fx8__P16262(s) { +function Fx8__P48469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25098,12 +25118,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P16262.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P48469.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__P16262_mk(s) { +function Fx8__P48469_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P16262, depth: s.depth + 1, + parent: s, fn: Fx8__P48469, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25113,7 +25133,7 @@ function Fx8__P16262_mk(s) { -function SpriteKind_create__P18249(s) { +function SpriteKind_create__P50456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25123,26 +25143,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___19840 === undefined); + r0 = (globals.nextKind___52047 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___19840 = (1000); + globals.nextKind___52047 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___19840; + s.tmp_0 = r0 = globals.nextKind___52047; r0 = (s.tmp_0 + 1); - globals.nextKind___19840 = (r0); + globals.nextKind___52047 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P18249.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P50456.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} -function SpriteKind_create__P18249_mk(s) { +function SpriteKind_create__P50456_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P18249, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P50456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25151,7 +25171,7 @@ function SpriteKind_create__P18249_mk(s) { -function controller_Button_constructor__P18027(s) { +function controller_Button_constructor__P50234(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25168,7 +25188,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -25178,13 +25198,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P28033); + r0 = pxsim_pxtcore_mkAction(1, inline__P60265); 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, inline__P28040); + r0 = pxsim_pxtcore_mkAction(1, inline__P60272); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -25203,12 +25223,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P18027.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]} +controller_Button_constructor__P50234.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]} -function controller_Button_constructor__P18027_mk(s) { +function controller_Button_constructor__P50234_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P18027, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P50234, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25222,7 +25242,7 @@ function controller_Button_constructor__P18027_mk(s) { -function inline__P28033(s) { +function inline__P60265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25232,7 +25252,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P18032_mk(s); + s.tmp_0 = controller_Button_setPressed__P50239_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; s.callLocIdx = 139; s.pc = 1; return s.tmp_0; @@ -25242,12 +25262,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28033.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P60265.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P28033_mk(s) { +function inline__P60265_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28033, depth: s.depth + 1, + parent: s, fn: inline__P60265, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25256,7 +25276,7 @@ function inline__P28033_mk(s) { -function inline__P28040(s) { +function inline__P60272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25266,7 +25286,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P18032_mk(s); + s.tmp_0 = controller_Button_setPressed__P50239_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; s.callLocIdx = 140; s.pc = 1; return s.tmp_0; @@ -25276,12 +25296,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28040.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P60272.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P28040_mk(s) { +function inline__P60272_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28040, depth: s.depth + 1, + parent: s, fn: inline__P60272, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25290,7 +25310,7 @@ function inline__P28040_mk(s) { -function controller_setupButton__P19822(s) { +function controller_setupButton__P52029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25309,12 +25329,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P19822.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +controller_setupButton__P52029.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} -function controller_setupButton__P19822_mk(s) { +function controller_setupButton__P52029_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P19822, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P52029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -25324,7 +25344,7 @@ function controller_setupButton__P19822_mk(s) { -function controller_Button_setPressed__P18032(s) { +function controller_Button_setPressed__P50239(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25340,14 +25360,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C50228_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__P17823_mk(s); + s.tmp_2 = power_poke__P50030_mk(s); s.callLocIdx = 143; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; @@ -25355,7 +25375,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__P18061_mk(s); + s.tmp_1 = controller_Controller_connected__P50268_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; @@ -25370,7 +25390,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__P19824_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P52031_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 145; s.pc = 9; return s.tmp_0; case 9: @@ -25378,7 +25398,7 @@ switch (step) { { step = 4; continue; } case 3: r0 = (s.arg0).fields["_repeatCount"] = (0); - s.tmp_0 = controller_Button_raiseButtonUp__P19823_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P52030_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 146; s.pc = 10; return s.tmp_0; case 10: @@ -25390,12 +25410,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P18032.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +controller_Button_setPressed__P50239.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function controller_Button_setPressed__P18032_mk(s) { +function controller_Button_setPressed__P50239_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P18032, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P50239, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25408,7 +25428,7 @@ function controller_Button_setPressed__P18032_mk(s) { -function controller_Button_raiseButtonDown__P19824(s) { +function controller_Button_raiseButtonDown__P52031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25423,8 +25443,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___19816); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___52023); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -25439,12 +25459,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P19824.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +controller_Button_raiseButtonDown__P52031.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Button_raiseButtonDown__P19824_mk(s) { +function controller_Button_raiseButtonDown__P52031_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P19824, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P52031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25454,7 +25474,7 @@ function controller_Button_raiseButtonDown__P19824_mk(s) { -function controller_Button_raiseButtonUp__P19823(s) { +function controller_Button_raiseButtonUp__P52030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25469,8 +25489,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___19816); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___52023); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -25485,12 +25505,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P19823.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +controller_Button_raiseButtonUp__P52030.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function controller_Button_raiseButtonUp__P19823_mk(s) { +function controller_Button_raiseButtonUp__P52030_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P19823, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P52030, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25500,7 +25520,7 @@ function controller_Button_raiseButtonUp__P19823_mk(s) { -function controller_Controller_connected__P18061(s) { +function controller_Controller_connected__P50268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25516,7 +25536,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; s.tmp_1 = r0; r0 = (s.arg1 != s.tmp_1); @@ -25544,12 +25564,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller_connected__P18061.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +controller_Controller_connected__P50268.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} -function controller_Controller_connected__P18061_mk(s) { +function controller_Controller_connected__P50268_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P18061, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P50268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25562,7 +25582,7 @@ function controller_Controller_connected__P18061_mk(s) { -function controller_Controller_id__P18048(s) { +function controller_Controller_id__P50255(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25577,18 +25597,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); r0 = s.arg0.fields["_id"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_id__P18048.info = {"start":8841,"length":49,"line":276,"column":8,"endLine":278,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} -controller_Controller_id__P18048.isGetter = true; +controller_Controller_id__P50255.info = {"start":8841,"length":49,"line":276,"column":8,"endLine":278,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} +controller_Controller_id__P50255.isGetter = true; -function controller_Controller_id__P18048_mk(s) { +function controller_Controller_id__P50255_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P18048, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P50255, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -25597,7 +25617,7 @@ function controller_Controller_id__P18048_mk(s) { -function controller_Controller_connected__P18060(s) { +function controller_Controller_connected__P50267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25612,18 +25632,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C18041_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C50248_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_connected__P18060.info = {"start":12477,"length":63,"line":401,"column":8,"endLine":403,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} -controller_Controller_connected__P18060.isGetter = true; +controller_Controller_connected__P50267.info = {"start":12477,"length":63,"line":401,"column":8,"endLine":403,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} +controller_Controller_connected__P50267.isGetter = true; -function controller_Controller_connected__P18060_mk(s) { +function controller_Controller_connected__P50267_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P18060, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P50267, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -25632,7 +25652,7 @@ function controller_Controller_connected__P18060_mk(s) { -function settings_initScopes__P19789(s) { +function settings_initScopes__P51996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25642,17 +25662,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___28118 = undefined; - s.tmp_1 = settings_runNumber__P17943_mk(s); + s.rn___60350 = undefined; + s.tmp_1 = settings_runNumber__P50150_mk(s); s.callLocIdx = 118; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___28118 = (r0); - s.tmp_0 = settings_writeNumber__P17947_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___19777; - s.tmp_0.arg1 = s.rn___28118; + s.rn___60350 = (r0); + s.tmp_0 = settings_writeNumber__P50154_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___51984; + s.tmp_0.arg1 = s.rn___60350; s.callLocIdx = 119; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -25661,8 +25681,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___28118); - s.tmp_0 = settings_setScope__P19788_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___60350); + s.tmp_0 = settings_setScope__P51995_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; s.callLocIdx = 120; s.pc = 3; return s.tmp_0; @@ -25672,23 +25692,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_initScopes__P19789.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P51996.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__P19789_mk(s) { +function settings_initScopes__P51996_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P19789, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P51996, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___28118: undefined, + rn___60350: undefined, } } -function settings_setScope__P19788(s) { +function settings_setScope__P51995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25698,7 +25718,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___28147 = undefined; + s.currScope___60379 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -25723,19 +25743,19 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P17950_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___19778; + s.tmp_0 = settings_readString__P50157_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___51985; s.callLocIdx = 116; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___28147 = (r0); - r0 = (s.currScope___28147 != s.arg0); + s.currScope___60379 = (r0); + r0 = (s.currScope___60379 != 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__P17946_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___19778; + s.tmp_0 = settings_writeString__P50153_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___51985; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 117; s.pc = 8; return s.tmp_0; case 8: @@ -25746,18 +25766,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P19788.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__P51995.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__P19788_mk(s) { +function settings_setScope__P51995_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P19788, depth: s.depth + 1, + parent: s, fn: settings_setScope__P51995, depth: s.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___28147: undefined, + currScope___60379: undefined, arg0: undefined, } } @@ -25765,7 +25785,7 @@ function settings_setScope__P19788_mk(s) { -function settings_readString__P17950(s) { +function settings_readString__P50157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25775,14 +25795,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___28168 = undefined; + s.buf___60400 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___28168 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___28168); + s.buf___60400 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___60400); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -25792,7 +25812,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___28168); + r0 = pxsim.BufferMethods.toString(s.buf___60400); { step = 3; continue; } case 2: r0 = undefined; @@ -25800,16 +25820,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P17950.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +settings_readString__P50157.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} -function settings_readString__P17950_mk(s) { +function settings_readString__P50157_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P17950, depth: s.depth + 1, + parent: s, fn: settings_readString__P50157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___28168: undefined, + buf___60400: undefined, arg0: undefined, } } @@ -25817,7 +25837,7 @@ function settings_readString__P17950_mk(s) { -function settings_writeString__P17946(s) { +function settings_writeString__P50153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25832,7 +25852,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P17945_mk(s); + s.tmp_0 = settings_writeBuffer__P50152_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; @@ -25843,12 +25863,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeString__P17946.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__P50153.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__P17946_mk(s) { +function settings_writeString__P50153_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P17946, depth: s.depth + 1, + parent: s, fn: settings_writeString__P50153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25859,7 +25879,7 @@ function settings_writeString__P17946_mk(s) { -function settings_runNumber__P17943(s) { +function settings_runNumber__P50150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25869,8 +25889,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P17951_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___19777; + s.tmp_1 = settings_readNumber__P50158_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___51984; s.callLocIdx = 115; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -25888,12 +25908,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P17943.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P50150.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__P17943_mk(s) { +function settings_runNumber__P50150_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P17943, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P50150, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25904,7 +25924,7 @@ function settings_runNumber__P17943_mk(s) { -function control___screen_setupUpdate__P17882(s) { +function control___screen_setupUpdate__P50089(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25918,8 +25938,8 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___19746 = (true); - globals.__update___19744 = (s.arg0); + globals.__updated___51953 = (true); + globals.__update___51951 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); @@ -25930,12 +25950,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P17882.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__P50089.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__P17882_mk(s) { +function control___screen_setupUpdate__P50089_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P17882, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P50089, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25945,7 +25965,7 @@ function control___screen_setupUpdate__P17882_mk(s) { -function control___screen_update__P17881(s) { +function control___screen_update__P50088(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25955,27 +25975,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___19744); + r0 = pxsim_numops_toBoolDecr(globals.__update___51951); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___19744; + s.tmp_0.argL = globals.__update___51951; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 110; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___19746 = (true); + globals.__updated___51953 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P17881.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__P50088.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__P17881_mk(s) { +function control___screen_update__P50088_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P17881, depth: s.depth + 1, + parent: s, fn: control___screen_update__P50088, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25984,7 +26004,7 @@ function control___screen_update__P17881_mk(s) { -function pause__P16520(s) { +function pause__P48727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26008,12 +26028,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P16520.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P48727.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__P16520_mk(s) { +function pause__P48727_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P16520, depth: s.depth + 1, + parent: s, fn: pause__P48727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -26022,7 +26042,7 @@ function pause__P16520_mk(s) { -function sprites_SpriteSet_toString__P18244(s) { +function sprites_SpriteSet_toString__P50451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26037,7 +26057,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = s.arg0.fields["_sprites"]; @@ -26059,12 +26079,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P18244.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteSet_toString__P50451.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteSet_toString__P18244_mk(s) { +function sprites_SpriteSet_toString__P50451_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P18244, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P50451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26078,7 +26098,7 @@ function sprites_SpriteSet_toString__P18244_mk(s) { -function sprites_SpriteSet_length__P18236(s) { +function sprites_SpriteSet_length__P50443(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26093,20 +26113,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C18233_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C50440_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__P18236.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} -sprites_SpriteSet_length__P18236.isGetter = true; +sprites_SpriteSet_length__P50443.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} +sprites_SpriteSet_length__P50443.isGetter = true; -function sprites_SpriteSet_length__P18236_mk(s) { +function sprites_SpriteSet_length__P50443_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P18236, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P50443, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26116,7 +26136,7 @@ function sprites_SpriteSet_length__P18236_mk(s) { -function music_Melody_toString__P17725(s) { +function music_Melody_toString__P49932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26131,17 +26151,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C17716_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C49923_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P17725.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +music_Melody_toString__P49932.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function music_Melody_toString__P17725_mk(s) { +function music_Melody_toString__P49932_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P17725, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P49932, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -26150,7 +26170,7 @@ function music_Melody_toString__P17725_mk(s) { -function sprites_SpriteMap_toString__P18224(s) { +function sprites_SpriteMap_toString__P50431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26165,7 +26185,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -26185,10 +26205,10 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P16224_mk(s); + s.tmp_10 = helpers_arrayFilter__P48431_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P28219; + s.tmp_10.arg1 = inline__P60451; s.callLocIdx = 425; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; @@ -26210,12 +26230,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P18224.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__P50431.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__P18224_mk(s) { +function sprites_SpriteMap_toString__P50431_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P18224, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P50431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26235,7 +26255,7 @@ function sprites_SpriteMap_toString__P18224_mk(s) { -function inline__P28219(s) { +function inline__P60451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26259,12 +26279,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28219.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +inline__P60451.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function inline__P28219_mk(s) { +function inline__P60451_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28219, depth: s.depth + 1, + parent: s, fn: inline__P60451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26276,7 +26296,7 @@ function inline__P28219_mk(s) { -function ArcadePhysicsEngine_moveSprite__P18310(s) { +function ArcadePhysicsEngine_moveSprite__P50517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26286,9 +26306,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___28257 = undefined; - s.maxDist___28267 = undefined; - s.ms___28287 = undefined; + s.tm___60489 = undefined; + s.maxDist___60499 = undefined; + s.ms___60519 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26297,7 +26317,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -26326,19 +26346,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_4 = game_currentScene__P18648_mk(s); + s.tmp_4 = game_currentScene__P50855_mk(s); s.callLocIdx = 636; s.pc = 16; return s.tmp_4; case 16: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___28257 = (r0); - s.tmp_0 = r0 = s.tm___28257; + s.tm___60489 = (r0); + s.tmp_0 = r0 = s.tm___60489; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___28257.fields["_map"]; + r0 = s.tm___60489.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -26364,8 +26384,8 @@ switch (step) { r0 = (s.tmp_8 + 128); s.tmp_9 = r0; r0 = (s.tmp_9 >> 8); - s.maxDist___28267 = (r0); - s.tmp_2 = Math_abs__P16241_mk(s); + s.maxDist___60499 = (r0); + s.tmp_2 = Math_abs__P48448_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); @@ -26374,14 +26394,14 @@ switch (step) { case 17: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___28267); + r0 = (s.tmp_1 <= s.maxDist___60499); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_5 = Math_abs__P16241_mk(s); + s.tmp_5 = Math_abs__P48448_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); @@ -26390,15 +26410,15 @@ switch (step) { case 18: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___28267); + r0 = (s.tmp_4 <= s.maxDist___60499); case 6: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 7; continue; } - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C18294_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C50501_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P18295_mk(s); + s.tmp_9 = MovingSprite_constructor__P50502_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -26412,18 +26432,18 @@ switch (step) { s.callLocIdx = 643; s.pc = 19; return s.tmp_9; case 19: r0 = s.retval; - s.ms___28287 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P19870_mk(s); + s.ms___60519 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P52077_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___28287; - s.tmp_0.arg2 = s.tm___28257; + s.tmp_0.arg1 = s.ms___60519; + s.tmp_0.arg2 = s.tm___60489; s.callLocIdx = 644; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; { step = 12; continue; } case 7: - s.tmp_1 = tiles_TileMap_isOnWall__P18461_mk(s); - s.tmp_1.arg0 = s.tm___28257; + s.tmp_1 = tiles_TileMap_isOnWall__P50668_mk(s); + s.tmp_1.arg0 = s.tm___60489; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 645; s.pc = 21; return s.tmp_1; case 21: @@ -26434,10 +26454,10 @@ switch (step) { r0 = s.tmp_0; { step = 9; continue; } case 8: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P19872_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P52079_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___28257; + s.tmp_4.arg2 = s.tm___60489; s.callLocIdx = 646; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; @@ -26473,12 +26493,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P18310.info = {"start":21906,"length":1276,"line":643,"column":4,"endLine":676,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +ArcadePhysicsEngine_moveSprite__P50517.info = {"start":21906,"length":1276,"line":643,"column":4,"endLine":676,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function ArcadePhysicsEngine_moveSprite__P18310_mk(s) { +function ArcadePhysicsEngine_moveSprite__P50517_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P18310, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P50517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26490,9 +26510,9 @@ function ArcadePhysicsEngine_moveSprite__P18310_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___28257: undefined, - maxDist___28267: undefined, - ms___28287: undefined, + tm___60489: undefined, + maxDist___60499: undefined, + ms___60519: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -26503,7 +26523,7 @@ function ArcadePhysicsEngine_moveSprite__P18310_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P19872(s) { +function ArcadePhysicsEngine_canResolveClipping__P52079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26513,19 +26533,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___28332 = undefined; - s.sz___28335 = undefined; - s.maxMove___28340 = undefined; - s.origY___28342 = undefined; - s.origX___28345 = undefined; - s.l___28348 = undefined; - s.r___28353 = undefined; - s.t___28358 = undefined; - s.b___28363 = undefined; - s.offset___28368 = undefined; - s.offset___28393 = undefined; - s.offset___28424 = undefined; - s.offset___28449 = undefined; + s.hbox___60564 = undefined; + s.sz___60567 = undefined; + s.maxMove___60572 = undefined; + s.origY___60574 = undefined; + s.origX___60577 = undefined; + s.l___60580 = undefined; + s.r___60585 = undefined; + s.t___60590 = undefined; + s.b___60595 = undefined; + s.offset___60600 = undefined; + s.offset___60625 = undefined; + s.offset___60656 = undefined; + s.offset___60681 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26533,7 +26553,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -26544,7 +26564,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite_setHitbox__P18179_mk(s); + s.tmp_4 = Sprite_setHitbox__P50386_mk(s); s.tmp_4.arg0 = s.arg1; s.callLocIdx = 648; s.pc = 20; return s.tmp_4; case 20: @@ -26552,23 +26572,23 @@ switch (step) { case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___28332 = (r0); + s.hbox___60564 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___28335 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P18302_mk(s); + s.sz___60567 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P50509_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 650; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___28340 = (r0); + s.maxMove___60572 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___28342 = (r0); + s.origY___60574 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___28345 = (r0); - s.tmp_1 = game_Hitbox_left__P18084_mk(s); - s.tmp_1.arg0 = s.hbox___28332; + s.origX___60577 = (r0); + s.tmp_1 = game_Hitbox_left__P50291_mk(s); + s.tmp_1.arg0 = s.hbox___60564; s.callLocIdx = 651; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; @@ -26576,9 +26596,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.l___28348 = (r0); - s.tmp_1 = game_Hitbox_right__P18086_mk(s); - s.tmp_1.arg0 = s.hbox___28332; + s.l___60580 = (r0); + s.tmp_1 = game_Hitbox_right__P50293_mk(s); + s.tmp_1.arg0 = s.hbox___60564; s.callLocIdx = 653; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; @@ -26586,9 +26606,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.r___28353 = (r0); - s.tmp_1 = game_Hitbox_top__P18085_mk(s); - s.tmp_1.arg0 = s.hbox___28332; + s.r___60585 = (r0); + s.tmp_1 = game_Hitbox_top__P50292_mk(s); + s.tmp_1.arg0 = s.hbox___60564; s.callLocIdx = 655; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; @@ -26596,9 +26616,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.t___28358 = (r0); - s.tmp_1 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_1.arg0 = s.hbox___28332; + s.t___60590 = (r0); + s.tmp_1 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_1.arg0 = s.hbox___60564; s.callLocIdx = 657; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -26606,26 +26626,26 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.b___28363 = (r0); - r0 = (s.b___28363 + 1); + s.b___60595 = (r0); + r0 = (s.b___60595 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___28335); - s.offset___28368 = (r0); - r0 = (s.offset___28368 <= s.maxMove___28340); + r0 = (s.tmp_0 % s.sz___60567); + s.offset___60600 = (r0); + r0 = (s.offset___60600 <= s.maxMove___60572); 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___28368 * 256); + r0 = (s.offset___60600 * 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__P18461_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P50668_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 661; s.pc = 26; return s.tmp_3; @@ -26642,35 +26662,35 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___28342); + r0 = (s.arg1).fields["_y"] = (s.origY___60574); case 4: case 5: case 6: - r0 = (s.t___28358 / s.sz___28335); + r0 = (s.t___60590 / s.sz___60567); 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___28335); + r0 = (s.tmp_1 * s.sz___60567); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___28358); - s.offset___28393 = (r0); - r0 = (s.offset___28393 <= s.maxMove___28340); + r0 = (s.tmp_0 - s.t___60590); + s.offset___60625 = (r0); + r0 = (s.offset___60625 <= s.maxMove___60572); 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___28393 * 256); + r0 = (s.offset___60625 * 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__P18461_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P50668_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 664; s.pc = 27; return s.tmp_3; @@ -26687,29 +26707,29 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___28342); + r0 = (s.arg1).fields["_y"] = (s.origY___60574); case 8: case 9: case 10: - r0 = (s.r___28353 + 1); + r0 = (s.r___60585 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___28335); - s.offset___28424 = (r0); - r0 = (s.offset___28424 <= s.maxMove___28340); + r0 = (s.tmp_0 % s.sz___60567); + s.offset___60656 = (r0); + r0 = (s.offset___60656 <= s.maxMove___60572); 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___28424 * 256); + r0 = (s.offset___60656 * 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__P18461_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P50668_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 667; s.pc = 28; return s.tmp_3; @@ -26726,35 +26746,35 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___28345); + r0 = (s.arg1).fields["_x"] = (s.origX___60577); case 12: case 13: case 14: - r0 = (s.l___28348 / s.sz___28335); + r0 = (s.l___60580 / s.sz___60567); 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___28335); + r0 = (s.tmp_1 * s.sz___60567); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___28348); - s.offset___28449 = (r0); - r0 = (s.offset___28449 <= s.maxMove___28340); + r0 = (s.tmp_0 - s.l___60580); + s.offset___60681 = (r0); + r0 = (s.offset___60681 <= s.maxMove___60572); 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___28449 * 256); + r0 = (s.offset___60681 * 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__P18461_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P50668_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 670; s.pc = 29; return s.tmp_3; @@ -26771,7 +26791,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___28345); + r0 = (s.arg1).fields["_x"] = (s.origX___60577); case 16: case 17: case 18: @@ -26780,12 +26800,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P19872.info = {"start":23278,"length":2135,"line":679,"column":4,"endLine":750,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P52079.info = {"start":23278,"length":2135,"line":679,"column":4,"endLine":750,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P19872_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P52079_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P19872, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P52079, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26793,19 +26813,19 @@ function ArcadePhysicsEngine_canResolveClipping__P19872_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___28332: undefined, - sz___28335: undefined, - maxMove___28340: undefined, - origY___28342: undefined, - origX___28345: undefined, - l___28348: undefined, - r___28353: undefined, - t___28358: undefined, - b___28363: undefined, - offset___28368: undefined, - offset___28393: undefined, - offset___28424: undefined, - offset___28449: undefined, + hbox___60564: undefined, + sz___60567: undefined, + maxMove___60572: undefined, + origY___60574: undefined, + origX___60577: undefined, + l___60580: undefined, + r___60585: undefined, + t___60590: undefined, + b___60595: undefined, + offset___60600: undefined, + offset___60625: undefined, + offset___60656: undefined, + offset___60681: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -26815,7 +26835,7 @@ function ArcadePhysicsEngine_canResolveClipping__P19872_mk(s) { -function Sprite_isStatic__P18180(s) { +function Sprite_isStatic__P50387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26830,19 +26850,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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__P18180.info = {"start":8445,"length":57,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P50387.info = {"start":8445,"length":57,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} -function Sprite_isStatic__P18180_mk(s) { +function Sprite_isStatic__P50387_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P18180, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P50387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26852,7 +26872,7 @@ function Sprite_isStatic__P18180_mk(s) { -function game_Hitbox_bottom__P18087(s) { +function game_Hitbox_bottom__P50294(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26867,10 +26887,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C18077_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C50284_VT)) failedCast(r0); r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P18085_mk(s); + s.tmp_3 = game_Hitbox_top__P50292_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 204; s.pc = 1; return s.tmp_3; case 1: @@ -26882,13 +26902,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_bottom__P18087.info = {"start":742,"length":139,"line":31,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} -game_Hitbox_bottom__P18087.isGetter = true; +game_Hitbox_bottom__P50294.info = {"start":742,"length":139,"line":31,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} +game_Hitbox_bottom__P50294.isGetter = true; -function game_Hitbox_bottom__P18087_mk(s) { +function game_Hitbox_bottom__P50294_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P18087, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P50294, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26901,7 +26921,7 @@ function game_Hitbox_bottom__P18087_mk(s) { -function game_Hitbox_right__P18086(s) { +function game_Hitbox_right__P50293(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26916,10 +26936,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C18077_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C50284_VT)) failedCast(r0); r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P18084_mk(s); + s.tmp_3 = game_Hitbox_left__P50291_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 201; s.pc = 1; return s.tmp_3; case 1: @@ -26931,13 +26951,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_right__P18086.info = {"start":594,"length":138,"line":24,"column":8,"endLine":29,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} -game_Hitbox_right__P18086.isGetter = true; +game_Hitbox_right__P50293.info = {"start":594,"length":138,"line":24,"column":8,"endLine":29,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} +game_Hitbox_right__P50293.isGetter = true; -function game_Hitbox_right__P18086_mk(s) { +function game_Hitbox_right__P50293_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P18086, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P50293, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26950,7 +26970,7 @@ function game_Hitbox_right__P18086_mk(s) { -function game_Hitbox_top__P18085(s) { +function game_Hitbox_top__P50292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26965,7 +26985,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C18077_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C50284_VT)) failedCast(r0); r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -26975,13 +26995,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_top__P18085.info = {"start":511,"length":73,"line":20,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} -game_Hitbox_top__P18085.isGetter = true; +game_Hitbox_top__P50292.info = {"start":511,"length":73,"line":20,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} +game_Hitbox_top__P50292.isGetter = true; -function game_Hitbox_top__P18085_mk(s) { +function game_Hitbox_top__P50292_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P18085, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P50292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26992,7 +27012,7 @@ function game_Hitbox_top__P18085_mk(s) { -function game_Hitbox_left__P18084(s) { +function game_Hitbox_left__P50291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27007,7 +27027,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C18077_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C50284_VT)) failedCast(r0); r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -27017,13 +27037,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_left__P18084.info = {"start":427,"length":74,"line":16,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} -game_Hitbox_left__P18084.isGetter = true; +game_Hitbox_left__P50291.info = {"start":427,"length":74,"line":16,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} +game_Hitbox_left__P50291.isGetter = true; -function game_Hitbox_left__P18084_mk(s) { +function game_Hitbox_left__P50291_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P18084, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P50291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27034,7 +27054,7 @@ function game_Hitbox_left__P18084_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P19870(s) { +function ArcadePhysicsEngine_tilemapCollisions__P52077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27044,38 +27064,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___28617 = undefined; - s.hbox___28640 = undefined; - s.tileScale___28643 = undefined; - s.tileSize___28646 = undefined; - s.xDiff___28650 = undefined; - s.yDiff___28657 = undefined; - s.overlappedTiles___28664 = undefined; - s.right___28669 = undefined; - s.x0___28673 = undefined; - s.collidedTiles___28688 = undefined; - s.y___28690 = undefined; - s.y0___28704 = undefined; - s.obstacle___28720 = undefined; - s.collisionDirection___28754 = undefined; - s.tile___28780 = undefined; - s.unnamed148___U15 = undefined; - s.unnamed149___U16 = undefined; - s.down___28858 = undefined; - s.y0___28862 = undefined; - s.collidedTiles___28877 = undefined; - s.overlappedTiles___28879 = undefined; - s.x___28881 = undefined; - s.x0___28891 = undefined; - s.obstacle___28905 = undefined; - s.collisionDirection___28939 = undefined; - s.tile___28965 = undefined; - s.unnamed150___U26 = undefined; - s.unnamed151___U27 = undefined; - s.x___29040 = undefined; - s.x0___29050 = undefined; - s.y___29060 = undefined; - s.y0___29070 = undefined; + s.s___60849 = undefined; + s.hbox___60872 = undefined; + s.tileScale___60875 = undefined; + s.tileSize___60878 = undefined; + s.xDiff___60882 = undefined; + s.yDiff___60889 = undefined; + s.overlappedTiles___60896 = undefined; + s.right___60901 = undefined; + s.x0___60905 = undefined; + s.collidedTiles___60920 = undefined; + s.y___60922 = undefined; + s.y0___60936 = undefined; + s.obstacle___60952 = undefined; + s.collisionDirection___60986 = undefined; + s.tile___61012 = undefined; + s.unnamed308___U15 = undefined; + s.unnamed309___U16 = undefined; + s.down___61090 = undefined; + s.y0___61094 = undefined; + s.collidedTiles___61109 = undefined; + s.overlappedTiles___61111 = undefined; + s.x___61113 = undefined; + s.x0___61123 = undefined; + s.obstacle___61137 = undefined; + s.collisionDirection___61171 = undefined; + s.tile___61197 = undefined; + s.unnamed310___U26 = undefined; + s.unnamed311___U27 = undefined; + s.x___61272 = undefined; + s.x0___61282 = undefined; + s.y___61292 = undefined; + s.y0___61302 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27083,18 +27103,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___28617 = (r0); - r0 = s.s___28617.fields["flags"]; + s.s___60849 = (r0); + r0 = s.s___60849.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_3 = tiles_TileMap_isOnWall__P18461_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P50668_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.s___28617; + s.tmp_3.arg1 = s.s___60849; s.callLocIdx = 529; s.pc = 84; return s.tmp_3; case 84: r0 = s.retval; @@ -27104,7 +27124,7 @@ switch (step) { { step = 83; continue; } { step = 2; continue; } case 1: - s.tmp_4 = r0 = s.s___28617; + s.tmp_4 = r0 = s.s___60849; r0 = s.tmp_4.fields["flags"]; s.tmp_6 = r0; r0 = (s.tmp_6 & -257); @@ -27113,7 +27133,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___28617.fields["_image"]; + r0 = s.s___60849.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -27123,43 +27143,43 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite_setHitbox__P18179_mk(s); - s.tmp_4.arg0 = s.s___28617; + s.tmp_4 = Sprite_setHitbox__P50386_mk(s); + s.tmp_4.arg0 = s.s___60849; s.callLocIdx = 531; s.pc = 85; return s.tmp_4; case 85: r0 = s.retval; case 5: case 6: - r0 = s.s___28617.fields["_hitbox"]; - s.hbox___28640 = (r0); + r0 = s.s___60849.fields["_hitbox"]; + s.hbox___60872 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___28643 = (r0); - r0 = (1 << s.tileScale___28643); - s.tileSize___28646 = (r0); - r0 = s.s___28617.fields["_x"]; + s.tileScale___60875 = (r0); + r0 = (1 << s.tileScale___60875); + s.tileSize___60878 = (r0); + r0 = s.s___60849.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___28617.fields["_lastX"]; + r0 = s.s___60849.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___28650 = (r0); - r0 = s.s___28617.fields["_y"]; + s.xDiff___60882 = (r0); + r0 = s.s___60849.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___28617.fields["_lastY"]; + r0 = s.s___60849.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___28657 = (r0); + s.yDiff___60889 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___28664 = (r0); - r0 = (s.xDiff___28650 !== 0); + s.overlappedTiles___60896 = (r0); + r0 = (s.xDiff___60882 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 39; continue; } - r0 = (s.xDiff___28650 > 0); - s.right___28669 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___28669); + r0 = (s.xDiff___60882 > 0); + s.right___60901 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___60901); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P18086_mk(s); - s.tmp_1.arg0 = s.hbox___28640; + s.tmp_1 = game_Hitbox_right__P50293_mk(s); + s.tmp_1.arg0 = s.hbox___60872; s.callLocIdx = 535; s.pc = 86; return s.tmp_1; case 86: r0 = s.retval; @@ -27167,8 +27187,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P18084_mk(s); - s.tmp_3.arg0 = s.hbox___28640; + s.tmp_3 = game_Hitbox_left__P50291_mk(s); + s.tmp_3.arg0 = s.hbox___60872; s.callLocIdx = 537; s.pc = 87; return s.tmp_3; case 87: r0 = s.retval; @@ -27179,30 +27199,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___28673 = (r0); + s.x0___60905 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___28688 = (r0); - s.tmp_1 = game_Hitbox_top__P18085_mk(s); - s.tmp_1.arg0 = s.hbox___28640; + s.collidedTiles___60920 = (r0); + s.tmp_1 = game_Hitbox_top__P50292_mk(s); + s.tmp_1.arg0 = s.hbox___60872; s.callLocIdx = 541; s.pc = 88; return s.tmp_1; case 88: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___28657); - s.y___28690 = (r0); + r0 = (s.tmp_0 - s.yDiff___60889); + s.y___60922 = (r0); case 9: - s.tmp_1 = r0 = s.y___28690; - s.tmp_3 = r0 = s.tileSize___28646; - s.tmp_6 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_6.arg0 = s.hbox___28640; + s.tmp_1 = r0 = s.y___60922; + s.tmp_3 = r0 = s.tileSize___60878; + s.tmp_6 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_6.arg0 = s.hbox___60872; s.callLocIdx = 543; s.pc = 89; return s.tmp_6; case 89: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___28657); + r0 = (s.tmp_5 - s.yDiff___60889); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -27212,15 +27232,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P16279_mk(s); - s.tmp_10.arg0 = s.y___28690; - s.tmp_12 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_12.arg0 = s.hbox___28640; + s.tmp_10 = Fx_min__P48486_mk(s); + s.tmp_10.arg0 = s.y___60922; + s.tmp_12 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_12.arg0 = s.hbox___60872; s.callLocIdx = 546; s.pc = 91; return s.tmp_12; case 91: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___28657); + r0 = (s.tmp_11 - s.yDiff___60889); s.tmp_10.arg1 = r0; s.callLocIdx = 548; s.pc = 90; return s.tmp_10; case 90: @@ -27228,33 +27248,33 @@ switch (step) { s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___28704 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P18459_mk(s); + s.y0___60936 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P50666_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___28673; - s.tmp_1.arg2 = s.y0___28704; + s.tmp_1.arg1 = s.x0___60905; + s.tmp_1.arg2 = s.y0___60936; s.callLocIdx = 551; s.pc = 92; return s.tmp_1; case 92: 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__P18460_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P50667_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28673; - s.tmp_2.arg2 = s.y0___28704; + s.tmp_2.arg1 = s.x0___60905; + s.tmp_2.arg2 = s.y0___60936; s.callLocIdx = 552; s.pc = 93; return s.tmp_2; case 93: r0 = s.retval; - s.obstacle___28720 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P28728); + s.obstacle___60952 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P60960); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___28720); - s.tmp_4 = helpers_arraySome__P16221_mk(s); - s.tmp_4.arg0 = s.collidedTiles___28688; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___60952); + s.tmp_4 = helpers_arraySome__P48428_mk(s); + s.tmp_4.arg0 = s.collidedTiles___60920; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 553; s.pc = 94; return s.tmp_4; case 94: @@ -27266,33 +27286,33 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___28688, s.obstacle___28720); + r0 = pxsim_Array__push(s.collidedTiles___60920, s.obstacle___60952); case 10: case 11: { step = 13; continue; } case 12: - s.tmp_0 = r0 = s.overlappedTiles___28664; - s.tmp_2 = tiles_TileMap_getTile__P18452_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___60896; + s.tmp_2 = tiles_TileMap_getTile__P50659_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28673; - s.tmp_2.arg2 = s.y0___28704; + s.tmp_2.arg1 = s.x0___60905; + s.tmp_2.arg2 = s.y0___60936; s.callLocIdx = 554; s.pc = 95; return s.tmp_2; case 95: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 13: - r0 = (s.tileSize___28646 << 8); + r0 = (s.tileSize___60878 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___28690); - s.y___28690 = (r0); + r0 = (s.tmp_0 + s.y___60922); + s.y___60922 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___28688); + r0 = pxsim_Array__length(s.collidedTiles___60920); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___28669); + r0 = pxsim_numops_toBoolDecr(s.right___60901); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -27301,23 +27321,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___28754 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___28669); + s.collisionDirection___60986 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___60901); if (!r0) { step = 17; continue; } - r0 = (s.x0___28673 << s.tileScale___28643); + r0 = (s.x0___60905 << s.tileScale___60875); 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___28640.fields["width"]; + r0 = s.hbox___60872.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___28673 + 1); + r0 = (s.x0___60905 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___28643); + r0 = (s.tmp_5 << s.tileScale___60875); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -27325,44 +27345,44 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___28617; - r0 = s.hbox___28640.fields["ox"]; + s.tmp_8 = r0 = s.s___60849; + r0 = s.hbox___60872.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___28780 = (undefined); - s.unnamed148___U15 = (s.collidedTiles___28688); - s.unnamed149___U16 = (0); + s.tile___61012 = (undefined); + s.unnamed308___U15 = (s.collidedTiles___60920); + s.unnamed309___U16 = (0); case 19: - s.tmp_0 = r0 = s.unnamed149___U16; - r0 = pxsim_Array__length(s.unnamed148___U15); + s.tmp_0 = r0 = s.unnamed309___U16; + r0 = pxsim_Array__length(s.unnamed308___U15); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed148___U15, s.unnamed149___U16); - s.tile___28780 = (r0); - s.tmp_2 = Sprite_registerObstacle__P18207_mk(s); - s.tmp_2.arg0 = s.s___28617; - s.tmp_2.arg1 = s.collisionDirection___28754; - s.tmp_2.arg2 = s.tile___28780; + r0 = pxsim_Array__getAt(s.unnamed308___U15, s.unnamed309___U16); + s.tile___61012 = (r0); + s.tmp_2 = Sprite_registerObstacle__P50414_mk(s); + s.tmp_2.arg0 = s.s___60849; + s.tmp_2.arg1 = s.collisionDirection___60986; + s.tmp_2.arg2 = s.tile___61012; s.tmp_2.arg3 = s.arg2; s.callLocIdx = 560; s.pc = 96; return s.tmp_2; case 96: r0 = s.retval; - r0 = (s.unnamed149___U16 + 1); - s.unnamed149___U16 = (r0); + r0 = (s.unnamed309___U16 + 1); + s.unnamed309___U16 = (r0); { step = 19; continue; } case 20: - s.unnamed148___U15 = (undefined); - r0 = s.s___28617.fields["flags"]; + s.unnamed308___U15 = (undefined); + r0 = s.s___60849.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 = 21; continue; } - s.tmp_2 = Sprite_destroy__P18209_mk(s); - s.tmp_2.arg0 = s.s___28617; + s.tmp_2 = Sprite_destroy__P50416_mk(s); + s.tmp_2.arg0 = s.s___60849; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 561; s.pc = 97; return s.tmp_2; @@ -27370,7 +27390,7 @@ switch (step) { r0 = s.retval; { step = 36; continue; } case 21: - r0 = s.s___28617.fields["_vx"]; + r0 = s.s___60849.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -27378,13 +27398,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = s.s___28617.fields["flags"]; + r0 = s.s___60849.fields["flags"]; s.tmp_4 = r0; r0 = (s.tmp_4 & 32); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 30; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___28669); + r0 = pxsim_numops_toBoolDecr(s.right___60901); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -27393,8 +27413,8 @@ switch (step) { r0 = s.tmp_5; { step = 23; continue; } case 22: - s.tmp_8 = Sprite_vx__P18151_mk(s); - s.tmp_8.arg0 = s.s___28617; + s.tmp_8 = Sprite_vx__P50358_mk(s); + s.tmp_8.arg0 = s.s___60849; s.callLocIdx = 562; s.pc = 98; return s.tmp_8; case 98: r0 = s.retval; @@ -27408,14 +27428,14 @@ switch (step) { r0 = s.tmp_9; { step = 27; continue; } case 24: - s.tmp_10 = r0 = s.right___28669; + s.tmp_10 = r0 = s.right___60901; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 25; continue; } r0 = s.tmp_10; { step = 26; continue; } case 25: - s.tmp_12 = Sprite_vx__P18151_mk(s); - s.tmp_12.arg0 = s.s___28617; + s.tmp_12 = Sprite_vx__P50358_mk(s); + s.tmp_12.arg0 = s.s___60849; s.callLocIdx = 563; s.pc = 99; return s.tmp_12; case 99: r0 = s.retval; @@ -27430,8 +27450,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 28; continue; } - s.tmp_15 = r0 = s.s___28617; - r0 = s.s___28617.fields["_vx"]; + s.tmp_15 = r0 = s.s___60849; + r0 = s.s___60849.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -27453,12 +27473,12 @@ switch (step) { { step = 31; continue; } case 30: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___28617).fields["_vx"] = (0); + r0 = (s.s___60849).fields["_vx"] = (0); case 31: { step = 35; continue; } case 32: - s.tmp_2 = Math_sign__P16242_mk(s); - r0 = s.s___28617.fields["_vx"]; + s.tmp_2 = Math_sign__P48449_mk(s); + r0 = s.s___60849.fields["_vx"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -27468,7 +27488,7 @@ switch (step) { case 100: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P16242_mk(s); + s.tmp_6 = Math_sign__P48449_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -27492,16 +27512,16 @@ switch (step) { case 38: case 39: case 40: - r0 = (s.yDiff___28657 !== 0); + r0 = (s.yDiff___60889 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 73; continue; } - r0 = (s.yDiff___28657 > 0); - s.down___28858 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___28858); + r0 = (s.yDiff___60889 > 0); + s.down___61090 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___61090); if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_1.arg0 = s.hbox___28640; + s.tmp_1 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_1.arg0 = s.hbox___60872; s.callLocIdx = 571; s.pc = 102; return s.tmp_1; case 102: r0 = s.retval; @@ -27509,8 +27529,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 42; continue; } case 41: - s.tmp_3 = game_Hitbox_top__P18085_mk(s); - s.tmp_3.arg0 = s.hbox___28640; + s.tmp_3 = game_Hitbox_top__P50292_mk(s); + s.tmp_3.arg0 = s.hbox___60872; s.callLocIdx = 573; s.pc = 103; return s.tmp_3; case 103: r0 = s.retval; @@ -27521,25 +27541,25 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___28862 = (r0); + s.y0___61094 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___28877 = (r0); + s.collidedTiles___61109 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___28879 = (r0); - s.tmp_0 = game_Hitbox_left__P18084_mk(s); - s.tmp_0.arg0 = s.hbox___28640; + s.overlappedTiles___61111 = (r0); + s.tmp_0 = game_Hitbox_left__P50291_mk(s); + s.tmp_0.arg0 = s.hbox___60872; s.callLocIdx = 577; s.pc = 104; return s.tmp_0; case 104: r0 = s.retval; - s.x___28881 = (r0); + s.x___61113 = (r0); case 43: - s.tmp_1 = r0 = s.x___28881; - s.tmp_3 = r0 = s.tileSize___28646; - s.tmp_5 = game_Hitbox_right__P18086_mk(s); - s.tmp_5.arg0 = s.hbox___28640; + s.tmp_1 = r0 = s.x___61113; + s.tmp_3 = r0 = s.tileSize___60878; + s.tmp_5 = game_Hitbox_right__P50293_mk(s); + s.tmp_5.arg0 = s.hbox___60872; s.callLocIdx = 578; s.pc = 105; return s.tmp_5; case 105: r0 = s.retval; @@ -27552,10 +27572,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 48; continue; } - s.tmp_9 = Fx_min__P16279_mk(s); - s.tmp_9.arg0 = s.x___28881; - s.tmp_10 = game_Hitbox_right__P18086_mk(s); - s.tmp_10.arg0 = s.hbox___28640; + s.tmp_9 = Fx_min__P48486_mk(s); + s.tmp_9.arg0 = s.x___61113; + s.tmp_10 = game_Hitbox_right__P50293_mk(s); + s.tmp_10.arg0 = s.hbox___60872; s.callLocIdx = 580; s.pc = 107; return s.tmp_10; case 107: r0 = s.retval; @@ -27566,33 +27586,33 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___28891 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P18459_mk(s); + s.x0___61123 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P50666_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___28891; - s.tmp_1.arg2 = s.y0___28862; + s.tmp_1.arg1 = s.x0___61123; + s.tmp_1.arg2 = s.y0___61094; s.callLocIdx = 584; s.pc = 108; return s.tmp_1; case 108: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 46; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P18460_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P50667_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28891; - s.tmp_2.arg2 = s.y0___28862; + s.tmp_2.arg1 = s.x0___61123; + s.tmp_2.arg2 = s.y0___61094; s.callLocIdx = 585; s.pc = 109; return s.tmp_2; case 109: r0 = s.retval; - s.obstacle___28905 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P28913); + s.obstacle___61137 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P61145); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___28905); - s.tmp_4 = helpers_arraySome__P16221_mk(s); - s.tmp_4.arg0 = s.collidedTiles___28877; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___61137); + s.tmp_4 = helpers_arraySome__P48428_mk(s); + s.tmp_4.arg0 = s.collidedTiles___61109; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 586; s.pc = 110; return s.tmp_4; case 110: @@ -27604,33 +27624,33 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 44; continue; } - r0 = pxsim_Array__push(s.collidedTiles___28877, s.obstacle___28905); + r0 = pxsim_Array__push(s.collidedTiles___61109, s.obstacle___61137); case 44: case 45: { step = 47; continue; } case 46: - s.tmp_0 = r0 = s.overlappedTiles___28879; - s.tmp_2 = tiles_TileMap_getTile__P18452_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___61111; + s.tmp_2 = tiles_TileMap_getTile__P50659_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28891; - s.tmp_2.arg2 = s.y0___28862; + s.tmp_2.arg1 = s.x0___61123; + s.tmp_2.arg2 = s.y0___61094; s.callLocIdx = 587; s.pc = 111; return s.tmp_2; case 111: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 47: - r0 = (s.tileSize___28646 << 8); + r0 = (s.tileSize___60878 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___28881); - s.x___28881 = (r0); + r0 = (s.tmp_0 + s.x___61113); + s.x___61113 = (r0); { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___28877); + r0 = pxsim_Array__length(s.collidedTiles___61109); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___28858); + r0 = pxsim_numops_toBoolDecr(s.down___61090); if (!r0) { step = 49; continue; } r0 = 3; { step = 50; continue; } @@ -27639,23 +27659,23 @@ switch (step) { case 50: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___28939 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___28858); + s.collisionDirection___61171 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___61090); if (!r0) { step = 51; continue; } - r0 = (s.y0___28862 << s.tileScale___28643); + r0 = (s.y0___61094 << s.tileScale___60875); 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___28640.fields["height"]; + r0 = s.hbox___60872.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 52; continue; } case 51: - r0 = (s.y0___28862 + 1); + r0 = (s.y0___61094 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___28643); + r0 = (s.tmp_5 << s.tileScale___60875); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -27663,44 +27683,44 @@ switch (step) { case 52: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___28617; - r0 = s.hbox___28640.fields["oy"]; + s.tmp_8 = r0 = s.s___60849; + r0 = s.hbox___60872.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___28965 = (undefined); - s.unnamed150___U26 = (s.collidedTiles___28877); - s.unnamed151___U27 = (0); + s.tile___61197 = (undefined); + s.unnamed310___U26 = (s.collidedTiles___61109); + s.unnamed311___U27 = (0); case 53: - s.tmp_0 = r0 = s.unnamed151___U27; - r0 = pxsim_Array__length(s.unnamed150___U26); + s.tmp_0 = r0 = s.unnamed311___U27; + r0 = pxsim_Array__length(s.unnamed310___U26); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 54; continue; } - r0 = pxsim_Array__getAt(s.unnamed150___U26, s.unnamed151___U27); - s.tile___28965 = (r0); - s.tmp_2 = Sprite_registerObstacle__P18207_mk(s); - s.tmp_2.arg0 = s.s___28617; - s.tmp_2.arg1 = s.collisionDirection___28939; - s.tmp_2.arg2 = s.tile___28965; + r0 = pxsim_Array__getAt(s.unnamed310___U26, s.unnamed311___U27); + s.tile___61197 = (r0); + s.tmp_2 = Sprite_registerObstacle__P50414_mk(s); + s.tmp_2.arg0 = s.s___60849; + s.tmp_2.arg1 = s.collisionDirection___61171; + s.tmp_2.arg2 = s.tile___61197; s.tmp_2.arg3 = s.arg2; s.callLocIdx = 593; s.pc = 112; return s.tmp_2; case 112: r0 = s.retval; - r0 = (s.unnamed151___U27 + 1); - s.unnamed151___U27 = (r0); + r0 = (s.unnamed311___U27 + 1); + s.unnamed311___U27 = (r0); { step = 53; continue; } case 54: - s.unnamed150___U26 = (undefined); - r0 = s.s___28617.fields["flags"]; + s.unnamed310___U26 = (undefined); + r0 = s.s___60849.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 = 55; continue; } - s.tmp_2 = Sprite_destroy__P18209_mk(s); - s.tmp_2.arg0 = s.s___28617; + s.tmp_2 = Sprite_destroy__P50416_mk(s); + s.tmp_2.arg0 = s.s___60849; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 594; s.pc = 113; return s.tmp_2; @@ -27708,7 +27728,7 @@ switch (step) { r0 = s.retval; { step = 70; continue; } case 55: - r0 = s.s___28617.fields["_vy"]; + r0 = s.s___60849.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -27716,13 +27736,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 66; continue; } - r0 = s.s___28617.fields["flags"]; + r0 = s.s___60849.fields["flags"]; s.tmp_4 = r0; r0 = (s.tmp_4 & 32); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 64; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___28858); + r0 = pxsim_numops_toBoolDecr(s.down___61090); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -27731,8 +27751,8 @@ switch (step) { r0 = s.tmp_5; { step = 57; continue; } case 56: - s.tmp_8 = Sprite_vy__P18153_mk(s); - s.tmp_8.arg0 = s.s___28617; + s.tmp_8 = Sprite_vy__P50360_mk(s); + s.tmp_8.arg0 = s.s___60849; s.callLocIdx = 595; s.pc = 114; return s.tmp_8; case 114: r0 = s.retval; @@ -27746,14 +27766,14 @@ switch (step) { r0 = s.tmp_9; { step = 61; continue; } case 58: - s.tmp_10 = r0 = s.down___28858; + s.tmp_10 = r0 = s.down___61090; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 59; continue; } r0 = s.tmp_10; { step = 60; continue; } case 59: - s.tmp_12 = Sprite_vy__P18153_mk(s); - s.tmp_12.arg0 = s.s___28617; + s.tmp_12 = Sprite_vy__P50360_mk(s); + s.tmp_12.arg0 = s.s___60849; s.callLocIdx = 596; s.pc = 115; return s.tmp_12; case 115: r0 = s.retval; @@ -27768,8 +27788,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 62; continue; } - s.tmp_15 = r0 = s.s___28617; - r0 = s.s___28617.fields["_vy"]; + s.tmp_15 = r0 = s.s___60849; + r0 = s.s___60849.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -27791,12 +27811,12 @@ switch (step) { { step = 65; continue; } case 64: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___28617).fields["_vy"] = (0); + r0 = (s.s___60849).fields["_vy"] = (0); case 65: { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P16242_mk(s); - r0 = s.s___28617.fields["_vy"]; + s.tmp_2 = Math_sign__P48449_mk(s); + r0 = s.s___60849.fields["_vy"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -27806,7 +27826,7 @@ switch (step) { case 116: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P16242_mk(s); + s.tmp_6 = Math_sign__P48449_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -27830,17 +27850,17 @@ switch (step) { case 72: case 73: case 74: - s.tmp_0 = game_Hitbox_left__P18084_mk(s); - s.tmp_0.arg0 = s.hbox___28640; + s.tmp_0 = game_Hitbox_left__P50291_mk(s); + s.tmp_0.arg0 = s.hbox___60872; s.callLocIdx = 604; s.pc = 118; return s.tmp_0; case 118: r0 = s.retval; - s.x___29040 = (r0); + s.x___61272 = (r0); case 75: - s.tmp_1 = r0 = s.x___29040; - s.tmp_3 = r0 = s.tileSize___28646; - s.tmp_5 = game_Hitbox_right__P18086_mk(s); - s.tmp_5.arg0 = s.hbox___28640; + s.tmp_1 = r0 = s.x___61272; + s.tmp_3 = r0 = s.tileSize___60878; + s.tmp_5 = game_Hitbox_right__P50293_mk(s); + s.tmp_5.arg0 = s.hbox___60872; s.callLocIdx = 605; s.pc = 119; return s.tmp_5; case 119: r0 = s.retval; @@ -27853,10 +27873,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 80; continue; } - s.tmp_9 = Fx_min__P16279_mk(s); - s.tmp_9.arg0 = s.x___29040; - s.tmp_10 = game_Hitbox_right__P18086_mk(s); - s.tmp_10.arg0 = s.hbox___28640; + s.tmp_9 = Fx_min__P48486_mk(s); + s.tmp_9.arg0 = s.x___61272; + s.tmp_10 = game_Hitbox_right__P50293_mk(s); + s.tmp_10.arg0 = s.hbox___60872; s.callLocIdx = 607; s.pc = 121; return s.tmp_10; case 121: r0 = s.retval; @@ -27867,21 +27887,21 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___29050 = (r0); - s.tmp_0 = game_Hitbox_top__P18085_mk(s); - s.tmp_0.arg0 = s.hbox___28640; + s.x0___61282 = (r0); + s.tmp_0 = game_Hitbox_top__P50292_mk(s); + s.tmp_0.arg0 = s.hbox___60872; s.callLocIdx = 611; s.pc = 122; return s.tmp_0; case 122: r0 = s.retval; - s.y___29060 = (r0); + s.y___61292 = (r0); case 76: - s.tmp_1 = r0 = s.y___29060; - s.tmp_3 = r0 = s.tileSize___28646; - s.tmp_5 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_5.arg0 = s.hbox___28640; + s.tmp_1 = r0 = s.y___61292; + s.tmp_3 = r0 = s.tileSize___60878; + s.tmp_5 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_5.arg0 = s.hbox___60872; s.callLocIdx = 612; s.pc = 123; return s.tmp_5; case 123: r0 = s.retval; @@ -27894,10 +27914,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - s.tmp_9 = Fx_min__P16279_mk(s); - s.tmp_9.arg0 = s.y___29060; - s.tmp_10 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_10.arg0 = s.hbox___28640; + s.tmp_9 = Fx_min__P48486_mk(s); + s.tmp_9.arg0 = s.y___61292; + s.tmp_10 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_10.arg0 = s.hbox___60872; s.callLocIdx = 614; s.pc = 125; return s.tmp_10; case 125: r0 = s.retval; @@ -27908,14 +27928,14 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___28643 + 8); + r0 = (s.tileScale___60875 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___29070 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P18459_mk(s); + s.y0___61302 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P50666_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___29050; - s.tmp_3.arg2 = s.y0___29070; + s.tmp_3.arg1 = s.x0___61282; + s.tmp_3.arg2 = s.y0___61302; s.callLocIdx = 618; s.pc = 126; return s.tmp_3; case 126: r0 = s.retval; @@ -27926,11 +27946,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 77; continue; } - s.tmp_4 = r0 = s.overlappedTiles___28664; - s.tmp_6 = tiles_TileMap_getTile__P18452_mk(s); + s.tmp_4 = r0 = s.overlappedTiles___60896; + s.tmp_6 = tiles_TileMap_getTile__P50659_mk(s); s.tmp_6.arg0 = s.arg2; - s.tmp_6.arg1 = s.x0___29050; - s.tmp_6.arg2 = s.y0___29070; + s.tmp_6.arg1 = s.x0___61282; + s.tmp_6.arg2 = s.y0___61302; s.callLocIdx = 619; s.pc = 127; return s.tmp_6; case 127: r0 = s.retval; @@ -27938,26 +27958,26 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_4, s.tmp_5); case 77: case 78: - r0 = (s.tileSize___28646 << 8); + r0 = (s.tileSize___60878 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___29060); - s.y___29060 = (r0); + r0 = (s.tmp_0 + s.y___61292); + s.y___61292 = (r0); { step = 76; continue; } case 79: - r0 = (s.tileSize___28646 << 8); + r0 = (s.tileSize___60878 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___29040); - s.x___29040 = (r0); + r0 = (s.tmp_0 + s.x___61272); + s.x___61272 = (r0); { step = 75; continue; } case 80: - r0 = pxsim_Array__length(s.overlappedTiles___28664); + r0 = pxsim_Array__length(s.overlappedTiles___60896); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 81; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P19871_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P52078_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___28617; - s.tmp_1.arg2 = s.overlappedTiles___28664; + s.tmp_1.arg1 = s.s___60849; + s.tmp_1.arg2 = s.overlappedTiles___60896; s.callLocIdx = 622; s.pc = 128; return s.tmp_1; case 128: r0 = s.retval; @@ -27968,12 +27988,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P19870.info = {"start":11980,"length":8619,"line":371,"column":4,"endLine":607,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P52077.info = {"start":11980,"length":8619,"line":371,"column":4,"endLine":607,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P19870_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P52077_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P19870, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P52077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27993,38 +28013,38 @@ function ArcadePhysicsEngine_tilemapCollisions__P19870_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___28617: undefined, - hbox___28640: undefined, - tileScale___28643: undefined, - tileSize___28646: undefined, - xDiff___28650: undefined, - yDiff___28657: undefined, - overlappedTiles___28664: undefined, - right___28669: undefined, - x0___28673: undefined, - collidedTiles___28688: undefined, - y___28690: undefined, - y0___28704: undefined, - obstacle___28720: undefined, - collisionDirection___28754: undefined, - tile___28780: undefined, - unnamed148___U15: undefined, - unnamed149___U16: undefined, - down___28858: undefined, - y0___28862: undefined, - collidedTiles___28877: undefined, - overlappedTiles___28879: undefined, - x___28881: undefined, - x0___28891: undefined, - obstacle___28905: undefined, - collisionDirection___28939: undefined, - tile___28965: undefined, - unnamed150___U26: undefined, - unnamed151___U27: undefined, - x___29040: undefined, - x0___29050: undefined, - y___29060: undefined, - y0___29070: undefined, + s___60849: undefined, + hbox___60872: undefined, + tileScale___60875: undefined, + tileSize___60878: undefined, + xDiff___60882: undefined, + yDiff___60889: undefined, + overlappedTiles___60896: undefined, + right___60901: undefined, + x0___60905: undefined, + collidedTiles___60920: undefined, + y___60922: undefined, + y0___60936: undefined, + obstacle___60952: undefined, + collisionDirection___60986: undefined, + tile___61012: undefined, + unnamed308___U15: undefined, + unnamed309___U16: undefined, + down___61090: undefined, + y0___61094: undefined, + collidedTiles___61109: undefined, + overlappedTiles___61111: undefined, + x___61113: undefined, + x0___61123: undefined, + obstacle___61137: undefined, + collisionDirection___61171: undefined, + tile___61197: undefined, + unnamed310___U26: undefined, + unnamed311___U27: undefined, + x___61272: undefined, + x0___61282: undefined, + y___61292: undefined, + y0___61302: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28034,7 +28054,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P19870_mk(s) { -function inline__P28728(s) { +function inline__P60960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28056,12 +28076,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28728.info = {"start":14101,"length":39,"line":435,"column":44,"endLine":435,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P60960.info = {"start":14101,"length":39,"line":435,"column":44,"endLine":435,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P28728_mk(s) { +function inline__P60960_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28728, depth: s.depth + 1, + parent: s, fn: inline__P60960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28072,7 +28092,7 @@ function inline__P28728_mk(s) { -function inline__P28913(s) { +function inline__P61145(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28094,12 +28114,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28913.info = {"start":17336,"length":39,"line":517,"column":44,"endLine":517,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P61145.info = {"start":17336,"length":39,"line":517,"column":44,"endLine":517,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P28913_mk(s) { +function inline__P61145_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28913, depth: s.depth + 1, + parent: s, fn: inline__P61145, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28110,7 +28130,7 @@ function inline__P28913_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P19871(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P52078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28120,11 +28140,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___29109 = undefined; - s.tile___29112 = undefined; - s.unnamed152___U2 = undefined; - s.unnamed153___U3 = undefined; - s.tileOverlapHandlers___29133 = undefined; + s.alreadyHandled___61341 = undefined; + s.tile___61344 = undefined; + s.unnamed312___U2 = undefined; + s.unnamed313___U3 = undefined; + s.tileOverlapHandlers___61365 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28132,25 +28152,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___29109 = (r0); - s.tile___29112 = (undefined); - s.unnamed152___U2 = (s.arg2); - s.unnamed153___U3 = (0); + s.alreadyHandled___61341 = (r0); + s.tile___61344 = (undefined); + s.unnamed312___U2 = (s.arg2); + s.unnamed313___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed153___U3; - r0 = pxsim_Array__length(s.unnamed152___U2); + s.tmp_0 = r0 = s.unnamed313___U3; + r0 = pxsim_Array__length(s.unnamed312___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed152___U2, s.unnamed153___U3); - s.tile___29112 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P29116); + r0 = pxsim_Array__getAt(s.unnamed312___U2, s.unnamed313___U3); + s.tile___61344 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P61348); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___29112); - s.tmp_4 = helpers_arraySome__P16221_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___29109; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___61344); + s.tmp_4 = helpers_arraySome__P48428_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___61341; s.tmp_4.arg1 = s.tmp_2; s.callLocIdx = 627; s.pc = 8; return s.tmp_4; case 8: @@ -28161,26 +28181,26 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___29109, s.tile___29112); - s.tmp_0 = game_currentScene__P18648_mk(s); + r0 = pxsim_Array__push(s.alreadyHandled___61341, s.tile___61344); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 628; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___29133 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___29133); + s.tileOverlapHandlers___61365 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___61365); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P29141); + r0 = pxsim_pxtcore_mkAction(2, inline__P61373); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___29112); - r0 = pxsim_pxtcore_mkAction(2, inline__P29157); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___61344); + r0 = pxsim_pxtcore_mkAction(2, inline__P61389); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___29112); - s.tmp_2 = helpers_arrayForEach__P16223_mk(s); - s.tmp_3 = helpers_arrayFilter__P16224_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___29133; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___61344); + s.tmp_2 = helpers_arrayForEach__P48430_mk(s); + s.tmp_3 = helpers_arrayFilter__P48431_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___61365; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 631; s.pc = 11; return s.tmp_3; case 11: @@ -28193,32 +28213,32 @@ switch (step) { case 4: case 5: case 6: - r0 = (s.unnamed153___U3 + 1); - s.unnamed153___U3 = (r0); + r0 = (s.unnamed313___U3 + 1); + s.unnamed313___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed152___U2 = (undefined); + s.unnamed312___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P19871.info = {"start":20876,"length":699,"line":615,"column":4,"endLine":631,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P52078.info = {"start":20876,"length":699,"line":615,"column":4,"endLine":631,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P19871_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P52078_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P19871, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P52078, depth: s.depth + 1, pc: 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___29109: undefined, - tile___29112: undefined, - unnamed152___U2: undefined, - unnamed153___U3: undefined, - tileOverlapHandlers___29133: undefined, + alreadyHandled___61341: undefined, + tile___61344: undefined, + unnamed312___U2: undefined, + unnamed313___U3: undefined, + tileOverlapHandlers___61365: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28228,7 +28248,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P19871_mk(s) { -function inline__P29116(s) { +function inline__P61348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28265,12 +28285,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29116.info = {"start":21089,"length":45,"line":619,"column":36,"endLine":619,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +inline__P61348.info = {"start":21089,"length":45,"line":619,"column":36,"endLine":619,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function inline__P29116_mk(s) { +function inline__P61348_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29116, depth: s.depth + 1, + parent: s, fn: inline__P61348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28285,7 +28305,7 @@ function inline__P29116_mk(s) { -function inline__P29141(s) { +function inline__P61373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28312,7 +28332,7 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P18468_mk(s); + s.tmp_5 = tiles_getTileImage__P50675_mk(s); s.tmp_5.arg0 = s.caps[1]; s.callLocIdx = 630; s.pc = 3; return s.tmp_5; case 3: @@ -28326,12 +28346,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29141.info = {"start":21403,"length":81,"line":627,"column":28,"endLine":627,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P61373.info = {"start":21403,"length":81,"line":627,"column":28,"endLine":627,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29141_mk(s) { +function inline__P61373_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29141, depth: s.depth + 1, + parent: s, fn: inline__P61373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28347,7 +28367,7 @@ function inline__P29141_mk(s) { -function inline__P29157(s) { +function inline__P61389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28380,12 +28400,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29157.info = {"start":21515,"length":28,"line":628,"column":29,"endLine":628,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P61389.info = {"start":21515,"length":28,"line":628,"column":29,"endLine":628,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29157_mk(s) { +function inline__P61389_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29157, depth: s.depth + 1, + parent: s, fn: inline__P61389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28395,7 +28415,7 @@ function inline__P29157_mk(s) { -function tiles_getTileImage__P18468(s) { +function tiles_getTileImage__P50675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28405,16 +28425,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___29165 = undefined; + s.scene___61397 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P18648_mk(s); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 754; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___29165 = (r0); + s.scene___61397 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -28424,7 +28444,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___29165.fields["tileMap"]; + r0 = s.scene___61397.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -28434,14 +28454,14 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex29175); + r0 = pxsim.image.ofBuffer(_hex61407); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P18462_mk(s); - r0 = s.scene___29165.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P50669_mk(s); + r0 = s.scene___61397.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P18418_mk(s); + s.tmp_6 = tiles_Location_tileSet__P50625_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 755; s.pc = 8; return s.tmp_6; case 8: @@ -28454,12 +28474,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_getTileImage__P18468.info = {"start":16636,"length":207,"line":525,"column":4,"endLine":529,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P50675.info = {"start":16636,"length":207,"line":525,"column":4,"endLine":529,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P18468_mk(s) { +function tiles_getTileImage__P50675_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P18468, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P50675, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28468,16 +28488,16 @@ function tiles_getTileImage__P18468_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___29165: undefined, + scene___61397: undefined, arg0: undefined, } } -const _hex29175 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex61407 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P18462(s) { +function tiles_TileMap_getTileImage__P50669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28493,8 +28513,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P18436_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P50643_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -28504,12 +28524,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P18462.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getTileImage__P50669.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMap_getTileImage__P18462_mk(s) { +function tiles_TileMap_getTileImage__P50669_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P18462, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P50669, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28520,7 +28540,7 @@ function tiles_TileMap_getTileImage__P18462_mk(s) { -function tiles_TileMapData_getTileImage__P18436(s) { +function tiles_TileMapData_getTileImage__P50643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28530,25 +28550,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___29228 = undefined; - s.cachedImage___29232 = undefined; - s.originalImage___29239 = undefined; + s.size___61460 = undefined; + s.cachedImage___61464 = undefined; + s.originalImage___61471 = 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__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___29228 = (r0); + s.size___61460 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___29232 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___29232); + s.cachedImage___61464 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___61464); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -28557,58 +28577,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___29239 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___29239); + s.originalImage___61471 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___61471); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___29239); + r0 = pxsim_ImageMethods.width(s.originalImage___61471); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___29228); + r0 = (s.tmp_1 <= s.size___61460); 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___29239); + r0 = pxsim_ImageMethods.height(s.originalImage___61471); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___29228); + r0 = (s.tmp_2 <= s.size___61460); 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___29232 = (s.originalImage___29239); + s.cachedImage___61464 = (s.originalImage___61471); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___29228, s.size___29228); - s.cachedImage___29232 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___29232, s.originalImage___29239, 0, 0); + r0 = pxsim.image.create(s.size___61460, s.size___61460); + s.cachedImage___61464 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___61464, s.originalImage___61471, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___29232); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___61464); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___29232; + r0 = s.cachedImage___61464; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P18436.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMapData_getTileImage__P50643.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMapData_getTileImage__P18436_mk(s) { +function tiles_TileMapData_getTileImage__P50643_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P18436, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P50643, depth: s.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___29228: undefined, - cachedImage___29232: undefined, - originalImage___29239: undefined, + size___61460: undefined, + cachedImage___61464: undefined, + originalImage___61471: undefined, arg0: undefined, arg1: undefined, } } @@ -28617,7 +28637,7 @@ function tiles_TileMapData_getTileImage__P18436_mk(s) { -function tiles_TileMapData_scale__P18431(s) { +function tiles_TileMapData_scale__P50638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28632,18 +28652,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P18431.info = {"start":3809,"length":66,"line":143,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMapData_scale__P18431.isGetter = true; +tiles_TileMapData_scale__P50638.info = {"start":3809,"length":66,"line":143,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMapData_scale__P50638.isGetter = true; -function tiles_TileMapData_scale__P18431_mk(s) { +function tiles_TileMapData_scale__P50638_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P18431, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P50638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28652,7 +28672,7 @@ function tiles_TileMapData_scale__P18431_mk(s) { -function tiles_Location_tileSet__P18418(s) { +function tiles_Location_tileSet__P50625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28667,8 +28687,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P18453_mk(s); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P50660_mk(s); r0 = s.arg0.fields["tileMap"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["_col"]; @@ -28681,13 +28701,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P18418.info = {"start":981,"length":101,"line":43,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} -tiles_Location_tileSet__P18418.isGetter = true; +tiles_Location_tileSet__P50625.info = {"start":981,"length":101,"line":43,"column":8,"endLine":45,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} +tiles_Location_tileSet__P50625.isGetter = true; -function tiles_Location_tileSet__P18418_mk(s) { +function tiles_Location_tileSet__P50625_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P18418, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P50625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28697,7 +28717,7 @@ function tiles_Location_tileSet__P18418_mk(s) { -function tiles_TileMap_getTileIndex__P18453(s) { +function tiles_TileMap_getTileIndex__P50660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28714,8 +28734,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P18433_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P50640_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -28726,12 +28746,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P18453.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +tiles_TileMap_getTileIndex__P50660.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function tiles_TileMap_getTileIndex__P18453_mk(s) { +function tiles_TileMap_getTileIndex__P50660_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P18453, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P50660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28743,7 +28763,7 @@ function tiles_TileMap_getTileIndex__P18453_mk(s) { -function tiles_TileMapData_getTile__P18433(s) { +function tiles_TileMapData_getTile__P50640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28760,8 +28780,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P18439_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P50646_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -28794,12 +28814,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P18433.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMapData_getTile__P50640.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_TileMapData_getTile__P18433_mk(s) { +function tiles_TileMapData_getTile__P50640_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P18433, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P50640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28819,7 +28839,7 @@ function tiles_TileMapData_getTile__P18433_mk(s) { -function tiles_TileMapData_isOutsideMap__P18439(s) { +function tiles_TileMapData_isOutsideMap__P50646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28836,7 +28856,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -28876,12 +28896,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P18439.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +tiles_TileMapData_isOutsideMap__P50646.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function tiles_TileMapData_isOutsideMap__P18439_mk(s) { +function tiles_TileMapData_isOutsideMap__P50646_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P18439, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P50646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28900,7 +28920,7 @@ function tiles_TileMapData_isOutsideMap__P18439_mk(s) { -function tiles_Location_row__P18414(s) { +function tiles_Location_row__P50621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28915,18 +28935,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P18414.info = {"start":467,"length":51,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} -tiles_Location_row__P18414.isGetter = true; +tiles_Location_row__P50621.info = {"start":467,"length":51,"line":23,"column":8,"endLine":25,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} +tiles_Location_row__P50621.isGetter = true; -function tiles_Location_row__P18414_mk(s) { +function tiles_Location_row__P50621_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P18414, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P50621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28935,7 +28955,7 @@ function tiles_Location_row__P18414_mk(s) { -function tiles_Location_col__P18413(s) { +function tiles_Location_col__P50620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28950,18 +28970,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_col__P18413.info = {"start":406,"length":51,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]} -tiles_Location_col__P18413.isGetter = true; +tiles_Location_col__P50620.info = {"start":406,"length":51,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]} +tiles_Location_col__P50620.isGetter = true; -function tiles_Location_col__P18413_mk(s) { +function tiles_Location_col__P50620_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P18413, depth: s.depth + 1, + parent: s, fn: tiles_Location_col__P50620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28970,7 +28990,7 @@ function tiles_Location_col__P18413_mk(s) { -function tiles_TileMap_getObstacle__P18460(s) { +function tiles_TileMap_getObstacle__P50667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28980,8 +29000,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___29398 = undefined; - s.tile___29410 = undefined; + s.index___61630 = undefined; + s.tile___61642 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28989,8 +29009,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P18439_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P50646_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -29004,7 +29024,7 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P18433_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P50640_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; @@ -29015,20 +29035,20 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_3 = r0; - s.index___29398 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P18436_mk(s); + s.index___61630 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P50643_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___29398; + s.tmp_0.arg1 = s.index___61630; s.callLocIdx = 734; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___29410 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C18268_VT); + s.tile___61642 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C50475_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P18274_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P50481_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___29410; + s.tmp_1.arg1 = s.tile___61642; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -29041,7 +29061,7 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___29398; + s.tmp_1.arg5 = s.index___61630; s.callLocIdx = 738; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; @@ -29049,12 +29069,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getObstacle__P18460.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_getObstacle__P50667.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_getObstacle__P18460_mk(s) { +function tiles_TileMap_getObstacle__P50667_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P18460, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P50667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29062,8 +29082,8 @@ function tiles_TileMap_getObstacle__P18460_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___29398: undefined, - tile___29410: undefined, + index___61630: undefined, + tile___61642: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29073,7 +29093,7 @@ function tiles_TileMap_getObstacle__P18460_mk(s) { -function tiles_TileMap_layer__P18448(s) { +function tiles_TileMap_layer__P50655(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29088,18 +29108,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P18448.info = {"start":6897,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_TileMap_layer__P18448.isGetter = true; +tiles_TileMap_layer__P50655.info = {"start":6897,"length":63,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} +tiles_TileMap_layer__P50655.isGetter = true; -function tiles_TileMap_layer__P18448_mk(s) { +function tiles_TileMap_layer__P50655_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P18448, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P50655, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29108,7 +29128,7 @@ function tiles_TileMap_layer__P18448_mk(s) { -function sprites_StaticObstacle_constructor__P18274(s) { +function sprites_StaticObstacle_constructor__P50481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29128,7 +29148,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C18268_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C50475_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -29138,12 +29158,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P18274.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__P50481.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__P18274_mk(s) { +function sprites_StaticObstacle_constructor__P50481_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P18274, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P50481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29157,7 +29177,7 @@ function sprites_StaticObstacle_constructor__P18274_mk(s) { -function tiles_TileMap_isObstacle__P18459(s) { +function tiles_TileMap_isObstacle__P50666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29174,7 +29194,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -29195,7 +29215,7 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P18439_mk(s); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P50646_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_8.arg0 = r0; s.tmp_8.arg1 = s.arg1; @@ -29221,12 +29241,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P18459.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_isObstacle__P50666.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_isObstacle__P18459_mk(s) { +function tiles_TileMap_isObstacle__P50666_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P18459, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P50666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29249,7 +29269,7 @@ function tiles_TileMap_isObstacle__P18459_mk(s) { -function tiles_TileMapData_isWall__P18438(s) { +function tiles_TileMapData_isWall__P50645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29266,7 +29286,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); @@ -29275,12 +29295,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P18438.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +tiles_TileMapData_isWall__P50645.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} -function tiles_TileMapData_isWall__P18438_mk(s) { +function tiles_TileMapData_isWall__P50645_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P18438, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P50645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29293,7 +29313,7 @@ function tiles_TileMapData_isWall__P18438_mk(s) { -function tiles_TileMap_getTile__P18452(s) { +function tiles_TileMap_getTile__P50659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29310,10 +29330,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C18412_VT); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C50619_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P18415_mk(s); + s.tmp_1 = tiles_Location_constructor__P50622_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -29325,12 +29345,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P18452.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMap_getTile__P50659.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_TileMap_getTile__P18452_mk(s) { +function tiles_TileMap_getTile__P50659_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P18452, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P50659, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29343,7 +29363,7 @@ function tiles_TileMap_getTile__P18452_mk(s) { -function tiles_Location_constructor__P18415(s) { +function tiles_Location_constructor__P50622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29361,7 +29381,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); r0 = (s.arg0).fields["_col"] = (s.arg1); r0 = (s.arg0).fields["_row"] = (s.arg2); r0 = (s.arg0).fields["tileMap"] = (s.arg3); @@ -29369,12 +29389,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P18415.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} +tiles_Location_constructor__P50622.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function tiles_Location_constructor__P18415_mk(s) { +function tiles_Location_constructor__P50622_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P18415, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P50622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -29386,7 +29406,7 @@ function tiles_Location_constructor__P18415_mk(s) { -function Sprite_registerObstacle__P18207(s) { +function Sprite_registerObstacle__P50414(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29396,10 +29416,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___29291 = undefined; - s.wallCollisionHandlers___29298 = undefined; - s.wallHandlersToRun___29323 = undefined; - s.asTileLocation___29336 = undefined; + s.collisionHandlers___61523 = undefined; + s.wallCollisionHandlers___61530 = undefined; + s.wallHandlersToRun___61555 = undefined; + s.asTileLocation___61568 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29408,11 +29428,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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__P18648_mk(s); + s.tmp_1 = game_currentScene__P50855_mk(s); s.callLocIdx = 352; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -29432,24 +29452,24 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___29291 = (r0); - s.tmp_0 = game_currentScene__P18648_mk(s); + s.collisionHandlers___61523 = (r0); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 354; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___29298 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___29291); + s.wallCollisionHandlers___61530 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___61523); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P29306); + r0 = pxsim_pxtcore_mkAction(1, inline__P61538); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P29312); + r0 = pxsim_pxtcore_mkAction(1, inline__P61544); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P16223_mk(s); - s.tmp_3 = helpers_arrayFilter__P16224_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___29291; + s.tmp_2 = helpers_arrayForEach__P48430_mk(s); + s.tmp_3 = helpers_arrayFilter__P48431_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___61523; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 356; s.pc = 13; return s.tmp_3; case 13: @@ -29461,7 +29481,7 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___29298); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___61530); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -29469,7 +29489,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P18648_mk(s); + s.tmp_1 = game_currentScene__P50855_mk(s); s.callLocIdx = 359; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; @@ -29478,21 +29498,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P29325); + r0 = pxsim_pxtcore_mkAction(1, inline__P61557); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P16224_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___29298; + s.tmp_1 = helpers_arrayFilter__P48431_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___61530; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 361; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___29323 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___29323); + s.wallHandlersToRun___61555 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___61555); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P18452_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P50659_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -29531,13 +29551,13 @@ switch (step) { s.callLocIdx = 366; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___29336 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P29352); + s.asTileLocation___61568 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P61584); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___29336); - s.tmp_1 = helpers_arrayForEach__P16223_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___29323; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___61568); + s.tmp_1 = helpers_arrayForEach__P48430_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___61555; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 368; s.pc = 19; return s.tmp_1; case 19: @@ -29550,12 +29570,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P18207.info = {"start":27125,"length":965,"line":821,"column":4,"endLine":841,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P50414.info = {"start":27125,"length":965,"line":821,"column":4,"endLine":841,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P18207_mk(s) { +function Sprite_registerObstacle__P50414_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P18207, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P50414, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29565,10 +29585,10 @@ function Sprite_registerObstacle__P18207_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___29291: undefined, - wallCollisionHandlers___29298: undefined, - wallHandlersToRun___29323: undefined, - asTileLocation___29336: undefined, + collisionHandlers___61523: undefined, + wallCollisionHandlers___61530: undefined, + wallHandlersToRun___61555: undefined, + asTileLocation___61568: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29579,7 +29599,7 @@ function Sprite_registerObstacle__P18207_mk(s) { -function inline__P29306(s) { +function inline__P61538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29601,12 +29621,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29306.info = {"start":27523,"length":26,"line":828,"column":24,"endLine":828,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P61538.info = {"start":27523,"length":26,"line":828,"column":24,"endLine":828,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29306_mk(s) { +function inline__P61538_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29306, depth: s.depth + 1, + parent: s, fn: inline__P61538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29617,7 +29637,7 @@ function inline__P29306_mk(s) { -function inline__P29312(s) { +function inline__P61544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29649,12 +29669,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29312.info = {"start":27576,"length":20,"line":829,"column":25,"endLine":829,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P61544.info = {"start":27576,"length":20,"line":829,"column":25,"endLine":829,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29312_mk(s) { +function inline__P61544_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29312, depth: s.depth + 1, + parent: s, fn: inline__P61544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29664,7 +29684,7 @@ function inline__P29312_mk(s) { -function inline__P29325(s) { +function inline__P61557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29686,12 +29706,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29325.info = {"start":27782,"length":32,"line":834,"column":24,"endLine":834,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P61557.info = {"start":27782,"length":32,"line":834,"column":24,"endLine":834,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29325_mk(s) { +function inline__P61557_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29325, depth: s.depth + 1, + parent: s, fn: inline__P61557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29702,7 +29722,7 @@ function inline__P29325_mk(s) { -function inline__P29352(s) { +function inline__P61584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29735,12 +29755,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29352.info = {"start":28022,"length":36,"line":838,"column":29,"endLine":838,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P61584.info = {"start":28022,"length":36,"line":838,"column":29,"endLine":838,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29352_mk(s) { +function inline__P61584_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29352, depth: s.depth + 1, + parent: s, fn: inline__P61584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29750,7 +29770,7 @@ function inline__P29352_mk(s) { -function Fx_min__P16279(s) { +function Fx_min__P48486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29781,12 +29801,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_min__P16279.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +Fx_min__P48486.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} -function Fx_min__P16279_mk(s) { +function Fx_min__P48486_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P16279, depth: s.depth + 1, + parent: s, fn: Fx_min__P48486, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29797,7 +29817,7 @@ function Fx_min__P16279_mk(s) { -function Fx_iadd__P16271(s) { +function Fx_iadd__P48478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29818,12 +29838,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_iadd__P16271.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__P48478.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__P16271_mk(s) { +function Fx_iadd__P48478_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P16271, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P48478, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29834,7 +29854,7 @@ function Fx_iadd__P16271_mk(s) { -function Fx_toIntShifted__P16269(s) { +function Fx_toIntShifted__P48476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29856,12 +29876,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P16269.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +Fx_toIntShifted__P48476.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} -function Fx_toIntShifted__P16269_mk(s) { +function Fx_toIntShifted__P48476_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P16269, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P48476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29873,7 +29893,7 @@ function Fx_toIntShifted__P16269_mk(s) { -function helpers_arraySome__P16221(s) { +function helpers_arraySome__P48428(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29883,26 +29903,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___29380 = undefined; - s.i___29383 = undefined; + s.len___61612 = undefined; + s.i___61615 = 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___29380 = (r0); - s.i___29383 = (0); + s.len___61612 = (r0); + s.i___61615 = (0); case 1: - r0 = (s.i___29383 < s.len___29380); + r0 = (s.i___61615 < s.len___61612); 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___29383); + r0 = pxsim_Array__getAt(s.arg0, s.i___61615); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___29383; + s.tmp_2.arg1 = s.i___61615; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: @@ -29914,8 +29934,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___29383 + 1); - s.i___29383 = (r0); + r0 = (s.i___61615 + 1); + s.i___61615 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -29923,18 +29943,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P16221.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__P48428.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__P16221_mk(s) { +function helpers_arraySome__P48428_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P16221, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P48428, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___29380: undefined, - i___29383: undefined, + len___61612: undefined, + i___61615: undefined, arg0: undefined, arg1: undefined, } } @@ -29943,7 +29963,7 @@ function helpers_arraySome__P16221_mk(s) { -function tiles_TileMap_isOnWall__P18461(s) { +function tiles_TileMap_isOnWall__P50668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29953,24 +29973,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___28515 = undefined; - s.left___28518 = undefined; - s.right___28524 = undefined; - s.top___28530 = undefined; - s.bottom___28536 = undefined; - s.col___28542 = undefined; - s.row___28548 = undefined; + s.hbox___60747 = undefined; + s.left___60750 = undefined; + s.right___60756 = undefined; + s.top___60762 = undefined; + s.bottom___60768 = undefined; + s.col___60774 = undefined; + s.row___60780 = 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__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___28515 = (r0); - s.tmp_1 = game_Hitbox_left__P18084_mk(s); - s.tmp_1.arg0 = s.hbox___28515; + s.hbox___60747 = (r0); + s.tmp_1 = game_Hitbox_left__P50291_mk(s); + s.tmp_1.arg0 = s.hbox___60747; s.callLocIdx = 739; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; @@ -29980,9 +30000,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___28518 = (r0); - s.tmp_1 = game_Hitbox_right__P18086_mk(s); - s.tmp_1.arg0 = s.hbox___28515; + s.left___60750 = (r0); + s.tmp_1 = game_Hitbox_right__P50293_mk(s); + s.tmp_1.arg0 = s.hbox___60747; s.callLocIdx = 742; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -29992,9 +30012,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___28524 = (r0); - s.tmp_1 = game_Hitbox_top__P18085_mk(s); - s.tmp_1.arg0 = s.hbox___28515; + s.right___60756 = (r0); + s.tmp_1 = game_Hitbox_top__P50292_mk(s); + s.tmp_1.arg0 = s.hbox___60747; s.callLocIdx = 745; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; @@ -30004,9 +30024,9 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___28530 = (r0); - s.tmp_1 = game_Hitbox_bottom__P18087_mk(s); - s.tmp_1.arg0 = s.hbox___28515; + s.top___60762 = (r0); + s.tmp_1 = game_Hitbox_bottom__P50294_mk(s); + s.tmp_1.arg0 = s.hbox___60747; s.callLocIdx = 748; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; @@ -30016,23 +30036,23 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___28536 = (r0); - s.col___28542 = (s.left___28518); + s.bottom___60768 = (r0); + s.col___60774 = (s.left___60750); case 1: - r0 = (s.col___28542 <= s.right___28524); + r0 = (s.col___60774 <= s.right___60756); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___28548 = (s.top___28530); + s.row___60780 = (s.top___60762); case 2: - r0 = (s.row___28548 <= s.bottom___28536); + r0 = (s.row___60780 <= s.bottom___60768); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P18459_mk(s); + s.tmp_2 = tiles_TileMap_isObstacle__P50666_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___28542; - s.tmp_2.arg2 = s.row___28548; + s.tmp_2.arg1 = s.col___60774; + s.tmp_2.arg2 = s.row___60780; s.callLocIdx = 751; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; @@ -30043,12 +30063,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___28548 + 1); - s.row___28548 = (r0); + r0 = (s.row___60780 + 1); + s.row___60780 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___28542 + 1); - s.col___28542 = (r0); + r0 = (s.col___60774 + 1); + s.col___60774 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -30056,24 +30076,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P18461.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_TileMap_isOnWall__P50668.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function tiles_TileMap_isOnWall__P18461_mk(s) { +function tiles_TileMap_isOnWall__P50668_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P18461, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P50668, depth: s.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___28515: undefined, - left___28518: undefined, - right___28524: undefined, - top___28530: undefined, - bottom___28536: undefined, - col___28542: undefined, - row___28548: undefined, + hbox___60747: undefined, + left___60750: undefined, + right___60756: undefined, + top___60762: undefined, + bottom___60768: undefined, + col___60774: undefined, + row___60780: undefined, arg0: undefined, arg1: undefined, } } @@ -30082,7 +30102,7 @@ function tiles_TileMap_isOnWall__P18461_mk(s) { -function MovingSprite_constructor__P18295(s) { +function MovingSprite_constructor__P50502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30104,7 +30124,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C18294_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C50501_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -30116,12 +30136,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P18295.info = {"start":799,"length":313,"line":31,"column":4,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} +MovingSprite_constructor__P50502.info = {"start":799,"length":313,"line":31,"column":4,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function MovingSprite_constructor__P18295_mk(s) { +function MovingSprite_constructor__P50502_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P18295, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P50502, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -30137,7 +30157,7 @@ function MovingSprite_constructor__P18295_mk(s) { -function ArcadePhysicsEngine_move__P18308(s) { +function ArcadePhysicsEngine_move__P50515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30147,33 +30167,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtf___29470 = undefined; - s.dt2___29477 = undefined; - s.scene___29481 = undefined; - s.tileMap___29484 = undefined; - s.movingSprites___29487 = undefined; - s.MAX_STEP_COUNT___29518 = undefined; - s.overlapHandlers___29530 = undefined; - s.selected___29537 = undefined; - s.buffers___29538 = undefined; - s.count___29542 = undefined; - s.currMovers___29552 = undefined; - s.remainingMovers___29559 = undefined; - s.ms___29564 = undefined; - s.unnamed142___U13 = undefined; - s.unnamed143___U14 = undefined; - s.s___29566 = undefined; - s.stepX___29659 = undefined; - s.stepY___29673 = undefined; + s.dtf___61702 = undefined; + s.dt2___61709 = undefined; + s.scene___61713 = undefined; + s.tileMap___61716 = undefined; + s.movingSprites___61719 = undefined; + s.MAX_STEP_COUNT___61750 = undefined; + s.overlapHandlers___61762 = undefined; + s.selected___61769 = undefined; + s.buffers___61770 = undefined; + s.count___61774 = undefined; + s.currMovers___61784 = undefined; + s.remainingMovers___61791 = undefined; + s.ms___61796 = undefined; + s.unnamed302___U13 = undefined; + s.unnamed303___U14 = undefined; + s.s___61798 = undefined; + s.stepX___61891 = undefined; + s.stepY___61905 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = Fx_min__P16279_mk(s); - s.tmp_0.arg0 = globals.MAX_TIME_STEP___18290; + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = Fx_min__P48486_mk(s); + s.tmp_0.arg0 = globals.MAX_TIME_STEP___50497; r0 = (s.arg1 * 1000); s.tmp_1 = r0; r0 = (s.tmp_1 * 256); @@ -30183,43 +30203,43 @@ switch (step) { s.callLocIdx = 452; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtf___29470 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___29470, 2); - s.dt2___29477 = (r0); - s.tmp_0 = game_currentScene__P18648_mk(s); + s.dtf___61702 = (r0); + r0 = pxsim.Math_.idiv(s.dtf___61702, 2); + s.dt2___61709 = (r0); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 454; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___29481 = (r0); - r0 = s.scene___29481.fields["tileMap"]; - s.tileMap___29484 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P29489); + s.scene___61713 = (r0); + r0 = s.scene___61713.fields["tileMap"]; + s.tileMap___61716 = (r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P61721); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtf___29470); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___29477); - s.tmp_1 = helpers_arrayMap__P16220_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtf___61702); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___61709); + s.tmp_1 = helpers_arrayMap__P48427_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 456; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___29487 = (r0); - s.tmp_0 = helpers_arrayForEach__P16223_mk(s); + s.movingSprites___61719 = (r0); + s.tmp_0 = helpers_arrayForEach__P48430_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P29501; + s.tmp_0.arg1 = inline__P61733; s.callLocIdx = 460; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P18222_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P50429_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; s.callLocIdx = 461; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P18221_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P50428_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; @@ -30235,7 +30255,7 @@ 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.dtf___29470); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtf___61702); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_1 = r0; @@ -30244,34 +30264,34 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.MAX_STEP_COUNT___29518 = (r0); - s.tmp_0 = helpers_arraySlice__P16229_mk(s); - r0 = s.scene___29481.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___61750 = (r0); + s.tmp_0 = helpers_arraySlice__P48436_mk(s); + r0 = s.scene___61713.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; s.callLocIdx = 467; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___29530 = (r0); - s.selected___29537 = (0); + s.overlapHandlers___61762 = (r0); + s.selected___61769 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___29487); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___61719); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___29538 = (s.tmp_0); - s.count___29542 = (0); + s.buffers___61770 = (s.tmp_0); + s.count___61774 = (0); case 1: - r0 = (s.count___29542 < s.MAX_STEP_COUNT___29518); + r0 = (s.count___61774 < s.MAX_STEP_COUNT___61750); 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___29538, s.selected___29537); + r0 = pxsim_Array__getAt(s.buffers___61770, s.selected___61769); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -30281,43 +30301,43 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 46; continue; } - r0 = pxsim_Array__getAt(s.buffers___29538, s.selected___29537); - s.currMovers___29552 = (r0); - r0 = (s.selected___29537 ^ 1); - s.selected___29537 = (r0); - r0 = pxsim_Array__getAt(s.buffers___29538, s.selected___29537); - s.remainingMovers___29559 = (r0); - s.ms___29564 = (undefined); - s.unnamed142___U13 = (s.currMovers___29552); - s.unnamed143___U14 = (0); + r0 = pxsim_Array__getAt(s.buffers___61770, s.selected___61769); + s.currMovers___61784 = (r0); + r0 = (s.selected___61769 ^ 1); + s.selected___61769 = (r0); + r0 = pxsim_Array__getAt(s.buffers___61770, s.selected___61769); + s.remainingMovers___61791 = (r0); + s.ms___61796 = (undefined); + s.unnamed302___U13 = (s.currMovers___61784); + s.unnamed303___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed143___U14; - r0 = pxsim_Array__length(s.unnamed142___U13); + s.tmp_0 = r0 = s.unnamed303___U14; + r0 = pxsim_Array__length(s.unnamed302___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_Array__getAt(s.unnamed142___U13, s.unnamed143___U14); - s.ms___29564 = (r0); - r0 = s.ms___29564.fields["sprite"]; - s.s___29566 = (r0); - r0 = s.ms___29564.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed302___U13, s.unnamed303___U14); + s.ms___61796 = (r0); + r0 = s.ms___61796.fields["sprite"]; + s.s___61798 = (r0); + r0 = s.ms___61796.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___29566.fields["_vx"]; + r0 = s.s___61798.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___29566.fields["_vx"]; + r0 = s.s___61798.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___29564).fields["dx"] = (0); + r0 = (s.ms___61796).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___29566.fields["_vx"]; + r0 = s.s___61798.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -30326,7 +30346,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___29564.fields["cachedVx"]; + r0 = s.ms___61796.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -30337,7 +30357,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___29566.fields["_vx"]; + r0 = s.s___61798.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -30346,7 +30366,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___29564.fields["cachedVx"]; + r0 = s.ms___61796.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -30358,14 +30378,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___29564; - r0 = s.ms___29564.fields["dx"]; + s.tmp_9 = r0 = s.ms___61796; + r0 = s.ms___61796.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___29564; - r0 = s.ms___29564.fields["xStep"]; + s.tmp_0 = r0 = s.ms___61796; + r0 = s.ms___61796.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -30373,29 +30393,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___29566.fields["_vx"]; + r0 = s.s___61798.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___29564).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___61796).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___29564.fields["cachedVy"]; + r0 = s.ms___61796.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___29566.fields["_vy"]; + r0 = s.s___61798.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___29566.fields["_vy"]; + r0 = s.s___61798.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___29564).fields["dy"] = (0); + r0 = (s.ms___61796).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___29566.fields["_vy"]; + r0 = s.s___61798.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -30404,7 +30424,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___29564.fields["cachedVy"]; + r0 = s.ms___61796.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -30415,7 +30435,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___29566.fields["_vy"]; + r0 = s.s___61798.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -30424,7 +30444,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___29564.fields["cachedVy"]; + r0 = s.ms___61796.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -30436,14 +30456,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___29564; - r0 = s.ms___29564.fields["dy"]; + s.tmp_9 = r0 = s.ms___61796; + r0 = s.ms___61796.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___29564; - r0 = s.ms___29564.fields["yStep"]; + s.tmp_0 = r0 = s.ms___61796; + r0 = s.ms___61796.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -30451,20 +30471,20 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___29566.fields["_vy"]; + r0 = s.s___61798.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___29564).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___61796).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["xStep"]; + s.tmp_2 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["xStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 472; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["dx"]; + s.tmp_4 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["dx"]; s.tmp_4.arg0 = r0; s.callLocIdx = 473; s.pc = 55; return s.tmp_4; case 55: @@ -30474,23 +30494,23 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___29564.fields["dx"]; + r0 = s.ms___61796.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___29564.fields["xStep"]; + r0 = s.ms___61796.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___29659 = (s.tmp_5); - s.tmp_2 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["yStep"]; + s.stepX___61891 = (s.tmp_5); + s.tmp_2 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["yStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 474; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["dy"]; + s.tmp_4 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 475; s.pc = 57; return s.tmp_4; case 57: @@ -30500,45 +30520,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___29564.fields["dy"]; + r0 = s.ms___61796.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___29564.fields["yStep"]; + r0 = s.ms___61796.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___29673 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___29564; - r0 = s.ms___29564.fields["dx"]; + s.stepY___61905 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___61796; + r0 = s.ms___61796.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___29659); + r0 = (s.tmp_2 - s.stepX___61891); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___29564; - r0 = s.ms___29564.fields["dy"]; + s.tmp_0 = r0 = s.ms___61796; + r0 = s.ms___61796.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___29673); + r0 = (s.tmp_2 - s.stepY___61905); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___29566.fields["_x"]; + r0 = s.s___61798.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___29566).fields["_lastX"] = (s.tmp_0); - r0 = s.s___29566.fields["_y"]; + r0 = (s.s___61798).fields["_lastX"] = (s.tmp_0); + r0 = s.s___61798.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___29566).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___29566; - r0 = s.s___29566.fields["_x"]; + r0 = (s.s___61798).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___61798; + r0 = s.s___61798.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___29659); + r0 = (s.tmp_2 + s.stepX___61891); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___29566; - r0 = s.s___29566.fields["_y"]; + s.tmp_0 = r0 = s.s___61798; + r0 = s.s___61798.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___29673); + r0 = (s.tmp_2 + s.stepY___61905); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___29566.fields["flags"]; + r0 = s.s___61798.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -30548,20 +30568,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P18223_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P50430_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___29566; + s.tmp_4.arg1 = s.s___61798; s.callLocIdx = 480; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; - s.tmp_0 = r0 = s.tileMap___29484; + s.tmp_0 = r0 = s.tileMap___61716; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 33; continue; } r0 = s.tmp_0; { step = 34; continue; } case 33: - r0 = s.tileMap___29484.fields["_map"]; + r0 = s.tileMap___61716.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -30575,10 +30595,10 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 35; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P19870_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P52077_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___29564; - s.tmp_6.arg2 = s.tileMap___29484; + s.tmp_6.arg1 = s.ms___61796; + s.tmp_6.arg2 = s.tileMap___61716; s.callLocIdx = 482; s.pc = 59; return s.tmp_6; case 59: r0 = s.retval; @@ -30586,70 +30606,70 @@ switch (step) { case 36: case 37: case 38: - s.tmp_2 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["dx"]; + s.tmp_2 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["dx"]; s.tmp_2.arg0 = r0; s.callLocIdx = 483; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___18293); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___50500); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 39; continue; } r0 = s.tmp_0; { step = 40; continue; } case 39: - s.tmp_4 = Fx_abs__P16278_mk(s); - r0 = s.ms___29564.fields["dy"]; + s.tmp_4 = Fx_abs__P48485_mk(s); + r0 = s.ms___61796.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 484; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___18293); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___50500); case 40: // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 41; continue; } - r0 = pxsim_Array__push(s.remainingMovers___29559, s.ms___29564); + r0 = pxsim_Array__push(s.remainingMovers___61791, s.ms___61796); case 41: case 42: - r0 = (s.unnamed143___U14 + 1); - s.unnamed143___U14 = (r0); + r0 = (s.unnamed303___U14 + 1); + s.unnamed303___U14 = (r0); { step = 4; continue; } case 43: - s.unnamed142___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P19869_mk(s); + s.unnamed302___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P52076_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___29552; - s.tmp_0.arg2 = s.overlapHandlers___29530; + s.tmp_0.arg1 = s.currMovers___61784; + s.tmp_0.arg2 = s.overlapHandlers___61762; s.callLocIdx = 485; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___29552); + r0 = pxsim_Array__length(s.currMovers___61784); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___29552); + r0 = pxsim_Array_.pop(s.currMovers___61784); { step = 44; continue; } case 45: - r0 = (s.count___29542 + 1); - s.count___29542 = (r0); + r0 = (s.count___61774 + 1); + s.count___61774 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P18308.info = {"start":2672,"length":3971,"line":110,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P50515.info = {"start":2672,"length":3971,"line":110,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P18308_mk(s) { +function ArcadePhysicsEngine_move__P50515_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P18308, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P50515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30663,24 +30683,24 @@ function ArcadePhysicsEngine_move__P18308_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtf___29470: undefined, - dt2___29477: undefined, - scene___29481: undefined, - tileMap___29484: undefined, - movingSprites___29487: undefined, - MAX_STEP_COUNT___29518: undefined, - overlapHandlers___29530: undefined, - selected___29537: undefined, - buffers___29538: undefined, - count___29542: undefined, - currMovers___29552: undefined, - remainingMovers___29559: undefined, - ms___29564: undefined, - unnamed142___U13: undefined, - unnamed143___U14: undefined, - s___29566: undefined, - stepX___29659: undefined, - stepY___29673: undefined, + dtf___61702: undefined, + dt2___61709: undefined, + scene___61713: undefined, + tileMap___61716: undefined, + movingSprites___61719: undefined, + MAX_STEP_COUNT___61750: undefined, + overlapHandlers___61762: undefined, + selected___61769: undefined, + buffers___61770: undefined, + count___61774: undefined, + currMovers___61784: undefined, + remainingMovers___61791: undefined, + ms___61796: undefined, + unnamed302___U13: undefined, + unnamed303___U14: undefined, + s___61798: undefined, + stepX___61891: undefined, + stepY___61905: undefined, arg0: undefined, arg1: undefined, } } @@ -30689,7 +30709,7 @@ function ArcadePhysicsEngine_move__P18308_mk(s) { -function inline__P29489(s) { +function inline__P61721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30703,7 +30723,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P19868_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P52075_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.caps[1]; @@ -30714,12 +30734,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29489.info = {"start":3064,"length":51,"line":122,"column":17,"endLine":122,"endColumn":68,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P61721.info = {"start":3064,"length":51,"line":122,"column":17,"endLine":122,"endColumn":68,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P29489_mk(s) { +function inline__P61721_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29489, depth: s.depth + 1, + parent: s, fn: inline__P61721, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30729,7 +30749,7 @@ function inline__P29489_mk(s) { -function inline__P29501(s) { +function inline__P61733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30743,7 +30763,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P18151_mk(s); + s.tmp_1 = Sprite_vx__P50358_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 457; s.pc = 5; return s.tmp_1; case 5: @@ -30754,7 +30774,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P18153_mk(s); + s.tmp_2 = Sprite_vy__P50360_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 458; s.pc = 6; return s.tmp_2; case 6: @@ -30764,7 +30784,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P18206_mk(s); + s.tmp_4 = Sprite_clearObstacles__P50413_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 459; s.pc = 7; return s.tmp_4; case 7: @@ -30775,12 +30795,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29501.info = {"start":3198,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +inline__P61733.info = {"start":3198,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function inline__P29501_mk(s) { +function inline__P61733_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29501, depth: s.depth + 1, + parent: s, fn: inline__P61733, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30794,7 +30814,7 @@ function inline__P29501_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P19869(s) { +function ArcadePhysicsEngine_spriteCollisions__P52076(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30804,18 +30824,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___29774 = undefined; - s.unnamed144___U1 = undefined; - s.unnamed145___U2 = undefined; - s.sprite___29776 = undefined; - s.overSprites___29783 = undefined; - s.overlapper___29791 = undefined; - s.unnamed146___U6 = undefined; - s.unnamed147___U7 = undefined; - s.thisKind___29797 = undefined; - s.otherKind___29801 = undefined; - s.higher___29814 = undefined; - s.lower___29823 = undefined; + s.ms___62006 = undefined; + s.unnamed304___U1 = undefined; + s.unnamed305___U2 = undefined; + s.sprite___62008 = undefined; + s.overSprites___62015 = undefined; + s.overlapper___62023 = undefined; + s.unnamed306___U6 = undefined; + s.unnamed307___U7 = undefined; + s.thisKind___62029 = undefined; + s.otherKind___62033 = undefined; + s.higher___62046 = undefined; + s.lower___62055 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30823,7 +30843,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -30835,20 +30855,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___29774 = (undefined); - s.unnamed144___U1 = (s.arg1); - s.unnamed145___U2 = (0); + s.ms___62006 = (undefined); + s.unnamed304___U1 = (s.arg1); + s.unnamed305___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed145___U2; - r0 = pxsim_Array__length(s.unnamed144___U1); + s.tmp_0 = r0 = s.unnamed305___U2; + r0 = pxsim_Array__length(s.unnamed304___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed144___U1, s.unnamed145___U2); - s.ms___29774 = (r0); - r0 = s.ms___29774.fields["sprite"]; - s.sprite___29776 = (r0); - r0 = s.sprite___29776.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed304___U1, s.unnamed305___U2); + s.ms___62006 = (r0); + r0 = s.ms___62006.fields["sprite"]; + s.sprite___62008 = (r0); + r0 = s.sprite___62008.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2562); s.tmp_0 = r0; @@ -30857,27 +30877,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P18219_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P50426_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___29774.fields["sprite"]; + r0 = s.ms___62006.fields["sprite"]; s.tmp_2.arg1 = r0; s.callLocIdx = 523; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___29783 = (r0); - s.overlapper___29791 = (undefined); - s.unnamed146___U6 = (s.overSprites___29783); - s.unnamed147___U7 = (0); + s.overSprites___62015 = (r0); + s.overlapper___62023 = (undefined); + s.unnamed306___U6 = (s.overSprites___62015); + s.unnamed307___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed147___U7; - r0 = pxsim_Array__length(s.unnamed146___U6); + s.tmp_0 = r0 = s.unnamed307___U7; + r0 = pxsim_Array__length(s.unnamed306___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed146___U6, s.unnamed147___U7); - s.overlapper___29791 = (r0); - r0 = s.overlapper___29791.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed306___U6, s.unnamed307___U7); + s.overlapper___62023 = (r0); + r0 = s.overlapper___62023.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2562); s.tmp_2 = r0; @@ -30886,13 +30906,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___29776.fields["_kind"]; - s.thisKind___29797 = (r0); - r0 = s.overlapper___29791.fields["_kind"]; - s.otherKind___29801 = (r0); - r0 = s.sprite___29776.fields["_kindsOverlappedWith"]; + r0 = s.sprite___62008.fields["_kind"]; + s.thisKind___62029 = (r0); + r0 = s.overlapper___62023.fields["_kind"]; + s.otherKind___62033 = (r0); + r0 = s.sprite___62008.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___29801, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___62033, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -30901,37 +30921,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___29776.fields["id"]; + r0 = s.sprite___62008.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___29791.fields["id"]; + r0 = s.overlapper___62023.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___29776; + r0 = s.sprite___62008; { step = 12; continue; } case 11: - r0 = s.overlapper___29791; + r0 = s.overlapper___62023; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___29814 = (s.tmp_6); - r0 = (s.higher___29814 === s.sprite___29776); + s.higher___62046 = (s.tmp_6); + r0 = (s.higher___62046 === s.sprite___62008); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___29791; + r0 = s.overlapper___62023; { step = 14; continue; } case 13: - r0 = s.sprite___29776; + r0 = s.sprite___62008; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___29823 = (s.tmp_1); - r0 = s.higher___29814.fields["_overlappers"]; + s.lower___62055 = (s.tmp_1); + r0 = s.higher___62046.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___29823.fields["id"]; + r0 = s.lower___62055.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -30939,19 +30959,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P29843); + r0 = pxsim_pxtcore_mkAction(2, inline__P62075); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___29797); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___29801); - r0 = pxsim_pxtcore_mkAction(5, inline__P29867); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___62029); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___62033); + r0 = pxsim_pxtcore_mkAction(5, inline__P62099); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___29814); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___29823); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___29776); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___29791); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___29797); - s.tmp_6 = helpers_arrayForEach__P16223_mk(s); - s.tmp_7 = helpers_arrayFilter__P16224_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___62046); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___62055); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___62008); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___62023); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___62029); + s.tmp_6 = helpers_arrayForEach__P48430_mk(s); + s.tmp_7 = helpers_arrayFilter__P48431_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; s.callLocIdx = 526; s.pc = 24; return s.tmp_7; @@ -30965,28 +30985,28 @@ switch (step) { case 15: case 16: case 17: - r0 = (s.unnamed147___U7 + 1); - s.unnamed147___U7 = (r0); + r0 = (s.unnamed307___U7 + 1); + s.unnamed307___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed146___U6 = (undefined); + s.unnamed306___U6 = (undefined); case 19: - r0 = (s.unnamed145___U2 + 1); - s.unnamed145___U2 = (r0); + r0 = (s.unnamed305___U2 + 1); + s.unnamed305___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed144___U1 = (undefined); + s.unnamed304___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P19869.info = {"start":9720,"length":2254,"line":325,"column":4,"endLine":369,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P52076.info = {"start":9720,"length":2254,"line":325,"column":4,"endLine":369,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P19869_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P52076_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P19869, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P52076, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30996,18 +31016,18 @@ function ArcadePhysicsEngine_spriteCollisions__P19869_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___29774: undefined, - unnamed144___U1: undefined, - unnamed145___U2: undefined, - sprite___29776: undefined, - overSprites___29783: undefined, - overlapper___29791: undefined, - unnamed146___U6: undefined, - unnamed147___U7: undefined, - thisKind___29797: undefined, - otherKind___29801: undefined, - higher___29814: undefined, - lower___29823: undefined, + ms___62006: undefined, + unnamed304___U1: undefined, + unnamed305___U2: undefined, + sprite___62008: undefined, + overSprites___62015: undefined, + overlapper___62023: undefined, + unnamed306___U6: undefined, + unnamed307___U7: undefined, + thisKind___62029: undefined, + otherKind___62033: undefined, + higher___62046: undefined, + lower___62055: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31017,7 +31037,7 @@ function ArcadePhysicsEngine_spriteCollisions__P19869_mk(s) { -function inline__P29843(s) { +function inline__P62075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31074,12 +31094,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29843.info = {"start":11079,"length":137,"line":351,"column":32,"endLine":352,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P62075.info = {"start":11079,"length":137,"line":351,"column":32,"endLine":352,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29843_mk(s) { +function inline__P62075_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29843, depth: s.depth + 1, + parent: s, fn: inline__P62075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31097,7 +31117,7 @@ function inline__P29843_mk(s) { -function inline__P29867(s) { +function inline__P62099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31116,7 +31136,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, inline__P29877); + r0 = pxsim_pxtcore_mkAction(6, inline__P62109); 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]); @@ -31129,12 +31149,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29867.info = {"start":11276,"length":648,"line":354,"column":33,"endLine":365,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P62099.info = {"start":11276,"length":648,"line":354,"column":33,"endLine":365,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P29867_mk(s) { +function inline__P62099_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29867, depth: s.depth + 1, + parent: s, fn: inline__P62099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31145,7 +31165,7 @@ function inline__P29867_mk(s) { -function inline__P29877(s) { +function inline__P62109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31221,12 +31241,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29877.info = {"start":11397,"length":499,"line":356,"column":50,"endLine":364,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +inline__P62109.info = {"start":11397,"length":499,"line":356,"column":50,"endLine":364,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P29877_mk(s) { +function inline__P62109_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29877, depth: s.depth + 1, + parent: s, fn: inline__P62109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31247,7 +31267,7 @@ function inline__P29877_mk(s) { -function sprites_SpriteMap_overlaps__P18219(s) { +function sprites_SpriteMap_overlaps__P50426(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31257,47 +31277,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___29911 = undefined; - s.o___29915 = undefined; + s.n___62143 = undefined; + s.o___62147 = 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__C18216_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P18218_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P50425_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 398; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___29911 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P29917); + s.n___62143 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P62149); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P16224_mk(s); - s.tmp_1.arg0 = s.n___29911; + s.tmp_1 = helpers_arrayFilter__P48431_mk(s); + s.tmp_1.arg0 = s.n___62143; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 400; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___29915 = (r0); - r0 = s.o___29915; + s.o___62147 = (r0); + r0 = s.o___62147; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P18219.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__P50426.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__P18219_mk(s) { +function sprites_SpriteMap_overlaps__P50426_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P18219, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P50426, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___29911: undefined, - o___29915: undefined, + n___62143: undefined, + o___62147: undefined, arg0: undefined, arg1: undefined, } } @@ -31306,7 +31326,7 @@ function sprites_SpriteMap_overlaps__P18219_mk(s) { -function inline__P29917(s) { +function inline__P62149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31320,7 +31340,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P18202_mk(s); + s.tmp_0 = Sprite_overlapsWith__P50409_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 399; s.pc = 1; return s.tmp_0; @@ -31329,12 +31349,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29917.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +inline__P62149.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} -function inline__P29917_mk(s) { +function inline__P62149_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29917, depth: s.depth + 1, + parent: s, fn: inline__P62149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31344,7 +31364,7 @@ function inline__P29917_mk(s) { -function sprites_SpriteMap_neighbors__P18218(s) { +function sprites_SpriteMap_neighbors__P50425(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31354,112 +31374,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___29959 = undefined; - s.layer___29961 = undefined; + s.n___62191 = undefined; + s.layer___62193 = 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__C18216_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___29959 = (r0); + s.n___62191 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___29961 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P19839_mk(s); + s.layer___62193 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P52046_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P18184_mk(s); + s.tmp_1 = Sprite_left__P50391_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 386; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P18188_mk(s); + s.tmp_2 = Sprite_top__P50395_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 387; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29961; - s.tmp_0.arg4 = s.n___29959; + s.tmp_0.arg3 = s.layer___62193; + s.tmp_0.arg4 = s.n___62191; s.callLocIdx = 388; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P19839_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P52046_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P18184_mk(s); + s.tmp_1 = Sprite_left__P50391_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 389; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P18190_mk(s); + s.tmp_2 = Sprite_bottom__P50397_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 390; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29961; - s.tmp_0.arg4 = s.n___29959; + s.tmp_0.arg3 = s.layer___62193; + s.tmp_0.arg4 = s.n___62191; s.callLocIdx = 391; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P19839_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P52046_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P18186_mk(s); + s.tmp_1 = Sprite_right__P50393_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 392; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P18188_mk(s); + s.tmp_2 = Sprite_top__P50395_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 393; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29961; - s.tmp_0.arg4 = s.n___29959; + s.tmp_0.arg3 = s.layer___62193; + s.tmp_0.arg4 = s.n___62191; s.callLocIdx = 394; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P19839_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P52046_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P18186_mk(s); + s.tmp_1 = Sprite_right__P50393_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 395; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P18190_mk(s); + s.tmp_2 = Sprite_bottom__P50397_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 396; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29961; - s.tmp_0.arg4 = s.n___29959; + s.tmp_0.arg3 = s.layer___62193; + s.tmp_0.arg4 = s.n___62191; s.callLocIdx = 397; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___29959, s.arg1); - r0 = s.n___29959; + r0 = pxsim_Array_.removeElement(s.n___62191, s.arg1); + r0 = s.n___62191; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P18218.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__P50425.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__P18218_mk(s) { +function sprites_SpriteMap_neighbors__P50425_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P18218, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P50425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___29959: undefined, - layer___29961: undefined, + n___62191: undefined, + layer___62193: undefined, arg0: undefined, arg1: undefined, } } @@ -31468,7 +31488,7 @@ function sprites_SpriteMap_neighbors__P18218_mk(s) { -function sprites_SpriteMap_mergeAtKey__P19839(s) { +function sprites_SpriteMap_mergeAtKey__P52046(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31478,11 +31498,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___30014 = undefined; - s.bucket___30019 = undefined; - s.sprite___30026 = undefined; - s.unnamed140___U3 = undefined; - s.unnamed141___U4 = undefined; + s.k___62246 = undefined; + s.bucket___62251 = undefined; + s.sprite___62258 = undefined; + s.unnamed300___U3 = undefined; + s.unnamed301___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31492,33 +31512,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P19837_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P52044_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 424; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___30014 = (r0); + s.k___62246 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___30014); - s.bucket___30019 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___30019); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___62246); + s.bucket___62251 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___62251); if (!r0) { step = 7; continue; } - s.sprite___30026 = (undefined); - s.unnamed140___U3 = (s.bucket___30019); - s.unnamed141___U4 = (0); + s.sprite___62258 = (undefined); + s.unnamed300___U3 = (s.bucket___62251); + s.unnamed301___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed141___U4; - r0 = pxsim_Array__length(s.unnamed140___U3); + s.tmp_0 = r0 = s.unnamed301___U4; + r0 = pxsim_Array__length(s.unnamed300___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed140___U3, s.unnamed141___U4); - s.sprite___30026 = (r0); - r0 = s.sprite___30026.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed300___U3, s.unnamed301___U4); + s.sprite___62258 = (r0); + r0 = s.sprite___62258.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -31527,7 +31547,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___30026, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___62258, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -31535,26 +31555,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___30026); + r0 = pxsim_Array__push(s.arg4, s.sprite___62258); case 4: case 5: - r0 = (s.unnamed141___U4 + 1); - s.unnamed141___U4 = (r0); + r0 = (s.unnamed301___U4 + 1); + s.unnamed301___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed140___U3 = (undefined); + s.unnamed300___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P19839.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__P52046.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__P19839_mk(s) { +function sprites_SpriteMap_mergeAtKey__P52046_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P19839, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P52046, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31562,11 +31582,11 @@ function sprites_SpriteMap_mergeAtKey__P19839_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___30014: undefined, - bucket___30019: undefined, - sprite___30026: undefined, - unnamed140___U3: undefined, - unnamed141___U4: undefined, + k___62246: undefined, + bucket___62251: undefined, + sprite___62258: undefined, + unnamed300___U3: undefined, + unnamed301___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31578,7 +31598,7 @@ function sprites_SpriteMap_mergeAtKey__P19839_mk(s) { -function sprites_SpriteMap_key__P19837(s) { +function sprites_SpriteMap_key__P52044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31588,8 +31608,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___30047 = undefined; - s.yi___30059 = undefined; + s.xi___62279 = undefined; + s.yi___62291 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31597,8 +31617,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P16240_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P48447_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -31609,8 +31629,8 @@ switch (step) { s.callLocIdx = 412; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___30047 = (r0); - s.tmp_0 = Math_clamp__P16240_mk(s); + s.xi___62279 = (r0); + s.tmp_0 = Math_clamp__P48447_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -31621,28 +31641,28 @@ switch (step) { s.callLocIdx = 413; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___30059 = (r0); - s.tmp_0 = r0 = s.xi___30047; + s.yi___62291 = (r0); + s.tmp_0 = r0 = s.xi___62279; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___30059 * s.tmp_2); + r0 = (s.yi___62291 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P19837.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__P52044.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__P19837_mk(s) { +function sprites_SpriteMap_key__P52044_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P19837, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P52044, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___30047: undefined, - yi___30059: undefined, + xi___62279: undefined, + yi___62291: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31652,7 +31672,7 @@ function sprites_SpriteMap_key__P19837_mk(s) { -function Sprite_bottom__P18190(s) { +function Sprite_bottom__P50397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31667,8 +31687,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P18188_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P50395_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 278; s.pc = 1; return s.tmp_1; case 1: @@ -31682,13 +31702,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P18190.info = {"start":10262,"length":59,"line":373,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P18190.isGetter = true; +Sprite_bottom__P50397.info = {"start":10262,"length":59,"line":373,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P50397.isGetter = true; -function Sprite_bottom__P18190_mk(s) { +function Sprite_bottom__P50397_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P18190, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P50397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31701,7 +31721,7 @@ function Sprite_bottom__P18190_mk(s) { -function Sprite_height__P18183(s) { +function Sprite_height__P50390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31716,20 +31736,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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() } } } -Sprite_height__P18183.info = {"start":8818,"length":54,"line":318,"column":4,"endLine":320,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P18183.isGetter = true; +Sprite_height__P50390.info = {"start":8818,"length":54,"line":318,"column":4,"endLine":320,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P50390.isGetter = true; -function Sprite_height__P18183_mk(s) { +function Sprite_height__P50390_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P18183, depth: s.depth + 1, + parent: s, fn: Sprite_height__P50390, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31739,7 +31759,7 @@ function Sprite_height__P18183_mk(s) { -function Sprite_right__P18186(s) { +function Sprite_right__P50393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31754,8 +31774,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P18184_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P50391_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 270; s.pc = 1; return s.tmp_1; case 1: @@ -31769,13 +31789,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_right__P18186.info = {"start":9458,"length":57,"line":343,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P18186.isGetter = true; +Sprite_right__P50393.info = {"start":9458,"length":57,"line":343,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P50393.isGetter = true; -function Sprite_right__P18186_mk(s) { +function Sprite_right__P50393_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P18186, depth: s.depth + 1, + parent: s, fn: Sprite_right__P50393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31788,7 +31808,7 @@ function Sprite_right__P18186_mk(s) { -function Sprite_overlapsWith__P18202(s) { +function Sprite_overlapsWith__P50409(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31804,7 +31824,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -31837,13 +31857,13 @@ switch (step) { s.tmp_5 = r0; r0 = s.arg0.fields["_image"]; s.tmp_6 = r0; - s.tmp_9 = Sprite_left__P18184_mk(s); + s.tmp_9 = Sprite_left__P50391_mk(s); s.tmp_9.arg0 = s.arg0; s.callLocIdx = 348; s.pc = 8; return s.tmp_9; case 8: r0 = s.retval; s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P18184_mk(s); + s.tmp_11 = Sprite_left__P50391_mk(s); s.tmp_11.arg0 = s.arg1; s.callLocIdx = 349; s.pc = 9; return s.tmp_11; case 9: @@ -31851,13 +31871,13 @@ switch (step) { s.tmp_10 = r0; r0 = (s.tmp_8 - s.tmp_10); s.tmp_7 = r0; - s.tmp_14 = Sprite_top__P18188_mk(s); + s.tmp_14 = Sprite_top__P50395_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 350; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P18188_mk(s); + s.tmp_16 = Sprite_top__P50395_mk(s); s.tmp_16.arg0 = s.arg1; s.callLocIdx = 351; s.pc = 11; return s.tmp_16; case 11: @@ -31870,12 +31890,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P18202.info = {"start":24655,"length":448,"line":752,"column":4,"endLine":760,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P50409.info = {"start":24655,"length":448,"line":752,"column":4,"endLine":760,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P18202_mk(s) { +function Sprite_overlapsWith__P50409_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P18202, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P50409, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31902,7 +31922,7 @@ function Sprite_overlapsWith__P18202_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P19868(s) { +function ArcadePhysicsEngine_createMovingSprite__P52075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31912,16 +31932,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___30261 = undefined; - s.ovy___30266 = undefined; - s.fx___30293 = undefined; - s.c___30300 = undefined; - s.fy___30343 = undefined; - s.c___30350 = undefined; - s.dx___30389 = undefined; - s.dy___30398 = undefined; - s.xStep___30407 = undefined; - s.yStep___30409 = undefined; + s.ovx___62493 = undefined; + s.ovy___62498 = undefined; + s.fx___62525 = undefined; + s.c___62532 = undefined; + s.fy___62575 = undefined; + s.c___62582 = undefined; + s.dx___62621 = undefined; + s.dy___62630 = undefined; + s.xStep___62639 = undefined; + s.yStep___62641 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31930,23 +31950,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P19873_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P52080_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; s.callLocIdx = 486; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___30261 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P19873_mk(s); + s.ovx___62493 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P52080_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; s.callLocIdx = 487; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___30266 = (r0); + s.ovy___62498 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -31984,21 +32004,21 @@ switch (step) { r0 = (s.tmp_3 >> 8); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___30293 = (r0); + s.fx___62525 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___30293); - s.c___30300 = (r0); - r0 = (s.c___30300 < 0); + r0 = (s.tmp_0 - s.fx___62525); + s.c___62532 = (r0); + r0 = (s.c___62532 < 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__P16279_mk(s); + s.tmp_3 = Fx_min__P48486_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___30293); + r0 = (s.tmp_4 + s.fx___62525); s.tmp_3.arg1 = r0; s.callLocIdx = 495; s.pc = 27; return s.tmp_3; case 27: @@ -32007,16 +32027,16 @@ switch (step) { r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); { step = 5; continue; } case 2: - r0 = (s.c___30300 > 0); + r0 = (s.c___62532 > 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__P16280_mk(s); + s.tmp_3 = Fx_max__P48487_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___30293); + r0 = (s.tmp_4 - s.fx___62525); s.tmp_3.arg1 = r0; s.callLocIdx = 497; s.pc = 28; return s.tmp_3; case 28: @@ -32062,21 +32082,21 @@ switch (step) { r0 = (s.tmp_3 >> 8); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___30343 = (r0); + s.fy___62575 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___30343); - s.c___30350 = (r0); - r0 = (s.c___30350 < 0); + r0 = (s.tmp_0 - s.fy___62575); + s.c___62582 = (r0); + r0 = (s.c___62582 < 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__P16279_mk(s); + s.tmp_3 = Fx_min__P48486_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___30343); + r0 = (s.tmp_4 + s.fy___62575); s.tmp_3.arg1 = r0; s.callLocIdx = 505; s.pc = 29; return s.tmp_3; case 29: @@ -32085,16 +32105,16 @@ switch (step) { r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); { step = 13; continue; } case 10: - r0 = (s.c___30350 > 0); + r0 = (s.c___62582 > 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_min__P16279_mk(s); + s.tmp_3 = Fx_min__P48486_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___30343); + r0 = (s.tmp_4 - s.fy___62575); s.tmp_3.arg1 = r0; s.callLocIdx = 507; s.pc = 30; return s.tmp_3; case 30: @@ -32110,7 +32130,7 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P19873_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P52080_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; @@ -32120,7 +32140,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__P19873_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P52080_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; @@ -32131,29 +32151,29 @@ switch (step) { r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovx___30261); + r0 = (s.tmp_2 + s.ovx___62493); s.tmp_1 = r0; r0 = pxsim.Math_.imul(s.tmp_1, s.arg3); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_0 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, 1000); - s.dx___30389 = (r0); + s.dx___62621 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovy___30266); + r0 = (s.tmp_2 + s.ovy___62498); s.tmp_1 = r0; r0 = pxsim.Math_.imul(s.tmp_1, s.arg3); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_0 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, 1000); - s.dy___30398 = (r0); - s.xStep___30407 = (s.dx___30389); - s.yStep___30409 = (s.dy___30398); + s.dy___62630 = (r0); + s.xStep___62639 = (s.dx___62621); + s.yStep___62641 = (s.dy___62630); case 17: - s.tmp_2 = Fx_abs__P16278_mk(s); - s.tmp_2.arg0 = s.xStep___30407; + s.tmp_2 = Fx_abs__P48485_mk(s); + s.tmp_2.arg0 = s.xStep___62639; s.callLocIdx = 516; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; @@ -32167,8 +32187,8 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P16278_mk(s); - s.tmp_5.arg0 = s.yStep___30409; + s.tmp_5 = Fx_abs__P48485_mk(s); + s.tmp_5.arg0 = s.yStep___62641; s.callLocIdx = 517; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; @@ -32181,8 +32201,8 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P16278_mk(s); - s.tmp_10.arg0 = s.xStep___30407; + s.tmp_10 = Fx_abs__P48485_mk(s); + s.tmp_10.arg0 = s.xStep___62639; s.callLocIdx = 518; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; @@ -32193,12 +32213,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___30407, 2); - s.xStep___30407 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___62639, 2); + s.xStep___62639 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P16278_mk(s); - s.tmp_2.arg0 = s.yStep___30409; + s.tmp_2 = Fx_abs__P48485_mk(s); + s.tmp_2.arg0 = s.yStep___62641; s.callLocIdx = 520; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; @@ -32209,25 +32229,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___30409, 2); - s.yStep___30409 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___62641, 2); + s.yStep___62641 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C18294_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C50501_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P18295_mk(s); + s.tmp_1 = MovingSprite_constructor__P50502_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___30389; - s.tmp_1.arg5 = s.dy___30398; - s.tmp_1.arg6 = s.xStep___30407; - s.tmp_1.arg7 = s.yStep___30409; + s.tmp_1.arg4 = s.dx___62621; + s.tmp_1.arg5 = s.dy___62630; + s.tmp_1.arg6 = s.xStep___62639; + s.tmp_1.arg7 = s.yStep___62641; s.callLocIdx = 522; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; @@ -32235,12 +32255,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P19868.info = {"start":6649,"length":3065,"line":214,"column":4,"endLine":323,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} +ArcadePhysicsEngine_createMovingSprite__P52075.info = {"start":6649,"length":3065,"line":214,"column":4,"endLine":323,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P19868_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P52075_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P19868, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P52075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32254,16 +32274,16 @@ function ArcadePhysicsEngine_createMovingSprite__P19868_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___30261: undefined, - ovy___30266: undefined, - fx___30293: undefined, - c___30300: undefined, - fy___30343: undefined, - c___30350: undefined, - dx___30389: undefined, - dy___30398: undefined, - xStep___30407: undefined, - yStep___30409: undefined, + ovx___62493: undefined, + ovy___62498: undefined, + fx___62525: undefined, + c___62532: undefined, + fy___62575: undefined, + c___62582: undefined, + dx___62621: undefined, + dy___62630: undefined, + xStep___62639: undefined, + yStep___62641: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32274,7 +32294,7 @@ function ArcadePhysicsEngine_createMovingSprite__P19868_mk(s) { -function ArcadePhysicsEngine_constrain__P19873(s) { +function ArcadePhysicsEngine_constrain__P52080(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32290,9 +32310,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P16280_mk(s); - s.tmp_1 = Fx_min__P16279_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P48487_mk(s); + s.tmp_1 = Fx_min__P48486_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -32308,12 +32328,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P19873.info = {"start":25419,"length":191,"line":752,"column":4,"endLine":760,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P52080.info = {"start":25419,"length":191,"line":752,"column":4,"endLine":760,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P19873_mk(s) { +function ArcadePhysicsEngine_constrain__P52080_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P19873, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P52080, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32325,7 +32345,7 @@ function ArcadePhysicsEngine_constrain__P19873_mk(s) { -function Fx_max__P16280(s) { +function Fx_max__P48487(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32356,12 +32376,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_max__P16280.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +Fx_max__P48487.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__P16280_mk(s) { +function Fx_max__P48487_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P16280, depth: s.depth + 1, + parent: s, fn: Fx_max__P48487, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32372,7 +32392,7 @@ function Fx_max__P16280_mk(s) { -function Fx_compare__P16277(s) { +function Fx_compare__P48484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32391,12 +32411,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P16277.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__P48484.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__P16277_mk(s) { +function Fx_compare__P48484_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P16277, depth: s.depth + 1, + parent: s, fn: Fx_compare__P48484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32406,7 +32426,7 @@ function Fx_compare__P16277_mk(s) { -function sprites_SpriteMap_insertAABB__P18223(s) { +function sprites_SpriteMap_insertAABB__P50430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32416,31 +32436,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___30079 = undefined; - s.top___30082 = undefined; - s.xn___30085 = undefined; - s.yn___30096 = undefined; - s.x___30107 = undefined; - s.y___30112 = undefined; + s.left___62311 = undefined; + s.top___62314 = undefined; + s.xn___62317 = undefined; + s.yn___62328 = undefined; + s.x___62339 = undefined; + s.y___62344 = 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__C18216_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P18184_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P50391_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 415; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___30079 = (r0); - s.tmp_0 = Sprite_top__P18188_mk(s); + s.left___62311 = (r0); + s.tmp_0 = Sprite_top__P50395_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 416; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___30082 = (r0); + s.top___62314 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -32454,7 +32474,7 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___30085 = (r0); + s.xn___62317 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -32468,30 +32488,30 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___30096 = (r0); - s.x___30107 = (0); + s.yn___62328 = (r0); + s.x___62339 = (0); case 1: - r0 = (s.x___30107 <= s.xn___30085); + r0 = (s.x___62339 <= s.xn___62317); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___30112 = (0); + s.y___62344 = (0); case 2: - r0 = (s.y___30112 <= s.yn___30096); + r0 = (s.y___62344 <= s.yn___62328); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P19838_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P52045_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___30079; - s.tmp_4 = Math_min__P16244_mk(s); + s.tmp_2 = r0 = s.left___62311; + s.tmp_4 = Math_min__P48451_mk(s); r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); s.tmp_4.arg0 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_6 = r0; - r0 = (s.x___30107 * s.tmp_6); + r0 = (s.x___62339 * s.tmp_6); s.tmp_4.arg1 = r0; s.callLocIdx = 420; s.pc = 8; return s.tmp_4; case 8: @@ -32499,15 +32519,15 @@ switch (step) { s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___30082; - s.tmp_9 = Math_min__P16244_mk(s); + s.tmp_7 = r0 = s.top___62314; + s.tmp_9 = Math_min__P48451_mk(s); r0 = s.arg1.fields["_image"]; s.tmp_10 = r0; r0 = pxsim_ImageMethods.height(s.tmp_10); s.tmp_9.arg0 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_11 = r0; - r0 = (s.y___30112 * s.tmp_11); + r0 = (s.y___62344 * s.tmp_11); s.tmp_9.arg1 = r0; s.callLocIdx = 422; s.pc = 9; return s.tmp_9; case 9: @@ -32519,24 +32539,24 @@ switch (step) { s.callLocIdx = 423; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = (s.y___30112 + 1); - s.y___30112 = (r0); + r0 = (s.y___62344 + 1); + s.y___62344 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___30107 + 1); - s.x___30107 = (r0); + r0 = (s.x___62339 + 1); + s.x___62339 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P18223.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__P50430.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__P18223_mk(s) { +function sprites_SpriteMap_insertAABB__P50430_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P18223, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P50430, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32550,12 +32570,12 @@ function sprites_SpriteMap_insertAABB__P18223_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___30079: undefined, - top___30082: undefined, - xn___30085: undefined, - yn___30096: undefined, - x___30107: undefined, - y___30112: undefined, + left___62311: undefined, + top___62314: undefined, + xn___62317: undefined, + yn___62328: undefined, + x___62339: undefined, + y___62344: undefined, arg0: undefined, arg1: undefined, } } @@ -32564,7 +32584,7 @@ function sprites_SpriteMap_insertAABB__P18223_mk(s) { -function sprites_SpriteMap_insertAtKey__P19838(s) { +function sprites_SpriteMap_insertAtKey__P52045(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32574,8 +32594,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___30147 = undefined; - s.bucket___30152 = undefined; + s.k___62379 = undefined; + s.bucket___62384 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32584,20 +32604,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P19837_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P52044_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 414; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___30147 = (r0); + s.k___62379 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___30147); - s.bucket___30152 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___30152); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___62379); + s.bucket___62384 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___62384); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -32605,40 +32625,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___30147; + s.tmp_3 = r0 = s.k___62379; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___30152 = (s.tmp_4); + s.bucket___62384 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___30152, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___62384, 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___30152, s.arg3); + r0 = pxsim_Array__push(s.bucket___62384, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P19838.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__P52045.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__P19838_mk(s) { +function sprites_SpriteMap_insertAtKey__P52045_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P19838, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P52045, depth: s.depth + 1, pc: 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___30147: undefined, - bucket___30152: undefined, + k___62379: undefined, + bucket___62384: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32649,7 +32669,7 @@ function sprites_SpriteMap_insertAtKey__P19838_mk(s) { -function sprites_SpriteMap_clear__P18222(s) { +function sprites_SpriteMap_clear__P50429(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32664,7 +32684,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -32673,12 +32693,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P18222.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__P50429.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__P18222_mk(s) { +function sprites_SpriteMap_clear__P50429_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P18222, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P50429, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32689,7 +32709,7 @@ function sprites_SpriteMap_clear__P18222_mk(s) { -function sprites_SpriteMap_resizeBuckets__P18221(s) { +function sprites_SpriteMap_resizeBuckets__P50428(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32699,107 +32719,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___30184 = undefined; - s.maxHeight___30185 = undefined; - s.sprite___30187 = undefined; - s.unnamed138___U3 = undefined; - s.unnamed139___U4 = undefined; - s.tMap___30203 = undefined; - s.areaWidth___30207 = undefined; - s.areaHeight___30214 = undefined; + s.maxWidth___62416 = undefined; + s.maxHeight___62417 = undefined; + s.sprite___62419 = undefined; + s.unnamed298___U3 = undefined; + s.unnamed299___U4 = undefined; + s.tMap___62435 = undefined; + s.areaWidth___62439 = undefined; + s.areaHeight___62446 = 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__C18216_VT)) failedCast(r0); - s.maxWidth___30184 = (0); - s.maxHeight___30185 = (0); - s.sprite___30187 = (undefined); - s.unnamed138___U3 = (s.arg1); - s.unnamed139___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.maxWidth___62416 = (0); + s.maxHeight___62417 = (0); + s.sprite___62419 = (undefined); + s.unnamed298___U3 = (s.arg1); + s.unnamed299___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed139___U4; - r0 = pxsim_Array__length(s.unnamed138___U3); + s.tmp_0 = r0 = s.unnamed299___U4; + r0 = pxsim_Array__length(s.unnamed298___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed138___U3, s.unnamed139___U4); - s.sprite___30187 = (r0); - r0 = s.sprite___30187.fields["_image"]; + r0 = pxsim_Array__getAt(s.unnamed298___U3, s.unnamed299___U4); + s.sprite___62419 = (r0); + r0 = s.sprite___62419.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___30184); + r0 = (s.tmp_3 > s.maxWidth___62416); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___30187.fields["_image"]; + r0 = s.sprite___62419.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___30184 = (r0); + s.maxWidth___62416 = (r0); case 2: case 3: - r0 = s.sprite___30187.fields["_image"]; + r0 = s.sprite___62419.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___30185); + r0 = (s.tmp_1 > s.maxHeight___62417); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___30187.fields["_image"]; + r0 = s.sprite___62419.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___30185 = (r0); + s.maxHeight___62417 = (r0); case 4: case 5: - r0 = (s.unnamed139___U4 + 1); - s.unnamed139___U4 = (r0); + r0 = (s.unnamed299___U4 + 1); + s.unnamed299___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed138___U3 = (undefined); - s.tmp_0 = game_currentScene__P18648_mk(s); + s.unnamed298___U3 = (undefined); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 407; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___30203 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___30203); + s.tMap___62435 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___62435); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P18446_mk(s); - s.tmp_0.arg0 = s.tMap___30203; + s.tmp_0 = tiles_TileMap_areaWidth__P50653_mk(s); + s.tmp_0.arg0 = s.tMap___62435; s.callLocIdx = 408; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___30207 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___30203); + s.areaWidth___62439 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___62435); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P18447_mk(s); - s.tmp_0.arg0 = s.tMap___30203; + s.tmp_0 = tiles_TileMap_areaHeight__P50654_mk(s); + s.tmp_0.arg0 = s.tMap___62435; s.callLocIdx = 409; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___30214 = (s.tmp_1); + s.areaHeight___62446 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P16240_mk(s); + s.tmp_2 = Math_clamp__P48447_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___30207 >> 2); + r0 = (s.areaWidth___62439 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___30184 * 2); + r0 = (s.maxWidth___62416 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 410; s.pc = 14; return s.tmp_2; case 14: @@ -32807,11 +32827,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__P16240_mk(s); + s.tmp_2 = Math_clamp__P48447_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___30214 >> 2); + r0 = (s.areaHeight___62446 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___30185 * 2); + r0 = (s.maxHeight___62417 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 411; s.pc = 15; return s.tmp_2; case 15: @@ -32821,25 +32841,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___30214, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___62446, 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___30207, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___62439, 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__P18221.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__P50428.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__P18221_mk(s) { +function sprites_SpriteMap_resizeBuckets__P50428_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P18221, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P50428, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32847,14 +32867,14 @@ function sprites_SpriteMap_resizeBuckets__P18221_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___30184: undefined, - maxHeight___30185: undefined, - sprite___30187: undefined, - unnamed138___U3: undefined, - unnamed139___U4: undefined, - tMap___30203: undefined, - areaWidth___30207: undefined, - areaHeight___30214: undefined, + maxWidth___62416: undefined, + maxHeight___62417: undefined, + sprite___62419: undefined, + unnamed298___U3: undefined, + unnamed299___U4: undefined, + tMap___62435: undefined, + areaWidth___62439: undefined, + areaHeight___62446: undefined, arg0: undefined, arg1: undefined, } } @@ -32863,7 +32883,7 @@ function sprites_SpriteMap_resizeBuckets__P18221_mk(s) { -function Sprite_clearObstacles__P18206(s) { +function Sprite_clearObstacles__P50413(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32878,7 +32898,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -32887,12 +32907,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P18206.info = {"start":27065,"length":54,"line":817,"column":4,"endLine":819,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P50413.info = {"start":27065,"length":54,"line":817,"column":4,"endLine":819,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P18206_mk(s) { +function Sprite_clearObstacles__P50413_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P18206, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P50413, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32903,7 +32923,7 @@ function Sprite_clearObstacles__P18206_mk(s) { -function Fx_idiv__P16276(s) { +function Fx_idiv__P48483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32922,12 +32942,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P16276.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__P48483.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__P16276_mk(s) { +function Fx_idiv__P48483_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P16276, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P48483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32937,7 +32957,7 @@ function Fx_idiv__P16276_mk(s) { -function Fx_div__P16275(s) { +function Fx_div__P48482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32958,12 +32978,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_div__P16275.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +Fx_div__P48482.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 Fx_div__P16275_mk(s) { +function Fx_div__P48482_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P16275, depth: s.depth + 1, + parent: s, fn: Fx_div__P48482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32974,7 +32994,7 @@ function Fx_div__P16275_mk(s) { -function helpers_arrayMap__P16220(s) { +function helpers_arrayMap__P48427(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32984,58 +33004,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___30478 = undefined; - s.len___30480 = undefined; - s.i___30483 = undefined; + s.res___62710 = undefined; + s.len___62712 = undefined; + s.i___62715 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___30478 = (r0); + s.res___62710 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___30480 = (r0); - s.i___30483 = (0); + s.len___62712 = (r0); + s.i___62715 = (0); case 1: - r0 = (s.i___30483 < s.len___30480); + r0 = (s.i___62715 < s.len___62712); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___30478; + s.tmp_1 = r0 = s.res___62710; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___30483); + r0 = pxsim_Array__getAt(s.arg0, s.i___62715); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___30483; + s.tmp_3.arg1 = s.i___62715; 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___30483 + 1); - s.i___30483 = (r0); + r0 = (s.i___62715 + 1); + s.i___62715 = (r0); { step = 1; continue; } case 2: - r0 = s.res___30478; + r0 = s.res___62710; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P16220.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__P48427.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__P16220_mk(s) { +function helpers_arrayMap__P48427_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P16220, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P48427, depth: s.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___30478: undefined, - len___30480: undefined, - i___30483: undefined, + res___62710: undefined, + len___62712: undefined, + i___62715: undefined, arg0: undefined, arg1: undefined, } } @@ -33044,7 +33064,7 @@ function helpers_arrayMap__P16220_mk(s) { -function ArcadePhysicsEngine_draw__P18307(s) { +function ArcadePhysicsEngine_draw__P50514(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33059,8 +33079,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P18220_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P50427_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; s.callLocIdx = 450; s.pc = 1; return s.tmp_0; @@ -33070,12 +33090,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P18307.info = {"start":2627,"length":39,"line":106,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P50514.info = {"start":2627,"length":39,"line":106,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function ArcadePhysicsEngine_draw__P18307_mk(s) { +function ArcadePhysicsEngine_draw__P50514_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P18307, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P50514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33085,7 +33105,7 @@ function ArcadePhysicsEngine_draw__P18307_mk(s) { -function sprites_SpriteMap_draw__P18220(s) { +function sprites_SpriteMap_draw__P50427(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33095,70 +33115,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___30510 = undefined; - s.y___30516 = undefined; - s.left___30522 = undefined; - s.top___30527 = undefined; - s.k___30532 = undefined; - s.b___30537 = undefined; + s.x___62742 = undefined; + s.y___62748 = undefined; + s.left___62754 = undefined; + s.top___62759 = undefined; + s.k___62764 = undefined; + s.b___62769 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C18216_VT)) failedCast(r0); - s.x___30510 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C50423_VT)) failedCast(r0); + s.x___62742 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___30510 < s.tmp_1); + r0 = (s.x___62742 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___30516 = (0); + s.y___62748 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___30516 < s.tmp_1); + r0 = (s.y___62748 < 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___30510 * s.tmp_2); - s.left___30522 = (r0); + r0 = (s.x___62742 * s.tmp_2); + s.left___62754 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___30516 * s.tmp_0); - s.top___30527 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P19837_mk(s); + r0 = (s.y___62748 * s.tmp_0); + s.top___62759 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P52044_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___30522; - s.tmp_0.arg2 = s.top___30527; + s.tmp_0.arg1 = s.left___62754; + s.tmp_0.arg2 = s.top___62759; s.callLocIdx = 401; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___30532 = (r0); + s.k___62764 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___30532); - s.b___30537 = (r0); - s.tmp_0 = r0 = s.b___30537; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___62764); + s.b___62769 = (r0); + s.tmp_0 = r0 = s.b___62769; 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___30537); + r0 = pxsim_Array__length(s.b___62769); 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__P17849_mk(s); - s.tmp_2.arg0 = globals.screen___17920; - s.tmp_2.arg1 = s.left___30522; - s.tmp_2.arg2 = s.top___30527; + s.tmp_2 = helpers_imageDrawRect__P50056_mk(s); + s.tmp_2.arg0 = globals.screen___50127; + s.tmp_2.arg1 = s.left___62754; + s.tmp_2.arg2 = s.top___62759; r0 = s.arg0.fields["cellWidth"]; s.tmp_2.arg3 = r0; r0 = s.arg0.fields["cellHeight"]; @@ -33169,34 +33189,34 @@ switch (step) { r0 = s.retval; case 5: case 6: - r0 = (s.y___30516 + 1); - s.y___30516 = (r0); + r0 = (s.y___62748 + 1); + s.y___62748 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___30510 + 1); - s.x___30510 = (r0); + r0 = (s.x___62742 + 1); + s.x___62742 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P18220.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__P50427.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__P18220_mk(s) { +function sprites_SpriteMap_draw__P50427_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P18220, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P50427, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___30510: undefined, - y___30516: undefined, - left___30522: undefined, - top___30527: undefined, - k___30532: undefined, - b___30537: undefined, + x___62742: undefined, + y___62748: undefined, + left___62754: undefined, + top___62759: undefined, + k___62764: undefined, + b___62769: undefined, arg0: undefined, } } @@ -33204,7 +33224,7 @@ function sprites_SpriteMap_draw__P18220_mk(s) { -function ArcadePhysicsEngine_removeSprite__P18306(s) { +function ArcadePhysicsEngine_removeSprite__P50513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33220,7 +33240,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -33228,12 +33248,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P18306.info = {"start":2541,"length":80,"line":102,"column":4,"endLine":104,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_removeSprite__P50513.info = {"start":2541,"length":80,"line":102,"column":4,"endLine":104,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_removeSprite__P18306_mk(s) { +function ArcadePhysicsEngine_removeSprite__P50513_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P18306, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P50513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33244,7 +33264,7 @@ function ArcadePhysicsEngine_removeSprite__P18306_mk(s) { -function ArcadePhysicsEngine_addSprite__P18305(s) { +function ArcadePhysicsEngine_addSprite__P50512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33254,31 +33274,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___30574 = undefined; + s.tm___62806 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C18296_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C50503_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__P18648_mk(s); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 448; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___30574 = (r0); - s.tmp_0 = r0 = s.tm___30574; + s.tm___62806 = (r0); + s.tmp_0 = r0 = s.tm___62806; 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__P18461_mk(s); - s.tmp_1.arg0 = s.tm___30574; + s.tmp_1 = tiles_TileMap_isOnWall__P50668_mk(s); + s.tmp_1.arg0 = s.tm___62806; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 449; s.pc = 6; return s.tmp_1; case 6: @@ -33300,12 +33320,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P18305.info = {"start":2315,"length":220,"line":94,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_addSprite__P50512.info = {"start":2315,"length":220,"line":94,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_addSprite__P18305_mk(s) { +function ArcadePhysicsEngine_addSprite__P50512_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P18305, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P50512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33313,7 +33333,7 @@ function ArcadePhysicsEngine_addSprite__P18305_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___30574: undefined, + tm___62806: undefined, arg0: undefined, arg1: undefined, } } @@ -33322,7 +33342,7 @@ function ArcadePhysicsEngine_addSprite__P18305_mk(s) { -function tiles_TileMapData_constructor__P18428(s) { +function tiles_TileMapData_constructor__P50635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33341,11 +33361,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_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__P18432_mk(s); + s.tmp_0 = tiles_TileMapData_scale__P50639_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; s.callLocIdx = 686; s.pc = 1; return s.tmp_0; @@ -33363,12 +33383,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P18428.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +tiles_TileMapData_constructor__P50635.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function tiles_TileMapData_constructor__P18428_mk(s) { +function tiles_TileMapData_constructor__P50635_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P18428, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P50635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33383,7 +33403,7 @@ function tiles_TileMapData_constructor__P18428_mk(s) { -function tiles_TileMapData_scale__P18432(s) { +function tiles_TileMapData_scale__P50639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33399,7 +33419,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C18427_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C50634_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); @@ -33409,12 +33429,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P18432.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMapData_scale__P50639.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function tiles_TileMapData_scale__P18432_mk(s) { +function tiles_TileMapData_scale__P50639_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P18432, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P50639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33426,7 +33446,7 @@ function tiles_TileMapData_scale__P18432_mk(s) { -function tiles_TileMap_constructor__P18441(s) { +function tiles_TileMap_constructor__P50648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33442,18 +33462,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P18443_mk(s); + s.tmp_0 = tiles_TileMap_scale__P50650_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 692; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P30633); + r0 = pxsim_pxtcore_mkAction(1, inline__P62865); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P18499_mk(s); + s.tmp_1 = scene_createRenderable__P50706_mk(s); s.tmp_1.arg0 = -1; s.tmp_1.arg1 = s.tmp_0; s.tmp_1.arg2 = undefined; @@ -33464,12 +33484,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P18441.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_constructor__P50648.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} -function tiles_TileMap_constructor__P18441_mk(s) { +function tiles_TileMap_constructor__P50648_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P18441, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P50648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33481,7 +33501,7 @@ function tiles_TileMap_constructor__P18441_mk(s) { -function inline__P30633(s) { +function inline__P62865(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33496,7 +33516,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P19941_mk(s); + s.tmp_0 = tiles_TileMap_draw__P52148_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; @@ -33507,12 +33527,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P30633.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +inline__P62865.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} -function inline__P30633_mk(s) { +function inline__P62865_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P30633, depth: s.depth + 1, + parent: s, fn: inline__P62865, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33523,7 +33543,7 @@ function inline__P30633_mk(s) { -function tiles_TileMap_draw__P19941(s) { +function tiles_TileMap_draw__P52148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33533,21 +33553,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___30644 = undefined; - s.offsetX___30650 = undefined; - s.offsetY___30655 = undefined; - s.x0___30660 = undefined; - s.xn___30667 = undefined; - s.y0___30684 = undefined; - s.yn___30691 = undefined; - s.x___30708 = undefined; - s.y___30714 = undefined; - s.index___30720 = undefined; - s.tile___30727 = undefined; - s.x___30763 = undefined; - s.xLine___30769 = undefined; - s.y___30795 = undefined; - s.yLine___30801 = undefined; + s.bitmask___62876 = undefined; + s.offsetX___62882 = undefined; + s.offsetY___62887 = undefined; + s.x0___62892 = undefined; + s.xn___62899 = undefined; + s.y0___62916 = undefined; + s.yn___62923 = undefined; + s.x___62940 = undefined; + s.y___62946 = undefined; + s.index___62952 = undefined; + s.tile___62959 = undefined; + s.x___62995 = undefined; + s.xLine___63001 = undefined; + s.y___63027 = undefined; + s.yLine___63033 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33555,7 +33575,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -33580,16 +33600,16 @@ switch (step) { r0 = (1 << s.tmp_8); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); - s.bitmask___30644 = (r0); + s.bitmask___62876 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___30644); - s.offsetX___30650 = (r0); + r0 = (s.tmp_0 & s.bitmask___62876); + s.offsetX___62882 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___30644); - s.offsetY___30655 = (r0); - s.tmp_0 = Math_max__P16243_mk(s); + r0 = (s.tmp_0 & s.bitmask___62876); + s.offsetY___62887 = (r0); + s.tmp_0 = Math_max__P48450_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -33600,8 +33620,8 @@ switch (step) { s.callLocIdx = 712; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.x0___30660 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); + s.x0___62892 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -33621,8 +33641,8 @@ switch (step) { s.callLocIdx = 715; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.xn___30667 = (r0); - s.tmp_0 = Math_max__P16243_mk(s); + s.xn___62899 = (r0); + s.tmp_0 = Math_max__P48450_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -33633,8 +33653,8 @@ switch (step) { s.callLocIdx = 717; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.y0___30684 = (r0); - s.tmp_0 = Math_min__P16244_mk(s); + s.y0___62916 = (r0); + s.tmp_0 = Math_min__P48451_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -33654,92 +33674,92 @@ switch (step) { s.callLocIdx = 720; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.yn___30691 = (r0); - s.x___30708 = (s.x0___30660); + s.yn___62923 = (r0); + s.x___62940 = (s.x0___62892); case 3: - r0 = (s.x___30708 <= s.xn___30667); + r0 = (s.x___62940 <= s.xn___62899); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___30714 = (s.y0___30684); + s.y___62946 = (s.y0___62916); case 4: - r0 = (s.y___30714 <= s.yn___30691); + r0 = (s.y___62946 <= s.yn___62923); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P18433_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P50640_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___30708; - s.tmp_1.arg2 = s.y___30714; + s.tmp_1.arg1 = s.x___62940; + s.tmp_1.arg2 = s.y___62946; s.callLocIdx = 721; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - s.index___30720 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P18436_mk(s); + s.index___62952 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P50643_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___30720; + s.tmp_0.arg1 = s.index___62952; s.callLocIdx = 722; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tile___30727 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___30727); + s.tile___62959 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___62959); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___30727; - r0 = (s.x___30708 - s.x0___30660); + s.tmp_1 = r0 = s.tile___62959; + r0 = (s.x___62940 - s.x0___62892); 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___30650); + r0 = (s.tmp_3 - s.offsetX___62882); s.tmp_2 = r0; - r0 = (s.y___30714 - s.y0___30684); + r0 = (s.y___62946 - s.y0___62916); 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___30655); + r0 = (s.tmp_7 - s.offsetY___62887); 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___30714 + 1); - s.y___30714 = (r0); + r0 = (s.y___62946 + 1); + s.y___62946 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___30708 + 1); - s.x___30708 = (r0); + r0 = (s.x___62940 + 1); + s.x___62940 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___18644); + r0 = pxsim_numops_toBoolDecr(globals.debug___50851); if (!r0) { step = 21; continue; } - s.x___30763 = (s.x0___30660); + s.x___62995 = (s.x0___62892); case 9: - r0 = (s.x___30763 <= s.xn___30667); + r0 = (s.x___62995 <= s.xn___62899); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___30763 - s.x0___30660); + r0 = (s.x___62995 - s.x0___62892); 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___30650); - s.xLine___30769 = (r0); - r0 = (s.xLine___30769 >= 0); + r0 = (s.tmp_1 - s.offsetX___62882); + s.xLine___63001 = (r0); + r0 = (s.xLine___63001 >= 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___30769; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + s.tmp_1 = r0 = s.xLine___63001; + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -33747,11 +33767,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_4 = helpers_imageDrawLine__P50055_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___30769; + s.tmp_4.arg1 = s.xLine___63001; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___30769; + s.tmp_4.arg3 = s.xLine___63001; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; @@ -33760,33 +33780,33 @@ switch (step) { r0 = s.retval; case 12: case 13: - r0 = (s.x___30763 + 1); - s.x___30763 = (r0); + r0 = (s.x___62995 + 1); + s.x___62995 = (r0); { step = 9; continue; } case 14: - s.y___30795 = (s.y0___30684); + s.y___63027 = (s.y0___62916); case 15: - r0 = (s.y___30795 <= s.yn___30691); + r0 = (s.y___63027 <= s.yn___62923); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___30795 - s.y0___30684); + r0 = (s.y___63027 - s.y0___62916); 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___30655); - s.yLine___30801 = (r0); - r0 = (s.yLine___30801 >= 0); + r0 = (s.tmp_1 - s.offsetY___62887); + s.yLine___63033 = (r0); + r0 = (s.yLine___63033 >= 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___30801; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + s.tmp_1 = r0 = s.yLine___63033; + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -33794,21 +33814,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P17848_mk(s); + s.tmp_4 = helpers_imageDrawLine__P50055_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___30801; + s.tmp_4.arg2 = s.yLine___63033; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___30801; + s.tmp_4.arg4 = s.yLine___63033; s.tmp_4.arg5 = 1; s.callLocIdx = 728; s.pc = 31; return s.tmp_4; case 31: r0 = s.retval; case 18: case 19: - r0 = (s.y___30795 + 1); - s.y___30795 = (r0); + r0 = (s.y___63027 + 1); + s.y___63027 = (r0); { step = 15; continue; } case 20: case 21: @@ -33818,12 +33838,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P19941.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +tiles_TileMap_draw__P52148.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function tiles_TileMap_draw__P19941_mk(s) { +function tiles_TileMap_draw__P52148_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P19941, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P52148, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33835,21 +33855,21 @@ function tiles_TileMap_draw__P19941_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___30644: undefined, - offsetX___30650: undefined, - offsetY___30655: undefined, - x0___30660: undefined, - xn___30667: undefined, - y0___30684: undefined, - yn___30691: undefined, - x___30708: undefined, - y___30714: undefined, - index___30720: undefined, - tile___30727: undefined, - x___30763: undefined, - xLine___30769: undefined, - y___30795: undefined, - yLine___30801: undefined, + bitmask___62876: undefined, + offsetX___62882: undefined, + offsetY___62887: undefined, + x0___62892: undefined, + xn___62899: undefined, + y0___62916: undefined, + yn___62923: undefined, + x___62940: undefined, + y___62946: undefined, + index___62952: undefined, + tile___62959: undefined, + x___62995: undefined, + xLine___63001: undefined, + y___63027: undefined, + yLine___63033: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33859,7 +33879,7 @@ function tiles_TileMap_draw__P19941_mk(s) { -function tiles_TileMap_scale__P18443(s) { +function tiles_TileMap_scale__P50650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33875,13 +33895,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_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__P18432_mk(s); + s.tmp_1 = tiles_TileMapData_scale__P50639_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -33894,12 +33914,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P18443.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMap_scale__P50650.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function tiles_TileMap_scale__P18443_mk(s) { +function tiles_TileMap_scale__P50650_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P18443, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P50650, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33911,7 +33931,7 @@ function tiles_TileMap_scale__P18443_mk(s) { -function tiles_TileMap_data__P19939(s) { +function tiles_TileMap_data__P52146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33926,18 +33946,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C18440_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C50647_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P19939.info = {"start":6344,"length":75,"line":231,"column":8,"endLine":233,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_TileMap_data__P19939.isGetter = true; +tiles_TileMap_data__P52146.info = {"start":6344,"length":75,"line":231,"column":8,"endLine":233,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} +tiles_TileMap_data__P52146.isGetter = true; -function tiles_TileMap_data__P19939_mk(s) { +function tiles_TileMap_data__P52146_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P19939, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P52146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33946,7 +33966,7 @@ function tiles_TileMap_data__P19939_mk(s) { -function Sprite_toString__P18212(s) { +function Sprite_toString__P50419(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33961,7 +33981,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -33979,7 +33999,7 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P18147_mk(s); + s.tmp_14 = Sprite_x__P50354_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 382; s.pc = 2; return s.tmp_14; case 2: @@ -33998,7 +34018,7 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P18149_mk(s); + s.tmp_17 = Sprite_y__P50356_mk(s); s.tmp_17.arg0 = s.arg0; s.callLocIdx = 383; s.pc = 4; return s.tmp_17; case 4: @@ -34017,7 +34037,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P18151_mk(s); + s.tmp_20 = Sprite_vx__P50358_mk(s); s.tmp_20.arg0 = s.arg0; s.callLocIdx = 384; s.pc = 6; return s.tmp_20; case 6: @@ -34036,7 +34056,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P18153_mk(s); + s.tmp_23 = Sprite_vy__P50360_mk(s); s.tmp_23.arg0 = s.arg0; s.callLocIdx = 385; s.pc = 8; return s.tmp_23; case 8: @@ -34057,12 +34077,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P18212.info = {"start":33562,"length":93,"line":988,"column":4,"endLine":990,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P50419.info = {"start":33562,"length":93,"line":988,"column":4,"endLine":990,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P18212_mk(s) { +function Sprite_toString__P50419_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P18212, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P50419, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34095,7 +34115,7 @@ function Sprite_toString__P18212_mk(s) { -function Sprite___update__P18200(s) { +function Sprite___update__P50407(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34105,8 +34125,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___30900 = undefined; - s.tm___30905 = undefined; + s.bounce___63132 = undefined; + s.tm___63137 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34114,7 +34134,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -34136,7 +34156,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__P18210_mk(s); + s.tmp_0 = Sprite__destroyCore__P50417_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 318; s.pc = 33; return s.tmp_0; case 33: @@ -34154,7 +34174,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P18198_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P50405_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 319; s.pc = 34; return s.tmp_2; @@ -34165,7 +34185,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P18209_mk(s); + s.tmp_4 = Sprite_destroy__P50416_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; @@ -34177,13 +34197,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___30900 = (r0); - s.tmp_0 = game_currentScene__P18648_mk(s); + s.bounce___63132 = (r0); + s.tmp_0 = game_currentScene__P50855_mk(s); s.callLocIdx = 321; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___30905 = (r0); + s.tm___63137 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -34193,13 +34213,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___30900; + s.tmp_2 = r0 = s.bounce___63132; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 10; continue; } r0 = s.tmp_2; { step = 11; continue; } case 10: - r0 = pxsim_numops_toBoolDecr(s.tm___30905); + r0 = pxsim_numops_toBoolDecr(s.tm___63137); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -34211,7 +34231,7 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P18184_mk(s); + s.tmp_8 = Sprite_left__P50391_mk(s); s.tmp_8.arg0 = s.arg0; s.callLocIdx = 322; s.pc = 37; return s.tmp_8; case 37: @@ -34223,18 +34243,18 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P18185_mk(s); + s.tmp_10 = Sprite_left__P50392_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; s.callLocIdx = 325; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30900); + r0 = pxsim_numops_toBoolDecr(s.bounce___63132); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P18152_mk(s); + s.tmp_0 = Sprite_vx__P50359_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P18151_mk(s); + s.tmp_2 = Sprite_vx__P50358_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 326; s.pc = 40; return s.tmp_2; case 40: @@ -34249,7 +34269,7 @@ switch (step) { case 14: { step = 20; continue; } case 15: - s.tmp_2 = Sprite_right__P18186_mk(s); + s.tmp_2 = Sprite_right__P50393_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 328; s.pc = 41; return s.tmp_2; case 41: @@ -34257,7 +34277,7 @@ switch (step) { s.tmp_1 = r0; r0 = s.arg1.fields["_offsetX"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -34265,22 +34285,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P18187_mk(s); + s.tmp_6 = Sprite_right__P50394_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; s.callLocIdx = 331; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30900); + r0 = pxsim_numops_toBoolDecr(s.bounce___63132); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P18152_mk(s); + s.tmp_0 = Sprite_vx__P50359_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P18151_mk(s); + s.tmp_2 = Sprite_vx__P50358_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 332; s.pc = 44; return s.tmp_2; case 44: @@ -34296,7 +34316,7 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P18188_mk(s); + s.tmp_2 = Sprite_top__P50395_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 334; s.pc = 45; return s.tmp_2; case 45: @@ -34308,18 +34328,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P18189_mk(s); + s.tmp_4 = Sprite_top__P50396_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; s.callLocIdx = 337; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30900); + r0 = pxsim_numops_toBoolDecr(s.bounce___63132); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P18154_mk(s); + s.tmp_0 = Sprite_vy__P50361_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P18153_mk(s); + s.tmp_2 = Sprite_vy__P50360_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 338; s.pc = 48; return s.tmp_2; case 48: @@ -34334,7 +34354,7 @@ switch (step) { case 22: { step = 28; continue; } case 23: - s.tmp_2 = Sprite_bottom__P18190_mk(s); + s.tmp_2 = Sprite_bottom__P50397_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 340; s.pc = 49; return s.tmp_2; case 49: @@ -34342,7 +34362,7 @@ switch (step) { s.tmp_1 = r0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -34350,22 +34370,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P18191_mk(s); + s.tmp_6 = Sprite_bottom__P50398_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; s.callLocIdx = 343; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30900); + r0 = pxsim_numops_toBoolDecr(s.bounce___63132); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P18154_mk(s); + s.tmp_0 = Sprite_vy__P50361_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P18153_mk(s); + s.tmp_2 = Sprite_vy__P50360_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 344; s.pc = 52; return s.tmp_2; case 52: @@ -34408,12 +34428,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P18200.info = {"start":22432,"length":1390,"line":686,"column":4,"endLine":725,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P50407.info = {"start":22432,"length":1390,"line":686,"column":4,"endLine":725,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P18200_mk(s) { +function Sprite___update__P50407_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P18200, depth: s.depth + 1, + parent: s, fn: Sprite___update__P50407, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34426,8 +34446,8 @@ function Sprite___update__P18200_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___30900: undefined, - tm___30905: undefined, + bounce___63132: undefined, + tm___63137: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34437,7 +34457,7 @@ function Sprite___update__P18200_mk(s) { -function Sprite_isOutOfScreen__P18198(s) { +function Sprite_isOutOfScreen__P50405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34447,15 +34467,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___30994 = undefined; - s.oy___31002 = undefined; + s.ox___63226 = undefined; + s.oy___63234 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -34469,7 +34489,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___30994 = (s.tmp_2); + s.ox___63226 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -34483,14 +34503,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___31002 = (s.tmp_2); - s.tmp_3 = Sprite_right__P18186_mk(s); + s.oy___63234 = (s.tmp_2); + s.tmp_3 = Sprite_right__P50393_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 287; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___30994); + r0 = (s.tmp_2 - s.ox___63226); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -34499,13 +34519,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P18190_mk(s); + s.tmp_6 = Sprite_bottom__P50397_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 288; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___31002); + r0 = (s.tmp_5 - s.oy___63234); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -34516,15 +34536,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P18184_mk(s); + s.tmp_10 = Sprite_left__P50391_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 289; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___30994); + r0 = (s.tmp_9 - s.ox___63226); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -34535,15 +34555,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P18188_mk(s); + s.tmp_15 = Sprite_top__P50395_mk(s); s.tmp_15.arg0 = s.arg0; s.callLocIdx = 290; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___31002); + r0 = (s.tmp_14 - s.oy___63234); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -34553,12 +34573,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P18198.info = {"start":20679,"length":358,"line":640,"column":4,"endLine":644,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P50405.info = {"start":20679,"length":358,"line":640,"column":4,"endLine":644,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P18198_mk(s) { +function Sprite_isOutOfScreen__P50405_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P18198, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P50405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34578,8 +34598,8 @@ function Sprite_isOutOfScreen__P18198_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___30994: undefined, - oy___31002: undefined, + ox___63226: undefined, + oy___63234: undefined, arg0: undefined, arg1: undefined, } } @@ -34588,7 +34608,7 @@ function Sprite_isOutOfScreen__P18198_mk(s) { -function Sprite_bottom__P18191(s) { +function Sprite_bottom__P50398(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34604,8 +34624,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P18189_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P50396_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -34621,12 +34641,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_bottom__P18191.info = {"start":10414,"length":73,"line":378,"column":4,"endLine":380,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P50398.info = {"start":10414,"length":73,"line":378,"column":4,"endLine":380,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function Sprite_bottom__P18191_mk(s) { +function Sprite_bottom__P50398_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P18191, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P50398, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34640,7 +34660,7 @@ function Sprite_bottom__P18191_mk(s) { -function Sprite_right__P18187(s) { +function Sprite_right__P50394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34656,8 +34676,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P18185_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P50392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -34673,12 +34693,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_right__P18187.info = {"start":9607,"length":71,"line":348,"column":4,"endLine":350,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P50394.info = {"start":9607,"length":71,"line":348,"column":4,"endLine":350,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function Sprite_right__P18187_mk(s) { +function Sprite_right__P50394_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P18187, depth: s.depth + 1, + parent: s, fn: Sprite_right__P50394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34692,7 +34712,7 @@ function Sprite_right__P18187_mk(s) { -function Sprite_width__P18182(s) { +function Sprite_width__P50389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34707,20 +34727,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_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() } } } -Sprite_width__P18182.info = {"start":8673,"length":52,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P18182.isGetter = true; +Sprite_width__P50389.info = {"start":8673,"length":52,"line":313,"column":4,"endLine":315,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P50389.isGetter = true; -function Sprite_width__P18182_mk(s) { +function Sprite_width__P50389_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P18182, depth: s.depth + 1, + parent: s, fn: Sprite_width__P50389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34730,7 +34750,7 @@ function Sprite_width__P18182_mk(s) { -function Sprite_data__P18164(s) { +function Sprite_data__P50371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34746,18 +34766,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P18164.info = {"start":4471,"length":56,"line":169,"column":4,"endLine":171,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P50371.info = {"start":4471,"length":56,"line":169,"column":4,"endLine":171,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P18164_mk(s) { +function Sprite_data__P50371_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P18164, depth: s.depth + 1, + parent: s, fn: Sprite_data__P50371, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34767,7 +34787,7 @@ function Sprite_data__P18164_mk(s) { -function Sprite_data__P18163(s) { +function Sprite_data__P50370(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34782,7 +34802,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -34801,13 +34821,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P18163.info = {"start":4373,"length":92,"line":164,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P18163.isGetter = true; +Sprite_data__P50370.info = {"start":4373,"length":92,"line":164,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P50370.isGetter = true; -function Sprite_data__P18163_mk(s) { +function Sprite_data__P50370_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P18163, depth: s.depth + 1, + parent: s, fn: Sprite_data__P50370, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34821,7 +34841,7 @@ function Sprite_data__P18163_mk(s) { -function scene_BackgroundLayer_constructor__P18405(s) { +function scene_BackgroundLayer_constructor__P50612(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34839,9 +34859,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C18398_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C50605_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P16243_mk(s); + s.tmp_2 = Math_max__P48450_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; s.callLocIdx = 680; s.pc = 7; return s.tmp_2; @@ -34887,12 +34907,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_constructor__P18405.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__P50612.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__P18405_mk(s) { +function scene_BackgroundLayer_constructor__P50612_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_constructor__P18405, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P50612, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34907,7 +34927,7 @@ function scene_BackgroundLayer_constructor__P18405_mk(s) { -function scene_Camera_y__P18486(s) { +function scene_Camera_y__P50693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34922,10 +34942,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___17920); + r0 = pxsim_ImageMethods.height(globals.screen___50127); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -34933,13 +34953,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_y__P18486.info = {"start":1398,"length":79,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} -scene_Camera_y__P18486.isGetter = true; +scene_Camera_y__P50693.info = {"start":1398,"length":79,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} +scene_Camera_y__P50693.isGetter = true; -function scene_Camera_y__P18486_mk(s) { +function scene_Camera_y__P50693_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P18486, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P50693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34951,7 +34971,7 @@ function scene_Camera_y__P18486_mk(s) { -function scene_Camera_x__P18485(s) { +function scene_Camera_x__P50692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34966,10 +34986,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___17920); + r0 = pxsim_ImageMethods.width(globals.screen___50127); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -34977,13 +34997,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_x__P18485.info = {"start":1311,"length":78,"line":46,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} -scene_Camera_x__P18485.isGetter = true; +scene_Camera_x__P50692.info = {"start":1311,"length":78,"line":46,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} +scene_Camera_x__P50692.isGetter = true; -function scene_Camera_x__P18485_mk(s) { +function scene_Camera_x__P50692_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_x__P18485, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P50692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34995,7 +35015,7 @@ function scene_Camera_x__P18485_mk(s) { -function particles_ParticleSource___draw__P18800(s) { +function particles_ParticleSource___draw__P51007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35005,18 +35025,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___31117 = undefined; - s.left___31120 = undefined; - s.top___31130 = undefined; + s.current___63349 = undefined; + s.left___63352 = undefined; + s.top___63362 = 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__C18794_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___31117 = (r0); + s.current___63349 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -35034,7 +35054,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___31120 = (s.tmp_4); + s.left___63352 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -35052,49 +35072,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___31130 = (s.tmp_4); + s.top___63362 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___31117); + r0 = pxsim_numops_toBoolDecr(s.current___63349); if (!r0) { step = 8; continue; } - r0 = s.current___31117.fields["lifespan"]; + r0 = s.current___63349.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__P20350_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P52557_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___31117; - s.tmp_2.arg2 = s.left___31120; - s.tmp_2.arg3 = s.top___31130; - s.callLocIdx = 1023; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___63349; + s.tmp_2.arg2 = s.left___63352; + s.tmp_2.arg3 = s.top___63362; + s.callLocIdx = 1024; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___31117.fields["next"]; - s.current___31117 = (r0); + r0 = s.current___63349.fields["next"]; + s.current___63349 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P18800.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} +particles_ParticleSource___draw__P51007.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} -function particles_ParticleSource___draw__P18800_mk(s) { +function particles_ParticleSource___draw__P51007_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P18800, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P51007, depth: s.depth + 1, pc: 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___31117: undefined, - left___31120: undefined, - top___31130: undefined, + current___63349: undefined, + left___63352: undefined, + top___63362: undefined, arg0: undefined, arg1: undefined, } } @@ -35103,7 +35123,7 @@ function particles_ParticleSource___draw__P18800_mk(s) { -function particles_ParticleSource_drawParticle__P20350(s) { +function particles_ParticleSource_drawParticle__P52557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35121,8 +35141,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C18794_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C18830_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C51001_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C51037_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -35134,7 +35154,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__C18830_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C51037_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: @@ -35143,12 +35163,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P20350.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} +particles_ParticleSource_drawParticle__P52557.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} -function particles_ParticleSource_drawParticle__P20350_mk(s) { +function particles_ParticleSource_drawParticle__P52557_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P20350, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P52557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35163,7 +35183,7 @@ function particles_ParticleSource_drawParticle__P20350_mk(s) { -function particles_ParticleFactory_drawParticle__P18833(s) { +function particles_ParticleFactory_drawParticle__P51040(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35181,8 +35201,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C18830_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___17920; + if (!checkSubtype(r0, particles_ParticleFactory__C51037_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___50127; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -35196,12 +35216,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P18833.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__P51040.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__P18833_mk(s) { +function particles_ParticleFactory_drawParticle__P51040_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P18833, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P51040, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35218,7 +35238,7 @@ function particles_ParticleFactory_drawParticle__P18833_mk(s) { -function sprites_BaseSprite___update__P17984(s) { +function sprites_BaseSprite___update__P50191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35235,17 +35255,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P17984.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__P50191.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__P17984_mk(s) { +function sprites_BaseSprite___update__P50191_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P17984, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P50191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -35256,7 +35276,7 @@ function sprites_BaseSprite___update__P17984_mk(s) { -function sprites_BaseSprite___draw__P17982(s) { +function sprites_BaseSprite___draw__P50189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35272,10 +35292,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C17976_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C50183_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C17976_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C50183_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: @@ -35283,10 +35303,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C17976_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C50183_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C17976_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C50183_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: @@ -35297,12 +35317,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P17982.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__P50189.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__P17982_mk(s) { +function sprites_BaseSprite___draw__P50189_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P17982, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P50189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35315,7 +35335,7 @@ function sprites_BaseSprite___draw__P17982_mk(s) { -function sprites_BaseSprite___drawCore__P17983(s) { +function sprites_BaseSprite___drawCore__P50190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35331,17 +35351,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P17983.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__P50190.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__P17983_mk(s) { +function sprites_BaseSprite___drawCore__P50190_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P17983, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P50190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -35351,7 +35371,7 @@ function sprites_BaseSprite___drawCore__P17983_mk(s) { -function sprites_BaseSprite___visible__P17979(s) { +function sprites_BaseSprite___visible__P50186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35366,17 +35386,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C17976_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C50183_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P17979.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__P50186.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__P17979_mk(s) { +function sprites_BaseSprite___visible__P50186_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P17979, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P50186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35385,7 +35405,7 @@ function sprites_BaseSprite___visible__P17979_mk(s) { -function particles_ShapeFactory_createParticle__P18860(s) { +function particles_ShapeFactory_createParticle__P51067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35395,47 +35415,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___31192 = undefined; + s.p___63424 = 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__C18856_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P18846_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C51063_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P51053_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1117; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1118; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___31192 = (r0); - s.tmp_0 = r0 = s.p___31192; - s.tmp_2 = Math_FastRandom_randomRange__P18706_mk(s); + s.p___63424 = (r0); + s.tmp_0 = r0 = s.p___63424; + s.tmp_2 = Math_FastRandom_randomRange__P50913_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1118; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1119; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["color"] = (s.tmp_1); - r0 = s.p___31192; + r0 = s.p___63424; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P18860.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__P51067.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__P18860_mk(s) { +function particles_ShapeFactory_createParticle__P51067_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P18860, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P51067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___31192: undefined, + p___63424: undefined, arg0: undefined, arg1: undefined, } } @@ -35444,7 +35464,7 @@ function particles_ShapeFactory_createParticle__P18860_mk(s) { -function particles_AreaFactory_createParticle__P18846(s) { +function particles_AreaFactory_createParticle__P51053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35454,42 +35474,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___31204 = undefined; + s.p___63436 = 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__C18840_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P18836_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C51047_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P51043_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1099; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1100; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___31204 = (r0); - s.tmp_0 = r0 = s.p___31204; - s.tmp_2 = Math_FastRandom_randomRange__P18706_mk(s); + s.p___63436 = (r0); + s.tmp_0 = r0 = s.p___63436; + s.tmp_2 = Math_FastRandom_randomRange__P50913_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["minLifespan"]; s.tmp_2.arg1 = r0; r0 = s.arg0.fields["maxLifespan"]; s.tmp_2.arg2 = r0; - s.callLocIdx = 1100; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1101; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___31204; - s.tmp_4 = Math_FastRandom_randomRange__P18706_mk(s); + s.tmp_0 = r0 = s.p___63436; + s.tmp_4 = Math_FastRandom_randomRange__P50913_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 0; r0 = s.arg0.fields["xRange"]; s.tmp_4.arg2 = r0; - s.callLocIdx = 1101; s.pc = 5; return s.tmp_4; + s.callLocIdx = 1102; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -35499,7 +35519,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___31204.fields["_x"]; + r0 = s.p___63436.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -35514,7 +35534,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1104; s.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1105; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -35529,7 +35549,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1105; s.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1106; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -35541,36 +35561,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___31204; - s.tmp_9 = Math_FastRandom_randomRange__P18706_mk(s); + s.tmp_5 = r0 = s.p___63436; + s.tmp_9 = Math_FastRandom_randomRange__P50913_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = 0; r0 = s.arg0.fields["yRange"]; s.tmp_9.arg2 = r0; - s.callLocIdx = 1103; s.pc = 8; return s.tmp_9; + s.callLocIdx = 1104; s.pc = 8; return s.tmp_9; case 8: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 - s.tmp_4); s.tmp_7 = r0; - r0 = s.p___31204.fields["_y"]; + r0 = s.p___63436.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___31204; + r0 = s.p___63436; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P18846.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__P51053.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__P18846_mk(s) { +function particles_AreaFactory_createParticle__P51053_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P18846, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P51053, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35584,7 +35604,7 @@ function particles_AreaFactory_createParticle__P18846_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___31204: undefined, + p___63436: undefined, arg0: undefined, arg1: undefined, } } @@ -35593,7 +35613,7 @@ function particles_AreaFactory_createParticle__P18846_mk(s) { -function particles_SprayFactory_createParticle__P18836(s) { +function particles_SprayFactory_createParticle__P51043(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35603,39 +35623,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___31252 = undefined; - s.angle___31256 = undefined; + s.p___63484 = undefined; + s.angle___63488 = 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__C18834_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P18832_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C51041_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P51039_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1088; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1089; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___31252 = (r0); + s.p___63484 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P18706_mk(s); - s.tmp_3.arg0 = globals.galois___20364; + s.tmp_3 = Math_FastRandom_randomRange__P50913_mk(s); + s.tmp_3.arg0 = globals.galois___52571; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1089; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1090; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 % 100); - s.angle___31256 = (r0); - s.tmp_0 = r0 = s.p___31252; - r0 = pxsim_Array__getAt(globals.cachedSin___20359, s.angle___31256); + s.angle___63488 = (r0); + s.tmp_0 = r0 = s.p___63484; + r0 = pxsim_Array__getAt(globals.cachedSin___52566, s.angle___63488); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -35644,8 +35664,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___31252; - r0 = pxsim_Array__getAt(globals.cachedCos___20360, s.angle___31256); + s.tmp_0 = r0 = s.p___63484; + r0 = pxsim_Array__getAt(globals.cachedCos___52567, s.angle___63488); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -35654,24 +35674,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___31252; + r0 = s.p___63484; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P18836.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__P51043.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__P18836_mk(s) { +function particles_SprayFactory_createParticle__P51043_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P18836, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P51043, depth: s.depth + 1, pc: 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___31252: undefined, - angle___31256: undefined, + p___63484: undefined, + angle___63488: undefined, arg0: undefined, arg1: undefined, } } @@ -35680,7 +35700,7 @@ function particles_SprayFactory_createParticle__P18836_mk(s) { -function scene_Scene_data__P18558(s) { +function scene_Scene_data__P50765(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35695,18 +35715,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C18535_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C50742_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P18558.info = {"start":6655,"length":53,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P18558.isGetter = true; +scene_Scene_data__P50765.info = {"start":6655,"length":53,"line":182,"column":8,"endLine":184,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P50765.isGetter = true; -function scene_Scene_data__P18558_mk(s) { +function scene_Scene_data__P50765_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P18558, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P50765, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35715,7 +35735,7 @@ function scene_Scene_data__P18558_mk(s) { -function controller_AnyButton_isPressed__P19828(s) { +function controller_AnyButton_isPressed__P52035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35725,36 +35745,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___31290 = undefined; - s.b___31294 = undefined; - s.unnamed136___U2 = undefined; - s.unnamed137___U3 = undefined; + s.ctrl___63522 = undefined; + s.b___63526 = undefined; + s.unnamed296___U2 = undefined; + s.unnamed297___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C19826_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P18035_mk(s); + if (!checkSubtype(r0, controller_AnyButton__C52033_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P50242_mk(s); s.callLocIdx = 148; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___31290 = (r0); - s.b___31294 = (undefined); - r0 = s.ctrl___31290.fields["buttons"]; - s.unnamed136___U2 = (r0); - s.unnamed137___U3 = (0); + s.ctrl___63522 = (r0); + s.b___63526 = (undefined); + r0 = s.ctrl___63522.fields["buttons"]; + s.unnamed296___U2 = (r0); + s.unnamed297___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed137___U3; - r0 = pxsim_Array__length(s.unnamed136___U2); + s.tmp_0 = r0 = s.unnamed297___U3; + r0 = pxsim_Array__length(s.unnamed296___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed136___U2, s.unnamed137___U3); - s.b___31294 = (r0); - s.tmp_3 = controller_Button__C18021_v0_1_mk(s); - s.tmp_3.arg0 = s.b___31294; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C18021_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed296___U2, s.unnamed297___U3); + s.b___63526 = (r0); + s.tmp_3 = controller_Button__C50228_v0_1_mk(s); + s.tmp_3.arg0 = s.b___63526; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C50228_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: @@ -35766,31 +35786,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed137___U3 + 1); - s.unnamed137___U3 = (r0); + r0 = (s.unnamed297___U3 + 1); + s.unnamed297___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed136___U2 = (undefined); + s.unnamed296___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P19828.info = {"start":5874,"length":202,"line":185,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_AnyButton_isPressed__P52035.info = {"start":5874,"length":202,"line":185,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P19828_mk(s) { +function controller_AnyButton_isPressed__P52035_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P19828, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P52035, depth: s.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___31290: undefined, - b___31294: undefined, - unnamed136___U2: undefined, - unnamed137___U3: undefined, + ctrl___63522: undefined, + b___63526: undefined, + unnamed296___U2: undefined, + unnamed297___U3: undefined, arg0: undefined, } } @@ -35798,7 +35818,7 @@ function controller_AnyButton_isPressed__P19828_mk(s) { -function controller_Button_toString__P18026(s) { +function controller_Button_toString__P50233(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35813,7 +35833,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C18021_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C50228_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -35853,12 +35873,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P18026.info = {"start":1479,"length":100,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"toString","argumentNames":["this"]} +controller_Button_toString__P50233.info = {"start":1479,"length":100,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"toString","argumentNames":["this"]} -function controller_Button_toString__P18026_mk(s) { +function controller_Button_toString__P50233_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P18026, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P50233, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35874,7 +35894,7 @@ function controller_Button_toString__P18026_mk(s) { -function sprites_StaticObstacle_width__P18278(s) { +function sprites_StaticObstacle_width__P50485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35889,20 +35909,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C18268_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C50475_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__P18278.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__P18278.isGetter = true; +sprites_StaticObstacle_width__P50485.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__P50485.isGetter = true; -function sprites_StaticObstacle_width__P18278_mk(s) { +function sprites_StaticObstacle_width__P50485_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P18278, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P50485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35912,7 +35932,7 @@ function sprites_StaticObstacle_width__P18278_mk(s) { -function sprites_StaticObstacle_height__P18277(s) { +function sprites_StaticObstacle_height__P50484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35927,20 +35947,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C18268_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C50475_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__P18277.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__P18277.isGetter = true; +sprites_StaticObstacle_height__P50484.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__P50484.isGetter = true; -function sprites_StaticObstacle_height__P18277_mk(s) { +function sprites_StaticObstacle_height__P50484_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P18277, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P50484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35950,7 +35970,7 @@ function sprites_StaticObstacle_height__P18277_mk(s) { -function sprites_StaticObstacle_y__P18276(s) { +function sprites_StaticObstacle_y__P50483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35965,7 +35985,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C18268_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C50475_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -35978,13 +35998,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P18276.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__P18276.isGetter = true; +sprites_StaticObstacle_y__P50483.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__P50483.isGetter = true; -function sprites_StaticObstacle_y__P18276_mk(s) { +function sprites_StaticObstacle_y__P50483_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P18276, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P50483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35997,7 +36017,7 @@ function sprites_StaticObstacle_y__P18276_mk(s) { -function sprites_StaticObstacle_x__P18275(s) { +function sprites_StaticObstacle_x__P50482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36012,7 +36032,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C18268_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C50475_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -36025,13 +36045,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P18275.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__P18275.isGetter = true; +sprites_StaticObstacle_x__P50482.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__P50482.isGetter = true; -function sprites_StaticObstacle_x__P18275_mk(s) { +function sprites_StaticObstacle_x__P50482_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P18275, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P50482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36044,7 +36064,7 @@ function sprites_StaticObstacle_x__P18275_mk(s) { -function tiles_Location_y__P18417(s) { +function tiles_Location_y__P50624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36054,22 +36074,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___31334 = undefined; + s.scale___63566 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); r0 = s.arg0.fields["tileMap"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___31334 = (r0); + s.scale___63566 = (r0); r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___31334); + r0 = (s.tmp_1 << s.scale___63566); s.tmp_0 = r0; - r0 = (s.scale___31334 - 1); + r0 = (s.scale___63566 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -36077,19 +36097,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_y__P18417.info = {"start":836,"length":135,"line":38,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} -tiles_Location_y__P18417.isGetter = true; +tiles_Location_y__P50624.info = {"start":836,"length":135,"line":38,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} +tiles_Location_y__P50624.isGetter = true; -function tiles_Location_y__P18417_mk(s) { +function tiles_Location_y__P50624_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P18417, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P50624, depth: s.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___31334: undefined, + scale___63566: undefined, arg0: undefined, } } @@ -36097,7 +36117,7 @@ function tiles_Location_y__P18417_mk(s) { -function tiles_Location_x__P18416(s) { +function tiles_Location_x__P50623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36107,22 +36127,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___31351 = undefined; + s.scale___63583 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C18412_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C50619_VT)) failedCast(r0); r0 = s.arg0.fields["tileMap"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___31351 = (r0); + s.scale___63583 = (r0); r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___31351); + r0 = (s.tmp_1 << s.scale___63583); s.tmp_0 = r0; - r0 = (s.scale___31351 - 1); + r0 = (s.scale___63583 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -36130,19 +36150,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_x__P18416.info = {"start":691,"length":135,"line":33,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} -tiles_Location_x__P18416.isGetter = true; +tiles_Location_x__P50623.info = {"start":691,"length":135,"line":33,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} +tiles_Location_x__P50623.isGetter = true; -function tiles_Location_x__P18416_mk(s) { +function tiles_Location_x__P50623_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P18416, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P50623, depth: s.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___31351: undefined, + scale___63583: undefined, arg0: undefined, } } @@ -36150,7 +36170,7 @@ function tiles_Location_x__P18416_mk(s) { -function scene_Renderable___drawCore__P18497(s) { +function scene_Renderable___drawCore__P50704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36166,10 +36186,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C18494_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C50701_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___17920; + s.tmp_0.arg1 = globals.screen___50127; 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); @@ -36186,12 +36206,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P18497.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__P50704.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__P18497_mk(s) { +function scene_Renderable___drawCore__P50704_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P18497, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P50704, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36202,7 +36222,7 @@ function scene_Renderable___drawCore__P18497_mk(s) { -function scene_Renderable___visible__P18496(s) { +function scene_Renderable___visible__P50703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36217,7 +36237,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C18494_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C50701_VT)) failedCast(r0); s.tmp_0 = if_shouldBeVisible_1_mk(s); s.tmp_0.arg0 = s.arg0; if (!s.tmp_0.arg0.vtable.iface) { @@ -36234,12 +36254,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P18496.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__P50703.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__P18496_mk(s) { +function scene_Renderable___visible__P50703_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P18496, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P50703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36249,7 +36269,7 @@ function scene_Renderable___visible__P18496_mk(s) { -function Sprite___drawCore__P18199(s) { +function Sprite___drawCore__P50406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36259,21 +36279,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___31378 = undefined; - s.oy___31386 = undefined; - s.l___31394 = undefined; - s.t___31398 = undefined; - s.font___31414 = undefined; - s.tx___31418 = undefined; - s.ty___31420 = undefined; + s.ox___63610 = undefined; + s.oy___63618 = undefined; + s.l___63626 = undefined; + s.t___63630 = undefined; + s.font___63646 = undefined; + s.tx___63650 = undefined; + s.ty___63652 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); - s.tmp_1 = Sprite_isOutOfScreen__P18198_mk(s); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); + s.tmp_1 = Sprite_isOutOfScreen__P50405_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 291; s.pc = 20; return s.tmp_1; @@ -36298,7 +36318,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___31378 = (s.tmp_4); + s.ox___63610 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -36312,35 +36332,35 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___31386 = (s.tmp_2); - s.tmp_1 = Sprite_left__P18184_mk(s); + s.oy___63618 = (s.tmp_2); + s.tmp_1 = Sprite_left__P50391_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 292; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.ox___31378); - s.l___31394 = (r0); - s.tmp_1 = Sprite_top__P18188_mk(s); + r0 = (s.tmp_0 - s.ox___63610); + s.l___63626 = (r0); + s.tmp_1 = Sprite_top__P50395_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 293; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.oy___31386); - s.t___31398 = (r0); + r0 = (s.tmp_0 - s.oy___63618); + s.t___63630 = (r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___17920, s.tmp_0, s.l___31394, s.t___31398); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___50127, s.tmp_0, s.l___63626, s.t___63630); 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 = 15; continue; } - s.font___31414 = (globals.font5___17868); - s.tx___31418 = (s.l___31394); - s.tmp_1 = r0 = s.t___31398; + s.font___63646 = (globals.font5___50075); + s.tx___63650 = (s.l___63626); + s.tmp_1 = r0 = s.t___63630; r0 = s.arg0.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -36348,12 +36368,12 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___31420 = (r0); - s.tmp_0 = helpers_imagePrint__P17878_mk(s); - s.tmp_0.arg0 = globals.screen___17920; + s.ty___63652 = (r0); + s.tmp_0 = helpers_imagePrint__P50085_mk(s); + s.tmp_0.arg0 = globals.screen___50127; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P18147_mk(s); + s.tmp_7 = Sprite_x__P50354_mk(s); s.tmp_7.arg0 = s.arg0; s.callLocIdx = 295; s.pc = 24; return s.tmp_7; case 24: @@ -36374,7 +36394,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P18149_mk(s); + s.tmp_11 = Sprite_y__P50356_mk(s); s.tmp_11.arg0 = s.arg0; s.callLocIdx = 296; s.pc = 26; return s.tmp_11; case 26: @@ -36393,17 +36413,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___31418; - s.tmp_0.arg3 = s.ty___31420; + s.tmp_0.arg2 = s.tx___63650; + s.tmp_0.arg3 = s.ty___63652; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___31414; + s.tmp_0.arg5 = s.font___63646; s.tmp_0.arg6 = undefined; s.callLocIdx = 297; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = r0 = s.tx___31418; + s.tmp_0 = r0 = s.tx___63650; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___31414; + s.tmp_2.arg0 = s.font___63646; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); } else { @@ -36416,8 +36436,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___31418 = (r0); - s.tmp_1 = Sprite_vx__P18151_mk(s); + s.tx___63650 = (r0); + s.tmp_1 = Sprite_vx__P50358_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 299; s.pc = 29; return s.tmp_1; case 29: @@ -36428,7 +36448,7 @@ switch (step) { r0 = s.tmp_0; { step = 8; continue; } case 7: - s.tmp_2 = Sprite_vy__P18153_mk(s); + s.tmp_2 = Sprite_vy__P50360_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 300; s.pc = 30; return s.tmp_2; case 30: @@ -36438,9 +36458,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 9; continue; } - s.tmp_4 = r0 = s.ty___31420; + s.tmp_4 = r0 = s.ty___63652; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___31414; + s.tmp_7.arg0 = s.font___63646; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -36455,10 +36475,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___31420 = (r0); - s.tmp_0 = helpers_imagePrint__P17878_mk(s); - s.tmp_0.arg0 = globals.screen___17920; - s.tmp_6 = Sprite_vx__P18151_mk(s); + s.ty___63652 = (r0); + s.tmp_0 = helpers_imagePrint__P50085_mk(s); + s.tmp_0.arg0 = globals.screen___50127; + s.tmp_6 = Sprite_vx__P50358_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 302; s.pc = 33; return s.tmp_6; case 33: @@ -36479,7 +36499,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P18153_mk(s); + s.tmp_10 = Sprite_vy__P50360_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 303; s.pc = 35; return s.tmp_10; case 35: @@ -36498,17 +36518,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___31418; - s.tmp_0.arg3 = s.ty___31420; + s.tmp_0.arg2 = s.tx___63650; + s.tmp_0.arg3 = s.ty___63652; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___31414; + s.tmp_0.arg5 = s.font___63646; s.tmp_0.arg6 = undefined; s.callLocIdx = 304; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; case 9: case 10: - s.tmp_1 = Sprite_ax__P18155_mk(s); + s.tmp_1 = Sprite_ax__P50362_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 305; s.pc = 37; return s.tmp_1; case 37: @@ -36519,7 +36539,7 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - s.tmp_2 = Sprite_ay__P18157_mk(s); + s.tmp_2 = Sprite_ay__P50364_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 306; s.pc = 38; return s.tmp_2; case 38: @@ -36529,9 +36549,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.ty___31420; + s.tmp_4 = r0 = s.ty___63652; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___31414; + s.tmp_7.arg0 = s.font___63646; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -36546,10 +36566,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___31420 = (r0); - s.tmp_0 = helpers_imagePrint__P17878_mk(s); - s.tmp_0.arg0 = globals.screen___17920; - s.tmp_6 = Sprite_ax__P18155_mk(s); + s.ty___63652 = (r0); + s.tmp_0 = helpers_imagePrint__P50085_mk(s); + s.tmp_0.arg0 = globals.screen___50127; + s.tmp_6 = Sprite_ax__P50362_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 308; s.pc = 41; return s.tmp_6; case 41: @@ -36570,7 +36590,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P18157_mk(s); + s.tmp_10 = Sprite_ay__P50364_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 309; s.pc = 43; return s.tmp_10; case 43: @@ -36589,10 +36609,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___31418; - s.tmp_0.arg3 = s.ty___31420; + s.tmp_0.arg2 = s.tx___63650; + s.tmp_0.arg3 = s.ty___63652; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___31414; + s.tmp_0.arg5 = s.font___63646; s.tmp_0.arg6 = undefined; s.callLocIdx = 310; s.pc = 40; return s.tmp_0; case 40: @@ -36601,11 +36621,11 @@ switch (step) { case 14: case 15: case 16: - r0 = pxsim_numops_toBoolDecr(globals.debug___18644); + r0 = pxsim_numops_toBoolDecr(globals.debug___50851); if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P17849_mk(s); - s.tmp_0.arg0 = globals.screen___17920; - s.tmp_3 = game_Hitbox_left__P18084_mk(s); + s.tmp_0 = helpers_imageDrawRect__P50056_mk(s); + s.tmp_0.arg0 = globals.screen___50127; + s.tmp_3 = game_Hitbox_left__P50291_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; s.callLocIdx = 311; s.pc = 46; return s.tmp_3; @@ -36616,9 +36636,9 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___31378); + r0 = (s.tmp_1 - s.ox___63610); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P18085_mk(s); + s.tmp_7 = game_Hitbox_top__P50292_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; s.callLocIdx = 313; s.pc = 47; return s.tmp_7; @@ -36629,7 +36649,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___31386); + r0 = (s.tmp_5 - s.oy___63618); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -36656,12 +36676,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P18199.info = {"start":21043,"length":1383,"line":646,"column":4,"endLine":684,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P50406.info = {"start":21043,"length":1383,"line":646,"column":4,"endLine":684,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P18199_mk(s) { +function Sprite___drawCore__P50406_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P18199, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P50406, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36676,13 +36696,13 @@ function Sprite___drawCore__P18199_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___31378: undefined, - oy___31386: undefined, - l___31394: undefined, - t___31398: undefined, - font___31414: undefined, - tx___31418: undefined, - ty___31420: undefined, + ox___63610: undefined, + oy___63618: undefined, + l___63626: undefined, + t___63630: undefined, + font___63646: undefined, + tx___63650: undefined, + ty___63652: undefined, arg0: undefined, arg1: undefined, } } @@ -36691,7 +36711,7 @@ function Sprite___drawCore__P18199_mk(s) { -function Sprite___visible__P18181(s) { +function Sprite___visible__P50388(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36706,7 +36726,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C18138_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C50345_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -36717,12 +36737,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P18181.info = {"start":8508,"length":72,"line":307,"column":4,"endLine":309,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P50388.info = {"start":8508,"length":72,"line":307,"column":4,"endLine":309,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P18181_mk(s) { +function Sprite___visible__P50388_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P18181, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P50388, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36734,7 +36754,7 @@ function Sprite___visible__P18181_mk(s) { -function scene_Camera_top__P18489(s) { +function scene_Camera_top__P50696(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36749,18 +36769,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P18489.info = {"start":1638,"length":58,"line":58,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} -scene_Camera_top__P18489.isGetter = true; +scene_Camera_top__P50696.info = {"start":1638,"length":58,"line":58,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} +scene_Camera_top__P50696.isGetter = true; -function scene_Camera_top__P18489_mk(s) { +function scene_Camera_top__P50696_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P18489, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P50696, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -36769,7 +36789,7 @@ function scene_Camera_top__P18489_mk(s) { -function scene_Camera_left__P18487(s) { +function scene_Camera_left__P50694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36784,18 +36804,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C18476_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C50683_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P18487.info = {"start":1486,"length":59,"line":52,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} -scene_Camera_left__P18487.isGetter = true; +scene_Camera_left__P50694.info = {"start":1486,"length":59,"line":52,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} +scene_Camera_left__P50694.isGetter = true; -function scene_Camera_left__P18487_mk(s) { +function scene_Camera_left__P50694_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P18487, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P50694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -36804,7 +36824,7 @@ function scene_Camera_left__P18487_mk(s) { -function particles_ShapeFactory_drawParticle__P18859(s) { +function particles_ShapeFactory_drawParticle__P51066(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36814,7 +36834,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___31545 = undefined; + s.pImage___63777 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36823,23 +36843,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C18856_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P18707_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C51063_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P50914_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1112; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1113; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.pImage___31545 = (r0); + s.pImage___63777 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___31545, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___17920; - s.tmp_1 = r0 = s.pImage___31545; + r0 = pxsim_ImageMethods.replace(s.pImage___63777, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___50127; + s.tmp_1 = r0 = s.pImage___63777; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -36861,12 +36881,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P18859.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__P51066.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__P18859_mk(s) { +function particles_ShapeFactory_drawParticle__P51066_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P18859, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P51066, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36878,7 +36898,7 @@ function particles_ShapeFactory_drawParticle__P18859_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___31545: undefined, + pImage___63777: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36889,7 +36909,7 @@ function particles_ShapeFactory_drawParticle__P18859_mk(s) { -function Math_FastRandom_pickRandom__P18707(s) { +function Math_FastRandom_pickRandom__P50914(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36905,7 +36925,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C18702_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C50909_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -36928,14 +36948,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P18706_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P50913_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = 0; r0 = pxsim_Array__length(s.arg1); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); s.tmp_6.arg2 = r0; - s.callLocIdx = 841; s.pc = 6; return s.tmp_6; + s.callLocIdx = 842; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -36944,12 +36964,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P18707.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__P50914.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__P18707_mk(s) { +function Math_FastRandom_pickRandom__P50914_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P18707, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P50914, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36967,7 +36987,7 @@ function Math_FastRandom_pickRandom__P18707_mk(s) { -function particles_AreaFactory_drawParticle__P18847(s) { +function particles_AreaFactory_drawParticle__P51054(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36977,7 +36997,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___31591 = undefined; + s.col___63823 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36986,7 +37006,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C18840_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C51047_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -37013,8 +37033,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___31591 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___17920; + s.col___63823 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___50127; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -37023,17 +37043,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___31591); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___63823); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P18847.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__P51054.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__P18847_mk(s) { +function particles_AreaFactory_drawParticle__P51054_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P18847, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P51054, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37041,7 +37061,7 @@ function particles_AreaFactory_drawParticle__P18847_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___31591: undefined, + col___63823: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37052,7 +37072,7 @@ function particles_AreaFactory_drawParticle__P18847_mk(s) { -function particles_SprayFactory_drawParticle__P18837(s) { +function particles_SprayFactory_drawParticle__P51044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37070,8 +37090,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C18834_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___17920; + if (!checkSubtype(r0, particles_SprayFactory__C51041_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___50127; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -37085,12 +37105,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P18837.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__P51044.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__P18837_mk(s) { +function particles_SprayFactory_drawParticle__P51044_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P18837, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P51044, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37106,35 +37126,6 @@ function particles_SprayFactory_drawParticle__P18837_mk(s) { -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 { @@ -37165,7 +37156,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C18830_v0_2_mk(s) { +function particles_ParticleFactory__C51037_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37180,7 +37171,7 @@ function particles_ParticleFactory__C18830_v0_2_mk(s) { } } -function particles_ParticleSource__C18794_v4_3_mk(s) { +function particles_ParticleSource__C51001_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37238,7 +37229,7 @@ function lambda_1_mk(s) { } } -function if_condition_1_mk(s) { +function if_id_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37249,10 +37240,11 @@ function if_condition_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_id_2_mk(s) { +function PhysicsEngine__C50488_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37267,7 +37259,7 @@ function if_id_2_mk(s) { } } -function PhysicsEngine__C18281_v4_2_mk(s) { +function if___update_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37279,10 +37271,11 @@ function PhysicsEngine__C18281_v4_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function if___update_3_mk(s) { +function lambda_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37294,11 +37287,10 @@ function if___update_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C18281_v3_1_mk(s) { +function PhysicsEngine__C50488_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37439,7 +37431,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C18021_v0_1_mk(s) { +function controller_Button__C50228_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37495,6 +37487,34 @@ function if_vy_1_mk(s) { } } +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 if_condition_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_4_mk(s) { checkStack(s.depth); return { @@ -37544,7 +37564,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C18281_v1_2_mk(s) { +function PhysicsEngine__C50488_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37742,7 +37762,7 @@ function if_getText_1_mk(s) { } } -function PhysicsEngine__C18281_v2_4_mk(s) { +function PhysicsEngine__C50488_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37816,7 +37836,7 @@ function if_z_2_mk(s) { } } -function PhysicsEngine__C18281_v0_2_mk(s) { +function PhysicsEngine__C50488_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37905,7 +37925,7 @@ function if_updateSay_3_mk(s) { } } -function particles_ParticleFactory__C18830_v1_4_mk(s) { +function particles_ParticleFactory__C51037_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37922,7 +37942,7 @@ function particles_ParticleFactory__C18830_v1_4_mk(s) { } } -function sprites_BaseSprite__C17976_v0_1_mk(s) { +function sprites_BaseSprite__C50183_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -37936,7 +37956,7 @@ function sprites_BaseSprite__C17976_v0_1_mk(s) { } } -function sprites_BaseSprite__C17976_v2_2_mk(s) { +function sprites_BaseSprite__C50183_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -38064,14 +38084,14 @@ function if_width_1_mk(s) { arg0: undefined, } } -const controller_Button__C18021_VT = mkVTable({ +const controller_Button__C50228_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P18030, + "isPressed": controller_Button_isPressed__P50237, }, iface: { "_owner": null, @@ -38088,26 +38108,26 @@ const controller_Button__C18021_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P18026, - "raiseButtonUp": controller_Button_raiseButtonUp__P19823, - "raiseButtonDown": controller_Button_raiseButtonDown__P19824, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P19825, - "onEvent": controller_Button_onEvent__P18028, - "isPressed": controller_Button_isPressed__P18030, - "pressureLevel": controller_Button_pressureLevel__P18031, - "setPressed": controller_Button_setPressed__P18032, - "__update": controller_Button___update__P18033, + "toString": controller_Button_toString__P50233, + "raiseButtonUp": controller_Button_raiseButtonUp__P52030, + "raiseButtonDown": controller_Button_raiseButtonDown__P52031, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P52032, + "onEvent": controller_Button_onEvent__P50235, + "isPressed": controller_Button_isPressed__P50237, + "pressureLevel": controller_Button_pressureLevel__P50238, + "setPressed": controller_Button_setPressed__P50239, + "__update": controller_Button___update__P50240, }, - toStringMethod: controller_Button_toString__P18026, + toStringMethod: controller_Button_toString__P50233, }); -const controller_AnyButton__C19826_VT = mkVTable({ +const controller_AnyButton__C52033_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P19828, + "isPressed": controller_AnyButton_isPressed__P52035, }, iface: { "_owner": null, @@ -38124,18 +38144,18 @@ const controller_AnyButton__C19826_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P19828, - "toString": controller_Button_toString__P18026, - "raiseButtonUp": controller_Button_raiseButtonUp__P19823, - "raiseButtonDown": controller_Button_raiseButtonDown__P19824, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P19825, - "onEvent": controller_Button_onEvent__P18028, - "pressureLevel": controller_Button_pressureLevel__P18031, - "setPressed": controller_Button_setPressed__P18032, - "__update": controller_Button___update__P18033, + "isPressed": controller_AnyButton_isPressed__P52035, + "toString": controller_Button_toString__P50233, + "raiseButtonUp": controller_Button_raiseButtonUp__P52030, + "raiseButtonDown": controller_Button_raiseButtonDown__P52031, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P52032, + "onEvent": controller_Button_onEvent__P50235, + "pressureLevel": controller_Button_pressureLevel__P50238, + "setPressed": controller_Button_setPressed__P50239, + "__update": controller_Button___update__P50240, }, }); -const Math_FastRandom__C18702_VT = mkVTable({ +const Math_FastRandom__C50909_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -38148,12 +38168,12 @@ const Math_FastRandom__C18702_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P18705, - "randomRange": Math_FastRandom_randomRange__P18706, - "pickRandom": Math_FastRandom_pickRandom__P18707, + "next": Math_FastRandom_next__P50912, + "randomRange": Math_FastRandom_randomRange__P50913, + "pickRandom": Math_FastRandom_pickRandom__P50914, }, }); -const texteffects_TextEffect__C18947_VT = mkVTable({ +const texteffects_TextEffect__C51154_VT = mkVTable({ name: "TextEffect", numFields: 1, classNo: 19, @@ -38166,33 +38186,11 @@ const texteffects_TextEffect__C18947_VT = mkVTable({ "set/getState": null, }, }); -const scene_Background__C18388_VT = mkVTable({ - name: "Background", - numFields: 4, - classNo: 20, - lastSubtypeNo: 20, - maxBgInstances: null, - methods: { - }, - iface: { - "color": null, - "set/color": null, - "_image": null, - "set/_image": null, - "camera": null, - "set/camera": null, - "_layers": null, - "set/_layers": null, - "image": scene_Background_image__P18394, - "set/image": scene_Background_image__P18395, - "draw": scene_Background_draw__P18397, - }, -}); -const control_EventContext__C16502_VT = mkVTable({ +const control_EventContext__C48709_VT = mkVTable({ name: "EventContext", numFields: 9, - classNo: 21, - lastSubtypeNo: 21, + classNo: 20, + lastSubtypeNo: 20, maxBgInstances: null, methods: { }, @@ -38215,41 +38213,20 @@ const control_EventContext__C16502_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P16507, - "runCallbacks": control_EventContext_runCallbacks__P19668, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P19669, - "register": control_EventContext_register__P16508, - "unregister": control_EventContext_unregister__P16509, - "registerFrameHandler": control_EventContext_registerFrameHandler__P16510, - "registerHandler": control_EventContext_registerHandler__P16512, - }, -}); -const control_EventHandler__C19663_VT = mkVTable({ - name: "EventHandler", - numFields: 4, - classNo: 22, - lastSubtypeNo: 22, - maxBgInstances: null, - methods: { - }, - iface: { - "src": null, - "set/src": null, - "value": null, - "set/value": null, - "handler": null, - "set/handler": null, - "flags": null, - "set/flags": null, - "register": control_EventHandler_register__P19664, - "unregister": control_EventHandler_unregister__P19665, + "deltaTime": control_EventContext_deltaTime__P48714, + "runCallbacks": control_EventContext_runCallbacks__P51875, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P51876, + "register": control_EventContext_register__P48715, + "unregister": control_EventContext_unregister__P48716, + "registerFrameHandler": control_EventContext_registerFrameHandler__P48717, + "registerHandler": control_EventContext_registerHandler__P48719, }, }); -const scene_Scene__C18535_VT = mkVTable({ +const scene_Scene__C50742_VT = mkVTable({ name: "Scene", numFields: 23, - classNo: 23, - lastSubtypeNo: 23, + classNo: 21, + lastSubtypeNo: 21, maxBgInstances: null, methods: { }, @@ -38300,18 +38277,18 @@ const scene_Scene__C18535_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P18557, - "data": scene_Scene_data__P18558, - "millis": scene_Scene_millis__P18559, - "addSprite": scene_Scene_addSprite__P18560, - "render": scene_Scene_render__P18562, + "init": scene_Scene_init__P50764, + "data": scene_Scene_data__P50765, + "millis": scene_Scene_millis__P50766, + "addSprite": scene_Scene_addSprite__P50767, + "render": scene_Scene_render__P50769, }, }); -const effects_ImageEffect__C18932_VT = mkVTable({ +const effects_ImageEffect__C51139_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 24, - lastSubtypeNo: 24, + classNo: 22, + lastSubtypeNo: 22, maxBgInstances: null, methods: { }, @@ -38324,15 +38301,15 @@ const effects_ImageEffect__C18932_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P18934, - "change": effects_ImageEffect_change__P18935, + "applyTo": effects_ImageEffect_applyTo__P51141, + "change": effects_ImageEffect_change__P51142, }, }); -const effects_ParticleEffect__C18905_VT = mkVTable({ +const effects_ParticleEffect__C51112_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 25, - lastSubtypeNo: 26, + classNo: 23, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -38343,15 +38320,15 @@ const effects_ParticleEffect__C18905_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P18907, - "destroy": effects_ParticleEffect_destroy__P18908, + "start": effects_ParticleEffect_start__P51114, + "destroy": effects_ParticleEffect_destroy__P51115, }, }); -const effects_ScreenEffect__C18909_VT = mkVTable({ +const effects_ScreenEffect__C51116_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 26, - lastSubtypeNo: 26, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -38366,34 +38343,34 @@ const effects_ScreenEffect__C18909_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P18907, - "destroy": effects_ParticleEffect_destroy__P18908, + "start": effects_ParticleEffect_start__P51114, + "destroy": effects_ParticleEffect_destroy__P51115, }, }); -const particles_ParticleFactory__C18830_VT = mkVTable({ +const particles_ParticleFactory__C51037_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 27, - lastSubtypeNo: 31, + classNo: 25, + lastSubtypeNo: 29, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P18832, - "drawParticle": particles_ParticleFactory_drawParticle__P18833, + "createParticle": particles_ParticleFactory_createParticle__P51039, + "drawParticle": particles_ParticleFactory_drawParticle__P51040, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P18832, - "drawParticle": particles_ParticleFactory_drawParticle__P18833, + "createParticle": particles_ParticleFactory_createParticle__P51039, + "drawParticle": particles_ParticleFactory_drawParticle__P51040, }, }); -const particles_SprayFactory__C18834_VT = mkVTable({ +const particles_SprayFactory__C51041_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 28, - lastSubtypeNo: 31, + classNo: 26, + lastSubtypeNo: 29, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P18836, - "drawParticle": particles_SprayFactory_drawParticle__P18837, + "createParticle": particles_SprayFactory_createParticle__P51043, + "drawParticle": particles_SprayFactory_drawParticle__P51044, }, iface: { "speed": null, @@ -38402,21 +38379,21 @@ const particles_SprayFactory__C18834_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P18836, - "drawParticle": particles_SprayFactory_drawParticle__P18837, - "setSpeed": particles_SprayFactory_setSpeed__P18838, - "setDirection": particles_SprayFactory_setDirection__P18839, + "createParticle": particles_SprayFactory_createParticle__P51043, + "drawParticle": particles_SprayFactory_drawParticle__P51044, + "setSpeed": particles_SprayFactory_setSpeed__P51045, + "setDirection": particles_SprayFactory_setDirection__P51046, }, }); -const particles_AreaFactory__C18840_VT = mkVTable({ +const particles_AreaFactory__C51047_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 29, - lastSubtypeNo: 31, + classNo: 27, + lastSubtypeNo: 29, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P18846, - "drawParticle": particles_AreaFactory_drawParticle__P18847, + "createParticle": particles_AreaFactory_createParticle__P51053, + "drawParticle": particles_AreaFactory_drawParticle__P51054, }, iface: { "speed": null, @@ -38435,21 +38412,21 @@ const particles_AreaFactory__C18840_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P18846, - "drawParticle": particles_AreaFactory_drawParticle__P18847, - "setSpeed": particles_SprayFactory_setSpeed__P18838, - "setDirection": particles_SprayFactory_setDirection__P18839, + "createParticle": particles_AreaFactory_createParticle__P51053, + "drawParticle": particles_AreaFactory_drawParticle__P51054, + "setSpeed": particles_SprayFactory_setSpeed__P51045, + "setDirection": particles_SprayFactory_setDirection__P51046, }, }); -const particles_ShapeFactory__C18856_VT = mkVTable({ +const particles_ShapeFactory__C51063_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 30, - lastSubtypeNo: 31, + classNo: 28, + lastSubtypeNo: 29, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P18860, - "drawParticle": particles_ShapeFactory_drawParticle__P18859, + "createParticle": particles_ShapeFactory_createParticle__P51067, + "drawParticle": particles_ShapeFactory_drawParticle__P51066, }, iface: { "speed": null, @@ -38474,22 +38451,22 @@ const particles_ShapeFactory__C18856_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P18858, - "drawParticle": particles_ShapeFactory_drawParticle__P18859, - "createParticle": particles_ShapeFactory_createParticle__P18860, - "setSpeed": particles_SprayFactory_setSpeed__P18838, - "setDirection": particles_SprayFactory_setDirection__P18839, + "addShape": particles_ShapeFactory_addShape__P51065, + "drawParticle": particles_ShapeFactory_drawParticle__P51066, + "createParticle": particles_ShapeFactory_createParticle__P51067, + "setSpeed": particles_SprayFactory_setSpeed__P51045, + "setDirection": particles_SprayFactory_setDirection__P51046, }, }); -const particles_ConfettiFactory__C18861_VT = mkVTable({ +const particles_ConfettiFactory__C51068_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 31, - lastSubtypeNo: 31, + classNo: 29, + lastSubtypeNo: 29, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P18860, - "drawParticle": particles_ShapeFactory_drawParticle__P18859, + "createParticle": particles_ShapeFactory_createParticle__P51067, + "drawParticle": particles_ShapeFactory_drawParticle__P51066, }, iface: { "speed": null, @@ -38514,50 +38491,50 @@ const particles_ConfettiFactory__C18861_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P18858, - "drawParticle": particles_ShapeFactory_drawParticle__P18859, - "createParticle": particles_ShapeFactory_createParticle__P18860, - "setSpeed": particles_SprayFactory_setSpeed__P18838, - "setDirection": particles_SprayFactory_setDirection__P18839, + "addShape": particles_ShapeFactory_addShape__P51065, + "drawParticle": particles_ShapeFactory_drawParticle__P51066, + "createParticle": particles_ShapeFactory_createParticle__P51067, + "setSpeed": particles_SprayFactory_setSpeed__P51045, + "setDirection": particles_SprayFactory_setDirection__P51046, }, }); -const sprites_BaseSprite__C17976_VT = mkVTable({ +const sprites_BaseSprite__C50183_VT = mkVTable({ name: "BaseSprite", numFields: 2, - classNo: 32, - lastSubtypeNo: 35, + classNo: 30, + lastSubtypeNo: 33, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P17979, - "__draw": sprites_BaseSprite___draw__P17982, - "__drawCore": sprites_BaseSprite___drawCore__P17983, - "__update": sprites_BaseSprite___update__P17984, + "__visible": sprites_BaseSprite___visible__P50186, + "__draw": sprites_BaseSprite___draw__P50189, + "__drawCore": sprites_BaseSprite___drawCore__P50190, + "__update": sprites_BaseSprite___update__P50191, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P17979, - "z": sprites_BaseSprite_z__P17980, - "set/z": sprites_BaseSprite_z__P17981, - "__draw": sprites_BaseSprite___draw__P17982, - "__drawCore": sprites_BaseSprite___drawCore__P17983, - "__update": sprites_BaseSprite___update__P17984, + "__visible": sprites_BaseSprite___visible__P50186, + "z": sprites_BaseSprite_z__P50187, + "set/z": sprites_BaseSprite_z__P50188, + "__draw": sprites_BaseSprite___draw__P50189, + "__drawCore": sprites_BaseSprite___drawCore__P50190, + "__update": sprites_BaseSprite___update__P50191, }, }); -const particles_ParticleSource__C18794_VT = mkVTable({ +const particles_ParticleSource__C51001_VT = mkVTable({ name: "ParticleSource", numFields: 13, - classNo: 33, - lastSubtypeNo: 33, + classNo: 31, + lastSubtypeNo: 31, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P17979, - "__draw": particles_ParticleSource___draw__P18800, - "__drawCore": sprites_BaseSprite___drawCore__P17983, - "__update": sprites_BaseSprite___update__P17984, - "updateParticle": particles_ParticleSource_updateParticle__P20349, + "__visible": sprites_BaseSprite___visible__P50186, + "__draw": particles_ParticleSource___draw__P51007, + "__drawCore": sprites_BaseSprite___drawCore__P50190, + "__update": sprites_BaseSprite___update__P50191, + "updateParticle": particles_ParticleSource_updateParticle__P52556, }, iface: { "_z": null, @@ -38586,32 +38563,32 @@ const particles_ParticleSource__C18794_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P18800, - "_update": particles_ParticleSource__update__P18801, - "_prune": particles_ParticleSource__prune__P18802, - "setAcceleration": particles_ParticleSource_setAcceleration__P18803, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P18805, - "enabled": particles_ParticleSource_enabled__P18806, - "set/enabled": particles_ParticleSource_enabled__P18807, - "destroy": particles_ParticleSource_destroy__P18808, - "clear": particles_ParticleSource_clear__P18809, - "setAnchor": particles_ParticleSource_setAnchor__P18810, - "setRate": particles_ParticleSource_setRate__P18811, - "setFactory": particles_ParticleSource_setFactory__P18813, - "updateParticle": particles_ParticleSource_updateParticle__P20349, - "drawParticle": particles_ParticleSource_drawParticle__P20350, - "__visible": sprites_BaseSprite___visible__P17979, - "z": sprites_BaseSprite_z__P17980, - "set/z": sprites_BaseSprite_z__P17981, - "__drawCore": sprites_BaseSprite___drawCore__P17983, - "__update": sprites_BaseSprite___update__P17984, + "__draw": particles_ParticleSource___draw__P51007, + "_update": particles_ParticleSource__update__P51008, + "_prune": particles_ParticleSource__prune__P51009, + "setAcceleration": particles_ParticleSource_setAcceleration__P51010, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P51012, + "enabled": particles_ParticleSource_enabled__P51013, + "set/enabled": particles_ParticleSource_enabled__P51014, + "destroy": particles_ParticleSource_destroy__P51015, + "clear": particles_ParticleSource_clear__P51016, + "setAnchor": particles_ParticleSource_setAnchor__P51017, + "setRate": particles_ParticleSource_setRate__P51018, + "setFactory": particles_ParticleSource_setFactory__P51020, + "updateParticle": particles_ParticleSource_updateParticle__P52556, + "drawParticle": particles_ParticleSource_drawParticle__P52557, + "__visible": sprites_BaseSprite___visible__P50186, + "z": sprites_BaseSprite_z__P50187, + "set/z": sprites_BaseSprite_z__P50188, + "__drawCore": sprites_BaseSprite___drawCore__P50190, + "__update": sprites_BaseSprite___update__P50191, }, }); -const particles_Particle__C18775_VT = mkVTable({ +const particles_Particle__C50982_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 36, - lastSubtypeNo: 36, + classNo: 34, + lastSubtypeNo: 34, maxBgInstances: 200, methods: { }, @@ -38634,70 +38611,32 @@ const particles_Particle__C18775_VT = mkVTable({ "set/color": null, }, }); -const control_FrameCallback__C16499_VT = mkVTable({ - name: "FrameCallback", - numFields: 2, - classNo: 37, - lastSubtypeNo: 37, - maxBgInstances: null, - methods: { - }, - iface: { - "order": null, - "set/order": null, - "handler": null, - "set/handler": null, - }, -}); -const control_PollEvent__C19642_VT = mkVTable({ - name: "PollEvent", - numFields: 6, - classNo: 38, - lastSubtypeNo: 38, - maxBgInstances: null, - methods: { - }, - iface: { - "eid": null, - "set/eid": null, - "vid": null, - "set/vid": null, - "start": null, - "set/start": null, - "timeOut": null, - "set/timeOut": null, - "condition": null, - "set/condition": null, - "once": null, - "set/once": null, - }, -}); -const PhysicsEngine__C18281_VT = mkVTable({ +const PhysicsEngine__C50488_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, - classNo: 39, - lastSubtypeNo: 40, + classNo: 35, + lastSubtypeNo: 36, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P18283, - "removeSprite": PhysicsEngine_removeSprite__P18284, - "moveSprite": PhysicsEngine_moveSprite__P18285, - "draw": PhysicsEngine_draw__P18286, - "move": PhysicsEngine_move__P18287, + "addSprite": PhysicsEngine_addSprite__P50490, + "removeSprite": PhysicsEngine_removeSprite__P50491, + "moveSprite": PhysicsEngine_moveSprite__P50492, + "draw": PhysicsEngine_draw__P50493, + "move": PhysicsEngine_move__P50494, }, iface: { - "addSprite": PhysicsEngine_addSprite__P18283, - "removeSprite": PhysicsEngine_removeSprite__P18284, - "moveSprite": PhysicsEngine_moveSprite__P18285, - "draw": PhysicsEngine_draw__P18286, - "move": PhysicsEngine_move__P18287, + "addSprite": PhysicsEngine_addSprite__P50490, + "removeSprite": PhysicsEngine_removeSprite__P50491, + "moveSprite": PhysicsEngine_moveSprite__P50492, + "draw": PhysicsEngine_draw__P50493, + "move": PhysicsEngine_move__P50494, }, }); -const scene_Camera__C18476_VT = mkVTable({ +const scene_Camera__C50683_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 41, - lastSubtypeNo: 41, + classNo: 37, + lastSubtypeNo: 37, maxBgInstances: null, methods: { }, @@ -38718,22 +38657,42 @@ const scene_Camera__C18476_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P18481, - "set/offsetX": scene_Camera_offsetX__P18482, - "offsetY": scene_Camera_offsetY__P18483, - "set/offsetY": scene_Camera_offsetY__P18484, - "x": scene_Camera_x__P18485, - "y": scene_Camera_y__P18486, - "left": scene_Camera_left__P18487, - "top": scene_Camera_top__P18489, - "update": scene_Camera_update__P18492, + "offsetX": scene_Camera_offsetX__P50688, + "set/offsetX": scene_Camera_offsetX__P50689, + "offsetY": scene_Camera_offsetY__P50690, + "set/offsetY": scene_Camera_offsetY__P50691, + "x": scene_Camera_x__P50692, + "y": scene_Camera_y__P50693, + "left": scene_Camera_left__P50694, + "top": scene_Camera_top__P50696, + "update": scene_Camera_update__P50699, + }, +}); +const scene_Background__C50595_VT = mkVTable({ + name: "Background", + numFields: 4, + classNo: 38, + lastSubtypeNo: 38, + maxBgInstances: null, + methods: { + }, + iface: { + "color": null, + "set/color": null, + "_image": null, + "set/_image": null, + "camera": null, + "set/camera": null, + "_layers": null, + "set/_layers": null, + "draw": scene_Background_draw__P50604, }, }); -const scene_BackgroundLayer__C18398_VT = mkVTable({ +const scene_BackgroundLayer__C50605_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 42, - lastSubtypeNo: 42, + classNo: 39, + lastSubtypeNo: 39, maxBgInstances: null, methods: { }, @@ -38750,20 +38709,20 @@ const scene_BackgroundLayer__C18398_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P18406, + "draw": scene_BackgroundLayer_draw__P50613, }, }); -const Sprite__C18138_VT = mkVTable({ +const Sprite__C50345_VT = mkVTable({ name: "Sprite", numFields: 26, - classNo: 34, - lastSubtypeNo: 34, + classNo: 32, + lastSubtypeNo: 32, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P18181, - "__draw": sprites_BaseSprite___draw__P17982, - "__drawCore": Sprite___drawCore__P18199, - "__update": Sprite___update__P18200, + "__visible": Sprite___visible__P50388, + "__draw": sprites_BaseSprite___draw__P50189, + "__drawCore": Sprite___drawCore__P50406, + "__update": Sprite___update__P50407, }, iface: { "_z": null, @@ -38818,62 +38777,62 @@ const Sprite__C18138_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P18147, - "set/x": Sprite_x__P18148, - "y": Sprite_y__P18149, - "set/y": Sprite_y__P18150, - "vx": Sprite_vx__P18151, - "set/vx": Sprite_vx__P18152, - "vy": Sprite_vy__P18153, - "set/vy": Sprite_vy__P18154, - "ax": Sprite_ax__P18155, - "set/ax": Sprite_ax__P18156, - "ay": Sprite_ay__P18157, - "set/ay": Sprite_ay__P18158, - "fx": Sprite_fx__P18159, - "set/fx": Sprite_fx__P18160, - "fy": Sprite_fy__P18161, - "set/fy": Sprite_fy__P18162, - "data": Sprite_data__P18163, - "set/data": Sprite_data__P18164, - "image": Sprite_image__P18177, - "setImage": Sprite_setImage__P18178, - "setHitbox": Sprite_setHitbox__P18179, - "isStatic": Sprite_isStatic__P18180, - "__visible": Sprite___visible__P18181, - "width": Sprite_width__P18182, - "height": Sprite_height__P18183, - "left": Sprite_left__P18184, - "set/left": Sprite_left__P18185, - "right": Sprite_right__P18186, - "set/right": Sprite_right__P18187, - "top": Sprite_top__P18188, - "set/top": Sprite_top__P18189, - "bottom": Sprite_bottom__P18190, - "set/bottom": Sprite_bottom__P18191, - "kind": Sprite_kind__P18192, - "setKind": Sprite_setKind__P18193, - "isOutOfScreen": Sprite_isOutOfScreen__P18198, - "__drawCore": Sprite___drawCore__P18199, - "__update": Sprite___update__P18200, - "setFlag": Sprite_setFlag__P18201, - "overlapsWith": Sprite_overlapsWith__P18202, - "clearObstacles": Sprite_clearObstacles__P18206, - "registerObstacle": Sprite_registerObstacle__P18207, - "destroy": Sprite_destroy__P18209, - "_destroyCore": Sprite__destroyCore__P18210, - "toString": Sprite_toString__P18212, - "z": sprites_BaseSprite_z__P17980, - "set/z": sprites_BaseSprite_z__P17981, - "__draw": sprites_BaseSprite___draw__P17982, + "x": Sprite_x__P50354, + "set/x": Sprite_x__P50355, + "y": Sprite_y__P50356, + "set/y": Sprite_y__P50357, + "vx": Sprite_vx__P50358, + "set/vx": Sprite_vx__P50359, + "vy": Sprite_vy__P50360, + "set/vy": Sprite_vy__P50361, + "ax": Sprite_ax__P50362, + "set/ax": Sprite_ax__P50363, + "ay": Sprite_ay__P50364, + "set/ay": Sprite_ay__P50365, + "fx": Sprite_fx__P50366, + "set/fx": Sprite_fx__P50367, + "fy": Sprite_fy__P50368, + "set/fy": Sprite_fy__P50369, + "data": Sprite_data__P50370, + "set/data": Sprite_data__P50371, + "image": Sprite_image__P50384, + "setImage": Sprite_setImage__P50385, + "setHitbox": Sprite_setHitbox__P50386, + "isStatic": Sprite_isStatic__P50387, + "__visible": Sprite___visible__P50388, + "width": Sprite_width__P50389, + "height": Sprite_height__P50390, + "left": Sprite_left__P50391, + "set/left": Sprite_left__P50392, + "right": Sprite_right__P50393, + "set/right": Sprite_right__P50394, + "top": Sprite_top__P50395, + "set/top": Sprite_top__P50396, + "bottom": Sprite_bottom__P50397, + "set/bottom": Sprite_bottom__P50398, + "kind": Sprite_kind__P50399, + "setKind": Sprite_setKind__P50400, + "isOutOfScreen": Sprite_isOutOfScreen__P50405, + "__drawCore": Sprite___drawCore__P50406, + "__update": Sprite___update__P50407, + "setFlag": Sprite_setFlag__P50408, + "overlapsWith": Sprite_overlapsWith__P50409, + "clearObstacles": Sprite_clearObstacles__P50413, + "registerObstacle": Sprite_registerObstacle__P50414, + "destroy": Sprite_destroy__P50416, + "_destroyCore": Sprite__destroyCore__P50417, + "toString": Sprite_toString__P50419, + "z": sprites_BaseSprite_z__P50187, + "set/z": sprites_BaseSprite_z__P50188, + "__draw": sprites_BaseSprite___draw__P50189, }, - toStringMethod: Sprite_toString__P18212, + toStringMethod: Sprite_toString__P50419, }); -const tiles_TileMap__C18440_VT = mkVTable({ +const tiles_TileMap__C50647_VT = mkVTable({ name: "TileMap", numFields: 3, - classNo: 43, - lastSubtypeNo: 43, + classNo: 40, + lastSubtypeNo: 40, maxBgInstances: null, methods: { }, @@ -38884,29 +38843,29 @@ const tiles_TileMap__C18440_VT = mkVTable({ "set/_layer": null, "_map": null, "set/_map": null, - "scale": tiles_TileMap_scale__P18442, - "set/scale": tiles_TileMap_scale__P18443, - "data": tiles_TileMap_data__P19939, - "offsetX": tiles_TileMap_offsetX__P18444, - "offsetY": tiles_TileMap_offsetY__P18445, - "areaWidth": tiles_TileMap_areaWidth__P18446, - "areaHeight": tiles_TileMap_areaHeight__P18447, - "layer": tiles_TileMap_layer__P18448, - "enabled": tiles_TileMap_enabled__P18450, - "getTile": tiles_TileMap_getTile__P18452, - "getTileIndex": tiles_TileMap_getTileIndex__P18453, - "draw": tiles_TileMap_draw__P19941, - "isObstacle": tiles_TileMap_isObstacle__P18459, - "getObstacle": tiles_TileMap_getObstacle__P18460, - "isOnWall": tiles_TileMap_isOnWall__P18461, - "getTileImage": tiles_TileMap_getTileImage__P18462, + "scale": tiles_TileMap_scale__P50649, + "set/scale": tiles_TileMap_scale__P50650, + "data": tiles_TileMap_data__P52146, + "offsetX": tiles_TileMap_offsetX__P50651, + "offsetY": tiles_TileMap_offsetY__P50652, + "areaWidth": tiles_TileMap_areaWidth__P50653, + "areaHeight": tiles_TileMap_areaHeight__P50654, + "layer": tiles_TileMap_layer__P50655, + "enabled": tiles_TileMap_enabled__P50657, + "getTile": tiles_TileMap_getTile__P50659, + "getTileIndex": tiles_TileMap_getTileIndex__P50660, + "draw": tiles_TileMap_draw__P52148, + "isObstacle": tiles_TileMap_isObstacle__P50666, + "getObstacle": tiles_TileMap_getObstacle__P50667, + "isOnWall": tiles_TileMap_isOnWall__P50668, + "getTileImage": tiles_TileMap_getTileImage__P50669, }, }); -const tiles_TileMapData__C18427_VT = mkVTable({ +const tiles_TileMapData__C50634_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 44, - lastSubtypeNo: 44, + classNo: 41, + lastSubtypeNo: 41, maxBgInstances: null, methods: { }, @@ -38925,21 +38884,21 @@ const tiles_TileMapData__C18427_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P18429, - "height": tiles_TileMapData_height__P18430, - "scale": tiles_TileMapData_scale__P18431, - "set/scale": tiles_TileMapData_scale__P18432, - "getTile": tiles_TileMapData_getTile__P18433, - "getTileImage": tiles_TileMapData_getTileImage__P18436, - "isWall": tiles_TileMapData_isWall__P18438, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P18439, + "width": tiles_TileMapData_width__P50636, + "height": tiles_TileMapData_height__P50637, + "scale": tiles_TileMapData_scale__P50638, + "set/scale": tiles_TileMapData_scale__P50639, + "getTile": tiles_TileMapData_getTile__P50640, + "getTileImage": tiles_TileMapData_getTileImage__P50643, + "isWall": tiles_TileMapData_isWall__P50645, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P50646, }, }); -const controller_Controller__C18041_VT = mkVTable({ +const controller_Controller__C50248_VT = mkVTable({ name: "Controller", numFields: 5, - classNo: 45, - lastSubtypeNo: 45, + classNo: 42, + lastSubtypeNo: 42, maxBgInstances: null, methods: { }, @@ -38954,32 +38913,32 @@ const controller_Controller__C18041_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P18046, - "set/_controlledSprites": controller_Controller__controlledSprites__P18047, - "id": controller_Controller_id__P18048, - "left": controller_Controller_left__P18050, - "right": controller_Controller_right__P18051, - "up": controller_Controller_up__P18052, - "down": controller_Controller_down__P18053, - "button": controller_Controller_button__P19831, - "connected": controller_Controller_connected__P18060, - "set/connected": controller_Controller_connected__P18061, - "__preUpdate": controller_Controller___preUpdate__P18065, - "__update": controller_Controller___update__P18066, + "_controlledSprites": controller_Controller__controlledSprites__P50253, + "set/_controlledSprites": controller_Controller__controlledSprites__P50254, + "id": controller_Controller_id__P50255, + "left": controller_Controller_left__P50257, + "right": controller_Controller_right__P50258, + "up": controller_Controller_up__P50259, + "down": controller_Controller_down__P50260, + "button": controller_Controller_button__P52038, + "connected": controller_Controller_connected__P50267, + "set/connected": controller_Controller_connected__P50268, + "__preUpdate": controller_Controller___preUpdate__P50272, + "__update": controller_Controller___update__P50273, }, }); -const ArcadePhysicsEngine__C18296_VT = mkVTable({ +const ArcadePhysicsEngine__C50503_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 40, - lastSubtypeNo: 40, + classNo: 36, + lastSubtypeNo: 36, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P18305, - "removeSprite": ArcadePhysicsEngine_removeSprite__P18306, - "moveSprite": ArcadePhysicsEngine_moveSprite__P18310, - "draw": ArcadePhysicsEngine_draw__P18307, - "move": ArcadePhysicsEngine_move__P18308, + "addSprite": ArcadePhysicsEngine_addSprite__P50512, + "removeSprite": ArcadePhysicsEngine_removeSprite__P50513, + "moveSprite": ArcadePhysicsEngine_moveSprite__P50517, + "draw": ArcadePhysicsEngine_draw__P50514, + "move": ArcadePhysicsEngine_move__P50515, }, iface: { "sprites": null, @@ -38994,30 +38953,30 @@ const ArcadePhysicsEngine__C18296_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P18298, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P18299, - "minStep": ArcadePhysicsEngine_minStep__P18300, - "set/minStep": ArcadePhysicsEngine_minStep__P18301, - "maxStep": ArcadePhysicsEngine_maxStep__P18302, - "set/maxStep": ArcadePhysicsEngine_maxStep__P18303, - "addSprite": ArcadePhysicsEngine_addSprite__P18305, - "removeSprite": ArcadePhysicsEngine_removeSprite__P18306, - "draw": ArcadePhysicsEngine_draw__P18307, - "move": ArcadePhysicsEngine_move__P18308, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P19868, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P19869, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P19870, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P19871, - "moveSprite": ArcadePhysicsEngine_moveSprite__P18310, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P19872, - "constrain": ArcadePhysicsEngine_constrain__P19873, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P50505, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P50506, + "minStep": ArcadePhysicsEngine_minStep__P50507, + "set/minStep": ArcadePhysicsEngine_minStep__P50508, + "maxStep": ArcadePhysicsEngine_maxStep__P50509, + "set/maxStep": ArcadePhysicsEngine_maxStep__P50510, + "addSprite": ArcadePhysicsEngine_addSprite__P50512, + "removeSprite": ArcadePhysicsEngine_removeSprite__P50513, + "draw": ArcadePhysicsEngine_draw__P50514, + "move": ArcadePhysicsEngine_move__P50515, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P52075, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P52076, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P52077, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P52078, + "moveSprite": ArcadePhysicsEngine_moveSprite__P50517, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P52079, + "constrain": ArcadePhysicsEngine_constrain__P52080, }, }); -const sprites_SpriteMap__C18216_VT = mkVTable({ +const sprites_SpriteMap__C50423_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 46, - lastSubtypeNo: 46, + classNo: 43, + lastSubtypeNo: 43, maxBgInstances: null, methods: { }, @@ -39032,24 +38991,24 @@ const sprites_SpriteMap__C18216_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P18218, - "overlaps": sprites_SpriteMap_overlaps__P18219, - "draw": sprites_SpriteMap_draw__P18220, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P18221, - "clear": sprites_SpriteMap_clear__P18222, - "key": sprites_SpriteMap_key__P19837, - "insertAtKey": sprites_SpriteMap_insertAtKey__P19838, - "insertAABB": sprites_SpriteMap_insertAABB__P18223, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P19839, - "toString": sprites_SpriteMap_toString__P18224, + "neighbors": sprites_SpriteMap_neighbors__P50425, + "overlaps": sprites_SpriteMap_overlaps__P50426, + "draw": sprites_SpriteMap_draw__P50427, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P50428, + "clear": sprites_SpriteMap_clear__P50429, + "key": sprites_SpriteMap_key__P52044, + "insertAtKey": sprites_SpriteMap_insertAtKey__P52045, + "insertAABB": sprites_SpriteMap_insertAABB__P50430, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P52046, + "toString": sprites_SpriteMap_toString__P50431, }, - toStringMethod: sprites_SpriteMap_toString__P18224, + toStringMethod: sprites_SpriteMap_toString__P50431, }); -const music_Melody__C17716_VT = mkVTable({ +const music_Melody__C49923_VT = mkVTable({ name: "Melody", numFields: 2, - classNo: 47, - lastSubtypeNo: 47, + classNo: 44, + lastSubtypeNo: 44, maxBgInstances: null, methods: { }, @@ -39058,11 +39017,70 @@ const music_Melody__C17716_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P17725, + "toString": music_Melody_toString__P49932, + }, + toStringMethod: music_Melody_toString__P49932, +}); +const control_EventHandler__C51870_VT = mkVTable({ + name: "EventHandler", + numFields: 4, + classNo: 45, + lastSubtypeNo: 45, + maxBgInstances: null, + methods: { + }, + iface: { + "src": null, + "set/src": null, + "value": null, + "set/value": null, + "handler": null, + "set/handler": null, + "flags": null, + "set/flags": null, + "register": control_EventHandler_register__P51871, + "unregister": control_EventHandler_unregister__P51872, + }, +}); +const control_FrameCallback__C48706_VT = mkVTable({ + name: "FrameCallback", + numFields: 2, + classNo: 46, + lastSubtypeNo: 46, + maxBgInstances: null, + methods: { + }, + iface: { + "order": null, + "set/order": null, + "handler": null, + "set/handler": null, + }, +}); +const control_PollEvent__C51849_VT = mkVTable({ + name: "PollEvent", + numFields: 6, + classNo: 47, + lastSubtypeNo: 47, + maxBgInstances: null, + methods: { + }, + iface: { + "eid": null, + "set/eid": null, + "vid": null, + "set/vid": null, + "start": null, + "set/start": null, + "timeOut": null, + "set/timeOut": null, + "condition": null, + "set/condition": null, + "once": null, + "set/once": null, }, - toStringMethod: music_Melody_toString__P17725, }); -const scene_systemMenu_PauseMenu__C18738_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C50945_VT = mkVTable({ name: "PauseMenu", numFields: 7, classNo: 48, @@ -39085,15 +39103,15 @@ const scene_systemMenu_PauseMenu__C18738_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P18740, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P18741, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P18742, - "drawText": scene_systemMenu_PauseMenu_drawText__P18743, - "dispose": scene_systemMenu_PauseMenu_dispose__P18744, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P20249, + "show": scene_systemMenu_PauseMenu_show__P50947, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P50948, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P50949, + "drawText": scene_systemMenu_PauseMenu_drawText__P50950, + "dispose": scene_systemMenu_PauseMenu_dispose__P50951, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P52456, }, }); -const scene_systemMenu_MenuOption__C18730_VT = mkVTable({ +const scene_systemMenu_MenuOption__C50937_VT = mkVTable({ name: "MenuOption", numFields: 8, classNo: 49, @@ -39118,16 +39136,16 @@ const scene_systemMenu_MenuOption__C18730_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P18732, - "position": scene_systemMenu_MenuOption_position__P18733, - "setOffset": scene_systemMenu_MenuOption_setOffset__P18734, - "setTheme": scene_systemMenu_MenuOption_setTheme__P18735, - "setState": scene_systemMenu_MenuOption_setState__P18736, - "dispose": scene_systemMenu_MenuOption_dispose__P18737, - "updateCard": scene_systemMenu_MenuOption_updateCard__P20248, + "show": scene_systemMenu_MenuOption_show__P50939, + "position": scene_systemMenu_MenuOption_position__P50940, + "setOffset": scene_systemMenu_MenuOption_setOffset__P50941, + "setTheme": scene_systemMenu_MenuOption_setTheme__P50942, + "setState": scene_systemMenu_MenuOption_setState__P50943, + "dispose": scene_systemMenu_MenuOption_dispose__P50944, + "updateCard": scene_systemMenu_MenuOption_updateCard__P52455, }, }); -const game_Hitbox__C18077_VT = mkVTable({ +const game_Hitbox__C50284_VT = mkVTable({ name: "Hitbox", numFields: 5, classNo: 50, @@ -39146,13 +39164,13 @@ const game_Hitbox__C18077_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P18084, - "top": game_Hitbox_top__P18085, - "right": game_Hitbox_right__P18086, - "bottom": game_Hitbox_bottom__P18087, + "left": game_Hitbox_left__P50291, + "top": game_Hitbox_top__P50292, + "right": game_Hitbox_right__P50293, + "bottom": game_Hitbox_bottom__P50294, }, }); -const sprites_SpriteSet__C18233_VT = mkVTable({ +const sprites_SpriteSet__C50440_VT = mkVTable({ name: "SpriteSet", numFields: 1, classNo: 51, @@ -39163,25 +39181,25 @@ const sprites_SpriteSet__C18233_VT = mkVTable({ iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P18236, - "add": sprites_SpriteSet_add__P18238, - "remove": sprites_SpriteSet_remove__P18240, - "contains": sprites_SpriteSet_contains__P18241, - "toString": sprites_SpriteSet_toString__P18244, + "length": sprites_SpriteSet_length__P50443, + "add": sprites_SpriteSet_add__P50445, + "remove": sprites_SpriteSet_remove__P50447, + "contains": sprites_SpriteSet_contains__P50448, + "toString": sprites_SpriteSet_toString__P50451, }, - toStringMethod: sprites_SpriteSet_toString__P18244, + toStringMethod: sprites_SpriteSet_toString__P50451, }); -const scene_Renderable__C18494_VT = mkVTable({ +const scene_Renderable__C50701_VT = mkVTable({ name: "Renderable", numFields: 4, - classNo: 35, - lastSubtypeNo: 35, + classNo: 33, + lastSubtypeNo: 33, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P18496, - "__draw": sprites_BaseSprite___draw__P17982, - "__drawCore": scene_Renderable___drawCore__P18497, - "__update": sprites_BaseSprite___update__P17984, + "__visible": scene_Renderable___visible__P50703, + "__draw": sprites_BaseSprite___draw__P50189, + "__drawCore": scene_Renderable___drawCore__P50704, + "__update": sprites_BaseSprite___update__P50191, }, iface: { "_z": null, @@ -39192,15 +39210,15 @@ const scene_Renderable__C18494_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P18496, - "__drawCore": scene_Renderable___drawCore__P18497, - "z": sprites_BaseSprite_z__P17980, - "set/z": sprites_BaseSprite_z__P17981, - "__draw": sprites_BaseSprite___draw__P17982, - "__update": sprites_BaseSprite___update__P17984, + "__visible": scene_Renderable___visible__P50703, + "__drawCore": scene_Renderable___drawCore__P50704, + "z": sprites_BaseSprite_z__P50187, + "set/z": sprites_BaseSprite_z__P50188, + "__draw": sprites_BaseSprite___draw__P50189, + "__update": sprites_BaseSprite___update__P50191, }, }); -const MovingSprite__C18294_VT = mkVTable({ +const MovingSprite__C50501_VT = mkVTable({ name: "MovingSprite", numFields: 7, classNo: 52, @@ -39225,7 +39243,7 @@ const MovingSprite__C18294_VT = mkVTable({ "set/yStep": null, }, }); -const tiles_Location__C18412_VT = mkVTable({ +const tiles_Location__C50619_VT = mkVTable({ name: "Location", numFields: 3, classNo: 53, @@ -39240,14 +39258,14 @@ const tiles_Location__C18412_VT = mkVTable({ "set/_col": null, "tileMap": null, "set/tileMap": null, - "col": tiles_Location_col__P18413, - "row": tiles_Location_row__P18414, - "x": tiles_Location_x__P18416, - "y": tiles_Location_y__P18417, - "tileSet": tiles_Location_tileSet__P18418, + "col": tiles_Location_col__P50620, + "row": tiles_Location_row__P50621, + "x": tiles_Location_x__P50623, + "y": tiles_Location_y__P50624, + "tileSet": tiles_Location_tileSet__P50625, }, }); -const sprites_StaticObstacle__C18268_VT = mkVTable({ +const sprites_StaticObstacle__C50475_VT = mkVTable({ name: "StaticObstacle", numFields: 5, classNo: 54, @@ -39266,14 +39284,14 @@ const sprites_StaticObstacle__C18268_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P18275, - "y": sprites_StaticObstacle_y__P18276, - "height": sprites_StaticObstacle_height__P18277, - "width": sprites_StaticObstacle_width__P18278, + "x": sprites_StaticObstacle_x__P50482, + "y": sprites_StaticObstacle_y__P50483, + "height": sprites_StaticObstacle_height__P50484, + "width": sprites_StaticObstacle_width__P50485, }, }); -const breakpoints = setupDebugger(1, ["currentFrame___32081","initialized___32079","CHANNEL___32072"]) +const breakpoints = setupDebugger(1, ["currentFrame___65167","initialized___65165","CHANNEL___65158"]) -return _main___P32137 +return _main___P65218 }) diff --git a/assets/version.txt b/assets/version.txt index 6812f81..05b19b1 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.0.3 \ No newline at end of file +0.0.4 \ No newline at end of file diff --git a/pxt.json b/pxt.json index f35e9cc..fe495da 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "arcade-webcam", - "version": "0.0.3", + "version": "0.0.4", "description": "", "dependencies": { "device": "*"